/* =============================================================================
   leofalcon.net — "The Edit Suite"
   Dark, cinematic portfolio that behaves like footage inside an NLE.
   Signature: bottom scrubber/timeline, intro loader, kinetic hero, grain,
   cursor follower, tool marquee. Vanilla — no GSAP/Lenis/Rive.
   Tokens (:root) → reset → layout → cinematic chrome → components.
   ============================================================================= */

/* ----------------------------------------------------------------- TOKENS -- */
:root {
  /* color — warm Claude light (canonical) */
  --bg:        #faf9f5;          /* warm off-white paper */
  --bg-2:      #f2efe6;          /* cream — alternating sections */
  --surface:   #ffffff;          /* cards, form */
  --surface-2: #f7f4ec;
  --border:    rgba(40, 30, 20, 0.12);
  --border-2:  rgba(40, 30, 20, 0.20);
  --text:      #1a1813;          /* warm near-black */
  --text-2:    #6b665d;          /* warm gray */
  --text-3:    #9b948a;          /* light warm gray */
  --accent:    #c96442;          /* Claude clay/terracotta */
  --accent-2:  #d97757;          /* lighter clay — highlights */
  --accent-press: #b5512f;
  --accent-soft: rgba(201, 100, 66, 0.13);
  --good:      #1a9d5a;
  --danger:    #d92d20;

  /* per-card accent tints (soft, warm) */
  --tint-1: #f6e7dd;  --tint-1b: #efd9ca;
  --tint-2: #efe7e0;  --tint-2b: #e6dbd1;
  --tint-3: #e9efe4;  --tint-3b: #dde7d6;

  /* type */
  --font:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Geist", Georgia, sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-hero:  clamp(2.4rem, 1rem + 5.4vw, 5rem);
  --fs-h2:    clamp(2rem, 1.1rem + 4vw, 4.25rem);
  --fs-h3:    clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  --fs-lead:  clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.72rem;

  /* spacing (4px base) */
  --s-1:.25rem; --s-2:.5rem; --s-3:.75rem; --s-4:1rem; --s-5:1.25rem; --s-6:1.5rem;
  --s-8:2rem; --s-10:2.5rem; --s-12:3rem; --s-16:4rem; --s-20:5rem; --s-24:6rem;

  --section-y: clamp(4.5rem, 2rem + 9vw, 10rem);
  --container: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);

  --r-sm:8px; --r:14px; --r-lg:20px; --r-pill:999px;

  --shadow:    0 8px 30px rgba(40,30,20,0.08);
  --shadow-lg: 0 24px 60px rgba(40,30,20,0.14);
  --glow:      0 0 0 1px var(--accent-soft), 0 12px 30px -10px rgba(201,100,66,0.30);

  --dur:.24s; --dur-slow:.5s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);

  --nav-h: 68px;
  --scrub-h: 56px;
}

/* ------------------------------------------------------------------ RESET -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html { background: var(--bg); }
body {
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  color: var(--text); background: transparent;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so the viewport stays the scroll container */
}
/* loader-locked scroll until intro finishes */
body.is-loading { overflow: hidden; height: 100vh; }
/* interactive particle network (drawn in JS) — sits behind content, above page bg */
.fx { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
main, .nav, .footer, .scrubber, .marquee { position: relative; z-index: 1; }

img, svg, video { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { line-height: 1; font-weight: 700; letter-spacing: -0.02em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 600; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top var(--dur) var(--ease); }
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------- LAYOUT -- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-2); }
.section--alt::before, .section--alt::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--border); }
.section--alt::before { top: 0; } .section--alt::after { bottom: 0; }

/* ===================================================== LIVING ECOSYSTEM == */
/* Coloured, opaque, slowly-drifting aurora behind everything below the marquee. */
.world { position: relative; isolation: isolate; overflow: hidden; background: #f3e7d8; }
.world > .section { position: relative; z-index: 1; background: transparent; }
.world .section--alt { background: transparent; }
.world .section--alt::before, .world .section--alt::after { background: rgba(40,30,20,0.08); }
/* soft seam so the cream marquee melts into the coloured world */
.world::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 160px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg-2), transparent); }

.world__aura { position: absolute; inset: -12% -6%; z-index: 0; pointer-events: none; }
/* Blur is applied PER BLOB (each a small layer) — never on the full-height aura,
   which would exceed mobile-browser texture limits and blank the whole page. */
.world__blob { position: absolute; border-radius: 50%; opacity: 0.5; filter: blur(52px); will-change: transform; }
.world__blob--1 { width: 48vw; height: 48vw; top: -6%; left: -8%;  background: radial-gradient(circle, #e2855d, transparent 66%); animation: drift1 27s var(--ease-io) infinite alternate; }
.world__blob--2 { width: 42vw; height: 42vw; top: 28%; right: -10%; background: radial-gradient(circle, #f3c79e, transparent 68%); animation: drift2 33s var(--ease-io) infinite alternate; }
.world__blob--3 { width: 40vw; height: 40vw; bottom: -8%; left: 10%;  background: radial-gradient(circle, #aebf94, transparent 70%); animation: drift3 31s var(--ease-io) infinite alternate; }
.world__blob--4 { width: 36vw; height: 36vw; bottom: 6%; right: 16%;  background: radial-gradient(circle, #e7a98a, transparent 70%); animation: drift4 23s var(--ease-io) infinite alternate; }
@keyframes drift1 { to { transform: translate(12%, 14%)  scale(1.16); } }
@keyframes drift2 { to { transform: translate(-14%, 10%) scale(1.10); } }
@keyframes drift3 { to { transform: translate(10%, -12%) scale(1.20); } }
@keyframes drift4 { to { transform: translate(-10%, -8%) scale(1.12); } }

.section__head { max-width: 46rem; margin-bottom: var(--s-12); }
.section__title { font-family: var(--display); font-size: var(--fs-h2); margin-top: var(--s-4); letter-spacing: -0.03em; }
.section__intro { color: var(--text-2); font-size: var(--fs-lead); margin-top: var(--s-5); max-width: 40rem; }

.eyebrow { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--status { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(54,208,122,.5)} 70%{box-shadow:0 0 0 8px rgba(54,208,122,0)} 100%{box-shadow:0 0 0 0 rgba(54,208,122,0)} }

/* ------------------------------------------------------ CINEMATIC CHROME -- */
/* film grain */
.grain { position: fixed; inset: -50%; z-index: 500; pointer-events: none; opacity: 0.018; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite; will-change: transform; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-2%)} 100%{transform:translate(3%,3%)} }

/* cursor follower (desktop, fine pointer only) */
.cursor { position: fixed; top: 0; left: 0; z-index: 550; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid var(--accent); border-radius: 50%; pointer-events: none; opacity: 0;
  transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--accent-soft); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* intro loader */
.loader { position: fixed; inset: 0; z-index: 700; background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-8); transition: transform .8s var(--ease-io), opacity .4s ease .5s; }
.loader.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.loader__inner { display: grid; justify-items: center; gap: var(--s-3); }
.loader__tc { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.2em; color: var(--accent); }
.loader__pct { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 18vw, 11rem); line-height: 0.9; letter-spacing: -0.04em; }
.loader__label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-3); }
.loader__bar { width: min(280px, 60vw); height: 2px; background: var(--border); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }

/* ------------------------------------------------------------------- NAV -- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 400; height: var(--nav-h);
  display: flex; align-items: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--border); }
.nav__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.nav__mark { display: grid; place-items: center; width: 32px; height: 32px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: #fff; background: var(--accent); border-radius: 8px; box-shadow: 0 0 20px -4px var(--accent); }
.nav__links { display: none; gap: var(--s-8); }
.nav__links a { position: relative; display: inline-flex; align-items: baseline; gap: 6px; color: var(--text-2); font-size: var(--fs-small); transition: color var(--dur) var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__idx { font-family: var(--mono); font-size: 0.62rem; color: var(--text-3); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active .nav__idx { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: var(--s-4); }
.nav__clock { display: none; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.1em; color: var(--text-2); padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); }
.nav__cta { display: none; }
.nav__burger { display: grid; place-content: center; gap: 5px; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--r-pill); background: transparent; cursor: pointer; }
.nav__burger span { display: block; width: 16px; height: 1.6px; background: var(--text); transition: transform var(--dur) var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(3.3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2){ transform: translateY(-3.3px) rotate(-45deg); }
.mobile-menu { position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--s-2) var(--pad-x) var(--s-6); display: grid; gap: 2px; }
/* the [hidden] attribute must win over display:grid, or the menu is always open */
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: var(--s-3) 0; font-family: var(--display); font-size: 1.5rem; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ----------------------------------------------------------------- BUTTON -- */
.btn { --bh: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--bh);
  padding-inline: var(--s-6); font-size: var(--fs-small); font-weight: 500; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn--sm { --bh: 40px; padding-inline: var(--s-5); }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px -8px var(--accent); }
.btn--primary:active { background: var(--accent-press); transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--surface); border-color: var(--text-3); transform: translateY(-2px); }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ------------------------------------------------------------------ HERO -- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 5rem)); padding-bottom: var(--section-y); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 80% -10%, var(--accent-soft), transparent 65%),
    radial-gradient(45% 45% at -5% 20%, rgba(217,119,87,0.08), transparent 70%); }
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(80% 70% at 75% 10%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 75% 10%, #000, transparent 75%); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero__title { font-family: var(--display); font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.04em; display: grid; gap: 0.05em; }
.hero__pre { color: var(--text-2); font-weight: 600; font-size: 0.32em; letter-spacing: 0.02em; text-transform: uppercase; font-family: var(--mono); }
.rotator { display: inline-flex; align-items: baseline; white-space: nowrap; max-width: 100%; }
.rotator__word { color: var(--accent); text-shadow: 0 0 50px var(--accent-soft); transition: opacity .28s var(--ease), transform .28s var(--ease); display: inline-block; white-space: nowrap; }
.rotator__word.is-out { opacity: 0; transform: translateY(-0.18em); }
.caret { display: inline-block; width: 0.06em; height: 0.86em; margin-left: 0.06em; background: var(--accent); align-self: center; animation: blink 1.05s steps(1) infinite; box-shadow: 0 0 14px var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.hero__post { color: var(--text); }
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.04em; height: 0.34em; z-index: -1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2)); opacity: 0.32; border-radius: 3px;
  transform: rotate(-1deg) scaleX(0); transform-origin: left; animation: hl-in .7s var(--ease) 1.1s forwards; }
@keyframes hl-in { to { transform: rotate(-1deg) scaleX(1); } }
.hero__sub { font-size: var(--fs-lead); color: var(--text-2); max-width: 34rem; margin-top: var(--s-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }

.hero__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-8); margin-top: clamp(3rem, 7vw, 5rem); padding-top: var(--s-8); border-top: 1px solid var(--border); }
.hero__meta dt { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 5px; }
.hero__meta dd { font-size: var(--fs-small); font-weight: 500; }

/* hero visual — holds the 3D canvas (when WebGL) over the glass fallback */
.hero__visual { position: relative; margin: 0; aspect-ratio: 4/5; }
.hero3d { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border-radius: var(--r-lg);
  opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.hero__visual.is-3d .hero3d { opacity: 1; }
.hero__visual.is-3d .glass { opacity: 0; }

/* hero glass graphic (fallback for reduced-motion / no-WebGL) */
.glass { position: absolute; inset: 0; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, #fffdf9, var(--surface-2));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: opacity .5s var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.glass:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* colored blobs behind the frosted panels */
.glass__blob { position: absolute; z-index: 0; border-radius: 50%; filter: blur(40px); }
.glass__blob--1 { width: 64%; height: 52%; top: -10%; right: -8%; background: radial-gradient(circle at 50% 50%, var(--accent-2), transparent 68%); opacity: .85; }
.glass__blob--2 { width: 58%; height: 48%; bottom: -10%; left: -10%; background: radial-gradient(circle at 50% 50%, #93b8df, transparent 70%); opacity: .55; }
.glass__grid { position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 38px 38px; opacity: .5;
  -webkit-mask-image: radial-gradient(85% 80% at 55% 42%, #000, transparent 78%); mask-image: radial-gradient(85% 80% at 55% 42%, #000, transparent 78%); }

/* frosted glass panels */
.glass__panel { position: absolute; border-radius: 16px;
  background: rgba(255,255,255,0.42); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.65); box-shadow: 0 12px 34px rgba(40,30,20,0.12); }
.glass__panel--chip { z-index: 2; top: 11%; left: 9%; padding: 12px 16px; display: flex; align-items: center; gap: 11px; transform: rotate(-5deg); }
.glass__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; font-family: var(--mono); font-weight: 600; font-size: 0.74rem; box-shadow: 0 4px 12px -2px var(--accent); }
.glass__chiptxt { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.05em; color: var(--text-2); }
.glass__panel--main { z-index: 3; right: 7%; bottom: 12%; width: 74%; padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); transform: rotate(2.5deg); }
.glass__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.glass__tc { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--text); }
.glass__rec { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-soft); animation: pulse 2.4s var(--ease) infinite; }
.glass__badge { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em; color: var(--text-2); padding: 3px 8px; border-radius: var(--r-pill); background: rgba(255,255,255,0.6); border: 1px solid var(--border); }
.glass__bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.glass__bars i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); height: 35%; transform-origin: bottom; animation: eq 1.2s var(--ease-io) infinite alternate; }
.glass__bars i:nth-child(odd) { animation-duration: 1.5s; }
.glass__bars i:nth-child(3n) { animation-duration: 0.9s; }
.glass__bars i:nth-child(1){animation-delay:0s} .glass__bars i:nth-child(2){animation-delay:.12s} .glass__bars i:nth-child(3){animation-delay:.24s}
.glass__bars i:nth-child(4){animation-delay:.36s} .glass__bars i:nth-child(5){animation-delay:.06s} .glass__bars i:nth-child(6){animation-delay:.2s}
.glass__bars i:nth-child(7){animation-delay:.32s} .glass__bars i:nth-child(8){animation-delay:.44s} .glass__bars i:nth-child(9){animation-delay:.16s}
.glass__bars i:nth-child(10){animation-delay:.28s} .glass__bars i:nth-child(11){animation-delay:.4s} .glass__bars i:nth-child(12){animation-delay:.1s}
.glass__bars i:nth-child(13){animation-delay:.22s} .glass__bars i:nth-child(14){animation-delay:.34s}
@keyframes eq { from { height: 22%; } to { height: 96%; } }
.glass__timeline { position: relative; height: 4px; border-radius: 2px; background: rgba(40,30,20,0.12); }
.glass__playhead { position: absolute; left: 38%; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); transform: translate(-50%,-50%); box-shadow: 0 0 0 4px var(--accent-soft); }
.glass__orb { position: absolute; z-index: 1; top: 50%; left: 50%; width: 86px; height: 86px; transform: translate(-90%,-120%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent-2) 60%, var(--accent)); box-shadow: 0 16px 40px -10px var(--accent); opacity: .9; }

/* ---------------------------------------------------------------- MARQUEE -- */
.marquee { border-block: 1px solid var(--border); padding-block: var(--s-5); overflow: hidden; background: var(--bg-2); }
.marquee__track { display: inline-flex; align-items: center; gap: var(--s-6); white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.75rem); letter-spacing: -0.02em; color: var(--text); animation: marquee 32s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track i { color: var(--accent); font-style: normal; font-size: 0.6em; }
/* alternate words: solid then outlined — editorial + playful */
.marquee__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--text); text-stroke: 1.5px var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ WORK -- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-10); }
.filter { padding: 9px 18px; font-size: var(--fs-small); font-weight: 500; color: var(--text-2); background: transparent; border: 1px solid var(--border); border-radius: var(--r-pill); cursor: pointer; transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.filter:hover { color: var(--text); border-color: var(--border-2); }
.filter.is-active { color: #fff; background: var(--text); border-color: var(--text); }

.work-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
.work-grid__empty { text-align: center; color: var(--text-2); padding: var(--s-12) 0; }

.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.card.is-hidden { display: none; }
.card__media { position: relative; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--tint-1), var(--tint-1b)); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card[data-accent="2"] .card__media { background: linear-gradient(135deg, var(--tint-2), var(--tint-2b)); }
.card[data-accent="3"] .card__media { background: linear-gradient(135deg, var(--tint-3), var(--tint-3b)); }
.card__media::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--border-2) 1px, transparent 1.4px); background-size: 22px 22px; opacity: .35; mask-image: radial-gradient(120% 120% at 80% 100%, #000, transparent 70%); }
/* scrub-line sweeps across on hover */
.card__media::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 2px; background: var(--accent); box-shadow: 0 0 16px var(--accent); opacity: 0; transition: opacity var(--dur) var(--ease); z-index: 2; }
.card:hover .card__media::before { opacity: 1; animation: scrub 1.1s var(--ease-io); }
@keyframes scrub { 0%{left:-2px} 100%{left:100%} }
.card__tc { position: absolute; top: var(--s-4); left: var(--s-4); z-index: 1; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.06em; color: var(--text-2); }
.card__index { position: absolute; left: var(--s-5); bottom: var(--s-3); font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--text); opacity: .14; }
.card__badge { position: absolute; top: var(--s-4); right: var(--s-4); z-index: 1; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); color: var(--text); background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--border); }
.card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); flex: 1; }
.card__title { font-family: var(--display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
.card__desc { color: var(--text-2); font-size: var(--fs-small); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s-2); }
.tags li { font-family: var(--mono); font-size: var(--fs-label); color: var(--text-2); padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); font-size: var(--fs-small); font-weight: 500; color: var(--accent); }
.card__link svg { transition: transform var(--dur) var(--ease); }
.card:hover .card__link svg { transform: translate(2px,-2px); }
.card__status { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-3); font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.card__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ----------------------------------------------------------------- ABOUT -- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.about__text > p { color: var(--text-2); margin-top: var(--s-4); max-width: 38rem; }
.about__lead { font-size: var(--fs-lead); color: var(--text) !important; }
.about__side { align-self: start; }
.stat-list { border-top: 1px solid var(--border); }
.stat-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.stat-list__k { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.stat-list__v { font-size: var(--fs-small); font-weight: 500; text-align: right; }

/* ----------------------------------------------------------------- SKILLS -- */
.spec { display: grid; grid-template-columns: 1fr; gap: var(--s-10) var(--s-12); }
.spec__cat { font-family: var(--mono); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.spec__list { margin-top: var(--s-2); }
.spec__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
.spec__tool { font-weight: 500; }
.tier { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.03em; color: var(--text-2); white-space: nowrap; }
.stars { display: inline-flex; gap: 2px; }
.tier i { width: 12px; height: 12px; background: var(--border-2); clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); transition: background var(--dur) var(--ease); }
.tier[data-tier="1"] .stars i:nth-child(-n+1),
.tier[data-tier="2"] .stars i:nth-child(-n+2),
.tier[data-tier="3"] .stars i:nth-child(-n+3),
.tier[data-tier="4"] .stars i:nth-child(-n+4) { background: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }

/* -------------------------------------------------------------- TESTIMONIAL -- */
.quotes { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-8); display: flex; flex-direction: column; gap: var(--s-6); }
.quote blockquote { font-family: var(--display); font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote__name { font-weight: 600; font-size: var(--fs-small); }
.quote__role { font-family: var(--mono); font-size: var(--fs-label); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.quotes__note { margin-top: var(--s-8); font-size: var(--fs-small); color: var(--text-3); text-align: center; }
.quotes__note code { font-family: var(--mono); font-size: .85em; background: var(--surface); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border); }

/* --------------------------------------------------------------- TIMELINE -- */
.timeline { display: grid; max-width: 46rem; }
.timeline__item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--s-6); padding-bottom: var(--s-10); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: relative; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); z-index: 1; }
.timeline__dot--goal { background: var(--accent); box-shadow: 0 0 16px var(--accent); }
.timeline__item:not(:last-child) .timeline__dot::after { content: ""; position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 2px; height: calc(100% + var(--s-10) - 12px); background: var(--border); }
.timeline__tag { font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: var(--s-2); }
.timeline__title { font-family: var(--display); font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.timeline__body > p:last-child { color: var(--text-2); font-size: var(--fs-small); }

/* ---------------------------------------------------------------- CONTACT -- */
.section--contact { padding-bottom: calc(var(--section-y) + var(--scrub-h)); }
.contact__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.contact__alts { margin-top: var(--s-8); display: grid; gap: var(--s-1); }
.contact__alts a { display: inline-block; width: fit-content; padding: var(--s-2) 0; color: var(--text-2); transition: color var(--dur) var(--ease); }
.contact__alts a:hover { color: var(--accent); }
.contact-form { display: grid; gap: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field input, .field textarea, .select-wrap select { width: 100%; padding: 13px 15px; background: var(--bg); color: var(--text); border: 1px solid var(--border-2); border-radius: var(--r-sm); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .select-wrap select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: .8rem; color: var(--danger); min-height: 1em; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-wrap select { appearance: none; cursor: pointer; }
.contact-form__status { font-size: var(--fs-small); min-height: 1.2em; }
.contact-form__status.is-ok { color: var(--good); }
.contact-form__status.is-err { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------------------------------------------- FOOTER -- */
.footer { border-top: 1px solid var(--border); padding-block: var(--s-12); background: #efe0cd; position: relative; z-index: 1; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.footer__brand { font-family: var(--display); font-weight: 700; }
.footer__copy { color: var(--text-3); font-size: var(--fs-small); }
.footer__top { font-family: var(--mono); font-size: var(--fs-label); color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.footer__top:hover { color: var(--accent); }

/* -------------------------------------------------------------- SCRUBBER -- */
.scrubber { position: fixed; left: 0; right: 0; bottom: 0; z-index: 350; height: var(--scrub-h);
  display: flex; align-items: center; gap: var(--s-4); padding-inline: var(--pad-x);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--border); }
.scrubber__tc, .scrubber__total { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.08em; color: var(--text-2); white-space: nowrap; }
.scrubber__total { color: var(--text-3); }
.scrubber__track { position: relative; flex: 1; height: 100%; cursor: pointer; display: flex; align-items: center; }
.scrubber__track::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--border); }
.scrubber__progress { position: absolute; left: 0; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.scrubber__playhead { position: absolute; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); transform: translateX(-50%); }
.scrubber__tick { position: absolute; top: 50%; width: 1px; height: 9px; background: var(--border-2); transform: translate(-50%,-50%); }
.scrubber__tick::after { content: attr(data-label); position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; opacity: 0; transition: opacity var(--dur) var(--ease); pointer-events: none; }
.scrubber__tick:hover { background: var(--accent); }
.scrubber__tick:hover::after { opacity: 1; color: var(--text); }
.scrubber__tick.is-passed { background: var(--accent); }

/* ------------------------------------------------- MICRO-INTERACTIONS -- */
.quote { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-2); }
.tags li { transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.card:hover .tags li { border-color: var(--border-2); }
.stat-list li { transition: padding-left var(--dur) var(--ease); }
.stat-list li:hover { padding-left: 6px; }
.stat-list li:hover .stat-list__k { color: var(--accent); }
.timeline__item:hover .timeline__dot { box-shadow: 0 0 0 5px var(--accent-soft); }
.contact__alts a { position: relative; }
.btn--primary, .btn--ghost { will-change: transform; }

/* ----------------------------------------------------------------- REVEAL -- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain, .status-dot, .caret, .marquee__track, .card__media::before, .glass__bars i, .glass__rec, .world__blob { animation: none !important; }
  .glass__bars i { height: 60%; }
  .loader { display: none !important; }
  .cursor { display: none !important; }
  .reel:hover, .card:hover, .btn:hover { transform: none; }
}

/* ============================================================= BREAKPOINTS == */
@media (min-width: 600px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quotes .quote:first-child { grid-column: 1 / -1; }
  .hero__meta { grid-template-columns: repeat(4, 1fr); }
  .spec { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav__clock { display: inline-flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .mobile-menu { display: none !important; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .about__grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .quotes .quote:first-child { grid-column: auto; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1180px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}








