/* Dingbat Labs — candidate B "Stardust"
   Type: Instrument Serif (display, high-contrast, carries the italic voice),
   Geist (text), Geist Mono (labels, data, the lab-notebook layer). */

:root {
  --ink: #05040a;
  --ink-2: #0c0a12;
  --fg: #f3ebe4;
  --mut: #ab9b92;          /* 7.4:1 on ink — body copy */
  --dim: #6f625d;          /* decorative only, never for text that must be read */
  --ember: #ff6a2a;
  --amber: #ffab4d;
  --amber-2: #ffd9a0;
  --line: rgba(255, 217, 160, .13);
  --line-2: rgba(255, 217, 160, .26);

  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: clamp(16px, 4vw, 72px);
  --max: 1760px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 76px;
  /* side inset that lines fixed chrome up with the capped content column */
  --edge: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
}

/* ---------- Lenis (recommended) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: transparent; color: var(--fg);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: italic; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 4px; border-radius: 4px; }
.mono { font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--amber-2); color: var(--ink); border-radius: 999px; font: 500 14px var(--sans); }
.skip:focus { top: 12px; }

main, .foot { position: relative; z-index: 2; }

/* ---------- the stage ---------- */
#stardust {
  position: fixed; left: 0; top: 0; width: 100%;
  /* lvh: the canvas is sized to the largest viewport so a phone's toolbar
     sliding away never forces a WebGL resize mid-scroll */
  height: 100vh; height: 100lvh;
  z-index: 0; display: block; pointer-events: none;
}
.fallback { display: none; }
.no-gl #stardust { display: none; }
.no-gl .fallback { display: block; width: 100%; height: 100%; object-fit: contain; }
.no-gl .hero-anchor .fallback, .no-gl .studio-anchor .fallback {
  -webkit-mask-image: linear-gradient(#000 62%, transparent 96%); mask-image: linear-gradient(#000 62%, transparent 96%);
}
.no-gl .g-orb .fallback { border-radius: 22.4%; box-shadow: 0 30px 120px -30px var(--accent); }
.no-gl body { background: radial-gradient(120% 80% at 70% 20%, #1a0c10, var(--ink) 60%) fixed; }

/* film grain: one tiny tile of SVG noise, stepped so it reads as grain not swim */
.grain {
  position: fixed; inset: -100%; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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 .9 0 0 0 0 .8 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- preloader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--edge) clamp(28px, 6svh, 64px);
}
.loader-row { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); overflow: hidden; }
.loader-count { font: 400 clamp(5.5rem, 17vw, 15rem)/.8 var(--serif); letter-spacing: -.03em; display: flex; align-items: flex-start; }
.loader-num { display: inline-block; min-width: 2.1ch; font-variant-numeric: tabular-nums; }
.loader-pct { font-size: .32em; font-style: italic; color: var(--amber); margin-top: .1em; }
.loader-meta { display: flex; flex-direction: column; gap: 8px; padding-bottom: .8em; color: var(--mut); }
.loader-status { color: var(--amber-2); }
.loader-bar { margin-top: 22px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--amber-2)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--amber-2); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 217, 160, .45);
  display: grid; place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, border-color .4s;
}
.cursor-label { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--amber-2); }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--amber-2); border-color: transparent; }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-label .cursor-dot, .cursor.is-hover .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [tabindex] { cursor: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 45; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--edge);
  background: linear-gradient(180deg, rgba(5, 4, 10, .88) 10%, rgba(5, 4, 10, 0));
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; }
.brand-word { font: 500 12px var(--mono); letter-spacing: .26em; text-transform: uppercase; }
.nav-links ul { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav-links a, .foot-links a {
  position: relative; font: 400 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mut);
  transition: color .4s var(--ease); padding: 6px 0;
}
.nav-links a::after, .foot-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible, .foot-links a:hover { color: var(--fg); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .foot-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.menu-btn { display: none; align-items: center; gap: 12px; padding: 10px 0 10px 12px; font: 400 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.menu-btn-icon { width: 22px; height: 10px; position: relative; }
.menu-btn-icon i { position: absolute; left: 0; right: 0; height: 1px; background: var(--fg); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn-icon i:first-child { top: 0; } .menu-btn-icon i:last-child { top: 9px; }
.menu-open .menu-btn-icon i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn-icon i:last-child { top: 5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 44; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 20px) var(--gut) 40px;
}
.menu[hidden] { display: none; }
.menu ol { display: grid; gap: 4px; }
.menu li { overflow: hidden; }
.menu a { display: flex; align-items: baseline; gap: 16px; font: 400 clamp(3rem, 14vw, 6rem)/1.02 var(--serif); letter-spacing: -.02em; }
.menu a .mono { color: var(--amber); font-size: 11px; transform: translateY(-1.6em); }
.menu a:hover, .menu a:focus-visible { font-style: italic; color: var(--amber-2); }
.menu-foot { margin-top: auto; color: var(--mut); }

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 28px;
  border-radius: 999px; font: 400 12px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn span, .btn i { position: relative; z-index: 1; font-style: normal; display: inline-block; }
.btn-solid { background: var(--amber-2); color: var(--ink); }
.btn-solid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--ember) 0, var(--amber) 45%, var(--amber-2) 75%);
  transform: scale(0); transform-origin: var(--mx, 50%) var(--my, 50%); transition: transform .7s var(--ease);
}
.btn-solid:hover::before, .btn-solid:focus-visible::before { transform: scale(1.4); }
.btn-solid i { transition: transform .6s var(--ease); }
.btn-solid:hover i { transform: translateY(3px); }
.btn-line { border: 1px solid var(--line-2); color: var(--fg); transition: border-color .4s, color .4s; }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--amber-2); color: var(--amber-2); }

/* ---------- section furniture ---------- */
.sec-head { display: flex; align-items: center; gap: 14px; color: var(--mut); margin-bottom: clamp(24px, 3.5vw, 48px); }
.sec-head > span:first-child { color: var(--amber); }
.sec-rule { flex: 0 1 120px; height: 1px; background: var(--line-2); }
.sec-title {
  font: 400 clamp(2.9rem, 7.4vw, 8.6rem)/.92 var(--serif); letter-spacing: -.025em; max-width: 15ch;
}
.sec-title em, .hero-title em, .foot-title em {
  background: linear-gradient(100deg, var(--amber-2) 0%, var(--amber) 45%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em; /* italic overhang would otherwise clip */
}
.lede { color: var(--mut); font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.65; max-width: 44ch; }

/* SplitText line masks: a hair of bottom padding so descenders aren't clipped */
.ln-mask { padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1500px; }
.hero-wrap { position: relative; height: 100%; }
.hero-anchor {
  position: absolute; right: calc(var(--gut) * .5); top: 46%;
  width: min(55%, 108svh); aspect-ratio: var(--dogs-ar, 1600 / 1420); transform: translateY(-50%);
}
.hero-kicker { position: absolute; top: calc(var(--nav-h) + 3svh); left: var(--gut); color: var(--mut); }
.hero-kicker .sep { color: var(--amber); margin: 0 .5em; }
.hero-copy { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(84px, 12svh, 150px); }
.hero-title { font: 400 clamp(3.7rem, 9.4vw, 12rem)/.86 var(--serif); letter-spacing: -.03em; max-width: 9.5ch; }
.hero-title .line { display: block; }
.hero-foot { display: flex; align-items: flex-end; gap: clamp(24px, 4vw, 72px); margin-top: clamp(24px, 3.4svh, 44px); flex-wrap: wrap; }
.hero-sub { max-width: 40ch; color: var(--mut); font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 26px;
  display: flex; justify-content: space-between; gap: 16px; color: var(--mut);
}
.hero-count b { font-weight: 400; color: var(--amber-2); }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero-scroll i { width: 1px; height: 26px; background: linear-gradient(var(--amber), transparent); animation: drip 2.2s var(--ease-io) infinite; transform-origin: 50% 0; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: 50% 0; } 51% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }

/* hidden until the intro reveals them (only when JS will do the revealing) */
.js:not(.reduced) [data-hero], .js:not(.reduced) .hero-title .line { visibility: hidden; }

@media (max-width: 860px) {
  .hero { min-height: 640px; }
  .hero-anchor { left: 50%; right: auto; top: calc(var(--nav-h) + 6svh); width: min(100vw, 72svh); transform: translateX(-50%); }
  .hero-kicker { display: none; }
  .hero-copy { bottom: 74px; }
  .hero-title { font-size: clamp(3.1rem, 15.5vw, 6.5rem); }
  .hero-foot { gap: 22px; }
  .hero-meta .hero-count { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: clamp(22px, 3.4vw, 46px) 0; border-block: 1px solid var(--line); background: rgba(5, 4, 10, .35); }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-track span { font: italic 400 clamp(2.2rem, 5.6vw, 6.4rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; padding: 0 .35em; }
.marquee-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 217, 160, .55); }
.marquee-track b { color: var(--ember); font-size: clamp(1rem, 2vw, 2rem); font-weight: 400; padding: 0 .3em; }

/* ---------- work ---------- */
.work-intro { padding-top: clamp(120px, 22svh, 260px); padding-bottom: clamp(40px, 8svh, 100px); }
.work-lede { display: flex; justify-content: flex-end; margin-top: clamp(28px, 4vw, 56px); }
.work-lede p { max-width: 42ch; color: var(--mut); font-size: clamp(1.02rem, 1.3vw, 1.25rem); line-height: 1.62; }

.index { margin-top: clamp(56px, 9vw, 130px); border-top: 1px solid var(--line); }
.index li { position: relative; }
.index a {
  position: relative; display: grid; align-items: center; gap: 16px;
  grid-template-columns: 4.5rem minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 2rem;
  padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.index a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .7s var(--ease);
}
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); }
.index .i-n { color: var(--mut); }
.index .i-name { font: 400 clamp(2rem, 4vw, 4.2rem)/1 var(--serif); letter-spacing: -.02em; transition: transform .7s var(--ease), color .5s; }
.index a:hover .i-name, .index a:focus-visible .i-name { transform: translateX(14px); font-style: italic; color: var(--accent); }
.index .i-kind { color: var(--mut); }
.index .i-status { color: var(--fg); display: inline-flex; align-items: center; gap: 10px; }
.index .i-arrow { font-family: var(--sans); color: var(--mut); transition: transform .6s var(--ease); justify-self: end; }
.index a:hover .i-arrow { transform: translateY(4px); color: var(--fg); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.4s var(--ease) infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }

.index-preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: 150px; aspect-ratio: 1; border-radius: 22.4%;
  overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.6);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .index a { grid-template-columns: 2.6rem minmax(0, 1fr) auto; row-gap: 6px; }
  .index .i-kind { display: none; }
  .index .i-status { grid-column: 2; font-size: 10.5px; }
  .index .i-arrow { grid-row: 1 / span 2; grid-column: 3; }
}

/* game chapters: a tall track with a sticky stage */
.game { position: relative; height: 250svh; }
.g-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy visual";
  align-items: center; column-gap: clamp(24px, 4vw, 80px);
  max-width: var(--max); margin-inline: auto; padding: var(--nav-h) var(--gut) 0;
}
.g-copy { grid-area: copy; position: relative; z-index: 3; max-width: 44rem; }
.g-idx { color: var(--mut); display: flex; gap: 14px; align-items: center; }
.g-idx b { color: var(--accent); font-weight: 400; }
.g-name { font: 400 clamp(3.4rem, 7vw, 8.6rem)/.84 var(--serif); letter-spacing: -.035em; white-space: nowrap; margin: clamp(18px, 2.4svh, 30px) 0 clamp(16px, 2.2svh, 26px); }
.g-line { font: italic 400 clamp(1.45rem, 2vw, 2.1rem)/1.15 var(--serif); color: color-mix(in srgb, var(--accent) 55%, var(--fg)); max-width: 32ch; text-wrap: balance; }
.g-blurb { margin-top: 18px; color: var(--mut); font-size: clamp(.98rem, 1.05vw, 1.08rem); line-height: 1.65; max-width: 44ch; }
.g-facts { margin-top: clamp(20px, 3svh, 34px); border-top: 1px solid var(--line); }
.g-facts li { display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.g-facts li::before { content: "✦"; color: var(--accent); font-size: 10px; }
.g-status { margin-top: clamp(18px, 2.6svh, 28px); display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); }

.g-orb { grid-area: visual; justify-self: center; align-self: center; width: min(31vw, 54svh); aspect-ratio: 1; position: relative; z-index: 1; }
.g-phones { grid-area: visual; align-self: stretch; position: relative; z-index: 2; height: 100%; pointer-events: none; }
.phone {
  --w: 22svh;
  position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 506 / 1100;
  padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .15);
  background: linear-gradient(150deg, #2c2932, #0e0c12 38%, #1a171f 70%, #0a090d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 calc(var(--w) * .012) #050407,
    0 0 0 1px rgba(0, 0, 0, .7),
    0 60px 90px -40px rgba(0, 0, 0, .95),
    0 0 110px -30px color-mix(in srgb, var(--accent) 55%, transparent);
  will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * .125); }
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: calc(var(--w) * .062); left: 50%; width: 28%; height: calc(var(--w) * .075);
  transform: translateX(-50%); border-radius: 99px; background: #000; z-index: 2;
}
.phone::after { /* glass sheen */
  content: ""; position: absolute; inset: calc(var(--w) * .03); border-radius: calc(var(--w) * .125); z-index: 3;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .03) 26%, transparent 42%);
  pointer-events: none;
}
/* fixed slants in the independent `rotate` property: GSAP owns `transform` for
   the scroll drift, and a slant kept there was reset by the entrance tween */
.phone.p1 { rotate: -4deg; } .phone.p2 { rotate: 3.5deg; } .phone.p3 { rotate: 5deg; } .phone.p4 { rotate: -2.5deg; }
.phone.p1 { --x: 2%;  --y: 24%; --w: 25svh; z-index: 4; }
.phone.p2 { --x: 64%; --y: 6%;  --w: 18svh; z-index: 2; filter: brightness(.62) saturate(.85); }
.phone.p3 { --x: 72%; --y: 50%; --w: 22svh; z-index: 3; }
.phone.p4 { --x: 34%; --y: 66%; --w: 16svh; z-index: 1; filter: brightness(.5) saturate(.8); }

@media (max-width: 900px) {
  .game { height: auto; padding: clamp(60px, 12svh, 120px) 0 clamp(20px, 4svh, 40px); }
  .g-stage { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; align-items: stretch; padding-top: 0; }
  .g-orb { order: 1; width: min(84vw, 52svh); align-self: center; margin-bottom: 18px; }
  .g-copy { order: 2; }
  .g-idx { flex-wrap: wrap; gap: 10px; }
  .g-idx span { white-space: nowrap; }
  .g-idx .sec-rule { flex-basis: 40px; }
  .g-phones {
    order: 3; height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    /* generous block padding: the scroller clips, and the accent glow needs room to fade */
    margin: -40px calc(var(--gut) * -1) -40px; padding: 90px var(--gut) 90px; pointer-events: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .g-phones::-webkit-scrollbar { display: none; }
  .phone, .phone.p1, .phone.p2, .phone.p3, .phone.p4 {
    --w: min(54vw, 260px); position: relative; left: auto; top: auto; flex: none; scroll-snap-align: center; filter: none; rotate: none;
  }
}

/* ---------- studio ---------- */
.studio { padding-top: clamp(100px, 18svh, 220px); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(24px, 5vw, 96px); align-items: start; }
.studio-visual { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.studio-anchor { position: relative; width: min(100%, 118svh); aspect-ratio: var(--dogs-ar, 1600 / 1420); }
.studio-copy { padding: clamp(60px, 16svh, 200px) 0 clamp(60px, 14svh, 160px); }
.studio-copy .lede { margin-top: clamp(24px, 3vw, 40px); }

.tag { position: absolute; display: inline-flex; align-items: center; gap: 10px; color: var(--fg); white-space: nowrap; opacity: 0; transition: opacity .8s var(--ease); }
.tag em { color: var(--amber); font-style: normal; }
.tag i { display: block; width: 36px; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease) .2s; }
.tag-luna { left: 0; top: 14%; }
.tag-zeus { right: 0; top: -9%; flex-direction: row-reverse; }
.tag-zeus i { transform-origin: 100% 50%; }
.studio.is-held .tag { opacity: 1; }
.studio.is-held .tag i { transform: scaleX(1); }

.dogs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 40px); margin-top: clamp(40px, 6vw, 80px); }
.dog { position: relative; padding-top: 22px; outline-offset: 8px; }
.dog::before, .dog::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.dog::before { background: var(--line-2); }
.dog::after { background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease); }
.dog.is-active::after { transform: scaleX(1); }
.dog-kicker { color: var(--amber); }
.dog h3 { font: 400 clamp(2.6rem, 4vw, 4.4rem)/1 var(--serif); letter-spacing: -.02em; margin: 14px 0 12px; transition: color .5s; }
.dog.is-active h3 { font-style: italic; color: var(--amber-2); }
.dog p { color: var(--mut); font-size: .98rem; line-height: 1.62; }
.dog-stats { margin-top: 18px; display: grid; gap: 6px; }
.dog-stats div { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.dog-stats dt { color: var(--mut); }
.dog-stats dd { color: var(--fg); text-align: right; }

.rules { padding-top: clamp(80px, 14svh, 180px); }
.rule {
  position: relative; display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: clamp(26px, 3.2vw, 46px) 0;
}
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform-origin: 0 50%; transform: scaleX(var(--s, 1)); }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule-n { font: italic 400 clamp(1.6rem, 2.4vw, 2.4rem)/1 var(--serif); color: var(--amber); }
.rule h3 { font: 400 clamp(1.8rem, 3.2vw, 3.4rem)/1.02 var(--serif); letter-spacing: -.02em; }
.rule p { color: var(--mut); max-width: 40ch; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding-top: clamp(80px, 14svh, 180px); padding-bottom: clamp(120px, 24svh, 300px); }
.stat { border-top: 1px solid var(--line-2); padding-top: 18px; }
.stat b { display: block; font: 400 clamp(3.4rem, 7vw, 8rem)/.9 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 14px; color: var(--mut); font-size: .95rem; max-width: 22ch; }

@media (max-width: 1100px) { .dogs { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .studio-grid { display: block; }
  .studio-visual { position: relative; height: auto; display: block; }
  .studio-anchor { width: 100%; margin-inline: auto; }
  .tag-zeus { top: -12%; }
  .studio-copy { padding-top: 24px; }
  .rule { grid-template-columns: 44px minmax(0, 1fr); }
  .rule p { grid-column: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- footer ---------- */
.foot { min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) * .6); }
.foot > * { flex: none; }
.foot-grid { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(24px, 5vw, 96px); align-items: center; }
.foot-title { font: 400 clamp(3rem, 6.2vw, 7.6rem)/.9 var(--serif); letter-spacing: -.03em; max-width: 15ch; }
.mail {
  display: inline-flex; align-items: center; gap: .5em; margin-top: clamp(28px, 4.5svh, 56px);
  font: 300 clamp(1.4rem, 3.2vw, 3.2rem)/1.1 var(--sans); letter-spacing: -.02em;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-2); transition: color .5s, border-color .5s;
}
.mail i { font-style: normal; color: var(--amber); transition: transform .6s var(--ease); }
.mail:hover, .mail:focus-visible { color: var(--amber-2); border-color: var(--amber); }
.mail:hover i { transform: translate(4px, -4px); }
.foot-support { margin-top: 28px; color: var(--mut); max-width: 52ch; }
.foot-support a { color: var(--fg); border-bottom: 1px solid var(--line-2); transition: color .4s, border-color .4s; }
.foot-support a:hover { color: var(--amber-2); border-color: var(--amber); }
.foot-anchor { width: min(100%, 42svh, 480px); aspect-ratio: 1; justify-self: center; }

.foot-links { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(28px, 5svh, 64px); padding-block: 22px; border-top: 1px solid var(--line); }
.foot-links ul { display: flex; gap: clamp(16px, 2.6vw, 40px); flex-wrap: wrap; }
.to-top { display: inline-flex; gap: 10px; align-items: center; color: var(--fg); padding: 6px 0; }
.to-top i { font-style: normal; color: var(--amber); }

.wordmark-wrap { width: 100%; overflow: hidden; padding-inline: var(--gut); max-width: calc(var(--max) + 2 * var(--gut)); margin: clamp(10px, 3vw, 40px) auto 0; }
.wordmark {
  font: 400 15vw/.78 var(--serif); letter-spacing: -.035em; white-space: nowrap; text-align: center;
  padding: .08em 0 .24em; color: var(--fg);
}
/* the gradient lives on each letter: a transformed child would not be painted
   through its parent's background-clip, and a vertical ramp is identical per letter */
.wordmark:not(.is-split), .wordmark .ch {
  background: linear-gradient(180deg, var(--fg) 24%, var(--amber) 62%, rgba(255, 106, 42, .25) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* background-clip:text only paints inside the letter's own box, and at
   line-height .78 the g's descender (and the cap tops) hang outside it -- they
   were simply not drawn. Pad each box out to the glyph and pull the layout back. */
.wordmark .ch { display: inline-block; will-change: transform; padding: .1em 0 .24em; margin: -.1em 0 -.24em; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 30px; color: var(--mut); border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .foot { min-height: 0; }
  .foot-grid { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  .foot-anchor { width: min(70vw, 40svh); align-self: center; }
  .mail { font-size: clamp(1.25rem, 6.4vw, 2rem); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .dot, .hero-scroll i { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.no-gl .hero-count { display: none; }
/* no orphaned last words in display type */
.rule h3, .sec-title, .foot-title, .lede, .work-lede p, .g-blurb { text-wrap: balance; }
/* the italic tail of a title is one phrase ("and the moon.", "stable orbit.") --
   never leave its last word alone; SplitText rebuilds the text, so a no-break
   space would not survive, but nowrap does */
.sec-title em, .foot-title em { white-space: nowrap; }
