/* =========================================================
   Sanlabs — landing
   ========================================================= */
:root {
  --ink: #070908;
  --ink-2: #0d1110;
  --cream: #f4efe6;
  --muted: rgba(244, 239, 230, .62);
  --dim: rgba(244, 239, 230, .38);
  --line: rgba(244, 239, 230, .12);
  --gold: #f3c98b;
  --teal: #8fd6c9;
  --green: #7ef0b0;

  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: min(1240px, calc(100% - var(--gutter))); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }

.pulse {
  display: inline-block;
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(126, 240, 176, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(126, 240, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 240, 176, 0); }
}

/* split text masks */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .07em .1em 0;
  margin: 0 -.07em -.1em 0;
}
.wi { display: inline-block; will-change: transform; }

/* =========================================================
   Preloader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink);
  clip-path: inset(0 0 0 0);
}
.loader__inner { width: min(280px, 70vw); display: grid; gap: 22px; justify-items: center; }
.mark--loader { width: 76px; height: 76px; overflow: visible; }
.loader__meta {
  width: 100%;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.loader__count { color: var(--cream); font-variant-numeric: tabular-nums; }
.loader__bar { width: 100%; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform-origin: left; transform: scaleX(0);
}

/* =========================================================
   Cursor + grain
   ========================================================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .4s; }
.cursor.is-visible { opacity: 1; }
.cursor__dot, .cursor__follow { position: absolute; left: 0; top: 0; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor__ring {
  display: block;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  transition: transform .45s var(--ease-out), background-color .3s, border-color .3s;
}
.cursor.is-hover .cursor__ring { transform: scale(1.9); background-color: rgba(255, 255, 255, .14); border-color: transparent; }
.cursor.is-down .cursor__ring { transform: scale(.75); }
html.has-cursor, html.has-cursor * { cursor: none !important; }

.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  opacity: .065;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(5%, 2%); }
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 26px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .22);
  font-size: 13.5px;
  transition: background-color .5s, border-color .5s;
}
.nav.is-dark .nav__pill { background: rgba(16, 20, 18, .55); border-color: rgba(255, 255, 255, .1); }
.nav__brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.mark--nav { width: 19px; height: 19px; overflow: visible; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 7px 13px; border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  transition: background-color .3s, color .3s;
}
.nav__links a:hover, .nav__links a.is-active { background: rgba(255, 255, 255, .14); color: #fff; }
.nav__status {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 15px 8px 13px; border-radius: 999px;
  background: rgba(8, 10, 9, .85); color: #fff;
  font-size: 12.5px; font-weight: 500;
}

/* =========================================================
   01 · Hero
   ========================================================= */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer__img {
  position: absolute; inset: -5%;
  background: url(assets/hero.webp) center / cover no-repeat;
  will-change: transform;
}
.layer--fg .layer__img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 64%, #000 80%);
  mask-image: linear-gradient(to bottom, transparent 64%, #000 80%);
  filter: saturate(1.08) contrast(1.04);
}
.flare { position: absolute; width: 0; height: 0; }
.flare i {
  position: absolute; left: 0; top: 0;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 205, .55) 0%, rgba(255, 220, 160, .2) 16%, rgba(255, 200, 120, 0) 46%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.1); }
}
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__shade {
  --dim: 0;
  position: absolute; inset: -2px 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 8, .38) 0%, rgba(7, 9, 8, 0) 20%, rgba(7, 9, 8, 0) 46%, rgba(7, 9, 8, .5) 74%, rgba(7, 9, 8, .92) 92%, var(--ink) 97%);
}
.hero__shade::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim); }

.hero__content {
  position: absolute; left: 0; right: 0;
  bottom: clamp(104px, 15vh, 160px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 20px;
}
.hero__mark {
  position: relative;
  width: clamp(88px, 9vw, 124px); aspect-ratio: 1;
  margin-bottom: clamp(26px, 5vh, 52px);
}
.shard {
  position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(7px) brightness(1.06) contrast(1.15) saturate(1.5);
  backdrop-filter: blur(7px) brightness(1.06) contrast(1.15) saturate(1.5);
  will-change: transform;
}
.shard svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.hero__eyebrow {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; margin-bottom: 22px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  background: rgba(12, 14, 13, .32);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__title {
  font-size: clamp(44px, 7.2vw, 112px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 11.5ch;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .28));
}
.hero__title .wi {
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, .64) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__title em { font-size: 1.07em; letter-spacing: -.02em; }
.hero__title em .wi { background-image: linear-gradient(180deg, #fff6e4 20%, #f3c98b 100%); }
.hero__lead {
  max-width: 520px;
  margin-top: 24px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

.hero__foot {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: min(1240px, calc(100% - var(--gutter)));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.scroll-cue { white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; justify-self: start; transition: color .3s; }
.scroll-cue:hover { color: #fff; }
.scroll-cue__line { position: relative; width: 44px; height: 1px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.scroll-cue__line i { position: absolute; inset: 0; background: #fff; animation: cue 2.4s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.hero__shipped { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.hero__shipped-label { color: rgba(255, 255, 255, .5); }
.hero__shipped a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; letter-spacing: -.01em; text-transform: none;
  color: rgba(255, 255, 255, .78);
  transition: color .3s, opacity .3s;
}
.hero__shipped a b { font-weight: 600; }
.hero__shipped svg { width: 20px; height: 20px; flex: none; transition: transform .7s var(--ease-out); }
.hero__shipped a:hover { color: #fff; }
.hero__shipped a:hover svg { transform: rotate(-20deg) scale(1.12); }
.hero__shipped:hover a:not(:hover) { opacity: .45; }
.hero__clock { justify-self: end; }
.hero__clock b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }

/* =========================================================
   Shared section bits
   ========================================================= */
.glow { position: absolute; pointer-events: none; border-radius: 50%; }
.glow--teal { width: 80vw; height: 80vw; left: -30vw; top: -10vw; background: radial-gradient(circle, rgba(143, 214, 201, .09), transparent 62%); }
.glow--gold { width: 90vw; height: 90vw; right: -40vw; top: 0; background: radial-gradient(circle, rgba(243, 201, 139, .07), transparent 60%); }

.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.section-head .index { font-family: var(--mono); font-size: 11px; color: var(--cream); letter-spacing: .1em; }
.section-head .index::after { content: ""; display: inline-block; width: 40px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--line); }

.h2 {
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  max-width: 16ch;
}
.h2 em { color: var(--gold); font-size: 1.06em; }

/* =========================================================
   02 · Studio
   ========================================================= */
.studio { position: relative; padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 13vh, 150px); overflow: hidden; }

.manifesto {
  max-width: 1120px;
  font-size: clamp(26px, 3.5vw, 54px);
  line-height: 1.14;
  letter-spacing: -.032em;
  font-weight: 400;
}
.manifesto em { font-size: 1.06em; }
.manifesto .mw { transition: color .3s; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: clamp(70px, 11vh, 120px);
}
.stat { padding-top: 26px; border-top: 1px solid var(--line); }
.stat b {
  font-size: clamp(56px, 7vw, 108px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.stat .unit { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 4vw, 60px); color: var(--gold); margin-left: 4px; }
.stat p { margin-top: 18px; max-width: 30ch; color: var(--muted); font-size: 15px; }

/* marquee */
.marquee {
  margin: clamp(90px, 14vh, 150px) 0;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: flex; align-items: center; gap: 40px;
  width: max-content;
  font-size: clamp(42px, 6.4vw, 96px);
  letter-spacing: -.035em;
  line-height: 1.1;
  animation: marquee 48s linear infinite;
}
.marquee__track span { color: transparent; -webkit-text-stroke: 1px rgba(244, 239, 230, .4); font-weight: 500; }
.marquee__track span em { color: var(--cream); -webkit-text-stroke: 0; }
.marquee__track i { font-style: normal; font-size: .4em; color: var(--teal); }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* cards */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: clamp(48px, 7vh, 72px);
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 340px;
  padding: 26px 26px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(243, 201, 139, .14), transparent 42%);
  opacity: 0; transition: opacity .5s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 236, 200, .6), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .5s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__num { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.card__glyph { font-size: 22px; color: var(--teal); transition: transform .8s var(--ease-out); }
.card:hover .card__glyph { transform: rotate(180deg) scale(1.15); }
.card h3 { margin-top: auto; padding-top: 48px; font-size: 25px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* =========================================================
   03 · Orbit
   ========================================================= */
.orbit { position: relative; padding: clamp(90px, 13vh, 150px) 0 clamp(110px, 16vh, 180px); overflow: hidden; }
.orbit__grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.orbit__aside { position: sticky; top: 110px; }
.orbit__aside .muted { margin-top: 26px; max-width: 40ch; font-size: 16px; }

.system { position: relative; width: min(400px, 100%); aspect-ratio: 1; margin-top: 30px; perspective: 900px; }
.system__plane { position: absolute; inset: 0; transform-style: preserve-3d; }
.ring {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(244, 239, 230, .15);
  animation: spin linear infinite;
  transition: border-color .5s, box-shadow .5s;
}
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.r1 { width: 32%; height: 32%; animation-duration: 12s; }
.r2 { width: 54%; height: 54%; animation-duration: 21s; animation-direction: reverse; }
.r3 { width: 76%; height: 76%; animation-duration: 33s; }
.r4 { width: 98%; height: 98%; animation-duration: 52s; border-style: dashed; border-color: rgba(244, 239, 230, .1); }
.planet {
  position: absolute; top: 0; left: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 14px 2px rgba(243, 201, 139, .55);
  transition: transform .5s var(--ease-out), background-color .4s;
}
.r2 .planet { background: var(--teal); box-shadow: 0 0 14px 2px rgba(143, 214, 201, .55); }
.r3 .planet { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.r4 .planet { background: transparent; border: 1px solid #ff8b7a; box-shadow: 0 0 10px rgba(255, 139, 122, .5); }
.ring.is-active { border-color: rgba(243, 201, 139, .75); box-shadow: 0 0 30px rgba(243, 201, 139, .22), inset 0 0 30px rgba(243, 201, 139, .14); }
.ring.is-active .planet { transform: scale(1.9); }
.system__core {
  position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fffaf0, #f3c98b 45%, #9c6431 100%);
  box-shadow: 0 0 60px 16px rgba(243, 201, 139, .32), 0 0 160px 50px rgba(243, 201, 139, .12);
  animation: core 5s ease-in-out infinite;
}
@keyframes core { 50% { transform: scale(1.08); box-shadow: 0 0 80px 22px rgba(243, 201, 139, .4), 0 0 200px 60px rgba(243, 201, 139, .14); } }

.projects { list-style: none; border-top: 1px solid var(--line); }
.project {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 24px;
  padding: 36px 10px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.project::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(243, 201, 139, .1), rgba(243, 201, 139, 0) 75%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.project:hover::before { transform: scaleX(1); }
.project__idx { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.project h3 {
  font-size: clamp(36px, 4.4vw, 66px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
  transition: transform .6s var(--ease-out), color .4s;
}
.project:hover h3 { transform: translateX(14px); font-family: var(--serif); font-style: italic; letter-spacing: -.02em; color: #fff6e4; }
.project p { margin-top: 10px; color: var(--muted); font-size: 15px; transition: transform .6s var(--ease-out) .04s; }
.project:hover p { transform: translateX(14px); }

.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  background: rgba(255, 255, 255, .02);
}
.status i { width: 6px; height: 6px; border-radius: 50%; }
.status--live i { background: var(--green); animation: pulse 2.2s infinite; }
.status--research i { background: var(--gold); }
.status--internal i { background: var(--teal); }
.status--classified i { background: #ff8b7a; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }

.redact {
  background: linear-gradient(90deg, rgba(244, 239, 230, .12) 0%, rgba(244, 239, 230, .5) 50%, rgba(244, 239, 230, .12) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -.08em;
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* =========================================================
   03 · Work (horizontal gallery)
   ========================================================= */
.work { position: relative; }
.work__pin {
  position: relative;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.work__track {
  --side: max(20px, calc((100vw - 1240px) / 2));
  display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px);
  width: max-content;
  padding: 0 var(--side);
  will-change: transform;
}
.work__intro { flex: none; width: clamp(300px, 30vw, 440px); padding-right: clamp(10px, 3vw, 50px); }
.work__intro .h2 { max-width: 9ch; }
.work__intro .muted { margin-top: 26px; max-width: 34ch; }
.work__hint {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.work__hint-line { position: relative; width: 44px; height: 1px; background: var(--line); overflow: hidden; }
.work__hint-line i { position: absolute; inset: 0; background: var(--gold); animation: cue 2.4s var(--ease-out) infinite; }

.shot { --accent: var(--gold); flex: none; width: clamp(290px, 26vw, 390px); }
.shot:nth-of-type(even) { transform: translateY(5vh); }
.shot__media {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.shot__par { position: absolute; inset: 0 -14%; will-change: transform; }
.shot__par img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease-out), filter 1s;
  filter: saturate(.92);
}
.shot__media:hover .shot__par img { transform: scale(1.12); filter: saturate(1.1); }
.shot__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 9, 8, .35) 0%, rgba(7, 9, 8, 0) 26%, rgba(7, 9, 8, 0) 50%, rgba(7, 9, 8, .82) 100%);
}
.shot__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -120px 120px -60px color-mix(in srgb, var(--accent) 35%, transparent);
  opacity: 0; transition: opacity .6s;
}
.shot__media:hover::before { opacity: 1; }
.shot__chip {
  position: absolute; z-index: 3; top: 16px; left: 16px;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: color .5s, background-color .5s;
}
.shot__chip svg { width: 24px; height: 24px; transition: transform .9s var(--ease-out); }
.shot__media:hover .shot__chip { color: var(--accent); background: rgba(10, 12, 11, .45); }
.shot__media:hover .shot__chip svg { transform: rotate(-24deg) scale(1.1); }
.shot__idx {
  position: absolute; z-index: 3; top: 30px; right: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: rgba(255, 255, 255, .75);
}
.shot__title { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 20px; }
.shot__title h3 {
  font-size: clamp(32px, 3vw, 44px); font-weight: 500; letter-spacing: -.045em; line-height: 1;
  transition: transform .7s var(--ease-out);
}
.shot__title span {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.shot__media:hover .shot__title h3 { transform: translateX(6px); font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.shot__body { padding: 20px 4px 0; }
.shot__body p { color: var(--muted); font-size: 15px; line-height: 1.55; min-height: 4.65em; }
.shot__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.shot__meta span { display: inline-flex; align-items: center; gap: 8px; }
.shot__meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.shot__meta a { white-space: nowrap; padding: 6px 0; margin: -6px 0; color: var(--cream); text-transform: none; letter-spacing: .02em; font-size: 12px; transition: color .3s; }
.shot__meta a:hover { color: var(--accent); }

.work__end { flex: none; width: clamp(220px, 20vw, 300px); display: grid; justify-items: center; gap: 18px; color: var(--dim); }
.mark--end { width: 64px; height: 64px; color: var(--cream); opacity: .85; animation: spin 40s linear infinite; }
.work__end p { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.work__progress {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--dim);
}
.work__count b { color: var(--cream); font-weight: 500; }
.work__bar { position: relative; flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.work__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); transform-origin: left; transform: scaleX(0); }

/* =========================================================
   Finale + footer
   ========================================================= */
.finale {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; isolation: isolate;
}
.finale__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.finale__img { position: absolute; inset: -14% 0; background: url(assets/hero.webp) center 62% / cover no-repeat; will-change: transform; }
.finale__shade {
  position: absolute; inset: -2px 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink) 4%, rgba(7, 9, 8, .55) 26%, rgba(7, 9, 8, .1) 50%, rgba(7, 9, 8, .72) 82%, var(--ink) 100%);
}
.finale__content {
  padding-top: clamp(170px, 26vh, 290px);
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  text-align: center;
}
.finale__content .eyebrow { color: rgba(255, 255, 255, .8); }
.finale__title {
  font-size: clamp(42px, 7vw, 116px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .3));
}
.finale__title em { font-size: 1.06em; letter-spacing: -.02em; }
.finale__title em .wi {
  background: linear-gradient(180deg, #fff6e4 20%, #f3c98b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.footer { padding-top: clamp(48px, 8vh, 90px); padding-bottom: max(26px, env(safe-area-inset-bottom)); }
.footer__word {
  overflow: hidden;
  text-align: center;
  font-size: clamp(76px, 20.5vw, 320px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .82;
  padding-top: .04em;
  margin-bottom: 26px;
  user-select: none;
}
.footer__word .ch {
  display: inline-block;
  /* negative tracking makes each box narrower than its glyph, and background-clip
     only paints inside the box — pad it out so no letter gets shaved */
  padding: 0 .1em;
  margin: 0 -.1em;
  background: linear-gradient(180deg, rgba(244, 239, 230, .95) 10%, rgba(244, 239, 230, .05) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.footer__status { display: inline-flex; align-items: center; gap: 10px; }
.to-top {
  display: inline-block;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream);
  transition: background-color .3s, color .3s;
}
.to-top:hover { background: var(--cream); color: var(--ink); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 280px; }
  .hero__shipped b, .hero__shipped-label { display: none; }
  .hero__shipped svg { width: 22px; height: 22px; }
}
@media (max-width: 860px) {
  .work__pin { height: auto; display: block; padding: clamp(90px, 13vh, 150px) 0 40px; }
  .work__track {
    width: auto; padding: 0 var(--side) 30px; align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .work__intro { width: min(82vw, 400px); }
  .shot { width: min(78vw, 360px); scroll-snap-align: center; }
  .shot:nth-of-type(even) { transform: none; }
  .work__end { display: none; }
  .work__progress { display: none; }
  .orbit__grid { grid-template-columns: 1fr; }
  .orbit__aside { position: relative; top: 0; }
  .system { width: min(320px, 80%); margin: 30px auto 10px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__pill { gap: 14px; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { padding: 22px 0 30px; }
  .project { grid-template-columns: 1fr auto; gap: 10px 16px; padding: 28px 4px; }
  .project__idx { grid-column: 1 / -1; }
  .project .status { align-self: start; }
}
@media (max-width: 600px) {
  .hero__clock, .scroll-cue { display: none; }
  .hero__foot { grid-template-columns: 1fr; justify-items: center; }
  .hero__shipped { gap: 18px; }
  .hero__shipped .hero__shipped-label { display: inline; }

  :root { --gutter: 32px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .hero__content { bottom: 96px; }
  .hero__foot { bottom: 22px; }
  .hero__lead br { display: none; }
  .footer__row { justify-content: center; text-align: center; }
  .project .status { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 400px) {
  .hero__eyebrow { letter-spacing: .1em; font-size: 10px; padding: 6px 12px 6px 10px; gap: 8px; }
  .hero__lead { font-size: 14.5px; }
  .finale__content { padding-top: 120px; }
  .finale__title { font-size: 36px; }
  .shot__meta span { white-space: nowrap; }
}
/* phones in landscape: size gallery cards by height so a whole card fits on screen */
@media (max-width: 860px) and (max-height: 520px) and (orientation: landscape) {
  .shot { width: min(300px, 58vh); }
  .work__intro { width: min(60vw, 420px); }
  .work__pin { padding-top: 70px; }
}
@media (max-height: 640px) and (max-width: 600px) {
  .hero__mark { width: 72px; margin-bottom: 18px; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__lead { margin-top: 16px; }
  .hero__content { bottom: 80px; }
}
@media (max-width: 380px) {
  .nav__status span { display: none; }
  .nav__status { padding: 10px; }
}

@media (hover: none), (pointer: coarse) {
  .grain { animation: none; }
  .hero__shipped a { padding: 10px 6px; margin: -10px -6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .grain { animation: none; }
}
