/* ============ Tokens ============ */
/* Registered so the theme colors can animate when the page changes section. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #0a0a0a; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #f3f0e8; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: rgba(243, 240, 232, 0.55); }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(243, 240, 232, 0.14); }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #ffd500; }
@property --surface { syntax: "<color>"; inherits: true; initial-value: #141414; }

:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1f1f1f;
  --paper: #f3f0e8;
  --yellow: #ffd500;

  --f-display: "Big Shoulders Display", "Bebas Neue", Impact, sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

[data-theme="ink"] {
  --bg: #0a0a0a; --fg: #f3f0e8; --muted: rgba(243, 240, 232, 0.55);
  --line: rgba(243, 240, 232, 0.14); --accent: #ffd500; --surface: #141414;
}
[data-theme="smoke"] {
  --bg: #151513; --fg: #f3f0e8; --muted: rgba(243, 240, 232, 0.55);
  --line: rgba(243, 240, 232, 0.12); --accent: #ffd500; --surface: #1d1d1a;
}
[data-theme="yellow"] {
  --bg: #ffd500; --fg: #0a0a0a; --muted: rgba(10, 10, 10, 0.68);
  --line: rgba(10, 10, 10, 0.2); --accent: #0a0a0a; --surface: #f0c800;
}
[data-theme] { background-color: var(--bg); color: var(--fg); }

/* When JS drives the theme, sections go transparent and the body color animates. */
/* Sections marked data-keep (the yellow contact and CTA bands) keep their own
   background so they scroll in with a hard edge instead of recolouring the page. */
html.themed main [data-theme]:not([data-keep]), html.themed .footer[data-theme] { background-color: transparent; }
html.themed body { transition: --bg .8s var(--ease), --fg .8s var(--ease), --muted .8s var(--ease), --line .8s var(--ease), --accent .8s var(--ease), --surface .8s var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--yellow); color: var(--ink); }

.mono {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label { color: var(--accent); margin: 0 0 20px; }

/* Split text */
.split { display: inline-block; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }
.char-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: none;
  padding: var(--gutter);
  flex-direction: column; justify-content: space-between;
}
.js .loader { display: flex; }
.loader__top { display: flex; justify-content: space-between; color: rgba(243, 240, 232, .55); }
.loader__count {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(110px, 22vw, 320px);
  line-height: 0.8; color: var(--yellow);
}
.loader__bar { height: 2px; background: rgba(243, 240, 232, .14); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--yellow); }
.loader__wipe {
  position: absolute; inset: 0; background: var(--yellow);
  transform: translateY(100%);
}

/* ============ Cursor ============ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--yellow);
  mix-blend-mode: difference;
  pointer-events: none;
  display: none;
  align-items: center; justify-content: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .3s;
}
.cursor__label {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink); opacity: 0; transition: opacity .2s;
}
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: flex; }
  .js body, .js a, .js button { cursor: none; }
  .js summary, .js label { cursor: none; }
  .js input, .js textarea { cursor: text; }
}
.cursor.is-link { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: transparent; border: 1.5px solid var(--yellow); }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--yellow); border: 0; mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-hidden { width: 0; height: 0; margin: 0; }
/* Over the globe the dot becomes a hand, which closes into a fist while dragging. */
.cursor__hand {
  position: absolute; left: 50%; top: 50%;
  width: 40px; height: 42px; margin: -21px 0 0 -20px;
  opacity: 0; transform: scale(.4); overflow: visible;
  transition: opacity .2s, transform .35s var(--ease);
}
.hand { transform-origin: 22px 26px; transition: opacity .15s, transform .25s var(--ease); }
.hand__line { fill: var(--ink); stroke: var(--ink); stroke-width: 3.2; stroke-linejoin: round; }
.hand__fill { fill: var(--yellow); }
.hand--fist { opacity: 0; transform: scale(1.12); }
.cursor.is-hand { width: 40px; height: 42px; margin: -21px 0 0 -20px; background: transparent; mix-blend-mode: normal; }
.cursor.is-hand .cursor__hand { opacity: 1; transform: scale(1); }
.cursor.is-grab .hand--open { opacity: 0; transform: scale(.85); }
.cursor.is-grab .hand--fist { opacity: 1; transform: scale(.92); }
.cursor.is-grab .cursor__hand { transform: scale(.94) rotate(-6deg); }

/* ============ Grain ============ */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  opacity: .06;
  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='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 4%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(6%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  color: var(--fg);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .3s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: .02em; }
.nav__logo span { color: var(--accent); margin: 0 2px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent); }
.nav__links a[aria-current="page"]::before { content: "● "; font-size: 8px; vertical-align: middle; }
.nav__status { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.nav__status i {
  width: 7px; height: 7px; border-radius: 50%; background: #2bd96b;
  box-shadow: 0 0 0 0 rgba(43, 217, 107, .6); animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(43, 217, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 217, 107, 0); } }
.nav__cta {
  font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  padding: 10px 18px; border: 1px solid var(--fg); border-radius: 999px;
  transition: background-color .3s, color .3s;
}
.nav__cta:hover { background: var(--fg); color: var(--bg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: color .4s var(--ease);
}
.btn span, .btn b { position: relative; z-index: 1; }
.btn b { font-family: var(--f-body); font-size: 16px; transition: transform .4s var(--ease); }
.btn:hover b { transform: translateX(6px) rotate(-45deg); }
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--yellow); color: var(--ink); }
.btn--solid::before { background: var(--paper); }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); }
.btn--dark { background: var(--ink); color: var(--yellow); border: 0; cursor: pointer; }
.btn--dark::before { background: var(--paper); }
.btn--dark:hover { color: var(--ink); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 96px var(--gutter) 36px;
  display: grid;
  grid-template-columns: 1fr;
  /* meta / space / title / copy / space / strip */
  grid-template-rows: auto 1fr auto auto 1fr auto;
  overflow: clip;
  isolation: isolate;
}

/* Background layers */
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Keeps the headline readable over the 3D field. */
.hero__fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, .85) 0%, rgba(10, 10, 10, .45) 34%, transparent 58%),
    linear-gradient(0deg, rgba(10, 10, 10, .9) 0%, transparent 26%),
    linear-gradient(180deg, rgba(10, 10, 10, .7) 0%, transparent 18%);
}
.hero.is-dragging { user-select: none; }
.outlier-tag {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: flex-end;
  opacity: 0; transition: opacity .6s;
  pointer-events: none; will-change: transform;
}
.outlier-tag i {
  width: 52px; height: 52px; flex-shrink: 0;
  border-top: 1.5px solid var(--yellow);
  transform: skewY(-45deg); transform-origin: left bottom;
  margin-bottom: -1px;
}
.outlier-tag > span {
  display: flex; flex-direction: column; gap: 4px;
  margin: 0 0 40px 4px; padding: 10px 14px;
  background: rgba(10, 10, 10, .85);
  border: 1px solid rgba(255, 213, 0, .35); border-radius: 8px;
  white-space: nowrap;
}
.outlier-tag small { color: rgba(243, 240, 232, .6); font-size: 10.5px; }
.outlier-tag b {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 22px; line-height: 1; color: var(--yellow); letter-spacing: .01em;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35;
  mix-blend-mode: screen;
}
.blob--1 {
  width: 46vw; height: 46vw; right: -10vw; top: -14vw;
  background: radial-gradient(circle at 40% 40%, rgba(255, 213, 0, .55), rgba(255, 140, 0, .15) 55%, transparent 70%);
  animation: drift1 18s ease-in-out infinite alternate;
}
.blob--2 {
  width: 38vw; height: 38vw; left: -12vw; bottom: -18vw;
  background: radial-gradient(circle, rgba(255, 213, 0, .35), transparent 65%);
  animation: drift2 22s ease-in-out infinite alternate;
}
/* The 3D canvas is opaque, so the CSS glow is only a no-WebGL fallback. */
.hero.has-gl .blob { display: none; }
@keyframes drift1 { to { transform: translate(-14vw, 10vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(18vw, -8vw) scale(.9); } }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255, 213, 0, .6); }
.corner--tl { top: 80px; left: calc(var(--gutter) - 8px); border-top-width: 1.5px; border-left-width: 1.5px; }
.corner--tr { top: 80px; right: calc(var(--gutter) - 8px); border-top-width: 1.5px; border-right-width: 1.5px; }
.corner--bl { bottom: 20px; left: calc(var(--gutter) - 8px); border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner--br { bottom: 20px; right: calc(var(--gutter) - 8px); border-bottom-width: 1.5px; border-right-width: 1.5px; }
.hero__meta { position: relative; z-index: 2; grid-row: 1; display: flex; justify-content: space-between; color: var(--muted); gap: 16px; padding-top: 8px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.hero__eyebrow i { width: 26px; height: 1.5px; background: var(--yellow); }

.hero__main { position: relative; z-index: 2; grid-row: 3; }
.hero__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(60px, 9.2vw, 156px);
  line-height: .86; letter-spacing: -.005em;
  text-transform: uppercase;
}
.hero__line { display: block; white-space: nowrap; }
/* "I BUILD" warms from cream to gold toward the bottom of the letters. */
/* Applied per letter once split (and to the whole word before/without JS). */
html:not(.js) .hero__build, .hero__build .char {
  background: linear-gradient(180deg, #fbf8f0 28%, #ffe58a 78%, #ffcf3a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* "the" is a small italic serif aside between the two big words. */
.hero__the {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  font-size: 1.08em; color: var(--yellow); margin-right: .06em;
}
.hero__the .char-wrap { padding-right: .1em; margin-right: -.1em; }
/* Outlined yellow over a dark yellow-tinted fill; letters flash solid on hover. */
.hero__hl, .hl {
  color: rgba(255, 213, 0, .13);
  -webkit-text-stroke: clamp(2px, .2vw, 3.2px) var(--yellow);
  filter: drop-shadow(0 0 28px rgba(255, 213, 0, .22));
}
.hero__hl .char, .hl .char { transition: color .7s var(--ease); }
.hero__hl .char.is-lit, .hl .char.is-lit { color: var(--yellow); transition-duration: .12s; }
/* Drop the reveal masks once the intro is done so hover pops aren't clipped. */
.hero__title.is-revealed .char-wrap { overflow: visible; }
.hero__title .char { cursor: default; }

.hero__rotator {
  margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 22px); color: var(--fg);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em;
}
.rot__word { display: inline-block; }
.rot {
  display: inline-block; position: relative; overflow: hidden; vertical-align: bottom;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 1.35em; line-height: 1; letter-spacing: .01em;
  color: var(--ink); background: var(--yellow);
  padding: .1em .3em .04em; border-radius: 4px;
  transform: rotate(-1.5deg);
}

.hero__copy {
  position: relative; z-index: 2; grid-row: 4;
  display: flex; flex-direction: column; gap: 26px; align-items: flex-start;
  margin-top: 30px;
}
.hero__intro {
  max-width: 470px; margin: 0;
  font-size: 17px; line-height: 1.6; color: rgba(243, 240, 232, .82);
  padding-left: 18px; border-left: 2px solid var(--yellow);
}
.hero__intro strong {
  color: var(--fg); font-weight: 600;
  background: linear-gradient(transparent 60%, rgba(255, 213, 0, .32) 60%);
}
.hero__intro em { font-style: normal; font-weight: 500; color: var(--yellow); }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__strip {
  position: relative; z-index: 2; grid-row: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px; color: var(--muted);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); }
.hero__scroll-line { width: 1.5px; height: 28px; background: rgba(243, 240, 232, .2); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--yellow); animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue { to { top: 100%; } }
.hero__built { margin: 0; text-align: right; color: rgba(243, 240, 232, .7); }
.hero__tap { display: none; color: var(--yellow); }
@media (hover: none) { .hero.has-gl .hero__tap { display: inline; } }



/* "Don't click this": nukes the globe, then rebuilds it */
.nuke {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 88px;
  display: none; flex-direction: column; align-items: flex-end; gap: 10px;
}
.hero.has-gl .nuke { display: flex; }
.nuke__btn {
  padding: 4px; border: 0; border-radius: 12px; cursor: pointer;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--ink) 10px 20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease), opacity .3s;
}
.nuke__inner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 9px;
  background: var(--ink); color: var(--yellow);
  font-family: var(--f-display); font-weight: 900; font-size: 19px;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1;
}
.nuke__icon { font-size: 20px; display: inline-block; transition: transform .6s var(--ease); }
.nuke__btn:hover { transform: rotate(-2deg) scale(1.04); }
.nuke__btn:hover .nuke__icon { transform: rotate(180deg); }
.nuke__btn:disabled { opacity: .45; cursor: default; transform: none; }
.nuke__note {
  margin: 0; max-width: 260px; text-align: right;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.nuke__note.is-on { opacity: 1; transform: none; }
/* Desktop only: it relies on a mouse (the game uses the cursor as a flashlight). */
@media (max-width: 960px), (hover: none) { .nuke { display: none !important; } }
/* Lights out: covers the whole site (but not the cursor). JS draws the darkness
   spreading out from the star, then the light pushing it back. */
.blackout {
  position: fixed; inset: 0; z-index: 89;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; pointer-events: none;
}
.blackout.is-on { visibility: visible; pointer-events: auto; }
.blackout__text {
  margin: 0; color: rgba(243, 240, 232, .55);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transition: opacity .8s;
}
.blackout.has-text .blackout__text { opacity: 1; }
/* "Find the light": shards hidden in the dark, the star's core filling back up */
.shard {
  position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  pointer-events: none; opacity: .1;
  filter: drop-shadow(0 0 16px rgba(255, 213, 0, .9));
  transition: transform .7s cubic-bezier(.6, 0, .3, 1);
}
.shard svg { width: 100%; height: 100%; fill: var(--yellow); animation: shard-spin 6s linear infinite; }
@keyframes shard-spin { to { transform: rotate(360deg); } }
.shard.is-got { opacity: 1 !important; }
.blackout__core {
  --n: 0;
  position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
}
.blackout__core::after {
  content: ""; position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 90, .9) 0, rgba(255, 200, 40, .25) 30%, transparent 70%);
  opacity: calc(var(--n) / 3); transform: scale(calc(.3 + var(--n) * .25));
  transition: opacity .5s .5s, transform .5s .5s;
}
.blackout__skip {
  position: absolute; right: 28px; bottom: 26px;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
  border: 1.5px solid rgba(255, 213, 0, .7); border-radius: 999px;
  background: rgba(255, 213, 0, .08); color: var(--yellow); cursor: pointer;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .4s, background-color .3s, color .3s;
}
.blackout__skip:hover { background: var(--yellow); color: var(--ink); }
.blackout.is-game .blackout__skip { opacity: 1; pointer-events: auto; }
.hero__built span { color: var(--yellow); margin-right: 12px; }
.hero__built i { font-style: normal; color: rgba(243, 240, 232, .25); margin: 0 6px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Marquee ============ */
.marquee {
  position: relative; z-index: 3;
  background: var(--yellow); color: var(--ink);
  transform: rotate(-2deg) scale(1.05);
  margin: 32px 0 64px;
  overflow: hidden; padding: 14px 0;
  border-block: 2px solid var(--ink);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span, .marquee__track i {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(30px, 3.6vw, 54px);
  text-transform: uppercase; line-height: 1; padding: 0 .35em; white-space: nowrap; font-style: normal;
}

/* ============ Section basics ============ */
section { position: relative; }
.section-head { padding: 0 var(--gutter); margin-bottom: 44px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.section-head__aside { max-width: 380px; margin: 0 0 6px; color: var(--muted); font-size: 17px; }
.big-title {
  margin: 0;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 7vw, 116px); line-height: .86;
}
.big-title sup { font-size: 12px; color: var(--accent); vertical-align: top; margin-left: 8px; position: relative; top: 1.2em; }

/* ============ Manifesto ============ */
.manifesto { padding: 64px var(--gutter) 120px; }
.manifesto__text {
  margin: 0; max-width: 1100px;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(30px, 3.7vw, 58px);
  line-height: 1.04; text-transform: uppercase;
}
.manifesto__text em { font-style: normal; color: var(--accent); }
.js .manifesto__text .w { opacity: .14; }
.manifesto__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 80px; border-top: 1px solid var(--line); padding-top: 28px;
}
.stat b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 5vw, 80px); line-height: 1; color: var(--accent); margin-bottom: 6px; }
.stat span { color: var(--muted); }

/* Faint starfield behind dark sections (tile drawn by outlier.js), drifting slower than the page */
.has-stars { background-image: var(--starfield, none); background-size: 520px 520px; background-position: 0 var(--star-y, 0); }

/* ============ Work ============ */
.work { padding: 120px 0; }
.work__hint { margin: 40px var(--gutter) 0; color: var(--muted); text-align: center; }

/* ============ Story ============ */
.story { border-block: 1px solid var(--line); }
.story__pin { height: 100vh; display: flex; flex-direction: column; overflow: clip; padding-top: 92px; }
.story__head { display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); }
.story__head .label { margin: 0; white-space: nowrap; }
.story__progress { position: relative; flex: 1; height: 2px; background: var(--line); }
.story__progress span { position: relative; display: block; height: 100%; width: 0; background: var(--accent); }
.story__progress span::before {
  content: ""; position: absolute; right: -22px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 0, .45), transparent 65%);
}
.story__progress span::after {
  content: ""; position: absolute; right: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: var(--yellow); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); z-index: 2;
}
.story__marks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 1; }
.story__marks li {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  padding: 3px 8px; border-radius: 999px; font-size: 10.5px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  transition: background-color .3s, color .3s, border-color .3s;
}
.story__marks li.is-on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.story__track {
  flex: 1; display: flex; align-items: center; gap: 6vw;
  padding: 0 var(--gutter); width: max-content; will-change: transform;
}
.story__intro { flex-shrink: 0; }
.story__intro .big-title { white-space: nowrap; }
.story__intro p { color: var(--muted); font-size: 17px; max-width: 340px; margin-top: 24px; }
.story__intro .story__cue { color: var(--accent); margin-top: 30px; }
.chapter {
  position: relative; flex-shrink: 0;
  width: min(620px, 80vw); height: min(56vh, 480px);
  display: flex; align-items: flex-end;
}
.chapter__age {
  position: absolute; top: -2%; left: -2%;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(200px, 38vh, 380px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 213, 0, .75);
  user-select: none;
}
.chapter--now .chapter__age { color: var(--yellow); -webkit-text-stroke: 0; }
.chapter__body {
  position: relative; max-width: 420px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px;
}
.chapter__body h3 {
  margin: 0 0 12px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 40px; line-height: .9;
}
.chapter__body h3 .mono { display: block; color: var(--accent); margin-bottom: 8px; font-weight: 400; }
.chapter__body p { margin: 0; color: var(--muted); font-size: 15.5px; }
.chapter__body a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ============ The Way ============ */
.way { padding: 130px 0 70px; }
.way__stack { padding: 0 var(--gutter); }
.card {
  position: sticky; top: 96px;
  min-height: 50vh; margin-bottom: 32px;
  border-radius: 14px; padding: clamp(26px, 3.4vw, 52px);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 20px 44px;
  transform-origin: center top;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .12);
}
.card__num {
  grid-row: 1 / 3;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(84px, 10vw, 168px); line-height: .8;
}
.card h3 {
  margin: 0; align-self: start;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 4.4vw, 72px); line-height: .9;
}
.card p { margin: 0; max-width: 520px; font-size: 17px; }
.card--yellow { background: var(--yellow); color: var(--ink); }
.card--dark { background: var(--ink); color: var(--paper); border: 1px solid rgba(255, 213, 0, .45); }
.card--dark p, .card--charcoal p { color: rgba(243, 240, 232, .65); }
.card--charcoal { background: var(--ink-3); color: var(--paper); }
.card--charcoal { border: 1px solid rgba(243, 240, 232, .1); }
.card--charcoal .card__num { color: var(--yellow); }
.card--dark .card__num { color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }

/* ============ Quote ============ */
.quote { padding: 140px var(--gutter); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 1000px; }
.quote blockquote p {
  margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 5vw, 80px); line-height: .94; color: var(--accent);
}
.quote cite { display: block; margin-top: 24px; color: var(--muted); font-style: normal; }

/* ============ Process ============ */
.process { padding: 130px 0 120px; }
.process__line { margin: 0 var(--gutter); height: 2px; background: var(--line); }
.process__line span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.js .process__line span { transform: scaleX(0); }
.process__steps {
  list-style: none; margin: 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.step { padding-top: 26px; position: relative; }
.step::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.step__n { color: var(--muted); }
.step h3 {
  margin: 8px 0 10px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(38px, 3.4vw, 56px); line-height: .9;
}
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ============ Testimonials ============ */
.words { padding: 120px 0 140px; }
.words__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--gutter); }
.testi {
  position: relative; overflow: hidden;
  margin: 0; padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease);
}
.testi:hover { border-color: rgba(255, 213, 0, .5); transform: translateY(-6px) rotate(-.5deg); box-shadow: 10px 10px 0 var(--yellow); }
.testi__mark {
  position: absolute; top: -40px; right: 14px; pointer-events: none;
  font-family: "Instrument Serif", Georgia, serif; font-size: 240px; line-height: 1;
  color: rgba(255, 213, 0, .13);
}
.testi blockquote { position: relative; margin: 0; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; }
.testi mark { background: none; color: var(--yellow); }
.testi figcaption { display: flex; align-items: center; gap: 14px; }
.testi__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  font-family: var(--f-display); font-weight: 900; font-size: 18px;
}
.testi figcaption b { display: block; color: var(--fg); font-weight: 600; }
.testi figcaption small { color: var(--muted); }

/* ============ Contact ============ */
.contact { position: relative; padding: 140px var(--gutter) 130px; overflow: clip; }
.contact__star {
  position: absolute; left: -9vw; bottom: -17vw; width: 50vw; height: 50vw; pointer-events: none;
  fill: rgba(10, 10, 10, .035); stroke: rgba(10, 10, 10, .14); stroke-width: 1.5px; vector-effect: non-scaling-stroke;
  animation: slow-turn 120s linear infinite;
}
.contact__star path { vector-effect: non-scaling-stroke; }
@keyframes slow-turn { to { transform: rotate(360deg); } }
.contact .contact__grid { position: relative; z-index: 1; }
.contact__grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.contact__title {
  margin: 0 0 28px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 7.4vw, 128px); line-height: .84;
}
.contact__title .outline { -webkit-text-stroke-width: clamp(1.2px, .16vw, 2.2px); }
.contact__lede { max-width: 440px; margin: 0 0 30px; font-size: 18px; }
.contact__next { list-style: none; margin: 0; padding: 0; max-width: 480px; border-top: 1px solid var(--line); }
.contact__next li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__next b { color: var(--accent); padding-top: 3px; }
.contact__next strong { display: block; font-weight: 600; }
.contact__card {
  position: relative; overflow: clip;
  background: #0e0e0d; color: var(--paper);
  border: 1px solid rgba(255, 213, 0, .25); border-radius: 26px;
  padding: clamp(28px, 3.6vw, 56px);
  box-shadow: 0 40px 100px rgba(60, 45, 0, .38);
}
.contact__card .contact__card-label { position: relative; color: var(--yellow); }
/* The inline form is the main event here, so it runs larger than in the pop-up. */
.contact__card .pform__q { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: 24px; }
.contact__card .chips--big { gap: 12px; }
.contact__card .chips--big .chip > span { padding: 22px 22px; gap: 8px; }
.contact__card .chips--big b { font-size: clamp(24px, 2.2vw, 32px); }
.contact__card .chips--big small { font-size: 15px; }
.contact__card .chip > span { padding: 12px 18px; font-size: 15.5px; }
.contact__card .field input, .contact__card .field textarea { font-size: 17px; padding: 26px 16px 10px; }
.contact__card .field textarea { min-height: 140px; }
.contact--page .contact__card { box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.contact--page { padding-top: 170px; }
.contact--page::before {
  content: ""; position: absolute; z-index: 0; width: 70vw; height: 70vw; right: -25vw; top: -30vw;
  background: radial-gradient(circle, rgba(255, 213, 0, .16), transparent 62%); pointer-events: none;
}
.contact--page .contact__grid { position: relative; z-index: 1; }

/* ============ Footer ============ */
.footer { padding: 90px var(--gutter) 0; overflow: clip; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; }
.footer__brand p { max-width: 300px; margin: 14px 0 0; color: var(--muted); }
.footer__h { margin: 0 0 16px; color: var(--accent); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__list a { font-size: 17px; transition: color .3s, padding-left .4s var(--ease); }
.footer__list a:hover { color: var(--accent); padding-left: 6px; }
.footer__status { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.footer__status i, .menu__status i {
  width: 7px; height: 7px; border-radius: 50%; background: #2bd96b;
  box-shadow: 0 0 0 0 rgba(43, 217, 107, .6); animation: ping 2s infinite;
}
.footer__cta {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 30px; line-height: 1; color: var(--accent);
  transition: letter-spacing .4s var(--ease);
}
.footer__cta:hover { letter-spacing: .03em; }
.footer__row { display: flex; gap: 26px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer__row span { margin-right: auto; }
.footer__row a:hover { color: var(--accent); }
.footer__giant {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: 15.2vw; line-height: .78; white-space: nowrap;
  color: var(--accent); margin: 20px 0 -2.2vw; text-align: center; letter-spacing: -.01em;
}

/* Footer letters lift and brighten as the cursor passes (extras.js sets --lift) */
.footer__giant span {
  --lift: 0;
  display: inline-block;
  transform: translateY(calc(var(--lift) * -14%));
  color: color-mix(in srgb, var(--fg) calc(var(--lift) * 100%), var(--accent));
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), color .35s;
}
.footer__giant .sp { width: .25em; }

/* ============ Final touches (extras.js) ============ */
.burst { position: fixed; z-index: 120; pointer-events: none; }
.has-stars { position: relative; }
.shooting-star {
  position: absolute; z-index: 0; width: 120px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 213, 0, 0), rgba(255, 230, 128, .9));
  border-radius: 2px; transform-origin: left center;
}
.shooting-star::after {
  content: ""; position: absolute; right: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff6c9; box-shadow: 0 0 10px 2px rgba(255, 213, 0, .8);
}
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 2px; pointer-events: none;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 8px rgba(255, 213, 0, .6);
}

/* ============ Reveal ============ */
.js .reveal { opacity: 0; transform: translateY(32px); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav__status { display: none; }
  .process__steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .nav { gap: 16px; padding: 14px var(--gutter); }
  .nav__links { display: none; }
  .nav__cta { display: none; }

  /* Phone hero: the half-globe sits across the top like a header image,
     with the headline, intro and buttons below it. */
  .hero { min-height: 0; padding: calc(25svh + 4px) var(--gutter) 40px; grid-template-rows: auto auto auto; gap: 0; }
  .hero__gl { top: 0; bottom: auto; height: 25svh; }
  .hero__fade {
    top: 0; bottom: auto; height: 25svh;
    background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, transparent 22%, transparent 72%, #0a0a0a 100%);
  }
  .hero__meta { grid-row: 1; padding-top: 0; margin-bottom: 26px; }
  .hero__main { grid-row: 2; margin-top: 0; }
  .outlier-tag { align-items: center; }
  .outlier-tag i { width: 18px; height: 0; transform: none; margin: 0; }
  .outlier-tag > span { margin: 0 0 0 6px; padding: 7px 10px; }
  .outlier-tag small { font-size: 9px; }
  .outlier-tag b { font-size: 15px; }
  .hero__copy { grid-row: 3; margin-top: 24px; }
  .hero__strip { display: none; }
  .hero__built { display: none; }
  .hero__actions { flex-wrap: nowrap; gap: 8px; align-self: stretch; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; padding: 14px 12px; font-size: 11px; white-space: nowrap; }
  .hero__actions .btn b { display: none; }
  .corner { display: none; }
  .blob--1 { width: 90vw; height: 90vw; }
  .blob--2 { width: 80vw; height: 80vw; }

  .marquee { margin: 20px 0 40px; padding: 10px 0; }
  .manifesto { padding: 36px var(--gutter) 80px; }
  .manifesto__stats { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
  .stat b { font-size: 40px; }
  .stat span { display: block; font-size: 10px; line-height: 1.45; }

  .work { padding: 80px 0; }

  .story__pin { height: auto; padding: 72px 0; }
  .story__track { flex-direction: column; align-items: stretch; width: auto; gap: 48px; padding-top: 36px; }
  .story__progress { display: none; }
  .story__intro, .chapter { width: auto; }
  .story__intro .story__cue { display: none; }
  .chapter { height: auto; min-height: 0; padding-top: 110px; }
  .chapter__age { font-size: 170px; top: 0; }
  .chapter__body { padding: 22px; margin-left: 0; }
  .chapter__body h3 { font-size: 36px; }

  .way { padding: 80px 0 32px; }
  .card { top: 76px; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto; gap: 14px; }
  .card__num { grid-row: auto; font-size: 80px; }
  .card p { font-size: 16px; }

  .quote { padding: 88px var(--gutter); }
  .process { padding: 80px 0 72px; }
  .process__line { display: none; }
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 22px 0; border-top: 1px solid var(--line); }
  .step::before { display: none; }



}

@media (prefers-reduced-motion: reduce) {
  .grain, .nav__status i, .blob, .hero__scroll-line::after, .contact__star { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .manifesto__text .w { opacity: 1; }
  .js .process__line span { transform: none; }
}

/* =====================================================================
   Multi-page components
   ===================================================================== */

/* ============ Page transition curtain ============ */
.curtain {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  transform: translateY(100%); pointer-events: none;
}
.curtain__logo {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 8vw, 120px);
  opacity: 0; transition: opacity .3s;
}
.curtain__logo span { color: rgba(10, 10, 10, .35); margin: 0 .06em; }
.curtain.is-covering { transform: translateY(0); pointer-events: auto; transition: transform .6s cubic-bezier(.76, 0, .24, 1); }
.curtain-in .curtain { transform: translateY(0); }
.curtain.is-covering .curtain__logo, .curtain-in .curtain .curtain__logo { opacity: 1; }
.curtain.is-leaving { transform: translateY(-100%); transition: transform .75s cubic-bezier(.76, 0, .24, 1) .05s; }
.curtain.is-leaving .curtain__logo { opacity: 0; }

/* ============ Mobile menu ============ */
.nav__burger {
  display: none; align-items: center; gap: 10px; margin-left: auto;
  padding: 9px 14px; border: 1px solid var(--fg); border-radius: 999px;
  background: none; color: var(--fg); cursor: pointer;
}
.nav__burger i { position: relative; width: 16px; height: 8px; }
.nav__burger i::before, .nav__burger i::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__burger i::before { top: 0; }
.nav__burger i::after { top: 100%; }
.nav__burger[aria-expanded="true"] i::before { top: 50%; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i::after { top: 50%; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 96px var(--gutter) 32px;
  background: var(--ink); color: var(--paper);
  clip-path: circle(0 at calc(100% - 52px) 36px);
  visibility: hidden;
  transition: clip-path .7s cubic-bezier(.76, 0, .24, 1), visibility 0s .7s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 52px) 36px); visibility: visible; transition: clip-path .7s cubic-bezier(.76, 0, .24, 1), visibility 0s; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 4px 0; border-bottom: 1px solid rgba(243, 240, 232, .1);
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(48px, 15vw, 96px); line-height: .95;
  transform: translateY(30px); opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease), color .3s;
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .2s; }
.menu__links a i { font-style: normal; color: var(--yellow); }
.menu__links a[aria-current="page"] { color: var(--yellow); }
.menu__foot { display: flex; flex-direction: column; gap: 18px; }
.menu__foot .btn { justify-content: center; }
.menu__status { display: flex; align-items: center; gap: 10px; color: rgba(243, 240, 232, .6); margin: 0; }

/* ============ Project modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 20px;
  visibility: hidden; pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 6, 5, .84); opacity: 0; transition: opacity .45s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; overflow: auto; overscroll-behavior: contain;
  width: min(680px, 100%); max-height: calc(100svh - 40px);
  padding: clamp(24px, 3.4vw, 44px);
  background: #0e0e0d; color: var(--paper);
  border: 1px solid rgba(255, 213, 0, .25); border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(40px) scale(.97);
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__glow {
  /* Kept inside the right edge so it can't make the panel scroll sideways. */
  position: absolute; top: -40%; right: 0; width: 70%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 213, 0, .16), transparent 60%);
}
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(243, 240, 232, .18); border-radius: 50%;
  background: transparent; color: var(--paper); font-size: 22px; line-height: 1; cursor: pointer;
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.modal__close:hover { background: var(--yellow); color: var(--ink); transform: rotate(90deg); }
.modal .label { color: var(--yellow); }
.modal__title {
  position: relative; margin: 0 0 26px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 64px); line-height: .9;
}
.modal__title em, .serif-em {
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  text-transform: none; color: var(--yellow);
}

/* ============ Project form (3-step) ============ */
.pform {
  --pf-fg: #f3f0e8; --pf-muted: rgba(243, 240, 232, .55); --pf-line: rgba(243, 240, 232, .16);
  position: relative; color: var(--pf-fg);
}
.pform__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--pf-muted); }
.pform__progress b { color: var(--yellow); font-weight: 500; }
.pform__bar { flex: 1; height: 3px; border-radius: 3px; background: var(--pf-line); overflow: hidden; }
.pform__bar i { display: block; height: 100%; width: 33.34%; background: var(--yellow); transition: width .5s var(--ease); }
.pform__steps { display: grid; }
.pform__step, .pform__done {
  grid-area: 1 / 1; min-width: 0;
  opacity: 0; visibility: hidden; transform: translateX(28px);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s;
}
.pform__step.is-past { transform: translateX(-28px); }
.pform__step.is-active, .pform__done.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s var(--ease) .1s, transform .55s var(--ease) .1s, visibility 0s;
}
.pform__q {
  margin: 0 0 18px;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 2.6vw, 38px); line-height: .95;
}
.pform__sub { margin: 20px 0 10px; color: var(--pf-muted); }
.pform__sub:first-of-type { margin-top: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span {
  display: inline-flex; align-items: center;
  padding: 10px 16px; border: 1px solid var(--pf-line); border-radius: 999px;
  font-size: 14.5px; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.chip:hover > span { border-color: rgba(243, 240, 232, .5); }
.chip input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
.chip:active > span { transform: scale(.97); }
.chips--big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips--big .chip > span {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%;
  padding: 16px 18px; border-radius: 14px;
}
.chips--big b { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 23px; line-height: 1; }
.chips--big small { font-size: 13.5px; color: var(--pf-muted); }
.chips--big input:checked + span small { color: rgba(10, 10, 10, .7); }

.pform__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 24px 14px 9px;
  font: inherit; font-size: 16px; color: var(--pf-fg);
  background: rgba(243, 240, 232, .04);
  border: 1px solid var(--pf-line); border-radius: 12px;
  resize: vertical; transition: border-color .3s, background-color .3s;
}
.field textarea { min-height: 112px; }
.field > span {
  position: absolute; left: 15px; top: 16px; pointer-events: none;
  font-size: 15px; color: var(--pf-muted);
  transition: top .2s var(--ease), font-size .2s var(--ease), color .2s, letter-spacing .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); background: rgba(243, 240, 232, .07); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span {
  top: 7px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff7a66; }

.pform__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pform__back { padding: 8px 0; border: 0; background: none; color: var(--pf-muted); cursor: pointer; }
.pform__back:hover { color: var(--pf-fg); }
.pform[data-step="1"] .pform__back { visibility: hidden; }
.pform .btn { cursor: pointer; }
.pform__submit { display: none; }
.pform[data-step="3"] .pform__next { display: none; }
.pform[data-step="3"] .pform__submit { display: inline-flex; }
.pform[data-step="done"] .pform__nav,
.pform[data-step="done"] .pform__progress,
.pform[data-step="done"] .pform__error { display: none; }
.pform.is-sending .pform__submit { opacity: .6; pointer-events: none; }
.pform__error { min-height: 1.3em; margin: 12px 0 0; color: #ff9a8a; }
.pform__done { align-self: center; text-align: center; padding: 20px 0; }
.pform__check {
  width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--yellow); color: var(--ink);
}
.pform__check svg { width: 36px; height: 36px; }
.pform__done h3 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 44px; line-height: .95; }
.pform__done p { max-width: 380px; margin: 0 auto 22px; color: var(--pf-muted); }

/* ============ Home: services teaser ============ */
.offer { padding: 120px 0 130px; }
.offer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 var(--gutter); }
.offer__card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px; min-height: 380px;
  padding: 28px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s;
}
.offer__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 213, 0, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.offer__card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.offer__card:hover { transform: translateY(-8px); border-color: rgba(255, 213, 0, .4); }
.offer__card:hover::before { opacity: 1; }
.offer__card:hover::after { transform: scaleX(1); }
.offer__top { display: flex; align-items: flex-start; justify-content: space-between; }
.offer__icon, .svc__icon, .std__icon {
  width: 58px; height: 58px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 14px; color: var(--yellow);
  background: rgba(255, 213, 0, .08); border: 1px solid rgba(255, 213, 0, .22);
  transition: transform .6s var(--ease), background-color .4s, color .4s;
}
.offer__icon svg, .svc__icon svg, .std__icon svg { width: 30px; height: 30px; }
.offer__card:hover .offer__icon { transform: rotate(-8deg) scale(1.08); background: var(--yellow); color: var(--ink); }
.offer__num { color: var(--muted); }
.offer__card h3 {
  margin: auto 0 0;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 3vw, 48px); line-height: .92;
}
.offer__card p { margin: 0; color: var(--muted); }
.offer__go { display: inline-flex; gap: 8px; color: var(--accent); }
.offer__go b { font-weight: 400; transition: transform .4s var(--ease); }
.offer__card:hover .offer__go b { transform: translateX(6px); }

/* ============ Inner page hero ============ */
.phero { position: relative; overflow: clip; isolation: isolate; padding: 170px var(--gutter) 90px; }
.phero__glow {
  position: absolute; z-index: -1; width: 70vw; height: 70vw; right: -22vw; top: -34vw; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 213, 0, .17), transparent 62%);
}
.phero__meta { margin: 0 0 26px; }
.phero__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 11.5vw, 196px); line-height: .84;
}
.phero__title.is-revealed .char-wrap { overflow: visible; }
.phero__lede {
  max-width: 560px; margin: 34px 0 0; padding-left: 18px;
  border-left: 2px solid var(--yellow);
  font-size: 19px; line-height: 1.55; color: rgba(243, 240, 232, .82);
}

/* ============ Work page ============ */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 90px 40px; padding: 30px var(--gutter) 170px; }
.project:nth-child(even) { margin-top: 150px; }
.projects--home { padding-top: 10px; padding-bottom: 20px; }
.project__frame {
  position: relative; display: block; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--ink-3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  transition: border-color .4s, transform .7s var(--ease);
}
.project__frame:hover { border-color: rgba(255, 213, 0, .5); }
.project__bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  background: #171715; border-bottom: 1px solid rgba(243, 240, 232, .08);
}
.project__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 240, 232, .18); }
.project__bar i:first-child { background: var(--yellow); }
.project__bar span {
  margin-left: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--f-mono); font-size: 11px; color: rgba(243, 240, 232, .5);
}
.project__screen { position: relative; display: block; overflow: hidden; aspect-ratio: 1280 / 635; }
.project__screen img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .9s var(--ease);
}
.project__frame:hover .project__screen img { transform: scale(1.04); }
.project__visit {
  position: absolute; right: 16px; bottom: 16px;
  padding: 9px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink);
  opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.project__frame:hover .project__visit { opacity: 1; transform: none; }
.project__info { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 16px; margin-top: 22px; }
.project__idx { grid-row: 1 / 3; color: var(--accent); }
.project__name {
  margin: 0;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 3.6vw, 60px); line-height: .9;
}
.project__cat { margin: 0; color: var(--muted); }

/* ============ CTA band ============ */
.cta-band { padding: 120px var(--gutter); overflow: clip; }
.cta-band__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 9vw, 160px); line-height: .84;
}
.cta-band__title .outline { -webkit-text-stroke-width: clamp(1.2px, .16vw, 2.2px); }
.cta-band__row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.cta-band__row p { max-width: 420px; margin: 0; font-size: 19px; }

/* ============ Services page ============ */
.svcs { padding: 30px 0 120px; }
.svc {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 32px;
  padding: 52px var(--gutter); border-top: 1px solid var(--line);
  scroll-margin-top: 90px; transition: background-color .5s;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:hover { background: rgba(255, 213, 0, .03); }
.svc__head { display: flex; flex-direction: column; gap: 18px; }
.svc__num { color: var(--accent); }
.svc:hover .svc__icon { transform: rotate(-8deg); background: var(--yellow); color: var(--ink); }
.svc__title {
  margin: 0;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 5vw, 84px); line-height: .88;
}
.svc__body p { max-width: 560px; margin: 0 0 24px; font-size: 18px; color: rgba(243, 240, 232, .8); }
.svc__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.svc__list li { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.svc__list li::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; background: var(--yellow); transform: rotate(45deg); }
.svc__link { display: inline-block; margin-top: 24px; color: var(--accent); border-bottom: 1px solid currentColor; }

.stds { padding: 120px 0; }
.stds__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 var(--gutter); }
.std {
  display: flex; flex-direction: column; gap: 12px; min-height: 270px; padding: 30px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .5s var(--ease), background-color .4s, color .4s;
}
.std__icon { margin-bottom: auto; }
.std h3 { margin: 0; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 3.4vw, 54px); line-height: .9; }
.std p { margin: 0; color: var(--muted); }
.std:hover { background: var(--yellow); color: var(--ink); transform: translateY(-6px) rotate(-1deg); }
.std:hover .std__icon { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.std:hover p { color: rgba(10, 10, 10, .7); }

/* ============ FAQ ============ */
.faq { padding: 120px 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; padding-right: var(--gutter); }
.faq__grid .section-head { position: sticky; top: 110px; align-self: start; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: grid; grid-template-columns: 40px 1fr 30px; align-items: center; gap: 14px;
  padding: 26px 0; list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__n { color: var(--accent); }
.faq__q {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 2.2vw, 34px); line-height: 1; transition: color .3s;
}
.faq__item summary:hover .faq__q { color: var(--accent); }
.faq__item summary i {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.faq__item summary i::before, .faq__item summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
}
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq__item[open] summary i { background: var(--yellow); border-color: var(--yellow); color: var(--ink); transform: rotate(180deg); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a p { max-width: 640px; margin: 0; padding: 0 30px 28px 54px; font-size: 17px; color: rgba(243, 240, 232, .78); }

/* ============ About page ============ */
.phero--about { padding-bottom: 70px; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.about-hero__photo { position: relative; justify-self: center; width: min(500px, 100%); margin: 0 clamp(0px, 3vw, 48px); transform: rotate(2.5deg); }
.about-hero__photo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 3 / 4;
  border-radius: 10px; background: var(--yellow); transform: translate(16px, 16px) rotate(-5deg);
}
.about-hero__frame { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.about-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__photo figcaption { position: relative; margin-top: 30px; text-align: right; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px var(--gutter) 100px; border-bottom: 1px solid var(--line); }
.fact b { display: block; margin-bottom: 6px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 6vw, 96px); line-height: 1; color: var(--accent); }
.fact span { color: var(--muted); }
.mini-path { padding: 110px 0; }
.mini-path__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0 var(--gutter); list-style: none; }
.mini-path__list li {
  padding: 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .5s var(--ease), border-color .4s;
}
.mini-path__list li:hover { transform: translateY(-6px); border-color: rgba(255, 213, 0, .45); }
.mini-path__list b {
  display: block; margin-bottom: 20px;
  font-family: var(--f-display); font-weight: 900; font-size: 96px; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 213, 0, .75);
}
.mini-path__list .is-now b { color: var(--yellow); -webkit-text-stroke: 0; }
.mini-path__list h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: .95; }
.mini-path__list p { margin: 0; color: var(--muted); font-size: 15.5px; }
.mini-path__more { display: inline-block; margin: 30px var(--gutter) 0; color: var(--accent); }
.now { padding: 120px 0; }
.now__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding: 0 var(--gutter); }
.now__text p { max-width: 480px; margin: 26px 0 30px; font-size: 18px; color: rgba(243, 240, 232, .8); }
.now__frame { transform: rotate(-1.5deg); }
.now__frame:hover { transform: rotate(0deg) scale(1.01); }

/* ============ Legal ============ */
.legal { max-width: 860px; padding: 10px var(--gutter) 140px; }
.legal h2 { margin: 52px 0 14px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 2.8vw, 40px); line-height: 1; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 17px; color: rgba(243, 240, 232, .8); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ============ Multi-page responsive ============ */
@media (max-width: 1100px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__card { max-width: 680px; }
  .mini-path__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .offer__grid { grid-template-columns: 1fr; }
  .offer__card { min-height: 0; }
  .offer__card h3 { margin-top: 18px; }
  .svc { grid-template-columns: 1fr; gap: 18px; }
  .svc__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .faq__grid { grid-template-columns: 1fr; padding-right: 0; }
  .faq__grid .section-head { position: static; }
  .faq__list { padding: 0 var(--gutter); }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero__photo { justify-self: center; width: min(360px, 76%); margin-top: 20px; }
  .now__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav__burger { display: inline-flex; }
  .phero { padding: 120px var(--gutter) 64px; }
  .phero__title { font-size: 18vw; }
  .phero__lede { font-size: 17px; }
  .offer, .stds, .faq, .now, .mini-path, .words { padding: 80px 0; }
  .work__hint { display: none; }
  .projects { grid-template-columns: 1fr; gap: 56px; padding-bottom: 100px; }
  .project:nth-child(even) { margin-top: 0; }
  .stds__grid { grid-template-columns: 1fr; }
  .std { min-height: 0; }
  .std__icon { margin-bottom: 18px; }
  .svc { padding: 40px var(--gutter); }
  .svc__list { grid-template-columns: 1fr; }
  .faq__a p { padding: 0 0 24px 54px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 64px; }
  .fact b { font-size: 40px; }
  .fact span { display: block; font-size: 10px; line-height: 1.45; }
  .mini-path__list { grid-template-columns: 1fr; }
  .words__grid { grid-template-columns: 1fr; }
  .testi__mark { font-size: 180px; }
  .contact { padding: 88px var(--gutter); }
  .contact--page { padding-top: 120px; }
  .contact__title { font-size: 16vw; }
  .contact__card { padding: 24px 20px; border-radius: 22px; }
  .contact__card .pform__q { font-size: 30px; }
  .contact__card .chips--big .chip > span { padding: 16px 18px; gap: 6px; }
  .contact__card .chips--big b { font-size: 22px; }
  .contact__card .chips--big small { font-size: 14px; }
  .cta-band { padding: 88px var(--gutter); }
  .cta-band__title { font-size: 15vw; }
  .cta-band__row .btn { width: 100%; justify-content: center; }
  .footer { padding-top: 64px; }
  .footer__row { gap: 14px 22px; }
  .footer__row span { width: 100%; }
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel { width: 100%; max-height: 92svh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
}
@media (max-width: 560px) {
  .chips--big, .pform__fields { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .pform__nav .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .footer__status i, .menu__status i { animation: none; }
  .menu, .menu__links a, .modal__panel, .modal__backdrop, .pform__step, .pform__done { transition: none; }
}
