@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 145deg;
  inherits: false;
}

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #0e0e10;
  --bg-card: rgba(14, 14, 16, 0.85);
  --bg-card-solid: #0f0f11;
  --bg-card-hover: #141417;
  --bg-chip: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.065);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-primary: #fafafa;
  --text-secondary: #a1a1a1;
  --text-muted: #737373;
  --accent: #ffffff;
  --accent-muted: #d4d4d8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --container: 1140px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Subtle Matte Black Architecture & Ambient Lighting */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 50% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 50% at 50% 0%, #000 20%, transparent 100%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 35%, transparent 0%, var(--bg-primary) 75%);
}

.bg-glow {
  position: fixed;
  top: -190px;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, 105vw);
  height: 440px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.015) 45%, transparent 72%);
  filter: blur(36px);
}

.hairline-top {
  border-top: 1px solid var(--border-subtle);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #222226, #111113);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
}

.brand-name {
  font-size: 0.93rem;
  color: var(--text-primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  font-size: 0.87rem;
  color: var(--text-secondary);
  transition: color 0.18s ease;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  transition: all 0.18s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.lang-btn:hover:not([aria-pressed="true"]) {
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.2px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.2px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 24px 18px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 11, 12, 0.96);
  backdrop-filter: blur(16px);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  padding: 11px 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

/* Hero */
.hero {
  padding: 58px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(200px, 0.52fr);
  gap: 44px;
  align-items: center;
  padding-bottom: 48px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  color: var(--accent-muted);
  margin-bottom: 18px;
}

.status-dot-wrap {
  position: relative;
  width: 8px;
  height: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-ping {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  animation: pingRing 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fafafa;
}

@keyframes pingRing {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  75%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2.45rem, 4.9vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 15%, #a1a1a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 500;
  color: var(--accent-muted);
  line-height: 1.48;
  max-width: 640px;
}

.hero-bio {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 630px;
}

/* Hairline Separated Hero Stats */
.hero-stats {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(23, 23, 25, 0.55);
  border: 1px solid var(--border-subtle);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.meta-chip {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.meta-chip-wide {
  grid-column: 1 / -1;
}

.meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.meta-value {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 0.89rem;
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Specular Orbiting Light Border Button (MasterMedya-style sharp rotating arc) */
.btn-specular {
  position: relative;
  color: var(--text-primary);
  border: 1px solid transparent;
  background:
    linear-gradient(#121212, #121212) padding-box,
    conic-gradient(
      from var(--gradient-angle, 145deg),
      rgba(255, 255, 255, 0.04) 0deg,
      rgba(255, 255, 255, 0.04) 285deg,
      rgba(255, 255, 255, 0.38) 315deg,
      rgba(255, 255, 255, 0.98) 342deg,
      rgba(255, 255, 255, 0.18) 356deg,
      rgba(255, 255, 255, 0.04) 360deg
    ) border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.btn-specular:hover {
  background:
    linear-gradient(#161618, #161618) padding-box,
    conic-gradient(
      from var(--gradient-angle, 145deg),
      rgba(255, 255, 255, 0.08) 0deg,
      rgba(255, 255, 255, 0.08) 280deg,
      rgba(255, 255, 255, 0.45) 314deg,
      #ffffff 342deg,
      rgba(255, 255, 255, 0.22) 356deg,
      rgba(255, 255, 255, 0.08) 360deg
    ) border-box;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.07);
}

.btn-arrow {
  display: inline-block;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn-specular:hover .btn-arrow {
  transform: translateY(2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.16s ease;
}

.social-link:hover {
  color: var(--text-primary);
}

/* Protected Compact Portrait Shell with Corner Ticks */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.profile-shell {
  position: relative;
  padding: 6px;
  width: 100%;
  max-width: 236px;
}

.corner-tick {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.28);
  border-style: solid;
  pointer-events: none;
}

.corner-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.profile-card {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #131315 0%, #0d0d0f 100%);
  border: 1px solid var(--border);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: heroFloat 6.5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.avatar-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.45;
  border-radius: 10px;
  overflow: hidden;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
  cursor: default;
}

.avatar-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.avatar-shield {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
}

.avatar-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.02) 60%, rgba(11, 11, 12, 0.45) 100%);
}

.profile-card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 2px 2px;
}

.profile-card-name {
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.profile-card-role {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.profile-card-loc {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-chip);
  color: var(--accent-muted);
  white-space: nowrap;
}

/* Edge-Faded Infinite Marquee Strip */
.marquee-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0;
  background: transparent;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(140px, 18vw);
  z-index: 2;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 18%, transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 18%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  flex-shrink: 0;
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--accent-muted);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121214;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.marquee-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.012);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(161, 161, 161, 0.55);
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-desc {
  margin: 0;
  max-width: 450px;
  font-size: 0.91rem;
  color: var(--text-secondary);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-btn.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

/* Projects Grid — Deep Near-Black MasterMedya-Style Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.project-card-wrap {
  position: relative;
  padding: 1px;
  border-radius: calc(var(--radius-md) + 1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, box-shadow 0.28s ease;
}

.project-card-wrap.is-featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 255, 255, 0.025);
}

.project-card-wrap:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.65);
}

.featured-pill {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fafafa, #d4d4d8);
  color: #09090b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.project-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-md);
  background: #0e0e10;
  transition: background-color 0.25s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.045), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card-wrap:hover .project-card {
  background: #111113;
}

.project-card-wrap:hover .project-card::before {
  opacity: 1;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.project-top-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.project-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-status.is-live {
  color: var(--accent-muted);
}

.project-title {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.project-desc {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

.project-highlights {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.56;
}

.project-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-highlights li + li {
  margin-top: 7px;
}

.check-mark {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  flex-shrink: 0;
}

.project-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
}

.card-cta-btn {
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.81rem;
  font-weight: 600;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.card-cta-primary {
  background: #fafafa;
  color: #0a0a0b;
  border: 1px solid #fafafa;
}

.card-cta-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.card-cta-outline {
  background: #131316;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.card-cta-outline:hover {
  background: #19191d;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.card-cta-muted {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: default;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
}

/* Dashed SVG Sine-Wave Engineering Process Band */
.process-band {
  position: relative;
  margin-bottom: 40px;
  padding: 20px 0 8px;
}

.process-wave {
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
  height: 54px;
  pointer-events: none;
  z-index: 0;
}

.process-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
}

.process-icon-box {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.process-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-title {
  margin: 0 0 6px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

.process-desc {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.52;
}

/* Experience & Education */
.exp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: start;
}

.col-heading {
  margin: 0 0 18px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--accent-muted);
  letter-spacing: -0.01em;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exp-card,
.edu-card,
.highlight-box {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.exp-card:hover,
.edu-card:hover,
.highlight-box:hover,
.skill-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.exp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.exp-role {
  margin: 0 0 3px;
  font-size: 1.01rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-company {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: var(--accent-muted);
  white-space: nowrap;
}

.exp-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.62;
}

.exp-bullets li + li {
  margin-top: 6px;
}

.edu-card {
  margin-bottom: 14px;
}

.edu-school {
  margin: 0 0 4px;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--text-primary);
}

.edu-degree {
  margin: 0 0 12px;
  font-size: 0.89rem;
  color: var(--text-secondary);
}

.edu-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlight-box h4 {
  margin: 0 0 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

.highlight-box p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

.skill-title {
  margin: 0 0 14px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  font-size: 0.81rem;
  color: var(--accent-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #111113 0%, #0c0c0e 100%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.contact-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.contact-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.68;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.contact-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.contact-row .contact-item {
  flex: 1;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.contact-item:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.copy-btn {
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.copy-btn:hover {
  background: #202024;
  border-color: var(--border-strong);
}

.contact-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

/* Footer */
.site-footer {
  padding: 26px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Scroll Reveal & Hero Entrance */
.reveal-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-stagger > * {
  animation: fadeSlideUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-stagger > *:nth-child(1) { animation-delay: 0.03s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.08s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.13s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.18s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.23s; }
.hero-stagger > *:nth-child(6) { animation-delay: 0.28s; }
.hero-stagger > *:nth-child(7) { animation-delay: 0.33s; }
.hero-stagger > *:nth-child(8) { animation-delay: 0.38s; }

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-visual {
    order: -1;
    justify-content: flex-start;
  }

  .profile-shell {
    max-width: 204px;
  }

  .exp-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 34px 0 0;
  }

  .hero-grid {
    padding-bottom: 34px;
  }

  .section {
    padding: 54px 0;
  }

  .hero-meta,
  .projects-grid,
  .skills-grid,
  .contact-grid-mini,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-wave {
    display: none;
  }

  .process-grid {
    gap: 22px;
  }

  .contact-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 0.89rem;
  }

  .hero-visual {
    justify-content: center;
  }

  .profile-shell {
    max-width: 184px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    padding: 11px 6px;
  }

  .stat-divider {
    display: none;
  }

  .hero-stat {
    align-items: center;
    text-align: center;
    padding: 0 6px;
  }

  .hero-stat ~ .hero-stat {
    border-left: 1px solid var(--border);
  }

  .stat-num {
    font-size: 1.05rem;
  }

  .stat-label {
    font-size: 0.66rem;
    line-height: 1.3;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .contact-row {
    flex-direction: column;
  }

  .copy-btn {
    min-height: 42px;
  }

  .exp-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .status-ping,
  .hero-stagger > * {
    animation: none !important;
  }
  .reveal-target {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
