/* =========================================================
   VALORON — midnight + volt
   ========================================================= */
:root {
  /* Chocolate truffle, light: cream base */
  --base: #fdfbd4;         /* page background */
  --text: #38240d;         /* dark chocolate text */
  --on-accent: #fdfbd4;    /* text on caramel fills */
  --ink-2: #f5ecc4;        /* deeper cream panels */
  --ink-3: #efe3b3;
  --deep: #38240d;         /* viewport frame */
  --brown: #713600;
  --caramel: #c05800;      /* fills: buttons, cape, marquee */
  --muted: #7a5f44;
  --line: rgba(var(--text-rgb), 0.14);
  --volt: #a84d00;         /* darker caramel for small text on cream (AA) */
  --volt-d: #c05800;
  --cool: #713600;
  --base-rgb: 253, 251, 212;
  --text-rgb: 56, 36, 13;
  --accent-rgb: 192, 88, 0;
  --paper-rgb: 245, 236, 196;
  --paper2-rgb: 240, 229, 184;
  --brown-rgb: 113, 54, 0;
  --sand: #ebcb8b;         /* illustration moon / clouds */
  --sand-2: #d9b98a;
  --video-filter: hue-rotate(-72deg) saturate(1.35) invert(1) hue-rotate(180deg) contrast(1.1);
  --video-blend: multiply;
  --video2-filter: invert(1) sepia(0.6) saturate(1.3) hue-rotate(-12deg);
  --video2-blend: multiply;
  --photo-filter: sepia(0.35) saturate(1.1) contrast(1.02);
  --bg: var(--base);
  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Inter Tight", system-ui, sans-serif;
  --gut: clamp(16px, 2.4vw, 36px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--base); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.8s var(--ease);
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--volt); }
::selection { background: var(--caramel); color: var(--on-accent); }

/* ---------- global chrome ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
.grain {
  position: fixed; inset: -10%; width: 120%; height: 120%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.22 0 0 0 0 0.14 0 0 0 0 0.05 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite; will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.frame {
  position: fixed; inset: 10px; z-index: 95; pointer-events: none; border-radius: 22px;
  box-shadow: 0 0 0 40px var(--deep), inset 0 0 0 1px rgba(var(--text-rgb), 0.07);
}

/* cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6); display: grid; place-items: center;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.cursor__label { font: 600 11px/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity 0.2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: rgba(255, 255, 255, 0.95); }
.cursor.is-view .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; border-color: transparent; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body, a, button, label { cursor: none; } }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--base); z-index: 0; }
.loader__panel--a { top: 0; } .loader__panel--b { bottom: 0; }
.loader__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 18px; }
/* the real V draws itself in gold, then fills (pathLength=1 makes the dash maths size-free) */
.loader__v { width: 120px; height: auto; overflow: visible; }
.loader__v path { fill: url(#loaderGold); fill-opacity: 0; stroke: #f3c977; stroke-width: 9; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__count { font: 200 clamp(72px, 14vw, 180px)/0.85 var(--f-display); letter-spacing: -0.02em; display: flex; align-items: flex-start; }
.loader__count i { font-style: normal; font-size: 0.3em; margin: 0.25em 0 0 0.1em; color: var(--volt); }
.loader__status { font: 600 13px/1 var(--f-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 22px; left: 30px; right: 30px; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  font: 700 17px/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase;
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__mark { height: 26px; width: auto; }
.nav__word { height: 14px; width: auto; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--volt); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { color: var(--on-accent); background: var(--caramel); padding: 9px 14px; border-radius: 99px; }
.nav__cta::after { display: none; }
.sound { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.sound__bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.sound__bars i { width: 2.5px; height: 4px; background: currentColor; border-radius: 1px; transition: height 0.3s; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 0.9s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -0.3s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -0.6s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -0.15s; }
.sound[aria-pressed="true"] { color: var(--volt); }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.scrollhint {
  position: fixed; left: 30px; bottom: 74px; z-index: 100; display: grid; gap: 10px;
  font: 700 14px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.5s;
}
.scrollhint i { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); position: relative; overflow: hidden; }
.scrollhint i::after { content: ""; position: absolute; left: 0; width: 1px; height: 14px; background: var(--volt); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { top: -14px; } to { top: 46px; } }
body.scrolled .scrollhint { opacity: 0 !important; }

/* chapter ruler */
.ruler { position: fixed; left: 30px; right: 30px; bottom: 20px; z-index: 100; height: 34px; }
.ruler__ticks {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px; opacity: 0.45;
  background: repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 9px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ruler__progress { position: absolute; left: 0; bottom: 0; height: 18px; width: 2px; background: var(--volt); box-shadow: 0 0 12px var(--volt); transform: translateX(0); }
.ruler__labels { position: absolute; left: 6%; right: 2%; bottom: 16px; display: flex; justify-content: space-between; list-style: none; }
.ruler__labels a { font: 700 12px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.ruler__labels a.is-active, .ruler__labels a:hover { color: var(--volt); }

/* ---------- shared type ---------- */
.eyebrow { font: 700 14px/1 var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--volt); }
.sec-head { padding: 0 var(--gut); max-width: 1500px; margin: 0 auto 64px; position: relative; z-index: 2; }
.sec-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sec-title { font: 800 clamp(64px, 10vw, 168px)/0.86 var(--f-display); letter-spacing: -0.01em; text-transform: uppercase; margin-top: 18px; }
.sec-title em { text-transform: none; font-size: 0.92em; letter-spacing: 0; }
.sec-title--sm { font-size: clamp(48px, 6.4vw, 104px); }
.reveal-line { display: inline-block; }
.sec-sub { max-width: 380px; color: var(--muted); font-size: 18px; margin-top: 22px; }

/* =========================================================
   1. STAGE (hero → tunnel → hello)
   ========================================================= */
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.stage__hero, .stage__tunnel, .stage__hello { position: absolute; inset: 0; }
.stage__hero { display: grid; justify-items: center; z-index: 2; }
.halo {
  position: absolute; left: 50%; top: 62%; width: 70vmin; height: 70vmin; translate: -50% -50%; border-radius: 50%;
}
.halo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.12) 30%, rgba(var(--brown-rgb), 0.08) 50%, transparent 70%); animation: haloIn 2.4s var(--ease) both, haloPulse 5.2s 2.4s ease-in-out infinite;
}
body.is-loading .halo::before { animation-play-state: paused; }
@keyframes haloIn { from { transform: scale(0.3); opacity: 0; } }
@keyframes haloPulse { 50% { transform: scale(1.08); opacity: 0.8; } }
.eyebrow--hero { position: absolute; top: 13.5vh; color: var(--volt); font-size: clamp(14px, 1.3vw, 19px); }
.eyebrow--hero span { display: inline-block; }
.title-wrap { position: absolute; top: 17vh; left: 50%; translate: -50% 0; }
.title { font: 200 clamp(96px, 15.5vw, 270px)/0.82 var(--f-display); letter-spacing: 0.02em; white-space: nowrap; padding: 0.06em 0.12em 0.02em; }
.title__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.title .ch, .title .ch i { display: inline-block; font-style: normal; }
.hero-tag__in { display: block; }
.select { position: absolute; inset: 0; border: 1px solid var(--volt); pointer-events: none; }
.select .h { position: absolute; width: 9px; height: 9px; background: var(--base); border: 1px solid var(--volt); }
.select .tl { left: -5px; top: -5px; } .select .tr { right: -5px; top: -5px; } .select .bl { left: -5px; bottom: -5px; } .select .br { right: -5px; bottom: -5px; }
.select__dim { position: absolute; right: -2px; top: -30px; font: 700 11px/1 var(--f-body); background: var(--caramel); color: var(--on-accent); padding: 4px 6px; border-radius: 4px; }
/* arc mode (main.js sizeSelection): letters sit on a circle around the mascot's head */
.title-wrap.is-arc { inset: 0; translate: none; }
.title-wrap.is-arc .title { position: absolute; inset: 0; padding: 0; }
.title-wrap.is-arc .title__line { overflow: visible; padding: 0; }
.title-wrap.is-arc .arc { position: absolute; transform-origin: 50% 100%; line-height: 0; }
.title-wrap.is-arc .ch { overflow: hidden; line-height: 0.82; padding: 0.07em 0.015em 0.03em; }
.select--arc { border: 0; }
.select--arc .tl, .select--arc .tr, .select--arc .bl, .select--arc .br { display: none; }
.select__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.select__path path { fill: none; stroke: var(--volt); stroke-width: 1; }
.select .h--end { margin: -5px 0 0 -5px; }
.select--arc .select__dim { right: auto; }
.ghost-cursor { position: absolute; left: -9%; top: 52%; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; }
.ghost-cursor svg { width: 18px; height: 18px; fill: var(--text); stroke: var(--base); stroke-width: 1.4; }
.ghost-cursor span { margin-top: 14px; background: var(--cool); color: #fff; font: 600 11px/1 var(--f-body); padding: 4px 7px; border-radius: 4px; }

.sidewords { position: absolute; top: calc(17vh + clamp(96px, 15.5vw, 270px) * 0.95); left: 0; right: 0; display: flex; justify-content: center; gap: clamp(140px, 24vw, 420px); pointer-events: none; }
.sideword { font: 300 clamp(24px, 2.6vw, 44px)/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sideword--r { color: var(--volt); }

.hero-fig { position: absolute; bottom: -7vh; left: 50%; width: min(54vw, 780px); translate: -50% 0; z-index: 2; cursor: pointer; will-change: transform; }
.hero-fig__in { position: relative; }

/* 2D hero: flat cartoon with bold outlines, coloured from the palette */
.hero2 { display: block; width: 100%; height: auto; overflow: visible; --skin: #d9a37a; --shirt: #f4ecd6; }
.hero2 .o { stroke: var(--deep); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.hero2 .k { fill: var(--deep); }
.hero2 .sk { fill: var(--skin); }
.hero2 .cp { fill: var(--caramel); }
.hero2 .tx { fill: var(--text); }
.hero2 .cr { fill: var(--shirt); }
.hero2 .sut { fill: var(--brown); }
.hero2 .wh { fill: #fffbea; }
.hero2 .ln, .hero2 .curl { fill: none; stroke: var(--deep); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.hero2 .curl { stroke-width: 8; }
.hero2 .lap { fill: none; stroke: rgba(var(--text-rgb), 0.3); stroke-width: 3; stroke-linejoin: round; }
.hero2 .gear { fill: none; stroke: var(--deep); stroke-width: 9; stroke-dasharray: 5.5 5.5; }
.hero2 .emb-glow { opacity: 0; } /* gradient fill, not a blur filter: a filter re-renders at 26x during the dive */
.hero2 .pw { opacity: 0; }
.hero2-arm { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.h2-eyes { transform-box: fill-box; transform-origin: 50% 50%; }
.h2-hand { transform-box: fill-box; transform-origin: 45% 100%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave {
  0%, 55%, 100% { rotate: 0deg; } 10% { rotate: -16deg; } 20% { rotate: 12deg; } 30% { rotate: -12deg; } 40% { rotate: 8deg; } 48% { rotate: -3deg; }
}
.hero-fig:hover .h2-hand { animation-duration: 1.1s; }
/* speed lines streaming below him as he flies up */
.speedlines { position: absolute; left: -70%; right: -70%; top: -10%; height: 110%; pointer-events: none; -webkit-mask: linear-gradient(transparent, #000 20%, #000 70%, transparent); mask: linear-gradient(transparent, #000 20%, #000 70%, transparent); }
.speedlines i { position: absolute; top: 0; width: 2px; height: 22%; border-radius: 2px; background: linear-gradient(transparent, rgba(var(--accent-rgb), 0.7), transparent); animation: speed 1.1s linear infinite; }
.speedlines i:nth-child(1) { left: 6%; animation-delay: -0.2s; } .speedlines i:nth-child(2) { left: 16%; animation-delay: -0.75s; height: 14%; }
.speedlines i:nth-child(3) { left: 25%; animation-delay: -0.45s; height: 18%; } .speedlines i:nth-child(4) { left: 75%; animation-delay: -0.95s; height: 16%; }
.speedlines i:nth-child(5) { left: 84%; animation-delay: -0.1s; } .speedlines i:nth-child(6) { left: 94%; animation-delay: -0.6s; height: 13%; }
@keyframes speed { from { transform: translateY(-40%); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(260%); opacity: 0; } }
/* click power burst */
.hero-fig__in::after { content: ""; position: absolute; left: 50%; top: 32%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid var(--volt); opacity: 0; pointer-events: none; }
.hero-fig.is-burst .hero-fig__in::after { animation: burst 0.8s var(--ease); }
.hero-fig.is-burst .hero2 { animation: punch 0.5s var(--ease); }
@keyframes burst { from { transform: scale(0.4); opacity: 1; } to { transform: scale(14); opacity: 0; } }
@keyframes punch { 30% { transform: translateY(-4%) scale(1.04); } }
/* live 3D hero */
.hero3d { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity 0.8s var(--ease); touch-action: pan-y; }
.hero3d canvas { display: block; width: 100%; height: 100%; }
body.has-3d .hero3d { opacity: 1; }
.hero3d.is-dragging { cursor: grabbing; }
.title-wrap, .sidewords, .eyebrow--hero { z-index: 1; pointer-events: none; }
.moves {
  position: absolute; right: 34px; bottom: 96px; z-index: 3; display: none; flex-direction: column; align-items: flex-end; gap: 7px;
}
body.has-3d .moves { display: flex; }
.moves > * { opacity: 0; translate: 30px 0; transition: opacity 0.8s var(--ease), translate 0.9s var(--ease); }
body.moves-in .moves > * { opacity: 1; translate: 0 0; }
.moves > *:nth-child(2) { transition-delay: 0.06s; } .moves > *:nth-child(3) { transition-delay: 0.12s; }
.moves > *:nth-child(4) { transition-delay: 0.18s; } .moves > *:nth-child(5) { transition-delay: 0.24s; }
.moves > *:nth-child(6) { transition-delay: 0.3s; }
.moves__hint { font: 600 12px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.moves__hint b { color: var(--volt); font-weight: 700; }
.moves button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(var(--paper-rgb), 0.6);
  font: 700 14px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease), opacity 0.8s var(--ease), translate 0.9s var(--ease);
}
.moves button i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--text-rgb), 0.08); font-size: 11px; }
.moves button:hover { border-color: rgba(var(--accent-rgb), 0.5); transform: translateX(-4px); }
.moves button.is-on { background: var(--volt); color: var(--base); border-color: var(--volt); }
.moves button.is-on i { background: rgba(var(--base-rgb), 0.12); }
.cursor.is-hero .cursor__ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; border-color: #fff; border-style: dashed; animation: spinr 8s linear infinite; }
.cursor.is-hero .cursor__label { opacity: 1; color: #fff; animation: spinr 8s linear infinite reverse; }
@keyframes spinr { to { rotate: 360deg; } }
.hero-tag { position: absolute; bottom: 82px; left: 50%; translate: -50% 0; text-align: center; font: 600 clamp(16px, 1.3vw, 19px)/1.25 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; z-index: 3; text-shadow: none; }
.hero-tag__in { padding: 12px 22px 14px; border-radius: 16px; background: rgba(var(--base-rgb), 0.86); border: 1px solid var(--line); }
.hero-tag em { text-transform: none; font-size: 1.15em; letter-spacing: 0; color: var(--text); }

.stage__tunnel { z-index: 1; opacity: 0; display: grid; place-items: center; }
.rings { position: absolute; inset: 0; }
.rings i { position: absolute; left: 50%; top: 50%; width: 100vmax; height: 100vmax; margin: -50vmax 0 0 -50vmax; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), 0.45); }
.rings i:nth-child(3n) { border-color: rgba(var(--text-rgb), 0.25); }
.stage__tunnel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0, transparent 20%, rgba(var(--base-rgb), 0.7) 75%); }

.stage__hello { z-index: 3; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; padding: 0 var(--gut); }
.hello { font: 900 clamp(64px, 11.5vw, 200px)/0.9 var(--f-display); text-transform: uppercase; display: flex; flex-wrap: wrap; justify-content: center; max-width: 92vw; }
.hello { column-gap: 0.26em; }
.hword { display: inline-flex; white-space: nowrap; }
.hw { display: inline-block; opacity: 0; }
.hw.v { color: var(--volt); }
.squiggle { width: min(560px, 70vw); height: 34px; margin-top: 18px; overflow: visible; }
.squiggle path { fill: none; stroke: var(--volt); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.hello__p { max-width: 640px; margin-top: 26px; font: 500 clamp(17px, 1.5vw, 22px)/1.4 var(--f-body); color: rgba(var(--text-rgb), 0.85); opacity: 0; }
.sparkle { position: absolute; color: var(--text); opacity: 0; font-size: 28px; }
.s1 { left: 14%; top: 22%; } .s2 { right: 16%; top: 70%; font-size: 40px; color: var(--volt); } .s3 { left: 20%; bottom: 18%; font-size: 18px; }

/* =========================================================
   2. BUILD
   ========================================================= */
.build { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.build__inner { position: absolute; inset: 0; display: grid; place-items: center; }
.build__eyebrow { position: absolute; top: 16vh; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: 0.06em; color: var(--text); }
.build__words { position: absolute; inset: 0; }
.bw { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.bw__word { font: 900 clamp(90px, 17vw, 300px)/0.85 var(--f-display); letter-spacing: -0.01em; transform: rotate(-5deg); color: var(--text); white-space: nowrap; }
.bw__line { position: absolute; bottom: 15vh; max-width: 520px; text-align: center; font: 600 clamp(17px, 1.5vw, 22px)/1.3 var(--f-display); letter-spacing: 0.02em; padding: 0 var(--gut); }
.widget {
  position: absolute; width: min(340px, 78vw); border-radius: 16px; overflow: hidden; pointer-events: auto;
  background: rgba(var(--paper-rgb), 0.92); border: 1px solid rgba(var(--text-rgb), 0.12);
  box-shadow: 0 30px 80px rgba(var(--text-rgb), 0.193), 0 0 0 1px rgba(var(--text-rgb), 0.14);
  left: 50%; top: 50%; translate: -50% -50%; rotate: 3deg;
}
.widget__bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--f-body); color: var(--muted); }
.widget__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--text-rgb), 0.18); }
.widget__bar span { margin-left: 8px; }
.chat { padding: 14px; display: grid; gap: 8px; font-size: 13px; }
.msg { padding: 8px 11px; border-radius: 12px; max-width: 85%; }
.msg--in { background: var(--ink-3); justify-self: start; }
.msg--out { background: var(--caramel); color: var(--on-accent); justify-self: end; font-weight: 500; }
.msg--out b { animation: blink 1s infinite; font-size: 9px; }
.msg--sys { justify-self: center; max-width: none; font-size: 11px; color: var(--volt); background: rgba(var(--accent-rgb), 0.08); border: 1px dashed rgba(var(--accent-rgb), 0.35); }
@keyframes blink { 50% { opacity: 0; } }
.web { display: flex; align-items: center; gap: 18px; padding: 18px; }
.score { width: 92px; height: 92px; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 9; }
.score__bg { stroke: rgba(var(--text-rgb), 0.08); }
.score__fg { stroke: var(--volt); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; }
.web__meta { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.web__num { font: 800 46px/1 var(--f-display); color: var(--text); }
.web__chip { justify-self: start; font-size: 11px; color: var(--volt); border: 1px solid rgba(var(--accent-rgb), 0.4); border-radius: 99px; padding: 3px 8px; margin-top: 4px; }
.brand { padding: 18px; display: flex; align-items: center; justify-content: space-between; }
.brand__aa { font: 400 80px/1 var(--f-serif); font-style: italic; }
.brand__sw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.brand__sw i { width: 30px; height: 64px; border-radius: 8px; background: var(--c); border: 1px solid var(--line); }
.growth { padding: 16px 18px 18px; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.spark { width: 100%; height: 80px; overflow: visible; }
.spark path { fill: none; stroke: var(--volt); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.6)); }
.growth__num { font: 800 42px/1 var(--f-display); color: var(--text); margin-top: 6px; }
.world { height: 150px; display: grid; place-items: center; perspective: 600px; }
.cube { width: 70px; height: 70px; position: relative; transform-style: preserve-3d; animation: spin 9s linear infinite; }
.cube i { position: absolute; inset: 0; border: 1.5px solid var(--volt); background: rgba(var(--accent-rgb), 0.05); }
.cube i:nth-child(1) { transform: translateZ(35px); } .cube i:nth-child(2) { transform: rotateY(180deg) translateZ(35px); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(35px); } .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(35px); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(35px); } .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(35px); }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }

/* =========================================================
   3. POWERS
   ========================================================= */
.powers { position: relative; padding: 18vh 0 16vh; overflow: hidden; }
.powers__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; z-index: 0; -webkit-mask: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.bento {
  position: relative; z-index: 2; max-width: 1500px; margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(240px, auto); gap: 14px;
}
.card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px;
  background: rgba(var(--paper-rgb), 0.9); border: 1px solid var(--line);
  transition: border-color 0.4s;
  --mx: 50%; --my: 50%;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.16), transparent 60%);
}
.card:hover { border-color: rgba(var(--accent-rgb), 0.45); }
.card:hover::before { opacity: 1; }
.card--xl { grid-column: span 2; grid-row: span 2; justify-content: flex-end; background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.12), rgba(var(--paper-rgb), 0.8) 55%); }
.card--xl h3 { font-size: clamp(42px, 4.6vw, 76px) !important; }
.card--tall { grid-row: span 2; justify-content: flex-end; }
.card--wide { grid-column: span 2; }
.card__n { font: 700 14px/1 var(--f-display); letter-spacing: 0.14em; color: var(--volt); }
.card h3 { font: 800 clamp(28px, 2.4vw, 40px)/0.95 var(--f-display); text-transform: uppercase; margin-top: auto; }
.card p { color: var(--muted); font-size: 15px; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 6px; }
.tags li { font-size: 12px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); }
.card__arrow { position: absolute; top: 22px; right: 24px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.card:hover .card__arrow { background: var(--caramel); color: var(--on-accent); transform: rotate(45deg); }

/* =========================================================
   4. PROTOCOL (horizontal)
   ========================================================= */
.protocol { position: relative; }
.protocol__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.protocol__head { padding: 0 var(--gut); margin-left: max(0px, calc((100vw - 1500px) / 2)); }
.protocol__track { display: flex; gap: 22px; padding: 6vh var(--gut) 0; width: max-content; will-change: transform; }
.step {
  width: min(460px, 80vw); min-height: min(380px, 46vh); border-radius: 22px; padding: 30px; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--paper-rgb), 0.9), rgba(var(--paper2-rgb), 0.9));
  display: flex; flex-direction: column;
}
.step__n { font: 900 clamp(100px, 17vh, 170px)/0.8 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), 0.65); }
.step h3 { font: 800 54px/1 var(--f-display); text-transform: uppercase; margin-top: auto; }
.step p { color: var(--muted); margin-top: 12px; max-width: 36ch; }
.step__time { position: absolute; top: 28px; right: 28px; font: 700 13px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--volt); border: 1px solid rgba(var(--accent-rgb), 0.35); padding: 7px 11px; border-radius: 99px; }
.protocol__end { width: min(420px, 70vw); display: grid; place-items: end center; }
.protocol__end img { width: 100%; filter: drop-shadow(0 0 60px rgba(var(--accent-rgb), 0.15)); }
.protocol__bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 82px; height: 2px; background: var(--line); }
.protocol__bar i { position: absolute; inset: 0; background: var(--volt); transform-origin: left; transform: scaleX(0); }

/* =========================================================
   5. MISSIONS
   ========================================================= */
.missions { position: relative; }
/* desktop: one pinned screen; the rail (heading + cards) slides sideways as you scroll */
.mwork { height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.mwork__rail { display: flex; align-items: center; gap: clamp(40px, 5vw, 90px); padding: 0 var(--gut); will-change: transform; }
.mwork__head { flex: 0 0 auto; width: clamp(300px, 30vw, 460px); }
.mwork__titlebox { position: relative; margin-top: clamp(70px, 9vw, 130px); }
.mwork__title { position: relative; z-index: 1; line-height: 0.86; }
.mwork__title span, .mwork__title em { display: block; }
/* the hero peeks over the heading; his chin hides behind the letters */
.hero2.mwork__peek { position: absolute; z-index: 0; left: 0.2em; top: 0; translate: 0 -91%; width: clamp(110px, 10vw, 160px); height: auto; overflow: hidden; }
.mwork__head .sec-sub { margin-top: 26px; max-width: 34ch; }
.mwork__cards { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); }
.proj { flex: 0 0 auto; width: clamp(320px, 38vw, 600px); display: flex; flex-direction: column; gap: 12px; }
.proj:nth-child(even) { margin-top: 70px; }
.proj:nth-child(3n) { margin-top: -40px; }
.proj__label { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font: 700 14px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; }
.proj__label em { font: 400 15px/1 var(--f-serif); letter-spacing: 0; text-transform: none; color: var(--muted); }
.proj__cover { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1.5px solid rgba(var(--text-rgb), 0.45); background: var(--ink-2); }
.proj__cover img { width: 100%; height: 100%; object-fit: cover; scale: 1.06; transition: scale 0.8s var(--ease); }
.proj:hover .proj__cover img { scale: 1.12; }
.proj__t { font: 400 clamp(26px, 2.5vw, 42px)/1.05 var(--f-serif); letter-spacing: -0.01em; }
.proj__t em { color: var(--volt); }
.proj__d { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 46ch; }
.proj__r { align-self: flex-start; font: 700 15px/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-accent); background: var(--caramel); padding: 7px 12px; border-radius: 99px; }

/* =========================================================
   6. PROOF
   ========================================================= */
.proof { position: relative; padding: 14vh 0 12vh; overflow: hidden; }
.proof__big { text-align: center; display: grid; justify-items: center; padding: 0 var(--gut); }
.bignum { font: 200 clamp(90px, 16vw, 280px)/0.85 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; }
.bignum em { font-size: 0.8em; text-transform: none; }
.squiggle--proof { width: min(420px, 60vw); }
.proof__kicker { margin-top: 18px; font: 700 clamp(20px, 2vw, 30px)/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--volt); }
.stats { max-width: 1500px; margin: 12vh auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 8px; }
.stat b { font: 800 clamp(48px, 5.4vw, 92px)/0.9 var(--f-display); }
.stat span { color: var(--muted); }
.marquee { margin: 13vh 0 10vh; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; transform: rotate(-2deg) scale(1.04); background: var(--caramel); color: var(--on-accent); }
.marquee__track { display: flex; gap: 34px; width: max-content; align-items: center; will-change: transform; }
.marquee span { font: 900 clamp(44px, 5.6vw, 96px)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 40px; }
.quotes { max-width: 1500px; margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: rgba(var(--paper-rgb), 0.6); display: grid; gap: 20px; align-content: space-between; }
.quote p { font: 400 clamp(22px, 1.9vw, 30px)/1.2 var(--f-serif); }
.quote cite { font: 700 13px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-style: normal; }

/* =========================================================
   7. SUMMON
   ========================================================= */
.summon { position: relative; min-height: 100vh; padding: 18vh var(--gut) 14vh; overflow: hidden; display: grid; align-items: center; }
.summon__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; mix-blend-mode: screen; -webkit-mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.summon__glow { position: absolute; right: 5%; top: 30%; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 60%); filter: blur(30px); }
.summon__hero { position: absolute; right: 3vw; top: 20vh; width: min(46vw, 720px); pointer-events: none; filter: drop-shadow(0 0 60px rgba(var(--accent-rgb), 0.12)); }
.summon__content { position: relative; z-index: 2; max-width: 700px; margin-left: max(0px, calc((100vw - 1500px) / 2)); }
.summon__title { font: 900 clamp(84px, 12vw, 210px)/0.84 var(--f-display); text-transform: uppercase; margin-top: 16px; }
.summon__title em { text-transform: none; font-weight: 400; }
.summon__sub { color: rgba(var(--text-rgb), 0.8); font-size: 19px; max-width: 460px; margin: 22px 0 36px; }
.form { display: grid; gap: 18px; padding: 26px; border-radius: 22px; background: rgba(var(--paper-rgb), 0.88); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(var(--text-rgb), 0.22); color: var(--text);
  font: 500 17px/1.4 var(--f-body); padding: 22px 0 10px; outline: none; resize: none; transition: border-color 0.3s;
}
.field span { position: absolute; left: 0; top: 22px; color: var(--muted); font-size: 16px; pointer-events: none; transition: transform 0.35s var(--ease), color 0.3s, font-size 0.35s; transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--volt); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-22px) scale(0.78); color: var(--volt); }
.field.is-bad input { border-color: #ff6a3d; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font: 700 13px/1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 99px; border: 1px solid rgba(var(--text-rgb), 0.2); font-size: 14px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chips input:checked + span { background: var(--caramel); color: var(--on-accent); border-color: var(--caramel); }
.chips input:focus-visible + span { outline: 2px solid var(--volt); outline-offset: 2px; }
.btn {
  position: relative; overflow: hidden; justify-self: start; display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 28px; border-radius: 99px; background: var(--caramel); color: var(--on-accent); transition: color 0.4s;
  font: 800 20px/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase;
}
.btn__fill { position: absolute; inset: 0; background: var(--text); border-radius: 50%; transform: translateY(101%) scale(1.4); transition: transform 0.6s var(--ease), border-radius 0.6s; }
.btn:hover .btn__fill { transform: translateY(0) scale(1.4); border-radius: 0; }
.btn__txt, .btn__arr { position: relative; }
.btn__arr { transition: transform 0.5s var(--ease); }
.btn:hover { color: var(--base); }
.btn:hover .btn__arr { transform: translateX(6px); }
.form__ok { min-height: 1.4em; color: var(--volt); font-weight: 500; }

/* ---------- footer ---------- */
.foot { position: relative; padding: 12vh var(--gut) 90px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot__grid p:not(.eyebrow) { color: var(--muted); margin-top: 14px; }
.foot__mail { display: inline-block; margin-top: 14px; font: 800 clamp(30px, 3.6vw, 58px)/1 var(--f-display); text-transform: uppercase; border-bottom: 2px solid var(--volt); }
.foot__soc { list-style: none; margin-top: 14px; display: grid; gap: 6px; color: var(--muted); }
.foot__soc a:hover { color: var(--volt); }
.foot__clock { font: 700 28px/1 var(--f-display) !important; color: var(--text) !important; }
.foot__word { display: flex; justify-content: space-between; margin: 10vh auto 0; max-width: 1500px; font: 900 clamp(90px, 20.5vw, 360px)/0.78 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(var(--text-rgb), 0.22); }
.foot__word span { display: inline-block; transition: color 0.4s, -webkit-text-stroke-color 0.4s; }
.foot__word span:hover { color: var(--volt); -webkit-text-stroke-color: var(--volt); }
.foot__base { max-width: 1500px; margin: 32px auto 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl { grid-column: span 2; grid-row: span 1; min-height: 360px; }
  .card--tall { grid-row: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .quotes { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .summon__hero { opacity: 0.3; width: 90vw; right: -12vw; bottom: auto; top: 6vh; }
}
@media (max-width: 760px) {
  .frame { inset: 6px; border-radius: 16px; }
  .nav { top: 16px; left: 18px; right: 18px; }
  .nav__links a:not(.nav__cta), .sound__txt { display: none; }
  .nav__links { gap: 14px; }
  .nav__cta { font-size: 14px; }
  .ruler { left: 18px; right: 18px; bottom: 12px; }
  .ruler__labels { display: none; }
  .scrollhint { display: none; }
  .title-wrap { top: 19vh; }
  .eyebrow--hero { top: 14vh; }
  .ghost-cursor { display: none; }
  .sidewords { top: calc(19vh + 118px); gap: 30vw; }
  .sideword { font-size: 20px; }
  .hero-fig { width: 112vw; bottom: 22vh; }
  .hero-tag { bottom: 64px; }
  .moves { right: 50%; translate: 50% 0; bottom: 128px; flex-direction: row; flex-wrap: nowrap; gap: 5px; }
  .moves__hint { position: absolute; bottom: calc(100% + 4px); left: 50%; translate: -50% 0; white-space: nowrap; }
  .moves button { padding: 6px; font-size: 0; gap: 0; }
  .moves button i { width: 26px; height: 26px; font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: span 1; }
  .widget { top: 56%; }
  .bw__line { bottom: 12vh; }
  .build__eyebrow { top: 14vh; }
  .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__base { flex-direction: column; gap: 8px; }
  .protocol__pin { height: auto; padding: 14vh 0; }
  .protocol__track { flex-direction: column; width: auto; }
  .step { width: 100%; min-height: 320px; }
  .protocol__end, .protocol__bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .cube, .scrollhint i::after, .speedlines i, .h2-hand { animation: none; }
}

/* =========================================================
   Chocolate truffle: warm the stock media to match
   ========================================================= */
.powers__video { filter: var(--video-filter); mix-blend-mode: var(--video-blend); }
.summon__video { filter: var(--video2-filter); mix-blend-mode: var(--video2-blend); }
.proj__cover img { filter: var(--photo-filter); }

/* =========================================================
   PHONES: tighter story, slideshows, one-screen protocol
   ========================================================= */
.slider-dots { display: none; }
@media (max-width: 760px) {
  /* "We build": word, card and line each get their own band of the screen */
  .build__eyebrow { top: 12vh; font-size: 22px; }
  .bw { place-items: initial; }
  .bw__word { position: absolute; top: 22vh; left: 0; right: 0; text-align: center; font-size: 15.5vw; }
  .widget { top: 52%; width: min(300px, 82vw); }
  .bw__line { bottom: 13vh; left: 50%; translate: -50% 0; width: 92vw; max-width: none; font-size: 16px; }

  /* shared slideshow track */
  .bento, .mwork__cards {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 4px 16px 10px; margin: 0; max-width: none; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .bento::-webkit-scrollbar, .mwork__cards::-webkit-scrollbar { display: none; }
  .slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .slider-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; background: rgba(var(--text-rgb), 0.22); transition: width 0.35s var(--ease), background 0.35s; }
  .slider-dots button.is-on { width: 26px; background: var(--caramel); }

  /* Powers slides */
  .powers { padding: 12vh 0 10vh; }
  .powers .sec-head { margin-bottom: 28px; }
  .bento .card { flex: 0 0 84%; min-height: 360px; scroll-snap-align: center; justify-content: flex-end; }
  .bento .card--xl h3 { font-size: 40px !important; }

  /* Missions: no pin on phones; heading on top, case studies as a swipe slider */
  .missions { padding: 12vh 0 10vh; }
  .mwork { height: auto; display: block; overflow: visible; }
  .mwork__rail { display: block; padding: 0; }
  .mwork__head { width: auto; padding: 0 16px; margin-bottom: 26px; }
  .mwork__titlebox { margin-top: 84px; }
  .hero2.mwork__peek { width: 110px; }
  .proj, .proj:nth-child(even), .proj:nth-child(3n) { flex: 0 0 84%; width: auto; margin: 0; scroll-snap-align: center; }
  .proj__t { font-size: 28px; }

  /* Mission protocol: compact 2x2 that fits one screen */
  .protocol__pin { height: auto; min-height: 100svh; padding: 78px 16px 70px; justify-content: center; }
  .protocol__head { padding: 0; margin: 0; }
  .protocol__head .sec-title--sm { font-size: 34px; margin-top: 10px; }
  .protocol__track { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0 0; width: auto; }
  .step { width: auto; min-height: 0; padding: 14px 12px 12px; border-radius: 14px; }
  .step__n { font-size: 40px; -webkit-text-stroke-width: 1px; }
  .step h3 { font-size: 22px; margin-top: 8px; }
  .step p { font-size: 12.5px; line-height: 1.38; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .step__time { position: static; align-self: flex-start; order: -1; margin-bottom: 8px; font-size: 10px; padding: 4px 8px; }
}
.only-touch { display: none; }
@media (hover: none) { .only-hover { display: none; } .only-touch { display: inline; } }

/* =========================================================
   PHONES: lighter rendering, tighter rhythm, more slideshows
   ========================================================= */
@media (max-width: 760px) {
  /* the deck (main.js deck): Powers → Summon stack in one spot and hand off by depth;
     Summon stays in flow so the deck keeps its height and scrolls on into the footer */
  .deck > section:not(:last-child) { position: absolute; top: 0; left: 0; right: 0; }

  /* full-screen grain and filtered/blended videos cost a repaint every frame on phone GPUs */
  .grain, .powers__video, .summon__video { display: none; }

  /* tighter section rhythm */
  .powers { padding: 9vh 0 6vh; }
  .powers .sec-head { margin-bottom: 20px; }
  .missions { padding: 8vh 0 6vh; }
  .mwork__titlebox { margin-top: 70px; }
  .mwork__head { margin-bottom: 18px; }
  .proof { padding: 8vh 0 6vh; }
  .stats { margin-top: 6vh; row-gap: 24px; }
  .marquee { margin: 7vh 0 6vh; padding: 14px 0; }
  .marquee span { font-size: 40px; }
  .summon { min-height: 0; padding: 9vh 16px 7vh; }
  .summon__sub { margin: 14px 0 22px; font-size: 17px; }

  /* Powers: equal cards, content from the top */
  .bento .card, .bento .card--xl, .bento .card--tall { min-height: 300px; justify-content: flex-start; padding: 22px; }
  .bento .card h3 { margin-top: 26px; }
  .bento .card--xl h3 { font-size: 34px !important; }
  .bento .card p { font-size: 14.5px; }

  /* testimonials: swipe slider */
  .quotes {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 4px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 84%; scroll-snap-align: center; padding: 22px; }
  .quote p { font-size: 22px; }

  /* footer: email on top, base + time side by side, socials as one wrapped row */
  .foot { padding: 7vh 16px 84px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot__grid > :nth-child(1) { grid-column: 1 / -1; }
  .foot__grid > :nth-child(3) { grid-column: 1 / -1; order: 3; }
  .foot__grid > :nth-child(4) { order: 2; }
  .foot__mail { font-size: 26px; }
  .foot__grid p:not(.eyebrow), .foot__soc { margin-top: 8px; }
  .foot__soc { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .foot__clock { font-size: 22px !important; }
  .foot__word { margin-top: 5vh; font-size: 22.5vw; }
  .foot__base { margin-top: 18px; flex-direction: row; justify-content: space-between; font-size: 13px; }
}


/* =========================================================
   PALETTE CANDIDATES: switch with <html data-palette="...">
   or ?palette=champagne | lime | sky | toffee | celadon
   ========================================================= */
/* 1 · Champagne Mist / Khaki Beige / Grey Olive / Dusty Rose / Rich Mahogany */
html[data-palette="champagne"] {
  --base: #eee0cb; --base-rgb: 238, 224, 203;
  --text: #280003; --text-rgb: 40, 0, 3;
  --on-accent: #280003;
  --caramel: #c2847a; --accent-rgb: 194, 132, 122; --volt-d: #c2847a;
  --volt: #8a4a40;          /* derived: darker dusty rose for small text */
  --brown: #848586; --brown-rgb: 132, 133, 134; --cool: #848586;
  --muted: #545556;         /* derived: darker grey olive */
  --ink-2: #e2d1ba; --ink-3: #d6c6b2; --paper-rgb: 226, 209, 186; --paper2-rgb: 214, 198, 178;
  --deep: #280003; --sand: #baa898; --sand-2: #cdbdae;
  --video-filter: hue-rotate(-82deg) saturate(0.75) invert(1) hue-rotate(180deg) contrast(1.05); --video-blend: multiply;
  --video2-filter: invert(1) sepia(0.35) saturate(0.9) hue-rotate(-20deg); --video2-blend: multiply;
  --photo-filter: sepia(0.25) saturate(0.8);
}
/* 2 · Radioactive Grass / Lime Cream / Goldenrod / Saddle Brown / Dark Coffee (dark base) */
html[data-palette="lime"] {
  --base: #472c1b; --base-rgb: 71, 44, 27;
  --text: #d7f75b; --text-rgb: 215, 247, 91;
  --on-accent: #472c1b;
  --caramel: #d19c1d; --accent-rgb: 209, 156, 29; --volt-d: #d19c1d;
  --volt: #9be564;
  --brown: #7d451b; --brown-rgb: 125, 69, 27; --cool: #7d451b;
  --muted: #b3c06a;         /* derived: lime cream softened into coffee */
  --ink-2: #3a2416; --ink-3: #5a381f; --paper-rgb: 92, 58, 33; --paper2-rgb: 60, 37, 22;
  --deep: #24160c; --sand: #d19c1d; --sand-2: #7d451b;
  --video-filter: saturate(1.25) brightness(1.1); --video-blend: screen;
  --video2-filter: sepia(0.6) saturate(1.8) hue-rotate(25deg); --video2-blend: screen;
  --photo-filter: saturate(1.05);
}
/* 3 · Slate Grey / Pale Sky / Pale Sky 2 / Thistle / Pink Orchid */
html[data-palette="sky"] {
  --base: #ceeaf7; --base-rgb: 206, 234, 247;
  --text: #2e343d; --text-rgb: 46, 52, 61;   /* derived: deep slate (palette has no dark) */
  --on-accent: #2e343d;
  --caramel: #dcb8cb; --accent-rgb: 220, 184, 203; --volt-d: #dcb8cb;
  --volt: #7a4060;          /* derived: deep orchid for small text */
  --brown: #828a95; --brown-rgb: 130, 138, 149; --cool: #828a95;
  --muted: #4a515b;         /* derived: darker slate */
  --ink-2: #ccd7e4; --ink-3: #d5c9df; --paper-rgb: 213, 201, 223; --paper2-rgb: 204, 215, 228;
  --deep: #2e343d; --sand: #dcb8cb; --sand-2: #d5c9df;
  --video-filter: hue-rotate(240deg) saturate(0.55) invert(1) hue-rotate(180deg); --video-blend: multiply;
  --video2-filter: invert(1) saturate(0.3) hue-rotate(180deg); --video2-blend: multiply;
  --photo-filter: saturate(0.8) contrast(1.02);
}
/* 4 · Dim Grey / Silver / Toffee Brown / Camel / Graphite */
html[data-palette="toffee"] {
  --base: #c0b7b1; --base-rgb: 192, 183, 177;
  --text: #433e3f; --text-rgb: 67, 62, 63;
  --on-accent: #433e3f;
  --caramel: #c69c72; --accent-rgb: 198, 156, 114; --volt-d: #c69c72;
  --volt: #5a402b;          /* derived: darker toffee for small text */
  --brown: #8e6e53; --brown-rgb: 142, 110, 83; --cool: #7a7265;
  --muted: #4a453f;         /* derived: darker dim grey */
  --ink-2: #b3a9a2; --ink-3: #a89d95; --paper-rgb: 205, 197, 191; --paper2-rgb: 180, 171, 164;
  --deep: #433e3f; --sand: #c69c72; --sand-2: #8e6e53;
  --video-filter: hue-rotate(-60deg) saturate(0.65) invert(1) hue-rotate(180deg); --video-blend: multiply;
  --video2-filter: invert(1) sepia(0.5) saturate(0.8); --video2-blend: multiply;
  --photo-filter: sepia(0.3) saturate(0.75);
}
/* 5 · Celadon / Light Blue / Lavender Grey / Dusty Mauve / Dusty Lavender */
html[data-palette="celadon"] {
  --base: #b4edd2; --base-rgb: 180, 237, 210;
  --text: #3a2b36; --text-rgb: 58, 43, 54;   /* derived: deep mauve (palette has no dark) */
  --on-accent: #f4fff9;
  --caramel: #87677b; --accent-rgb: 135, 103, 123; --volt-d: #87677b;
  --volt: #5d4154;          /* derived: darker mauve for small text */
  --brown: #8d94ba; --brown-rgb: 141, 148, 186; --cool: #9a7aa0;
  --muted: #434d61;         /* derived: darker lavender grey */
  --ink-2: #a0cfd3; --ink-3: #9ac5c9; --paper-rgb: 160, 207, 211; --paper2-rgb: 172, 224, 206;
  --deep: #3a2b36; --sand: #a0cfd3; --sand-2: #8d94ba;
  --video-filter: hue-rotate(200deg) saturate(0.55) invert(1) hue-rotate(180deg); --video-blend: multiply;
  --video2-filter: invert(1) saturate(0.4) hue-rotate(120deg); --video2-blend: multiply;
  --photo-filter: saturate(0.85) hue-rotate(-8deg);
}
