:root {
  color-scheme: dark;
  --bg: #060807;
  --ink: #e9eee9;
  --mute: #8c968f;
  --dim: #4b544e;
  --line: rgba(233, 238, 233, .10);
  --accent: #46e0b3;          /* changes per scene */
  --glow1: rgba(70, 224, 179, .16);
  --glow2: rgba(70, 224, 179, .06);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--display); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

/* atmosphere: two slow glows that change colour per scene, plus film grain */
.atmos { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); transition: background 1.2s ease; }
.g1 { width: 70vmax; height: 70vmax; left: -20vmax; top: -25vmax; background: radial-gradient(circle, var(--glow1), transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
.g2 { width: 60vmax; height: 60vmax; right: -25vmax; bottom: -30vmax; background: radial-gradient(circle, var(--glow2), transparent 65%); animation: drift 32s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
.grain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; opacity: .035; mix-blend-mode: overlay; }

/* top bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); background: linear-gradient(var(--bg), transparent); }
.bar .name { font-weight: 650; text-decoration: none; letter-spacing: -.01em; }
.bar nav { display: flex; gap: 26px; font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--mute); transition: color .2s; }
.bar nav a:hover { color: var(--ink); }
.bar nav .cta { color: var(--bg); background: var(--ink); padding: 6px 14px; border-radius: 99px; }
.bar nav .cta:hover { color: var(--bg); background: var(--accent); }

section { position: relative; }
.tag { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; margin-bottom: 18px; transition: color 1s; }
.aside { color: var(--mute); font-size: 15px; max-width: 54ch; }
.link { display: inline-block; margin-top: 22px; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; color: var(--ink); transition: color .2s; }
.link:hover { color: var(--accent); }

/* ---------- intro ---------- */
.intro { min-height: 80svh; display: grid; align-items: start; padding: max(112px, 17vh) var(--gutter) 12vh; overflow: hidden; background: var(--bg); }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; will-change: opacity, transform; }
.intro::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,8,7,.9) 0%, rgba(6,8,7,.72) 30%, rgba(6,8,7,.3) 50%, rgba(6,8,7,0) 64%), linear-gradient(0deg, var(--bg), transparent 22%), linear-gradient(180deg, rgba(6,8,7,.6), transparent 18%); }
.intro-copy { position: relative; z-index: 2; width: 100%; text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
.intro h1, .intro .lede { max-width: min(44vw, 760px); }
/* hero copy: soft scrim, grain, kicker, stats */
.intro::after { background:
  radial-gradient(ellipse 55% 65% at 16% 46%, rgba(6,8,7,.66), rgba(6,8,7,.28) 58%, transparent 80%),
  linear-gradient(0deg, var(--bg), transparent 18%),
  linear-gradient(180deg, rgba(6,8,7,.45), transparent 14%); }
.intro-copy { text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.intro::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hk { color: #d9d2c6; text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.hk .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.intro h1 { color: #f3eee6; font-size: clamp(34px, 4.1vw, 66px); font-stretch: 100%; font-weight: 580; line-height: 1.02; letter-spacing: -.028em; max-width: 13ch; }
.intro h1 em { font-style: normal; }
.intro .lede { color: #c4beb4; font-size: clamp(16px, 1.25vw, 19px); margin-top: 24px; max-width: 34ch; }
.hstats { margin: 30px 0 0; display: grid; gap: 10px; max-width: 34ch; }
.hstats div { display: grid; grid-template-columns: 8ch 1fr; gap: 14px; align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(243,238,230,.14); }
.hstats dt { color: var(--accent); font-size: 13.5px; }
.hstats dd { margin: 0; color: #b9b3a8; font-size: 12.5px; letter-spacing: .01em; }
.intro h1 em { color: #9fe3cd; }
.kicker { color: var(--mute); margin-bottom: 28px; }
h1 { font-size: clamp(38px, 5.2vw, 88px); line-height: .98; font-stretch: 112%; font-weight: 640; letter-spacing: -.035em; }
h1 .line { display: block; opacity: 0; transform: translateY(.35em); animation: rise 1.1s cubic-bezier(.2,.7,.1,1) forwards; }
h1 .line:nth-child(2) { animation-delay: .18s; color: #c9d2cb; }
h1 .line:nth-child(3) { animation-delay: .36s; color: #9aa59d; }
@keyframes rise { to { opacity: 1; transform: none; } }
.lede { margin-top: 34px; font-size: clamp(17px, 1.5vw, 21px); color: var(--mute); max-width: 46ch; opacity: 0; animation: rise 1s .7s forwards; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 5vh; color: var(--dim); display: flex; align-items: center; gap: 10px; z-index: 2; }
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: hint 2.2s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (orientation: portrait) {
  .intro { padding-top: max(92px, 12svh); align-content: start; }
  .hero-v { object-position: 50% 100%; }
  .intro::after { background: linear-gradient(180deg, rgba(6,8,7,.88) 0%, rgba(6,8,7,.7) 42%, rgba(6,8,7,0) 70%), linear-gradient(0deg, var(--bg), transparent 16%); }
  .intro h1, .intro .lede { max-width: none; }
  .scroll-hint { display: none; }
  .hk { letter-spacing: .1em; font-size: 10.5px; flex-wrap: wrap; row-gap: 4px; margin-bottom: 16px; }
  .intro::after { background: linear-gradient(180deg, rgba(6,8,7,.9) 0%, rgba(6,8,7,.78) 52%, rgba(6,8,7,0) 78%), linear-gradient(0deg, var(--bg), transparent 16%); }
  .hstats { margin-top: 20px; max-width: 46ch; gap: 8px; }
  .hstats div { grid-template-columns: 8ch 1fr; gap: 12px; padding-top: 8px; }
  .hstats dt { white-space: nowrap; }
  .hstats dt { font-size: 13px; }
  .hstats dd { font-size: 12px; line-height: 1.4; color: #cfc9be; }
}
@media (orientation: portrait) and (max-width: 900px) { h1 { font-size: clamp(30px, 8.8vw, 46px); } .kicker { margin-bottom: 18px; } .lede { margin-top: 20px; } }

/* ---------- GreenTitan: pinned stage ---------- */
/* the hero sits pinned on top of the pinned film stage and fades out; nothing moves until it is gone */
.intro { position: sticky; top: 0; z-index: 5; height: 100svh; min-height: 0; }
.gt { margin-top: -100svh; }
.gt-track { height: 260svh; }
.gt-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#gt-film { cursor: pointer; }
.film-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); pointer-events: none; }
.film-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
#gt-film, #gt-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.dip { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }
.gt-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(0,0,0,.45)), linear-gradient(0deg, rgba(6,8,7,.45), transparent 30%); }
#gt-map { opacity: 0; }
.beat { position: absolute; z-index: 2; left: var(--gutter); bottom: 21vh; max-width: min(520px, 86vw); padding: 22px 26px; background: rgba(6,8,7,.9); border-left: 2px solid var(--accent); opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.1,1); pointer-events: none; }
.beat.on { opacity: 1; transform: none; }
.beat h2 { font-size: clamp(28px, 3.4vw, 50px); line-height: 1.04; font-stretch: 108%; }
.beat p:not(.tag) { margin-top: 18px; color: var(--mute); font-size: 18px; }
.beat.right { left: auto; right: var(--gutter); }
.beat .cap { color: rgba(233,238,233,.75); letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.film-note { position: absolute; z-index: 2; right: var(--gutter); bottom: 4vh; color: var(--dim); opacity: 0; transition: opacity .5s; max-width: 340px; text-align: right; }
.film-note.on { opacity: 1; }
.film-cap { display: none; }
.dip { opacity: 1; z-index: 1; }
.parts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.parts li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--mute); display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.parts b { color: var(--ink); font-weight: 500; }
.hud { position: absolute; z-index: 2; top: 88px; right: var(--gutter); display: grid; grid-template-columns: repeat(4, auto); gap: 6px 28px; opacity: 0; transition: opacity .5s; text-align: right; }
.hud.on { opacity: 1; }
.hud span { display: block; color: var(--dim); text-transform: uppercase; font-size: 10.5px; letter-spacing: .14em; }
.hud b { font-weight: 500; font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud .h-phase { grid-column: 1 / -1; }
.hud .h-phase b { font-size: 14px; color: var(--accent); }
.map-note { position: absolute; z-index: 2; left: var(--gutter); bottom: 5vh; max-width: 420px; color: var(--dim); opacity: 0; transition: opacity .5s; }
.map-note.on { opacity: 1; }

.proof { max-width: var(--max); margin: 0 auto; padding: 12vh var(--gutter) 18vh; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats > div { padding: 28px 24px 30px 0; border-bottom: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(40px, 5vw, 76px); font-weight: 500; font-stretch: 85%; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats small { font-size: .38em; color: var(--mute); margin-left: 4px; letter-spacing: 0; }
.stats span { display: block; margin-top: 12px; color: var(--mute); font-size: 15px; max-width: 24ch; }
.stats.small b { font-size: clamp(34px, 3.6vw, 56px); }
.chips { margin: 36px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; color: var(--mute); }

/* ---------- Clementine ---------- */
.cl { padding: 16vh var(--gutter); }
.cl-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cl-media { position: relative; aspect-ratio: 1; border-radius: 4px; overflow: hidden; box-shadow: 0 40px 120px -30px rgba(170, 80, 255, .35), 0 0 0 1px var(--line); }
.cl-media video { width: 100%; height: 100%; object-fit: cover; }
.cl-copy h2, .jig-head h2, .contact h2 { font-size: clamp(32px, 4vw, 62px); line-height: 1.02; font-stretch: 110%; }
.cl-copy > p:not(.tag):not(.aside) { margin-top: 22px; font-size: 19px; color: #c3c9c4; max-width: 44ch; }
.ops { list-style: none; padding: 0; margin: 34px 0; border-top: 1px solid var(--line); }
.ops li { padding: 13px 0; border-bottom: 1px solid var(--line); color: #c3c9c4; display: flex; gap: 18px; }
.ops i { font-style: normal; color: var(--accent); }

/* ---------- Jig ---------- */
.jig { padding: 14vh var(--gutter) 16vh; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.jig-head { max-width: 900px; margin-bottom: 56px; }
.screen { margin: 0; border-radius: 10px; overflow: hidden; background: #0d1117; box-shadow: 0 0 0 1px var(--line), 0 50px 140px -40px rgba(224, 150, 80, .28); transform: perspective(1800px) rotateX(var(--tilt, 8deg)) scale(var(--sc, .94)); transform-origin: 50% 100%; transition: transform .1s linear; }
.screen-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f36; }
.screen-bar span { margin-left: 10px; color: var(--dim); }
.screen video { width: 100%; aspect-ratio: 1280 / 600; object-fit: cover; }
.jig-foot { margin-top: 64px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: end; }
.jig-foot .stats { grid-template-columns: repeat(3, 1fr); }
.jig-foot > p { color: var(--mute); font-size: 16px; }

/* ---------- Now ---------- */
.now { padding: 14vh var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 56px; }
.card { border-top: 1px solid var(--line); padding: 22px 0 0; text-decoration: none; min-width: 0; }
.card h3 { font-size: 22px; font-weight: 600; font-stretch: 105%; }
.card p { color: var(--mute); margin-top: 8px; }
.gh { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-width: 0; }
.gh-map { margin: 30px 0 10px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.gh-map i { aspect-ratio: 1; background: rgba(233,238,233,.05); }
.prs { list-style: none; padding: 0; margin: 18px 0 0; }
.prs li { border-top: 1px solid var(--line); }
.prs a { display: flex; gap: 14px; padding: 11px 0; text-decoration: none; color: #c3c9c4; transition: color .2s; }
.prs a:hover { color: var(--ink); }
.prs i { font-style: normal; color: #8a7cff; min-width: 54px; }
.prs i.open { color: var(--dim); }
.wagz { display: grid; grid-template-columns: 1fr; gap: 18px; }
.wagz img { width: 100%; height: 210px; object-fit: cover; object-position: top left; filter: saturate(.9) brightness(.92); transition: filter .4s; }
.wagz:hover img { filter: none; }
.wagz div { padding: 0; }

/* ---------- Contact ---------- */
.contact { padding: 20vh var(--gutter) 8vh; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.contact h2 { max-width: 18ch; }
.contact > p { margin-top: 20px; color: var(--mute); font-size: 19px; }
.links { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.links a { font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 12px 20px; transition: background .2s, color .2s, border-color .2s; }
.links a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.foot { margin-top: 18vh; color: var(--dim); max-width: 70ch; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform 1s cubic-bezier(.2,.7,.1,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .bar nav a:not(.cta) { display: none; }
  .stats, .jig-foot .stats { grid-template-columns: 1fr 1fr; }
  .cl-grid, .jig-foot, .now-grid { grid-template-columns: 1fr; }
  .beat { left: 0; right: 0; max-width: none; bottom: 0; padding: 60px var(--gutter) 7vh; background: linear-gradient(transparent, rgba(6,8,7,.88) 34%); border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .beat.right { left: 0; right: 0; }
  .film-note { display: none; }
  .parts li { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
  .hud { top: 70px; left: var(--gutter); right: var(--gutter); grid-template-columns: repeat(4, 1fr); text-align: left; gap: 4px 12px; }
  .hud b { font-size: 16px; }
  .film-cap { display: block; position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: calc(40svh + 28.2vw + 14px); color: var(--mute); font-size: 13px; opacity: 0; transition: opacity .4s; }
  .film-cap.on { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .line, .lede { opacity: 1; transform: none; }
}

.stats.three { grid-template-columns: repeat(3, 1fr); }
.proof .aside { margin-top: 28px; color: var(--dim); }
.proof { padding: 10vh var(--gutter) 12vh; }
.cl { padding: 12vh var(--gutter); }
.jig { padding: 10vh var(--gutter) 12vh; }
.jig-foot { grid-template-columns: 1fr auto; }
.jig-foot .stats { grid-template-columns: repeat(2, 1fr); }
.now { padding: 10vh var(--gutter); }
.contact { padding: 14vh var(--gutter) 6vh; }
.foot { margin-top: 10vh; }
@media (max-width: 900px) { .stats.three { grid-template-columns: 1fr 1fr 1fr; } .stats.three b { font-size: 34px; } .jig-foot .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .jig-foot { grid-template-columns: 1fr; gap: 28px; } .jig-foot > .link { justify-self: start; } }
.link { white-space: nowrap; }


/* plain section headings and intro lines, replacing the numbered small-caps labels */
.jig-head > p { margin-top: 22px; font-size: 19px; color: #c3c9c4; max-width: 52ch; }
.now-h { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; font-stretch: 108%; margin-bottom: 48px; }
.proof .aside { font-size: 16px; line-height: 1.55; max-width: 64ch; color: var(--mute); }
