/* ============================================================
   ICHTY TE — PORTFOLIO DESIGN SYSTEM
   ============================================================ */

/* ROOT TOKENS */
:root {
  --bg:             #0a0a0a;
  --surface:        #111111;
  --surface-raised: #161616;
  --border:         #1e1e1e;
  --border-strong:  #2e2e2e;

  --text-1: #ededed;
  --text-2: #999999;
  --text-3: #555555;

  --accent:      #ffffff;
  --accent-rgb:  255, 255, 255;
  --accent-dim:  rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(255, 255, 255, 0.20);
  --accent-border: rgba(255, 255, 255, 0.30);

  /* keyboard deck + keycaps (theme-aware, matches site surfaces) */
  --deck-face:  linear-gradient(180deg, #161616 0%, #0b0b0b 100%);
  --deck-drop:  rgba(0, 0, 0, 0.6);
  --key-face:   linear-gradient(180deg, #1c1c1c 0%, #101010 100%);
  --key-side:   #050505;
  --key-drop:   rgba(0, 0, 0, 0.5);
  --key-hi:     rgba(255, 255, 255, 0.05);

  --font:      'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Fluid type scale */
  --t-xs:   clamp(0.70rem,  0.65rem + 0.25vw, 0.78rem);
  --t-sm:   clamp(0.85rem,  0.80rem + 0.25vw, 0.92rem);
  --t-base: clamp(0.95rem,  0.90rem + 0.25vw, 1.00rem);
  --t-lg:   clamp(1.10rem,  1.00rem + 0.50vw, 1.25rem);
  --t-xl:   clamp(1.25rem,  1.10rem + 0.75vw, 1.50rem);
  --t-2xl:  clamp(1.50rem,  1.30rem + 1.00vw, 2.00rem);
  --t-3xl:  clamp(2.00rem,  1.60rem + 2.00vw, 3.00rem);
  --t-4xl:  clamp(2.75rem,  2.00rem + 3.75vw, 5.50rem);
  --t-hero: clamp(3.50rem,  2.50rem + 5.50vw, 9.00rem);

  /* Spacing (4px grid) */
  --s-1:  4px;   --s-2:  8px;   --s-3:  12px;  --s-4:  16px;
  --s-5:  20px;  --s-6:  24px;  --s-8:  32px;  --s-10: 40px;
  --s-12: 48px;  --s-16: 64px;  --s-20: 80px;  --s-24: 96px;

  --container-max: 2600px;
  --container-pad: clamp(20px, 4vw, 72px);
  --pgrid:         clamp(20px, 4vw, 72px);
  --section-gap:   clamp(80px, 11vw, 140px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med:  360ms;
  --dur-slow: 700ms;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: dark; }
/* Hide the scrollbar (scrolling still works) */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* Fallback native smooth scroll if Lenis unavailable */
html:not(.lenis) { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { display: block; max-width: 100%; }

/* Page-wide ambient aura — a soft accent glow that trails the cursor across
   every section, tying the whole page together. Sits above the body backdrop
   but behind all content (transparent sections let it bleed through). */
.page-aura {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.loaded .page-aura { opacity: 1; }

/* Background column grid — faint dashed vertical guides, fixed behind content,
   aligned to the content container (Eva Sanchez style). */
.bg-grid {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container-max), calc(100% - var(--container-pad) * 2));
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(to right,
    rgba(255, 255, 255, 0.06) 0 1px,
    transparent 1px calc(100% / 6));
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 6px, transparent 6px 13px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 6px, transparent 6px 13px);
}
html[data-theme="light"] .bg-grid {
  background-image: repeating-linear-gradient(to right,
    rgba(0, 0, 0, 0.07) 0 1px,
    transparent 1px calc(100% / 6));
}
/* A single fixed-size glow blob translated to the cursor. Moving it with
   transform is GPU-composited (no per-frame repaint like a moving gradient). */
.page-aura::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 75vmax; height: 75vmax;
  margin: -37.5vmax 0 0 -37.5vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(var(--accent-rgb), 0.13), rgba(var(--accent-rgb), 0.04) 46%, transparent 72%);
  transform: translate3d(var(--ax, 50vw), var(--ay, 22vh), 0);
  will-change: transform;
}
html[data-theme="light"] .page-aura { mix-blend-mode: multiply; }
html[data-theme="light"] .page-aura::before {
  background: radial-gradient(closest-side,
    rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.05) 46%, transparent 72%);
}
@media (prefers-reduced-motion: reduce) {
  .page-aura { transition: none; }
}
a    { color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* CONTAINER */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── SHARED BIG NAME ──────────────────────────────────────────
   The same name renders in the loader AND the hero, in the same
   place, so it can be handed off seamlessly. One anchor var keeps
   both in sync. */
:root { --name-bottom: clamp(290px, 40vh, 440px); }

.big-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(2.6rem, 13.5vw, 12rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text-1);
  margin: 0;
  white-space: nowrap;
}
.big-name .bn-line { display: block; overflow: hidden; }
.big-name .bn-text { display: inline-block; }
.big-name .bn-dot {
  color: var(--accent);
  font-style: normal;
  animation: bnDotPulse 1.6s var(--ease-out) infinite;
}
@keyframes bnDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Living gold sheen sweeping across the hero name (hero instance only, so the
   loader handoff is untouched). Accent-based so it reads in both themes. */
.hero-name .bn-text {
  background: linear-gradient(100deg,
    var(--text-1) 0%, var(--text-1) 42%,
    var(--accent) 50%,
    var(--text-1) 58%, var(--text-1) 100%);
  background-size: 260% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nameSheen 7s ease-in-out 1.6s infinite;
}
@keyframes nameSheen {
  0%   { background-position: 120% 0; }
  55%  { background-position: -20% 0; }
  100% { background-position: -20% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-name .bn-text { animation: none; -webkit-text-fill-color: var(--text-1); }
}

/* ── LOADER · COUNTER ────────────────────────────────────── */
/* Editorial loader: identity top row, big real-progress counter anchored where
   the hero name lands, and a full-bleed progress line at the very bottom. */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  visibility: visible;
  opacity: 1;
  transition: opacity 0.6s var(--ease-out);
}
#loader.hide { opacity: 0; pointer-events: none; }
#loader.gone { visibility: hidden; }

.loader-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 0.7rem var(--pgrid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.loader-status { color: var(--text-3); }

/* The wordmark sits exactly where the hero name is handed off to, and
   "inks in" from left to right as real progress advances. */
.loader-word {
  position: absolute;
  left: var(--pgrid);
  bottom: var(--name-bottom);
  line-height: 1;
}
.loader-word-ghost,
.loader-word-ink {
  display: block;
}
.loader-word-ghost {
  color: var(--text-3);
  -webkit-text-fill-color: var(--text-3);
  opacity: 0.4;
}
.loader-word-ink {
  position: absolute;
  inset: 0;
  color: var(--text-1);
  -webkit-text-fill-color: var(--text-1);
  clip-path: inset(0 100% 0 0);   /* revealed left→right via JS */
}

/* Percentage read-out — small, mono, at the word's right baseline. */
.loader-meta {
  position: absolute;
  right: var(--pgrid);
  bottom: calc(var(--name-bottom) + 0.35em);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.loader-count {
  display: flex;
  align-items: flex-start;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  font-weight: 400;
  color: var(--text-2);
}
#loader-number { font-variant-numeric: tabular-nums; }
.loader-pct {
  font-size: 0.5em;
  color: var(--accent);
  margin-top: 0.2em;
  margin-left: 0.12em;
}

.loader-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--border);
}
.loader-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  #loader { transition: none; }
  .loader-bar-fill { transition: none; }
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
}
/* A gradient from the background color down to transparent, so content
   dissolves under the nav instead of hitting a hard blurred bar. */
/* Short black gradient — the dark tint at the very top. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 25%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.12) 75%,
    transparent 100%);
}
/* Blur — its own longer layer, strongest at the top, fading down. */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 64px;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
}
.nav-inner {
  position: relative;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0.7rem var(--pgrid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 54;
  line-height: 1.27;
  pointer-events: none;
}
/* Row itself is click-through (lets the aura/spotlight see the cursor even
   over the header); the actual interactive pieces opt back in. */
.nav-inner > * { pointer-events: auto; }

/* Left identity: name + live local time. Name matches the nav-link font. */
.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  transition: color var(--dur-fast);
}
.nav-logo .nav-id { color: var(--text-2); }
.nav-logo:hover .nav-id { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}
.nav-links a { text-decoration: none; }

/* Animated text-slide links (award style) */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-1);
  padding: var(--s-2) var(--s-1);
}
.nav-link span {
  display: block;
  transition: color var(--dur-fast);
}
.nav-link:hover span { color: var(--accent); }
/* Active underline indicator */
.nav-link::before {
  content: "";
  position: absolute;
  left: var(--s-1); right: var(--s-1);
  bottom: 5px; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-link.active { color: var(--accent); }
.nav-link.active span { color: var(--accent); }
.nav-link.active::before { transform: scaleX(1); }
.nav-cta {
  color: var(--bg) !important;
  background: var(--text-1) !important;
  padding: 3px 8px 2px !important;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast) !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-2);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero-section { position: relative; overflow: hidden; }

/* interactive line-art hook — large wireframe sphere bleeding off the right */
.hero-artwrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  -webkit-mask-image:
    linear-gradient(to right, transparent 32%, #000 60%),
    linear-gradient(to bottom, transparent 3%, #000 18%, #000 80%, transparent 99%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 32%, #000 60%),
    linear-gradient(to bottom, transparent 3%, #000 18%, #000 80%, transparent 99%);
          mask-composite: intersect;
}
body.loaded .hero-artwrap { animation: fadeIn 1.1s var(--ease-out) 0.5s forwards; }
.hero-artcanvas {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--text-2);
}
@media (max-width: 860px) {
  body.loaded .hero-artwrap { animation: fadeInFaint 1.1s var(--ease-out) 0.5s forwards; }
}
@keyframes fadeInFaint { from { opacity: 0; } to { opacity: 0.5; } }
.hero-inner {
  min-height: 100svh;
  padding-top: 84px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* faint grid backdrop with radial fade */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 35% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 35% 42%, #000 0%, transparent 72%);
  opacity: 0.6;
}

/* the animated canvas replaces the static aura glow */
.hero-aura { display: none; }
/* animated mesh-gradient aura — drifting gold light, eases toward cursor */
.hero-aura-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* interactive dot grid — dots glow + grow near the cursor */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 35% 44%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 62% at 35% 44%, #000 0%, transparent 78%);
}

/* entrance animations — the name is handed off from the loader, so it
   only fades in; the supporting elements rise in around it. */
.hero-display,
.hero-meta,
.hero-rule,
.hero-statement,
.hero-ctas,
.hero-foot { opacity: 0; }
body.loaded .hero-display { animation: fadeIn 0.5s var(--ease-out) 0.05s forwards; }
body.loaded .hero-meta { animation: fadeUp 0.6s var(--ease-out) 0.28s forwards; }
body.loaded .hero-rule { animation: ruleIn 0.7s var(--ease-out) 0.34s forwards; }
body.loaded .hero-statement { animation: fadeUp 0.6s var(--ease-out) 0.44s forwards; }
body.loaded .hero-ctas { animation: fadeUp 0.6s var(--ease-out) 0.56s forwards; }
body.loaded .hero-foot { animation: fadeUp 0.6s var(--ease-out) 0.68s forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ruleIn { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

/* top meta row */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
}
.hero-clock {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-clock-time { color: var(--text-1); font-variant-numeric: tabular-nums; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  width: fit-content;
  font-size: var(--t-xs);
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.hero-eyebrow:hover { color: var(--accent); border-color: var(--accent-border); }
.avail-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── EDITORIAL HERO LAYOUT ────────────────────────────────
   The name is the shared element (.big-name), anchored bottom-left
   exactly where the loader handed it off. Support sits to the right,
   CTAs below, foot at the bottom. */

/* Name block — role label + the shared name, anchored so the name's
   baseline sits exactly where the loader handed it off. */
.hero-display {
  position: absolute;
  left: var(--container-pad);
  bottom: var(--name-bottom);
  z-index: 2;
}
.hero-name { margin: 0; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
}
.hero-kicker-line {
  display: inline-block;
  width: 40px; min-width: 40px; height: 1px;
  background: var(--accent);
}

/* hairline at the name baseline tying the columns together */
.hero-rule {
  position: absolute;
  left: var(--container-pad);
  right: var(--container-pad);
  bottom: calc(var(--name-bottom) - 1px);
  height: 1px;
  background: var(--border);
  transform-origin: left center;
  z-index: 1;
}

/* Statement row under the rule: "I build ▸ X" (left) + tagline (right) */
.hero-statement {
  position: absolute;
  left: var(--container-pad);
  right: var(--container-pad);
  bottom: clamp(200px, 27vh, 320px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-10);
  z-index: 2;
}
.hero-statement .hero-roleline { margin: 0; }
.hero-statement .hero-tagline {
  max-width: 40ch;
  text-align: right;
  margin: 0;
  flex-shrink: 0;
}
/* Minimalist two-line subtitle under the name */
.hero-subtitle {
  margin: 0;
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-1);
}

/* CTAs sit near the bottom */
.hero-ctas {
  position: absolute;
  left: var(--container-pad);
  bottom: clamp(110px, 15vh, 180px);
  z-index: 2;
}

/* meta right-side label (balances the eyebrow) */
.hero-tag {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
}
.hero-tag i { color: var(--text-3); font-style: normal; padding: 0 0.15em; }

/* rotating role line */
.hero-roleline {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
  font-size: var(--t-2xl);
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: var(--s-6);
}
.hero-roleline-pre { color: var(--text-2); }
.hero-rotator {
  position: relative;
  display: inline-block;
  height: 1.35em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--accent);
  font-weight: 600;
}
.hero-rotator .rot-word {
  display: block;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}
.hero-rotator .rot-word.is-active { transform: translateY(0); opacity: 1; }
.hero-rotator .rot-word.is-out    { transform: translateY(-110%); opacity: 0; }

.hero-tagline {
  font-size: var(--t-lg);
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.55;
  max-width: 44ch;
  margin-bottom: var(--s-10);
}

.hero-ctas {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.btn-arrow { display: inline-block; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

/* Buttons — a clear hierarchy: one solid primary that carries weight, and
   quieter outline secondaries that recede until hovered. Uniform height keeps
   the row precisely aligned. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.35s ease,
              background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn:active { transform: scale(0.98); }

/* Primary — the dominant action */
.btn-primary {
  background: var(--text-1);
  color: var(--bg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

/* Secondary — muted outline that steps forward on hover */
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  color: var(--text-1);
  border-color: var(--accent-border);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* bottom foot row — pinned to the bottom of the hero */
.hero-foot {
  position: absolute;
  left: var(--container-pad);
  right: var(--container-pad);
  bottom: clamp(24px, 5vh, 44px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s-4);
}
/* Scroll hint centered in the row */
.hero-scroll {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}
.scroll-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--dur-fast);
}
.hero-scroll:hover .scroll-label { color: var(--accent); }
.hero-socials {
  display: flex;
  gap: var(--s-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.hero-socials a:hover { color: var(--accent); }
.social-arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.hero-socials a:hover .social-arrow { transform: translate(2px, -2px); }

/* ── SHARED SECTION ELEMENTS ─────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  font-size: var(--t-xs);
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}
.section-header { margin-bottom: var(--s-16); }
.section-title {
  font-size: var(--t-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-1);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 400;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-strong);
  padding: 4px var(--s-3);
  border-radius: 100px;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.tag:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}
/* Big editorial statement */
.about-top { margin-bottom: clamp(56px, 8vw, 120px); }
.about-statement {
  margin-top: var(--s-6);
  font-size: clamp(1.9rem, 4.6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-1);
  max-width: 22ch;
}

/* Bio + portrait */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-bio {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  max-width: 56ch;
}
.about-bio p {
  font-size: var(--t-base);
  color: var(--text-2);
  line-height: 1.85;
}
.about-portrait {
  position: sticky;
  top: 80px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  filter: grayscale(15%) contrast(1.05);
}
.about-portrait-cap {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: var(--s-4);
}

/* ── ABOUT · NUMBERED INDEX (Focus / Recognition / Education) ── */
.about-index {
  margin-top: clamp(64px, 10vw, 150px);
}
.idx-block {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(28px, 3.5vw, 52px) 0;
  border-top: 1px solid var(--border);
}
.about-index .idx-block:last-child { border-bottom: 1px solid var(--border); }
.idx-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
}
.idx-num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--accent);
  letter-spacing: 0.1em;
}
.idx-title {
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
}
.idx-list { display: flex; flex-direction: column; }
.idx-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--s-3) var(--s-5);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
}
.idx-list .idx-row:first-child { border-top: none; padding-top: 0; }
.idx-role {
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-1);
}
.idx-meta {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-align: right;
}
/* Education rows: title + year on the top line, meta + detail beneath */
.idx-row-edu { grid-template-columns: 1fr auto; }
.idx-row-edu .idx-year {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-align: right;
}
.idx-row-edu .idx-meta {
  grid-column: 1 / -1;
  text-align: left;
  color: var(--text-2);
  margin-top: calc(var(--s-1) * -1);
}
.idx-row-edu .idx-detail {
  grid-column: 1 / -1;
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 60ch;
  margin-top: var(--s-2);
}
.stat {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.stat:last-child { border-right: none; }
.stat-num-row { display: flex; align-items: baseline; gap: 2px; }
.stat-num {
  font-size: var(--t-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
  line-height: 1;
}
.stat-suffix {
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: var(--t-xs);
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* recognition strip — social proof row */
.recognition {
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.recognition-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-4);
}
.recognition-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
}
.recognition-list li {
  position: relative;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
  transition: color var(--dur-fast);
}
.recognition-list li:hover { color: var(--text-1); }
.recognition-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--s-6) / -2);
  top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(50%, -50%);
}

/* ── HOLD-TO-CONNECT (hold-to-charge interaction) ─────────── */
.hold-connect {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-8) 0 var(--s-10);
}
.hold-btn {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--text-1);
  transition: transform var(--dur-fast), border-color var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.hold-btn:active { transform: scale(0.96); }
.hold-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.hold-track { fill: none; stroke: var(--border); stroke-width: 2; }
.hold-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 207.3;        /* 2·π·33 */
  stroke-dashoffset: 207.3;
  transition: stroke-dashoffset 0.18s var(--ease-out);
}
.hold-btn.holding .hold-fill { stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.hold-btn.done { border-color: var(--accent); }
.hold-btn.done .hold-fill { stroke-dashoffset: 0; transition: none; }
.hold-icon { font-size: 22px; transition: transform var(--dur-med) var(--ease-out); }
.hold-btn.holding .hold-icon { transform: scale(1.15); }
.hold-btn.done .hold-icon { transform: translateX(2px) scale(1.1); color: var(--accent); }
.hold-text {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── SKILLS MARQUEE ──────────────────────────────────────── */
.skills-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

/* ── STACK — editorial categorised list ──────────────────── */
.stack-list {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--border);
}
.stack-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) 1fr;
  gap: clamp(20px, 4vw, 64px);
  padding: clamp(24px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.stack-cat {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em 1.4em;
}
.stack-items li {
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-1);
  transition: color var(--dur-fast);
}
.stack-items li:hover { color: var(--accent); }

.skills-list {
  margin-top: var(--s-12);
  border-top: 1px solid var(--border);
}
.skill-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: var(--s-8);
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.skill-row-label {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  color: var(--text-1);
  padding-top: 7px;
  transition: color var(--dur-fast);
}
.skill-row:hover .skill-row-label { color: var(--accent); }
.skill-row-num {
  font-size: var(--t-xs);
  color: var(--text-3);
}
.skill-row:hover .skill-row-num { color: var(--accent); }
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: var(--t-sm);
  color: var(--text-1);
  white-space: nowrap;
  transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.skill-chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.skill-chip img {
  width: 18px; height: 18px;
  object-fit: contain;
}

/* ── KEYCAP KEYBOARD ─────────────────────────────────────── */
.skills-hint {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text-3);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-top: var(--s-4);
}
/* skill tiles — flat, matches the site's card language */
.keyboard-wrap {
  width: 100%;
  max-width: 820px;
  margin: var(--s-16) auto 0;
}
.keyboard-deck { display: block; }
.keycaps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 16px);
}
.keycap {
  position: relative;
  width: clamp(60px, 8.5vw, 86px);
  height: clamp(60px, 8.5vw, 86px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease,
              background 0.25s ease, box-shadow 0.3s ease;
}
.keycap img {
  width: 44%; height: 44%;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out);
}
.keycap[data-key="b"] img { filter: invert(1) brightness(1.7); }
.keycap-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: -0.01em;
  color: var(--text-1);
  pointer-events: none;
}
.keycap:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  background: var(--surface-raised);
}
/* auto-ripple + active highlight, in brand gold */
.keycap.pressed {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px var(--accent-border), 0 8px 26px var(--accent-glow);
}
.keycap:hover img,
.keycap.pressed img { transform: scale(1.14); }
.keycap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Animated underline on text links (feels alive) ──────── */
.social-link,
.edu-school {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out), color var(--dur-fast);
}
.social-link:hover { background-size: 100% 1px; color: var(--accent); }
.keycap-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--surface-raised);
  color: var(--text-1);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}
.keycap:hover .keycap-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── PROJECTS ────────────────────────────────────────────── */
.projects-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}
.projects-list {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 10vw, 112px);
}
.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* Reversed variant: image right */
.project-item--rev .project-img-wrap { order: 2; }
.project-item--rev .project-info     { order: 1; }

.project-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.project-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease-out);
}
.project-item:hover .project-img { transform: scale(1.04); }

.project-award {
  position: absolute;
  top: var(--s-4); left: var(--s-4);
  background: rgba(255,255,255,0.95);
  color: #0a0a0a;
  font-size: var(--t-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: var(--s-1) var(--s-3);
  border-radius: 4px;
}
.project-top {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.project-num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text-3);
  letter-spacing: 0.06em;
  padding-top: 3px;
  flex-shrink: 0;
}
.project-name {
  font-size: var(--t-3xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--s-5);
  color: var(--text-1);
}
.project-desc {
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: var(--s-8);
  max-width: 52ch;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.project-link:hover { color: var(--accent); border-color: var(--accent); }
.arrow { transition: transform var(--dur-fast); display: inline-block; }
.project-link:hover .arrow { transform: translateX(5px); }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); }
.project-link--ghost { color: var(--text-3); border-bottom-color: var(--border); font-weight: 500; }
.project-link--ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ── HORIZONTAL WORK GALLERY ───────────────────────────────
   The Work section pins to the viewport and the project cards
   translate left as you scroll down (driven by JS). */
.projects-section { padding: 0; }
.hscroll { position: relative; }        /* height set by JS = 100vh + travel */
.hscroll-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hscroll-head { padding-top: clamp(72px, 12vh, 132px); flex-shrink: 0; }
.hscroll-head-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6);
}
.hscroll-head .section-header { margin: 0; }
.hscroll-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2);
  font-family: var(--font-mono); white-space: nowrap;
}
.hscroll-count { font-size: var(--t-sm); color: var(--text-2); letter-spacing: 0.08em; }
.hscroll-count #work-index { color: var(--accent); }
.hscroll-count .hscroll-sep { color: var(--text-3); margin: 0 2px; }
.hscroll-hint {
  font-size: var(--t-xs); color: var(--text-3); letter-spacing: 0.14em; text-transform: uppercase;
}
.hscroll-hint .arrow { animation: hintNudge 1.6s var(--ease-out) infinite; }
@keyframes hintNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.hscroll-progress {
  margin-top: var(--s-6);
  height: 2px; background: var(--border);
  max-width: var(--container-max); margin-left: auto; margin-right: auto;
  width: calc(100% - var(--container-pad) * 2);
}
.hscroll-progress-bar {
  display: block; height: 100%; width: 0%;
  background: var(--accent); transition: width 0.1s linear;
}
.hscroll-viewport { flex: 1; display: flex; align-items: center; overflow: hidden; min-height: 0; }
.hscroll-track {
  display: flex; align-items: stretch;
  gap: clamp(20px, 3vw, 44px);
  padding: 0 clamp(20px, 6vw, 120px);
  will-change: transform;
}
.work-panel {
  flex: 0 0 auto;
  width: min(440px, 84vw);
  display: flex; flex-direction: column; justify-content: center;
}
.work-panel .project-img-wrap { border-radius: 10px; }
.work-panel .project-img { aspect-ratio: 4 / 3; }
.work-panel .project-item:hover .project-img,
.work-panel:hover .project-img { transform: scale(1.04); }
.work-panel .project-info { padding-top: var(--s-6); }
.work-panel .project-top { margin-bottom: var(--s-4); }
.work-panel .project-name { font-size: var(--t-2xl); margin-bottom: var(--s-3); }
.work-panel .project-desc {
  font-size: var(--t-sm); line-height: 1.7; margin-bottom: var(--s-5); max-width: none;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.work-panel .tag-list { gap: var(--s-2); }

/* Mobile / narrow: fall back to a normal vertical stack (no pin) */
@media (max-width: 899px) {
  .hscroll { height: auto !important; }
  .hscroll-sticky { position: static; height: auto; overflow: visible; }
  .hscroll-head { padding-top: var(--section-gap); margin-bottom: var(--s-10); }
  .hscroll-progress, .hscroll-hint { display: none; }
  .hscroll-viewport { overflow: visible; }
  .hscroll-track {
    flex-direction: column; gap: clamp(48px, 9vw, 80px);
    padding: 0 var(--container-pad); transform: none !important;
    max-width: var(--container-max); margin: 0 auto;
  }
  .work-panel { width: 100%; max-width: 560px; }
}

/* ── DESIGN WORK ─────────────────────────────────────────── */
.design-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.design-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
}
.design-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--dur-med), transform var(--dur-med);
}
.design-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.design-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-raised);
}
.design-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
}
.design-card { position: relative; }
.design-card:hover .design-img { transform: scale(1.05); }
.design-card-body { padding: var(--s-6) var(--s-8); position: relative; z-index: 2; }

/* ── Cursor spotlight on work + design cards ────────────────
   A soft accent glow tracks the cursor inside each card, so the
   work section feels lit from wherever you point. */
.project-img-wrap::after,
.design-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), 0.26), transparent 60%);
  mix-blend-mode: screen;
}
.project-img-wrap:hover::after,
.design-card:hover::after { opacity: 1; }
/* Accent border bloom on the design card while pointed at */
.design-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35),
              0 18px 50px -20px rgba(var(--accent-rgb), 0.35);
}
.design-card:hover::before { opacity: 1; }
.design-card-name {
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
  color: var(--text-1);
}
.design-card-desc {
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: var(--s-5);
}

/* ── EDUCATION ───────────────────────────────────────────── */
.education-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}
/* Education block nested inside About */
.about-edu {
  margin-top: clamp(48px, 7vw, 100px);
}
.about-edu .label { margin-bottom: var(--s-6); }
.edu-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-12);
  padding: var(--s-10) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--s-8);
}
.edu-year {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--text-3);
  letter-spacing: 0.05em;
  padding-top: 6px;
}
.edu-program {
  font-size: var(--t-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
  color: var(--text-1);
}
.edu-school {
  font-size: var(--t-base);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--s-5);
}
.edu-detail {
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.8;
  max-width: 60ch;
}
.edu-right .tag-list { margin-top: var(--s-5); }

/* ── CONTACT / FOOTER (Eva-style big statement) ──────────── */
.contact-footer {
  position: relative;
  overflow: hidden;
  display: block;
  padding: clamp(80px, 12vw, 200px) 0 clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--border);
}
.contact-footer .container { position: relative; z-index: 1; }
.contact-inner { width: 100%; }

/* Wireframe torus — a sibling motif to the hero globe, bleeding off the right */
.contact-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  -webkit-mask-image:
    linear-gradient(to right, transparent 30%, #000 62%),
    linear-gradient(to bottom, transparent 6%, #000 24%, #000 82%, transparent 98%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 30%, #000 62%),
    linear-gradient(to bottom, transparent 6%, #000 24%, #000 82%, transparent 98%);
          mask-composite: intersect;
}
.contact-art canvas {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--text-2);
}
.contact-footer .contact-art { animation: fadeIn 1.2s var(--ease-out) 0.3s forwards; }

/* Giant clickable statement that fills the width */
.contact-bigcta {
  display: block;
  margin: clamp(20px, 3vw, 44px) 0 clamp(48px, 7vw, 110px);
  font-weight: 700;
  font-size: clamp(3.4rem, 15.5vw, 16rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-1);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.contact-bigcta:hover { color: var(--accent); }
.contact-bigcta-arrow {
  display: inline-block;
  font-size: 0.24em;
  font-weight: 400;
  vertical-align: 0.9em;
  margin-left: 0.15em;
  transition: transform var(--dur-med) var(--ease-out);
}
.contact-bigcta:hover .contact-bigcta-arrow { transform: translate(0.12em, -0.12em); }

/* Baseline row: email + availability on the left, social links on the right */
.contact-baseline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--border);
}
.contact-email-sm {
  display: inline-block;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.contact-email-sm:hover { color: var(--accent); }
.contact-avail {
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 34ch;
}
.contact-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
}
.social-link {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.social-link:hover { color: var(--accent); }

/* Fine print */
.contact-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: clamp(56px, 8vw, 120px);
}
.footer-copy, .footer-credit {
  font-size: var(--t-xs);
  color: var(--text-3);
  font-family: var(--font-mono);
}
.footer-credit span { color: var(--text-2); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.section-reveal {
  opacity: 0;
  transform: translateY(52px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out),
              transform 1.05s var(--ease-out),
              filter 0.9s var(--ease-out);
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Staggered element reveal: tags pop in one-by-one when their card shows */
.tag-list .tag {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out),
              border-color var(--dur-fast), background var(--dur-fast);
}
.section-reveal.visible .tag-list .tag { opacity: 1; transform: translateY(0); }
.section-reveal.visible .tag-list .tag:nth-child(1) { transition-delay: 0.15s; }
.section-reveal.visible .tag-list .tag:nth-child(2) { transition-delay: 0.22s; }
.section-reveal.visible .tag-list .tag:nth-child(3) { transition-delay: 0.29s; }
.section-reveal.visible .tag-list .tag:nth-child(4) { transition-delay: 0.36s; }
.section-reveal.visible .tag-list .tag:nth-child(5) { transition-delay: 0.43s; }
.section-reveal.visible .tag-list .tag:nth-child(6) { transition-delay: 0.50s; }

/* scroll-driven image reveal (clip wipe + scale), tied to parent card visibility */
.reveal-img {
  clip-path: inset(0 0 102% 0 round 8px);
  transition: clip-path 1.1s var(--ease-out) 0.1s;
}
.section-reveal.visible .reveal-img { clip-path: inset(0 0 0 0 round 8px); }
.design-img-wrap.reveal-img .design-img {
  transform: scale(1.16);
  transition: transform 1.25s var(--ease-out) 0.1s;
}
.section-reveal.visible .design-img-wrap.reveal-img .design-img { transform: scale(1); }

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

/* ── CUSTOM CURSOR ───────────────────────────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transition: opacity 0.3s, width 0.25s var(--ease-out), height 0.25s var(--ease-out);
}
.cursor-ring {
  width: 34px; height: 34px;
  margin: -14px 0 0 -14px;
  border: 1px solid var(--accent-border);
  transition: opacity 0.3s, width 0.3s var(--ease-out),
              height 0.3s var(--ease-out), margin 0.3s var(--ease-out),
              background 0.3s, border-color 0.3s;
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-ready, body.cursor-ready a, body.cursor-ready button { cursor: none; }
/* Grow ring on interactive hover */
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: var(--accent-dim);
  border-color: var(--accent);
}
body.cursor-hover .cursor-dot { width: 0; height: 0; }

/* ── PAGE TRANSITION CURTAIN ─────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: var(--bg);
  border-top: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform;
}
.page-transition-label {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.page-transition.is-cover .page-transition-label { opacity: 1; transform: translateY(0); }

/* ── HERO SPOTLIGHT ──────────────────────────────────────── */
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 40%),
    rgba(255, 255, 255, 0.10),
    transparent 70%
  );
  transition: opacity 0.6s var(--ease-out);
}
body.loaded .hero-spotlight { opacity: 1; }
.hero-inner { z-index: 1; }

/* ── WORD REVEAL (scroll-masked headings) ────────────────── */
.reveal-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.reveal-words .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.85s var(--ease-out);
  transition-delay: var(--word-delay, 0ms);
}
.reveal-words.visible .word > span { transform: translateY(0); }

/* Parallax images need room to move without revealing edges */
.about-photo, .project-img { will-change: transform; }

/* ── RESPONSIVE: TABLET ──────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: clamp(32px, 8vw, 56px); }
  .about-portrait { position: static; order: -1; max-width: 320px; }
  .idx-block { grid-template-columns: 1fr; gap: var(--s-5); }
  .idx-head { gap: var(--s-2); }

  .project-item { grid-template-columns: 1fr; gap: var(--s-8); }
  .project-item--rev .project-img-wrap { order: unset; }
  .project-item--rev .project-info     { order: unset; }
  .project-desc { max-width: 100%; }

  .design-grid { grid-template-columns: 1fr; }

  .edu-item { grid-template-columns: 1fr; gap: var(--s-4); }

  .skill-row { grid-template-columns: 1fr; gap: var(--s-4); }
  .skill-row-label { padding-top: 0; }
}

/* ── RESPONSIVE: MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-inner {
    padding: 0.7rem var(--pgrid);
  }

  /* Full-screen overlay menu */
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--s-1);
    padding: 0 var(--container-pad);
    background: var(--bg);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--dur-med) var(--ease-out),
                transform var(--dur-med) var(--ease-out),
                visibility var(--dur-med);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links li { width: 100%; }

  .nav-links .nav-link,
  .nav-links .nav-cta {
    display: block !important;
    width: 100%;
    padding: var(--s-2) 0 !important;
    font-size: clamp(2.25rem, 13vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-1) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color var(--dur-fast);
  }
  .nav-links.open .nav-link,
  .nav-links.open .nav-cta { opacity: 1; transform: translateY(0); }
  .nav-links.open li:nth-child(1) .nav-link { transition-delay: 0.05s; }
  .nav-links.open li:nth-child(2) .nav-link { transition-delay: 0.11s; }
  .nav-links.open li:nth-child(3) .nav-link { transition-delay: 0.17s; }
  .nav-links.open li:nth-child(4) .nav-cta  { transition-delay: 0.23s; }

  /* Disable desktop slide/underline on mobile; use color for active */
  .nav-link::after, .nav-link::before { display: none; }
  .nav-link span { display: inline; transform: none !important; }
  .nav-link.active, .nav-link.active span { color: var(--accent) !important; }
  .nav-cta { color: var(--accent) !important; }

  /* Contact label/socials at bottom of menu */
  .nav-links .nav-menu-foot {
    position: absolute;
    left: var(--container-pad);
    bottom: var(--s-12);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    overflow: visible;
    font-family: var(--font-mono);
    font-size: var(--t-xs);
    color: var(--text-3);
    opacity: 0;
    transition: opacity var(--dur-med) 0.25s;
  }
  .nav-links.open .nav-menu-foot { opacity: 1; }
  .nav-menu-foot a { color: var(--text-2); text-decoration: none; }

  /* Hero */
  .hero-roles { flex-direction: column; align-items: flex-start; gap: var(--s-1); }
  .hero-sep   { display: none; }
  .hero-ctas  { flex-direction: column; max-width: 260px; }
  .btn        { justify-content: center; }
  .hero-scroll { display: none; }

  /* About stats stack vertically */
  .about-stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  /* Contact / footer — stack the baseline + legal rows */
  .contact-baseline { flex-direction: column; align-items: flex-start; gap: var(--s-8); }
  .contact-legal { flex-direction: column; align-items: flex-start; gap: var(--s-2); }

  /* ── Mobile refinement: compact tags, tighter rhythm ──── */
  .tag { font-size: 0.72rem; padding: 4px 11px; border-radius: 7px; }
  .tag-list { gap: 7px; }
  .section-header { margin-bottom: var(--s-8); }
  .section-title { letter-spacing: -0.045em; }

  /* stack list: category above its items */
  .stack-row { grid-template-columns: 1fr; gap: var(--s-4); }

  /* project cards: punchier number + cleaner rhythm */
  .project-num { color: var(--accent); }
}

/* ── HERO: tablet & down → flow layout (no absolute anchors) ── */
@media (max-width: 900px) {
  .hero-inner {
    justify-content: center;
    gap: clamp(28px, 6vw, 48px);          /* generous vertical rhythm */
    padding-top: 120px;
    padding-bottom: var(--s-12);
  }
  .hero-display,
  .hero-statement,
  .hero-ctas,
  .hero-foot {
    position: static;
    left: auto; right: auto; bottom: auto;
    width: auto;
  }
  .hero-rule { display: none; }
  .hero-tag  { display: none; }            /* drop label that duplicates the kicker */
  .hero-meta { order: 1; }
  .hero-display { order: 2; }
  .hero-kicker { margin-bottom: var(--s-5); }
  .hero-statement { order: 3; max-width: 540px; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
  .hero-statement .hero-roleline { margin-bottom: 0; }
  .hero-statement .hero-tagline { text-align: left; max-width: 42ch; }
  .hero-ctas { order: 4; display: flex; flex-wrap: wrap; gap: var(--s-4); }
  .hero-foot { order: 5; margin-top: var(--s-8); }
  .big-name  { font-size: clamp(2.4rem, 12.5vw, 6rem); }  /* eased off the edges */
}

/* ── HERO: small screens ─────────────────────────────────── */
@media (max-width: 560px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .hero-roleline { font-size: var(--t-xl); }
  .hero-tagline br { display: none; }
  .hero-tagline { font-size: var(--t-base); line-height: 1.6; }
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 340px; gap: var(--s-3); }
  .hero-ctas .btn { justify-content: center; padding: calc(var(--s-4) + 1px) var(--s-6); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: var(--s-4); margin-top: var(--s-10); }
}

/* ── TOUCH / NO-HOVER: hide custom cursor, keep native ───── */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body { cursor: auto !important; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring, .hero-spotlight { display: none !important; }
  .reveal-words .word > span { transform: none !important; }
  .section-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .tag-list .tag { opacity: 1 !important; transform: none !important; }
  .reveal-img { clip-path: none !important; }
  .design-img-wrap.reveal-img .design-img { transform: none !important; }
  .keyboard-deck { transform: none !important; }
  .scroll-line::after { animation: none !important; }
  body.loaded .hero-display,
  body.loaded .hero-meta,
  body.loaded .hero-rule,
  body.loaded .hero-statement,
  body.loaded .hero-ctas,
  body.loaded .hero-foot { opacity: 1 !important; animation: none !important; transform: none !important; }
  .hero-rotator .rot-word { transform: none !important; opacity: 1 !important; }
  .tilt { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════
   ADVANCED UX/UI LAYER
   ══════════════════════════════════════════════════════════ */

/* ── LIGHT THEME TOKENS ──────────────────────────────────── */
html[data-theme="light"] {
  color-scheme: light;
  --bg:             #f7f6f3;
  --surface:        #ffffff;
  --surface-raised: #efece6;
  --border:         #e4e0d8;
  --border-strong:  #cfc9bd;

  --text-1: #16140f;
  --text-2: #5c574e;
  --text-3: #9a9388;

  --accent:        #111111;
  --accent-rgb:    17, 17, 17;
  --accent-dim:    rgba(17, 17, 17, 0.08);
  --accent-glow:   rgba(17, 17, 17, 0.16);
  --accent-border: rgba(17, 17, 17, 0.30);

  /* keyboard deck + keycaps — light */
  --deck-face:  linear-gradient(180deg, #e9e6df 0%, #d4cfc4 100%);
  --deck-drop:  rgba(70, 62, 48, 0.20);
  --key-face:   linear-gradient(180deg, #ffffff 0%, #ece8e1 100%);
  --key-side:   #c3bdb0;
  --key-drop:   rgba(70, 62, 48, 0.16);
  --key-hi:     rgba(255, 255, 255, 0.9);
}
/* GitHub mark stays dark in light mode (don't invert) */
html[data-theme="light"] .keycap[data-key="b"] img { filter: none; }

/* Smooth, temporary transition while switching themes */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color var(--dur-med) ease, border-color var(--dur-med) ease,
              color var(--dur-med) ease, fill var(--dur-med) ease !important;
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1001;
  will-change: transform;
}

/* ── ACTIVE NAV (scroll-spy) ─────────────────────────────── */
.nav-links a.active { color: var(--accent); }
@media (max-width: 768px) {
  .nav-links a.active { background: var(--surface-raised); }
}

/* ── NAV RIGHT CLUSTER + THEME TOGGLE ────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.nav-menu-foot { display: none; }

/* live local time in the nav identity */
.nav-time {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 7px;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  background: transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-border); transform: translateY(-2px); }
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── 3D TILT + GLARE ─────────────────────────────────────── */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 255, 255, 0.18), transparent 45%);
  opacity: var(--go, 0);
  transition: opacity var(--dur-med) ease;
}
html[data-theme="light"] .tilt::after {
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
              rgba(255, 255, 255, 0.55), transparent 45%);
}
.project-award { z-index: 4; }

/* ── FILM GRAIN OVERLAY ──────────────────────────────────────
   Static (no animation) and viewport-sized. The old version was 4x the
   viewport with an infinite animation under a blend mode, which forced the
   compositor to re-blend a huge layer every frame — a major FPS drain. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .grain { opacity: 0.06; mix-blend-mode: multiply; }

/* ── HERO AMBIENT AURA ───────────────────────────────────── */
.hero-aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-aura::before, .hero-aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-aura::before {
  width: 46vw; height: 46vw;
  left: -8vw; top: -6vw;
  background: radial-gradient(circle, var(--accent-glow), transparent 62%);
  opacity: 0.7;
  animation: aura1 19s ease-in-out infinite alternate;
}
.hero-aura::after {
  width: 38vw; height: 38vw;
  right: -6vw; bottom: -10vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 62%);
  opacity: 0.6;
  animation: aura2 23s ease-in-out infinite alternate;
}
@keyframes aura1 { to { transform: translate(14vw, 9vh) scale(1.18); } }
@keyframes aura2 { to { transform: translate(-11vw, -7vh) scale(1.12); } }

/* ── CURSOR 'VIEW' LABEL ─────────────────────────────────── */
.cursor-ring { display: flex; align-items: center; justify-content: center; }
.cursor-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0a;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  white-space: nowrap;
}
body.cursor-view .cursor-ring {
  width: 92px; height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--accent);
  border-color: var(--accent);
}
body.cursor-view .cursor-dot { width: 0; height: 0; }
body.cursor-view .cursor-label { opacity: 1; transform: scale(1); }

/* ── CONTACT FORM ────────────────────────────────────────── */
.contact-form {
  display: grid;
  gap: var(--s-5);
  max-width: 560px;
  margin: var(--s-10) 0 var(--s-12);
}
.contact-form .field { position: relative; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 22px var(--s-4) 8px;
  color: var(--text-1);
  font-family: var(--font);
  font-size: var(--t-base);
  resize: vertical;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form label {
  position: absolute;
  left: calc(var(--s-4) + 1px);
  top: 15px;
  color: var(--text-3);
  font-size: var(--t-base);
  pointer-events: none;
  transition: top var(--dur-fast) var(--ease-out), font-size var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  top: 7px;
  font-size: var(--t-xs);
  color: var(--accent);
  font-family: var(--font-mono);
}
.contact-form .field.invalid input,
.contact-form .field.invalid textarea { border-color: #e0564f; }
.field-error {
  display: block;
  color: #e0564f;
  font-size: var(--t-xs);
  font-family: var(--font-mono);
  margin-top: 5px;
  min-height: 1em;
}
.cf-submit { justify-content: center; width: fit-content; }
.cf-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.cf-status { font-family: var(--font-mono); font-size: var(--t-sm); margin-top: var(--s-2); min-height: 1.2em; }
.cf-status.ok  { color: var(--accent); }
.cf-status.err { color: #e0564f; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; }
.contact-or {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: var(--s-3);
}
