/* =============================================================
   Zeeri Labs — stylesheet
   -------------------------------------------------------------
   Dark-first canvas, one electric accent, grain over everything.
   Structure is built from bordered surfaces and a signal grid
   rather than from blurred colour. Motion is scripted in
   main.js and always gated behind prefers-reduced-motion.

   1.  Tokens
   2.  Base + grain + scroll progress
   3.  Typography
   4.  Layout
   5.  Buttons & links
   6.  Header / navigation
   7.  Hero + signal grid
   8.  Marquee
   9.  Bento
   10. Work cards
   11. Counters, process, quote, lists
   12. Panels, forms, misc
   13. Footer
   14. Motion
   15. Breakpoints
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root {
  /* Dark is the default canvas */
  --bg:        #08090b;
  --bg-2:      #0b0d10;
  --surface:   #101318;
  --surface-2: #161a20;

  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .16);

  --text:      #e9eaee;
  --text-2:    #a3a9b4;
  --text-3:    #6d737e;

  /* The accent: the brand sky, pushed until it hums */
  --acid:      #5fe3ff;
  --acid-2:    #23c8ee;
  --acid-ink:  #04222c;
  --acid-wash: rgba(95, 227, 255, .10);
  --acid-glow: rgba(95, 227, 255, .32);

  /* Reserved for live/status only, never decoration */
  --signal:    #c2f53e;

  --grid-dot:  rgba(255, 255, 255, .30);
  --grid-hot:  rgba(95, 227, 255, .95);
  --grain-op:  .055;

  color-scheme: dark;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --container: 1240px;
  --gutter: 28px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, .68, .28, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --fast: 160ms var(--ease);
  --base: 320ms var(--ease);
  --slow: 620ms var(--out);
}

:root[data-theme="light"] {
  --bg:        #f7f7f5;
  --bg-2:      #efefec;
  --surface:   #ffffff;
  --surface-2: #f4f4f1;

  --line:      rgba(8, 10, 14, .10);
  --line-2:    rgba(8, 10, 14, .22);

  --text:      #0a0c10;
  --text-2:    #4b515c;
  --text-3:    #7a818d;

  --acid:      #0592b4;
  --acid-2:    #067a99;
  --acid-ink:  #ffffff;
  --acid-wash: rgba(5, 146, 180, .08);
  --acid-glow: rgba(5, 146, 180, .20);

  --signal:    #4b8a00;

  --grid-dot:  rgba(8, 10, 14, .22);
  --grid-hot:  rgba(5, 146, 180, .9);
  --grain-op:  .035;

  color-scheme: light;
}

/* -------------------------------------------------------------
   2. Base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--acid); color: var(--acid-ink); }

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

/* Film grain — the single cheapest thing that stops a dark page
   from looking like flat vector output. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grain-shift 7s steps(6) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* Reading position, top of viewport */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--acid-2), var(--acid));
  pointer-events: none;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--acid); color: var(--acid-ink);
  padding: 12px 20px; font-size: .875rem; font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .4em; color: var(--text); }

h1, .display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 7.4vw, 6.1rem);
  line-height: .96;
  letter-spacing: -.038em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.032em;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}
h4 { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }

.lede {
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  line-height: 1.58;
  color: var(--text-2);
  max-width: 58ch;
}
.muted { color: var(--text-3); }
.prose { max-width: 62ch; }

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

/* Mono kicker with a live accent bar */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .705rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}
.kicker::before {
  content: ""; width: 22px; height: 1px;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid-glow);
}
.kicker .num { color: var(--acid); letter-spacing: .12em; }

/* Live status — the lime is only ever used here */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: .705rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}
.status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(194, 245, 62, .5); }
  70%  { box-shadow: 0 0 0 7px rgba(194, 245, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 245, 62, 0); }
}

/* -------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--alt { background: var(--bg-2); }
.section--ruled { border-top: 1px solid var(--line); }

.sec-head { max-width: 780px; margin-bottom: clamp(38px, 4.6vw, 62px); }
.sec-head h2 { margin-bottom: .35em; }
.sec-head p { color: var(--text-3); font-size: 1.04rem; max-width: 56ch; margin: 0; }
.sec-head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.sec-head--row > div { max-width: 780px; }

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.2vw, 30px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 30px); }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px); align-items: start;
}
.split--offset { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }

/* -------------------------------------------------------------
   5. Buttons & links
   ------------------------------------------------------------- */
a { color: inherit; text-decoration: none; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-ui);
  font-size: .94rem; font-weight: 500; line-height: 1;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--fast), border-color var(--fast),
              color var(--fast), box-shadow var(--base);
}
/* The arrow sits in its own disc so the pill has an anchor point */
.btn__arw {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  transition: transform var(--base);
}
.btn__arw svg { width: 11px; height: 11px; }
.btn:hover .btn__arw { transform: translateX(3px); }

.btn--primary {
  background: var(--acid); color: var(--acid-ink); border-color: var(--acid);
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--acid-glow);
}
.btn--primary:hover { background: var(--acid-2); border-color: var(--acid-2); box-shadow: 0 8px 34px -6px var(--acid-glow); }
.btn--primary .btn__arw { background: var(--acid-ink); color: var(--acid); }
.btn--primary .btn__arw svg { stroke: var(--acid); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--acid); color: var(--acid); background: var(--acid-wash); }
.btn--ghost .btn__arw { background: transparent; border: 1px solid currentColor; }
.btn--ghost .btn__arw svg { stroke: currentColor; }

.btn--sm { padding: 11px 16px; font-size: .875rem; gap: 9px; }
.btn--sm .btn__arw { width: 18px; height: 18px; }
.btn--block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Text link with a rule that wipes in from the left */
.link {
  color: var(--text);
  background-image: linear-gradient(var(--acid), var(--acid));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--base), color var(--fast);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; color: var(--acid); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .93rem; font-weight: 500; color: var(--text);
  transition: color var(--fast), gap var(--base);
}
.link-arrow svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform var(--base); }
.link-arrow:hover { color: var(--acid); }
.link-arrow:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------
   6. Header
   ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 150;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color var(--base), border-color var(--base), backdrop-filter var(--base);
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header .container { height: 100%; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--text); line-height: 1;
}
.brand__mark {
  position: relative;
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--acid); color: var(--acid-ink);
  display: grid; place-items: center; flex-shrink: 0;
  transition: box-shadow var(--base), transform var(--base);
}
.brand:hover .brand__mark { box-shadow: 0 0 22px -2px var(--acid-glow); transform: rotate(-6deg); }
.brand__mark svg { width: 15px; height: 15px; }
.brand__labs { color: var(--text-3); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative;
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 13px;
  font-size: .9rem; color: var(--text-3);
  border-radius: var(--r-pill);
  transition: color var(--fast), background-color var(--fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::before {
  content: ""; position: absolute; left: 13px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; margin-left: -11px;
  border-radius: 50%; background: var(--acid);
  box-shadow: 0 0 8px var(--acid-glow);
}
.nav-links a.active { padding-left: 20px; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-links .nav-cta { display: none; }

.icon-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  background: transparent; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background-color var(--fast);
}
.icon-btn:hover { color: var(--acid); border-color: var(--line-2); background: var(--surface); }
.icon-btn svg { width: 16px; height: 16px; }

.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; }
.nav-toggle span {
  display: block; width: 15px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--base), opacity var(--fast);
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(4, 5, 7, .6);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--base), visibility var(--base);
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* -------------------------------------------------------------
   7. Hero + signal grid
   ------------------------------------------------------------- */
.hero, .page-hero {
  position: relative; isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero { padding-block: clamp(72px, 11vw, 148px) 0; }
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(44px, 5.5vw, 72px); }

/* The pointer-reactive dot matrix. Painted in main.js. */
.signal-grid {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: .85;
}
/* One soft pool of accent light — placed, not animated */
.hero::after, .page-hero::after {
  content: ""; position: absolute; z-index: -1;
  top: -30%; right: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, var(--acid-wash) 0%, transparent 62%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; margin: 26px 0 30px; }
.hero .lede { margin-bottom: 38px; }

/* Headline word reveal — each word rides up out of a clip box */
/* .words sits directly on the heading, so it must keep the heading's own
   display — forcing `inline` here drags the h1 up onto the preceding line.
   The clip box is grown past the baseline and pulled back with a negative
   margin, so descenders never get sheared off. */
.words .w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.words .w > span { display: inline-block; transform: translateY(110%); }
.words.in .w > span {
  animation: word-rise 820ms var(--out) both;
  animation-delay: calc(var(--i) * 48ms);
}
@keyframes word-rise { to { transform: none; } }

.hero__facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 78px);
}
.hero__facts > div {
  padding: 24px 24px 30px 0;
  border-right: 1px solid var(--line);
}
.hero__facts > div:last-child { border-right: 0; }
.hero__facts > div:not(:first-child) { padding-left: 24px; }
.hero__facts dt {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 10px;
}
.hero__facts dd {
  margin: 0; color: var(--text);
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.06rem; letter-spacing: -.02em;
}

.breadcrumb {
  font-family: var(--font-mono); font-size: .69rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--acid); }
.breadcrumb span { color: var(--line-2); margin-inline: 9px; }
.page-hero h1 { max-width: 17ch; margin-bottom: 24px; }
.page-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
  position: relative; z-index: 1;
}

/* -------------------------------------------------------------
   8. Marquee
   ------------------------------------------------------------- */
.marquee {
  position: relative; z-index: 1;
  margin-top: clamp(44px, 5.5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 26px;
  padding-right: 26px;
  font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.marquee__item::after {
  content: ""; width: 5px; height: 5px; border-radius: 1px;
  background: var(--acid); opacity: .7; transform: rotate(45deg);
}
@keyframes slide { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------
   9. Bento
   ------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.cell {
  position: relative; isolation: isolate; overflow: hidden;
  grid-column: span 2;
  min-height: 232px;
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--base), transform var(--base), background-color var(--base);
}
.cell--wide { grid-column: span 3; }
.cell--full { grid-column: span 6; min-height: 0; }
/* Pointer spotlight: --mx/--my are written by main.js */
.cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--acid-wash), transparent 68%);
  opacity: 0; transition: opacity var(--base);
}
.cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cell:hover::before { opacity: 1; }

.cell__index {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .14em; color: var(--text-3);
  margin-bottom: auto;
}
.cell h3 { margin: 26px 0 8px; }
.cell p { color: var(--text-3); font-size: .93rem; margin: 0; }
.cell__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.cell__go {
  position: absolute; top: 24px; right: 24px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text-3);
  transition: color var(--fast), border-color var(--fast), transform var(--base);
}
.cell__go svg { width: 12px; height: 12px; }
.cell:hover .cell__go { color: var(--acid); border-color: var(--acid); transform: rotate(-45deg); }

/* Corner motif for the wide cells — a small piece of drawn system.
   Text is held clear of it so the two never collide. */
.cell__motif {
  position: absolute; right: -28px; bottom: -28px; width: 158px;
  opacity: .38; z-index: -1; pointer-events: none;
  transition: opacity var(--base), transform var(--base);
}
.cell:hover .cell__motif { opacity: .75; transform: translate(-4px, -4px); }
.cell--wide p, .cell--wide .cell__tags { max-width: 74%; }
.cell__motif svg { width: 100%; height: auto; }

.tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: .69rem;
  letter-spacing: .04em;
  padding: 4px 9px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* -------------------------------------------------------------
   10. Work cards
   ------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.work-grid--three { grid-template-columns: repeat(3, 1fr); }

.work {
  position: relative; display: block;
  border-radius: var(--r-lg);
}
.work__cover {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--base);
}
.work__cover svg { width: 100%; height: 100%; transition: transform 900ms var(--out); }
.work:hover .work__cover { border-color: var(--acid); }
.work:hover .work__cover svg { transform: scale(1.045); }

/* A chip that tracks the cursor across the cover */
.work__cursor {
  position: absolute; top: 0; left: 0; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--acid); color: var(--acid-ink);
  font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) scale(.7);
  transition: opacity 200ms var(--ease), transform 260ms var(--out);
  pointer-events: none;
}
.work:hover .work__cursor { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work__cursor svg { width: 11px; height: 11px; }

/* Screenshot covers — a real product shot sat in a minimal browser frame.
   The frame is what stops a raw screenshot reading as a stray image. */
.work__cover--shot { background: var(--surface-2); }
.browser { position: absolute; inset: 0; display: flex; flex-direction: column; }
.browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 15px; flex-shrink: 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.browser__url {
  margin-left: 14px;
  font-family: var(--font-mono); font-size: .655rem;
  letter-spacing: .1em; text-transform: lowercase; color: var(--text-3);
}
.browser__view { position: relative; flex: 1; overflow: hidden; }
.browser__view img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 900ms var(--out);
}
.work:hover .browser__view img { transform: scale(1.035); }

/* Follow the viewer's theme, the way the product's own site does */
.shot--light { display: none; }
:root[data-theme="light"] .shot--dark { display: none; }
:root[data-theme="light"] .shot--light { display: block; }

/* Spotlight variant — the newest project gets the full width of the page */
.work--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.work--feature .work__cover { aspect-ratio: 16 / 11; }
/* Doubled class: these have to out-rank the base .work h3 / .work p rules
   below, which carry equal specificity and would otherwise win on order. */
.work.work--feature h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 14px 0 12px; letter-spacing: -.03em; }
.work.work--feature p { font-size: 1.02rem; }
.work.work--feature .work__result { margin-top: 22px; }
.work.work--feature .work__result b { font-size: 1.6rem; }
.work__live {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--acid);
}
.work__live svg { width: 12px; height: 12px; transition: transform var(--base); }
.work:hover .work__live svg { transform: translate(2px, -2px); }

.work__meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--text-3);
}
.work__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); font-style: normal; }
.work h3 { margin: 10px 0 8px; font-size: 1.42rem; }
.work p { color: var(--text-3); font-size: .95rem; margin-bottom: 16px; }
.work__result {
  display: flex; align-items: baseline; gap: 11px;
  padding-top: 15px; border-top: 1px solid var(--line);
}
.work__result b {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.34rem; letter-spacing: -.03em; color: var(--acid);
}
.work__result span { font-size: .86rem; color: var(--text-3); }

/* -------------------------------------------------------------
   11. Counters, process, quote, lists
   ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; left: 26px; bottom: 0;
  width: 34px; height: 2px; background: var(--acid);
  box-shadow: 0 0 12px var(--acid-glow);
}
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.3rem); line-height: 1;
  letter-spacing: -.045em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 14px; font-size: .875rem; color: var(--text-3); max-width: 24ch; }

/* Sticky process: the title parks while the steps run past it */
.process { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.process__sticky { position: sticky; top: calc(var(--header-h) + 44px); }
.process__rail {
  position: relative; margin-top: 30px;
  width: 2px; height: 120px; background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.process__rail i {
  position: absolute; inset: 0 0 auto; display: block;
  height: 0; background: var(--acid);
  box-shadow: 0 0 12px var(--acid-glow);
  transition: height 220ms var(--ease);
}
.steps { display: grid; gap: 14px; }
.step {
  position: relative;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--base), background-color var(--base);
}
.step.is-active { border-color: var(--acid); background: var(--surface-2); }
.step__num {
  font-family: var(--font-mono); font-size: .69rem;
  letter-spacing: .14em; color: var(--text-3);
  transition: color var(--fast);
}
.step.is-active .step__num { color: var(--acid); }
.step h3 { margin: 14px 0 9px; }
.step p { color: var(--text-3); font-size: .94rem; margin: 0; }
.step__out {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line);
  font-size: .855rem; color: var(--text-3);
}
.step__out b { color: var(--text-2); font-weight: 500; }

.quote { max-width: 52ch; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  line-height: 1.2; letter-spacing: -.028em; color: var(--text);
}
.quote blockquote::first-letter { color: var(--acid); }
.quote figcaption {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--text-3);
}
.quote figcaption b { display: block; color: var(--text); font-weight: 600; }

/* Row list — hover slides the row and lights the arrow */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: 10px 30px; align-items: center;
  padding: 26px 18px 26px 6px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--fast), padding-left var(--base);
}
a.row:hover, .row--link:hover { background: var(--surface); padding-left: 18px; }
.row__index { font-family: var(--font-mono); font-size: .69rem; letter-spacing: .12em; color: var(--text-3); }
a.row:hover .row__index { color: var(--acid); }
.row__title { margin: 0; font-size: 1.16rem; }
.row__sub { margin: 5px 0 0; font-size: .86rem; color: var(--text-3); }
.row__body { margin: 0; font-size: .94rem; color: var(--text-3); }
.row__aside { justify-self: end; text-align: right; color: var(--text-3); font-size: .87rem; }
.row--pair { grid-template-columns: 78px minmax(0, 1fr) auto; }
.row--plain { grid-template-columns: 62px minmax(0, 1fr); align-items: start; }

.ticks li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
  color: var(--text-2); font-size: .95rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--acid); border-bottom: 1.5px solid var(--acid);
  transform: rotate(-45deg);
}
.ticks--tight li { font-size: .89rem; margin-bottom: 8px; }

/* -------------------------------------------------------------
   12. Panels, forms, misc
   ------------------------------------------------------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.panel__head .kicker { margin-bottom: 0; }

.facts { display: grid; }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding-block: 12px; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); flex-shrink: 0;
}
.facts dd { margin: 0; color: var(--text); text-align: right; }

.note {
  border-left: 2px solid var(--acid);
  padding-left: 22px; color: var(--text-2); font-size: .95rem;
}
.note .kicker { margin-bottom: 12px; }

.person__portrait {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  display: grid; place-items: center;
  transition: border-color var(--base);
}
.person:hover .person__portrait { border-color: var(--acid); }
.person__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 110%, var(--acid-wash), transparent 70%);
  opacity: 0; transition: opacity var(--base);
}
.person:hover .person__portrait::after { opacity: 1; }
.person__initials {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -.05em;
  color: var(--text-3); transition: color var(--base);
}
.person:hover .person__initials { color: var(--acid); }
.person__name { margin: 18px 0 3px; font-size: 1.04rem; }
.person__role {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--acid);
}
.person__note { margin-top: 12px; font-size: .89rem; color: var(--text-3); }

.stack-table { border-top: 1px solid var(--line); }
.stack-row {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px 32px; padding-block: 26px;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.stack-row h3 { margin: 0 0 5px; font-size: 1.08rem; }
.stack-row__label p { margin: 0; font-size: .83rem; color: var(--text-3); }
.stack-row__items { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .875rem; padding: 7px 14px;
  color: var(--text-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color var(--fast), color var(--fast), background-color var(--fast);
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip--lead {
  color: var(--acid); border-color: color-mix(in srgb, var(--acid) 45%, transparent);
  background: var(--acid-wash);
}

/* Forms */
.field { margin-bottom: 20px; }
.field > label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 500; color: var(--text); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px;
  font-family: var(--font-ui); font-size: .95rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--acid);
  box-shadow: 0 0 0 3px var(--acid-wash);
}
.field textarea { resize: vertical; min-height: 145px; }
.field-hint { font-size: .82rem; color: var(--text-3); margin-top: 7px; }
.field-error { display: none; font-size: .82rem; color: #ff8f8f; margin-top: 7px; }
.field.invalid input, .field.invalid textarea { border-color: #ff8f8f; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-legend { display: block; margin-bottom: 10px; font-size: .875rem; font-weight: 500; color: var(--text); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label {
  display: inline-block; padding: 9px 15px;
  font-size: .875rem; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); cursor: pointer;
  transition: border-color var(--fast), color var(--fast), background-color var(--fast);
}
.choices label:hover { border-color: var(--line-2); color: var(--text); }
.choices input:checked + label {
  color: var(--acid); border-color: var(--acid); background: var(--acid-wash);
}
.choices input:focus-visible + label { outline: 2px solid var(--acid); outline-offset: 2px; }

.form-success {
  display: none; align-items: flex-start; gap: 12px;
  padding: 15px 17px; margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--signal) 40%, transparent);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--signal) 8%, transparent);
  font-size: .925rem; color: var(--text-2);
}
.form-success.show { display: flex; }
.form-success svg { flex-shrink: 0; margin-top: 3px; color: var(--signal); }

.map { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; line-height: 0; }
.map iframe { width: 100%; height: 340px; border: 0; filter: grayscale(1) invert(.9) hue-rotate(175deg) contrast(.86); }
:root[data-theme="light"] .map iframe { filter: grayscale(1) contrast(.95); }

/* Closer band */
.closer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); }
.closer::after {
  content: ""; position: absolute; z-index: 0;
  left: 50%; bottom: -60%; width: 80vw; height: 60vw; transform: translateX(-50%);
  background: radial-gradient(circle, var(--acid-wash), transparent 62%);
  pointer-events: none;
}
.closer__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  gap: clamp(28px, 5vw, 72px); align-items: end;
  padding-block: clamp(64px, 8vw, 108px);
}
.closer h2 { max-width: 15ch; margin-bottom: 20px; }
.closer p { color: var(--text-3); max-width: 46ch; }

/* -------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: clamp(52px, 6vw, 82px); }
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 40px; padding-bottom: clamp(44px, 5vw, 64px);
}
.site-footer .brand { margin-bottom: 18px; }
.site-footer > .container > .footer-grid p { color: var(--text-3); font-size: .92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: .67rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 18px;
}
.footer-links li + li { margin-top: 10px; }
.footer-links a { font-size: .92rem; color: var(--text-2); transition: color var(--fast), padding-left var(--base); }
.footer-links a:hover { color: var(--acid); padding-left: 5px; }

.footer-detail { font-size: .92rem; }
.footer-detail dt {
  font-family: var(--font-mono); font-size: .67rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px;
}
.footer-detail dd { margin: 0 0 15px; color: var(--text-2); }
.footer-detail dd a:hover { color: var(--acid); }

.social { display: flex; gap: 7px; margin-top: 24px; }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text-3);
  transition: color var(--fast), border-color var(--fast), background-color var(--fast);
}
.social a:hover { color: var(--acid); border-color: var(--line-2); background: var(--surface); }
.social svg { width: 15px; height: 15px; }

.newsletter { display: flex; gap: 8px; margin-top: 6px; }
.newsletter input {
  flex: 1; min-width: 0; padding: 11px 13px;
  font-family: var(--font-ui); font-size: .89rem;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color var(--fast);
}
.newsletter input::placeholder { color: var(--text-3); }
.newsletter input:focus { outline: none; border-color: var(--acid); }
.newsletter-note { font-size: .8rem; margin-top: 9px; min-height: 1.2em; color: var(--text-3); }
.newsletter-note.is-ok { color: var(--signal); }
.newsletter-note.is-err { color: #ff8f8f; }

.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 24px 30px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px 24px; flex-wrap: wrap;
  font-size: .83rem; color: var(--text-3);
}
.footer-bottom p { margin: 0; font-size: inherit; }

/* -------------------------------------------------------------
   14. Motion
   ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--slow), transform var(--slow); }
.reveal.visible { opacity: 1; transform: none; }

.reveal-group > * { opacity: 0; transform: translateY(20px); }
.reveal-group.visible > * { animation: rise 620ms var(--out) both; }
.reveal-group.visible > *:nth-child(2) { animation-delay: 70ms; }
.reveal-group.visible > *:nth-child(3) { animation-delay: 140ms; }
.reveal-group.visible > *:nth-child(4) { animation-delay: 210ms; }
.reveal-group.visible > *:nth-child(5) { animation-delay: 280ms; }
.reveal-group.visible > *:nth-child(6) { animation-delay: 350ms; }
.reveal-group.visible > *:nth-child(7) { animation-delay: 400ms; }
.reveal-group.visible > *:nth-child(8) { animation-delay: 450ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
  .words .w > span { transform: none; }
  .grain { animation: none; }
  .marquee__track { animation: none; }
}

/* -------------------------------------------------------------
   15. Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .cell, .cell--wide { grid-column: span 2; }
  .cell--full { grid-column: span 4; }
  .work-grid--three { grid-template-columns: repeat(2, 1fr); }
  .stack-row { grid-template-columns: 170px minmax(0, 1fr); }
  .row { grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 22px; }
  .row--pair { grid-template-columns: 68px minmax(0, 1fr) auto; }
  .row--plain { grid-template-columns: 52px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; --gutter: 20px; }

  .nav-toggle { display: inline-grid; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(310px, 86vw); z-index: 150;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: calc(var(--header-h) + 22px) 16px 26px;
    background: var(--bg-2); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform 340ms var(--out);
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { height: auto; min-height: 46px; padding: 11px 14px; font-size: 1rem; border-radius: 12px; color: var(--text-2); }
  .nav-links a.active { padding-left: 22px; background: var(--surface); }
  .nav-links .nav-cta { display: block; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav-links .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-actions .nav-quote { display: none; }

  .process, .page-hero__grid, .closer__inner, .split, .split--offset { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__rail { display: none; }
  .closer__inner, .page-hero__grid { align-items: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .work-grid--three, .work--feature { grid-template-columns: 1fr; }
  .work--feature { gap: 24px; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts > div:nth-child(2n) { border-right: 0; }
  .hero__facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero__facts > div:nth-child(2n+1) { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .work__cursor { display: none; }
}

@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
  .cell, .cell--wide, .cell--full { grid-column: span 1; min-height: 0; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0 22px !important; }
  .hero__facts > div:last-child { border-bottom: 0; }
  .stack-row { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .sec-head--row { flex-direction: column; align-items: flex-start; gap: 22px; }

  .row, .row--pair, .row--plain {
    grid-template-columns: 1fr; gap: 8px; padding: 22px 0;
    align-items: start;
  }
  a.row:hover, .row--link:hover { padding-left: 0; }
  .row__aside { justify-self: start; text-align: left; margin-top: 8px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .actions .btn { width: 100%; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
