/* Odd Orcas — colours straight from the logo: lavender ground, black letters, white eye patches,
   soft grey bellies. */
:root {
  --bg: #beabef;          /* logo lavender */
  --lav-deep: #9d88e6;
  --ink: #000;
  --muted: #3a3156;
  --line: rgba(0, 0, 0, .16);
  --mist: #f4f5f7;        /* logo belly grey */
  --night: #07070a;
  --radius: 24px;
  --pad: clamp(16px, 2.4vw, 36px);
  --display: 'Bricolage Grotesque', 'Inter Tight', system-ui, sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped, html.lock { overflow: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.caps { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker span { opacity: .6; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--ink); overflow: hidden; }
.loader.lift { transform: translateY(-100%); transition: transform 1.1s var(--ease-io); pointer-events: none; }
.loader-mark { position: absolute; left: 50%; top: 50%; width: 132px; height: 14px; margin: -7px 0 0 -66px; }
.loader-bar { position: absolute; inset: 0; border-radius: 99px; background: rgba(0, 0, 0, .14); overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.loader-sky { position: absolute; left: -140px; right: -140px; bottom: 100%; height: 240px; overflow: hidden; pointer-events: none; }
.loader-orca { position: absolute; left: 50%; top: 100%; width: 104px; height: 52px; margin: -26px 0 0 -52px; transform: translate(-80px, 60px); }
.drop { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.drop:nth-child(2n) { background: #fff; }
.loader-count {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) - .1em); display: flex;
  font-family: var(--mono); font-size: clamp(56px, 8vw, 128px); font-weight: 400; line-height: 1; letter-spacing: -.04em;
}
.digit { display: inline-block; height: 1em; overflow: hidden; }
.strip { display: flex; flex-direction: column; transition: transform .55s var(--ease); }
.strip span { display: block; height: 1em; line-height: 1em; }

/* ---------- header: logo left, every button in one black dock ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px var(--pad); pointer-events: none;
}
.header > * { pointer-events: auto; }
/* the logo sits on a lavender box (the page colour), so it reads over whatever scrolls under it */
.brand { display: block; padding: 10px 12px; border-radius: 18px; background: var(--bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.brand img { display: block; width: clamp(64px, 5.6vw, 84px); height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
/* keyboard focus: an ink ring on the lavender page, a lavender ring on the black surfaces */
:focus-visible { outline: 2px solid var(--focus, var(--ink)); outline-offset: 3px; }
.header.dark, .dock, .crew-end, .footer, .deck { --focus: var(--bg); }
[tabindex="-1"]:focus { outline: none; }
.dock { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.pill {
  height: 38px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.pill svg { width: 8px; height: 8px; fill: currentColor; }
.pill.light { color: #fff; }
.pill.light:hover, .pill.light:focus-visible { background: rgba(255, 255, 255, .14); }
.pill.lav { background: var(--bg); color: var(--ink); }
.pill.lav:hover, .pill.lav:focus-visible { background: #fff; }
.pill.white { background: #fff; color: var(--ink); }
.pill.white:hover, .pill.white:focus-visible { background: var(--mist); }
.pill.dark { height: 46px; padding: 0 22px; background: var(--ink); color: #fff; }
.pill.dark .dot { background: var(--bg); }
.pill.dark:hover, .pill.dark:focus-visible { transform: translateY(-2px); background: #1c1a26; }
.pill.white svg { width: 9px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header.dark .dock, .header.dark .brand { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }

/* ---------- spinning round badges ---------- */
.badge { position: absolute; display: grid; place-items: center; width: clamp(96px, 9vw, 132px); aspect-ratio: 1; border-radius: 50%; background: var(--bg); color: var(--ink); }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge-ring text { font-family: var(--mono); font-size: 8.4px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; fill: currentColor; }
.badge-icon { width: 18%; height: 18%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.badge-icon.play { fill: currentColor; stroke: none; margin-left: 3%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero {
  --band: clamp(90px, 11vh, 110px); /* the strip above the card: logo, studio line, buttons, and the leaps */
  position: relative; height: 100svh; min-height: 560px; padding: var(--band) var(--pad) 52px; display: flex;
}
/* the studio line, up in the band between the logo and the buttons (it scrolls away with the hero;
   a leaping orca passes in front of it) */
.hero-line {
  position: absolute; z-index: 2; top: 20px; left: 26vw; right: calc(var(--pad) + 350px); max-width: 19em;
  font-family: var(--display); font-size: clamp(17px, 1.9vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em;
}
@media (min-width: 1001px) { .hero { --band: max(clamp(90px, 11vh, 110px), calc(36px + 6.6vw)); } }
/* under the card: a nudge to scroll */
.scroll-hint {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 12px; pointer-events: none;
}
.scroll-hint svg { width: 8px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
/* the band above the card: a leaping orca clears the water into it (js/hero.js) */
.hero-air { position: absolute; left: var(--pad); right: var(--pad); top: 0; height: var(--band); pointer-events: none; z-index: 3; }
.hero-air canvas { display: block; width: 100%; height: 100%; }
.hero-card {
  position: relative; flex: 1; border-radius: 32px; overflow: hidden; color: #fff;
  background:
    radial-gradient(1px 1px at 12% 22%, #fff9, transparent), radial-gradient(1px 1px at 78% 14%, #fff8, transparent),
    radial-gradient(1.5px 1.5px at 66% 72%, #fffa, transparent), radial-gradient(1px 1px at 30% 80%, #fff7, transparent),
    radial-gradient(1px 1px at 90% 58%, #fff8, transparent), radial-gradient(1.5px 1.5px at 46% 34%, #fff6, transparent),
    radial-gradient(1px 1px at 8% 62%, #fff7, transparent), radial-gradient(1px 1px at 56% 8%, #fff8, transparent),
    radial-gradient(90% 80% at 80% 100%, rgba(190, 171, 239, .28) 0%, transparent 60%),
    var(--night);
}
.hero-canvas, .hero-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-title {
  position: absolute; left: clamp(18px, 2vw, 30px); bottom: clamp(14px, 1.6vw, 24px); pointer-events: none;
  font-family: var(--display); font-size: clamp(54px, 9vw, 156px); font-weight: 800; line-height: .86; letter-spacing: -.055em;
}

/* header + hero fade in as the loader lifts */
[data-intro] { transition: opacity 1s var(--ease) .35s, transform 1.2s var(--ease) .35s; }
body.is-loading [data-intro] { opacity: 0; transform: translateY(24px); }
body.is-loading .hero-card { transform: scale(.94); }

/* ---------- shared ---------- */
.fx-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 4; pointer-events: none; }

/* headings whose words slide in from a little apart */
[data-words] .row { display: block; }
[data-words] .ww {
  display: inline-block; opacity: 0; transform: translate3d(var(--dx, 0), .25em, 0);
  transition: transform 1.5s var(--ease), opacity 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms);
}
[data-words].in .ww { opacity: 1; transform: none; }

/* ---------- Spacenauts intro: copy left, image right ---------- */
.intro { position: relative; padding: clamp(110px, 13vw, 200px) var(--pad) clamp(60px, 7vw, 110px); }
.intro .kicker, .intro-title, .intro-copy { position: relative; z-index: 5; }
.intro-title { margin-top: 14px; font-family: var(--display); font-size: clamp(64px, 15.5vw, 270px); font-weight: 800; line-height: .84; letter-spacing: -.06em; }
.intro-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5vw; margin-top: clamp(40px, 5vw, 80px); align-items: start; }
.intro-copy .lead { font-family: var(--display); font-size: clamp(20px, 1.8vw, 28px); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.intro-copy p + p { margin-top: 1.1em; font-size: 16px; line-height: 1.6; color: var(--muted); }
.facts { margin: 30px 0 32px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts span { opacity: .55; }
.intro-media { margin-top: clamp(60px, 8vw, 140px); }
.intro-card { width: 100%; aspect-ratio: 16 / 10; border-radius: 20px; }
body.no-fx .intro-card { background: url(../assets/spacenauts.jpg) center / cover; }

/* ---------- play reel: the card itself is drawn by the WebGL layer; this adds the corner marks ---------- */
.reel { --p: 0; position: relative; height: 170vh; } /* the open reel holds for 70vh of scroll, then the crew comes up */
.reel-sticky { position: sticky; z-index: 5; top: 0; height: 100vh; display: flex; align-items: center; padding: 70px var(--pad) var(--pad); }
.reel-frame { position: relative; width: 100%; height: min(calc((100vw - 2 * var(--pad)) * .5625), calc(100vh - 70px - var(--pad))); color: #fff; }
body.no-fx .reel-frame { border-radius: 24px; background: url(../assets/spacenauts.jpg) center / cover; }
.corner { opacity: calc(var(--p) * var(--p)); pointer-events: none; }
/* each corner is a corner of a whole rounded outline, cut out. (Two sides of a border with one
   rounded corner draw a shape the browser has to build a GPU program for, which stalls the
   first scroll past here on a new visitor's first visit; a plain rounded outline doesn't.) */
.corner { position: absolute; width: clamp(18px, 2vw, 30px); height: clamp(18px, 2vw, 30px); overflow: hidden; }
.corner::before { content: ''; position: absolute; width: 200%; height: 200%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 8px; }
.corner.tl { left: 18px; top: 18px; } .corner.tl::before { left: 0; top: 0; }
.corner.tr { right: 18px; top: 18px; } .corner.tr::before { right: 0; top: 0; }
.corner.bl { left: 18px; bottom: 18px; } .corner.bl::before { left: 0; bottom: 0; }
.corner.br { right: 18px; bottom: 18px; } .corner.br::before { right: 0; bottom: 0; }
.reel-words { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.reel-word {
  position: absolute; top: 50%; translate: 0 -50%; opacity: calc(.2 + .8 * var(--p));
  font-family: var(--display); font-size: clamp(54px, 10vw, 184px); font-weight: 800; line-height: 1; letter-spacing: -.055em;
}
.reel-word.l { right: calc(50% + clamp(66px, 6.5vw, 100px) + 2vw); transform: translateX(calc((1 - var(--p)) * -10vw)); }
.reel-word.r { left: calc(50% + clamp(66px, 6.5vw, 100px) + 2vw); transform: translateX(calc((1 - var(--p)) * 10vw)); }
.reel-btn { left: 50%; top: 50%; translate: -50% -50%; opacity: var(--b, 0); scale: calc(.5 + .5 * var(--b, 0)); }

/* ---------- open roles: grey cards like the logo's bellies ---------- */
.work { padding: clamp(110px, 13vw, 190px) var(--pad) clamp(100px, 10vw, 150px); }
/* the roles come after the crew: they rise over its black ending on rounded corners, like the footer */
.crew + .work { position: relative; z-index: 6; margin-top: -32px; border-radius: 32px 32px 0 0; background: var(--bg); }
.work-head { display: grid; grid-template-columns: 1fr minmax(240px, 360px); align-items: end; gap: 14px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.work-head .kicker { grid-column: 1 / -1; }
.work-title { font-family: var(--display); font-size: clamp(56px, 10vw, 176px); font-weight: 800; line-height: .86; letter-spacing: -.055em; }
.work-note { font-size: 15px; line-height: 1.55; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.job {
  display: block; padding: 10px; border-radius: 26px; background: var(--mist);
  transition: translate .6s var(--ease), rotate .6s var(--ease), box-shadow .6s var(--ease), background .3s;
}
.job:hover, .job:focus-visible { translate: 0 -6px; rotate: -.4deg; box-shadow: 0 24px 50px rgba(40, 20, 90, .22); background: #fff; }
/* after the reveal: keep its fade and rise, and give the hover its own timing */
.job.in { transition: opacity 1s var(--ease), transform 1.2s var(--ease), translate .6s var(--ease), rotate .6s var(--ease), box-shadow .6s var(--ease), background .3s; }
.job-media { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #000; }
.job-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.job:hover .job-media img, .job:focus-visible .job-media img { transform: scale(1.07); }
.job-body { position: relative; padding: 16px 10px 10px; }
.job-meta { display: flex; gap: 14px; color: var(--muted); }
.job-meta span:first-child { color: var(--ink); }
.job-title {
  margin-top: 8px; padding-right: 54px; height: 1.12em; overflow: hidden;
  font-family: var(--display); font-size: clamp(22px, 2vw, 30px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em;
}
.job-title span { display: block; text-shadow: 0 1.12em 0 currentColor; transition: transform .7s var(--ease); }
.job:hover .job-title span, .job:focus-visible .job-title span { transform: translateY(-1.12em); }
.job-go {
  position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; transition: background .3s, color .3s, transform .5s var(--ease);
}
.job-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.job:hover .job-go, .job:focus-visible .job-go { background: var(--bg); color: var(--ink); transform: rotate(45deg); }

/* ---------- meet the crew (pinned sequence) ---------- */
.crew { position: relative; height: 1000vh; }
.crew-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
.crew-sticky.dark { background: #000; }
.crew-layer {
  --top: clamp(92px, 12vh, 132px); --fs: clamp(44px, 6.4vw, 112px);
  position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 100%; padding: var(--top) var(--pad) 0;
  transform-origin: 0 0; will-change: transform;
}
.crew-title { margin-top: 12px; font-family: var(--display); font-size: var(--fs); font-weight: 800; line-height: .88; letter-spacing: -.055em; }
.crew-body { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 4vw; margin-top: clamp(22px, 3vw, 40px); align-items: start; }
.crew-copy { padding-top: 6px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.tablet {
  justify-self: end; width: min(60vw, 900px); padding: 1.4%; border-radius: 30px;
  background: var(--ink); box-shadow: 0 40px 80px rgba(40, 20, 90, .35), inset 0 0 0 1px rgba(190, 171, 239, .4);
}
.tablet.flat { background: none; box-shadow: none; }
.tablet-screen { position: relative; aspect-ratio: var(--aspect, 1.6); border-radius: 18px; overflow: hidden; background: #000; }
.tablet.flat .tablet-screen { border-radius: 0; }
.crew-view { position: absolute; left: 0; top: 0; width: var(--vw, 100vw); height: var(--vh, 100vh); transform-origin: 0 0; }
.crew-view canvas { display: block; width: 100%; height: 100%; }
/* the sequence couldn't run (no WebGL, or a failed load): a short static version of the section */
.crew.no-3d { height: auto; }
.crew.no-3d .crew-sticky { position: relative; height: auto; overflow: visible; }
.crew.no-3d .crew-layer { position: relative; height: auto; transform: none; }
.crew.no-3d .crew-view, .crew.no-3d .crew-fade, .crew.no-3d .crew-line, .crew.no-3d .hello { display: none; }
.crew.no-3d .tablet-screen { background: #000 url(../assets/spacenauts.jpg) center / cover; }
.crew.no-3d .crew-end {
  position: relative; inset: auto; opacity: 1; pointer-events: auto; margin: clamp(48px, 6vw, 90px) var(--pad) 0;
  padding: clamp(60px, 8vw, 110px) 24px clamp(120px, 13vw, 160px); border-radius: 32px; background: var(--ink);
}
.crew-fade { position: absolute; inset: 0; z-index: 4; background: #000; opacity: 0; pointer-events: none; }
/* boop: click the spacenaut */
.crew-sticky.boopable { cursor: pointer; }
.boop, .boop-ring { position: absolute; z-index: 6; pointer-events: none; }
.boop {
  padding: 6px 12px 7px; border-radius: 999px; background: var(--bg); color: #000; white-space: nowrap;
  font-family: var(--display); font-size: clamp(15px, 1.4vw, 22px); font-weight: 800; letter-spacing: -.01em;
  box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0, 0, 0, .35);
  animation: boop-pop 1.1s cubic-bezier(.2, .9, .3, 1.3) forwards;
}
.boop-ring { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; animation: boop-ring .55s ease-out forwards; }
@keyframes boop-pop {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.3) rotate(0deg); }
  18% { opacity: 1; transform: translate(-50%, -150%) scale(1.08) rotate(var(--r)); }
  30% { transform: translate(-50%, -150%) scale(1) rotate(var(--r)); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -230%) scale(.94) rotate(var(--r)); }
}
@keyframes boop-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(5); } }
/* "hello!" over the spacenaut at the end (positioned from script) */
.hello {
  position: absolute; left: 0; top: 0; z-index: 5; opacity: 0; pointer-events: none; transform-origin: 0 100%;
  padding: 8px 16px 10px; border-radius: 18px 18px 18px 4px; background: #fff; color: #000; white-space: nowrap;
  font-family: var(--display); font-size: clamp(18px, 2vw, 30px); font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 0 0 3px #000, 0 14px 30px rgba(0, 0, 0, .3);
}
.crew-line { position: absolute; left: 50%; top: 46%; z-index: 5; color: #fff; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); }
.crew-line p {
  display: flex; justify-content: space-between; gap: .3em; margin: 0 auto; white-space: nowrap;
  font-family: var(--display); font-size: clamp(60px, 9.2vw, 164px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
}
.crew-end {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(104px, 17vh, 180px); text-align: center; color: #fff; opacity: 0; pointer-events: none;
}
.crew-end p { color: var(--bg); }
.crew-end h2 { margin-top: 16px; font-family: var(--display); font-size: clamp(56px, 9vw, 160px); font-weight: 800; line-height: .88; letter-spacing: -.055em; text-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.crew-end .pill { position: absolute; left: 50%; bottom: clamp(24px, 6vh, 56px); translate: -50% 0; }

/* ---------- footer: black sheet with the logo in lavender ---------- */
.footer { position: relative; z-index: 6; margin-top: -32px; padding: clamp(70px, 8vw, 120px) var(--pad) 24px; border-radius: 32px 32px 0 0; background: var(--ink); color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.footer-cta { max-width: 15ch; font-family: var(--display); font-size: clamp(36px, 5vw, 86px); font-weight: 800; line-height: .92; letter-spacing: -.05em; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.playtest-row { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-actions .pill { height: 46px; padding: 0 22px; }
.pill.ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .75); cursor: default; }
/* the playtest list: an email field shaped like the pills beside it */
.playtest { display: flex; flex-wrap: wrap; gap: 10px; }
.playtest[hidden], .playtest-trap { display: none; }
.playtest-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.playtest-email {
  width: clamp(190px, 16vw, 260px); height: 46px; padding: 0 20px; border: 0; border-radius: 999px; outline: none;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: #fff;
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; transition: box-shadow .25s, background .25s;
}
.playtest-email::placeholder { color: rgba(255, 255, 255, .5); }
.playtest-email:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.playtest-email:focus { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--bg), 0 0 0 4px rgba(190, 171, 239, .25); }
.playtest-email:user-invalid { box-shadow: inset 0 0 0 1px #ff7aa2; }
.playtest .pill:disabled { opacity: .6; cursor: progress; }
.pill.done { background: var(--bg); color: var(--ink); cursor: default; }
.playtest-note { max-width: 46ch; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.playtest-note b { color: #fff; font-weight: 600; }
.playtest-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.playtest-note.error { color: #ffb3c8; }
.playtest-note:focus { outline: none; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 30px; align-items: start;
  margin-top: clamp(56px, 7vw, 100px); padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15px; line-height: 1.7;
}
.footer-col .caps { margin-bottom: 10px; color: var(--bg); }
.footer-col a, .footer-col p { display: block; }
.footer-col a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.footer-col a:hover { background-size: 100% 1px; }
.to-top { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); transition: transform .35s var(--ease); }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* the official artwork (black letters, light eyes and bellies) on a lavender panel */
.footer-logo { margin-top: clamp(48px, 6vw, 90px); padding: clamp(18px, 4vw, 56px); border-radius: clamp(18px, 2.4vw, 32px); background: var(--bg); }
.footer-logo img { display: block; width: 100%; height: auto; aspect-ratio: 1224.3 / 777.3; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 24px; color: rgba(255, 255, 255, .5); }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- private deck ---------- */
.gate {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px;
  background: rgba(20, 10, 50, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.gate.open { opacity: 1; visibility: visible; }
.gate-card {
  position: relative; width: min(320px, 100%); padding: 34px 26px 24px; text-align: center;
  background: #fff; border-radius: 26px; box-shadow: 0 30px 80px rgba(20, 10, 50, .3);
  transform: translateY(12px) scale(.98); transition: transform .35s var(--ease);
}
.gate.open .gate-card { transform: none; }
.gate-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.gate-card h2 { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.gate-card p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.gate-card input {
  display: block; width: 160px; margin: 22px auto 0; padding: 12px 0 12px .6em;
  font: inherit; font-size: 26px; letter-spacing: .6em; text-align: center; color: var(--ink);
  background: var(--mist); border: 1px solid transparent; border-radius: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.gate-card input:focus { border-color: var(--lav-deep); box-shadow: 0 0 0 4px rgba(190, 171, 239, .45); }
.gate-card .gate-status { min-height: 1.3em; margin-top: 12px; }
.gate-card .gate-status.bad { color: #c62250; }
.gate-close, .deck-bar button { display: grid; place-items: center; transition: color .2s, background .2s; }
.gate-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.gate-close:hover, .gate-close:focus-visible { background: var(--mist); color: var(--ink); }
.gate-close svg, .deck-bar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.deck { position: fixed; inset: 0; z-index: 95; display: none; background: #000; color: #fff; }
.deck.open { display: block; }
.deck.idle { cursor: none; }
.deck-stage { position: absolute; inset: 0; touch-action: pan-y; }
.deck-stage canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s ease; }
.deck-stage canvas.in { opacity: 1; }
.deck-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .5); pointer-events: none; }
.deck-bar {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 999px;
  background: rgba(20, 18, 30, .85); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .3s;
}
.deck.idle .deck-bar { opacity: 0; pointer-events: none; }
.gate, .deck { overscroll-behavior: contain; }
.deck-bar button { width: 34px; height: 34px; border-radius: 50%; color: rgba(255, 255, 255, .75); }
.deck-bar button:hover, .deck-bar button:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.deck-count { min-width: 64px; text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: rgba(255, 255, 255, .75); }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  /* no room beside the buttons: the line moves into the top of the card */
  .hero-line { top: calc(var(--band) + 18px); left: calc(var(--pad) + clamp(18px, 2vw, 30px)); right: calc(var(--pad) + 18px); max-width: 26em; color: #fff; font-size: 15px; }
}
@media (max-width: 860px) {
  .intro-body { grid-template-columns: 1fr; gap: 36px; }
  .intro-media { margin-top: 0; }
  .work-head { grid-template-columns: 1fr; }
  .crew-body { grid-template-columns: 1fr; }
  .crew-copy { display: none; }
  .tablet { width: 100%; justify-self: stretch; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* the logo box and the three links share a phone's width */
  .brand { padding: 8px 9px; border-radius: 14px; }
  .brand img { width: 54px; }
  .dock { padding: 4px; }
  .dock .pill { height: 34px; padding: 0 11px; font-size: 10px; letter-spacing: .04em; }
  .hero { min-height: 520px; }
  .hero-title { bottom: 120px; }
  .work-grid { grid-template-columns: 1fr; }
  .reel { height: 150vh; }
  .reel-word { font-size: 12.5vw; }
  .reel-word.l { right: calc(50% + 48px); }
  .reel-word.r { left: calc(50% + 48px); }
  .reel-btn { width: 84px; }
  .crew-line p { font-size: 15.2vw; }
  .footer-cols { grid-template-columns: 1fr; }
  .to-top { justify-self: start; }
  .footer-actions, .playtest-row, .playtest { width: 100%; }
  .playtest-email { width: 100%; }
}
@media (max-width: 350px) {
  .brand img { width: 46px; }
  .brand { padding: 7px 8px; }
  .dock .pill { padding: 0 8px; letter-spacing: .02em; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-words] .ww { transition: none; opacity: 1; transform: none; }
  .badge-ring, .scroll-hint svg { animation: none; }
  .loader.lift { transform: none; opacity: 0; transition: opacity .4s; }
  body.is-loading [data-intro], body.is-loading .hero-card { transform: none; }
  .gate-card.shake { animation: none; }
  .boop-ring { display: none; }
}
