/* main.css: the whole look of the main page. It is also the base for
   the reading pages, which add pages.css on top.

   The idea: a near-black page, warm off-white type, a lot of empty space,
   thin hairlines instead of boxes. Coral is a small accent only: the primary
   button, the two-bar mark, a number here and there, the focus ring. The
   coral console in the canvas is the one loud thing.

   Order of this file:
     1. Fonts and tokens
     2. Reset and base elements
     3. Layout pieces: wrap, section, rail, dock, canvas
     4. Small parts: mark, buttons, label, links, reveal
     5. Loader
     6. Header
     7. First screen
     8. Past work (the pinned cases)
     9. How it works
    10. What you get
    11. Questions
    12. The brief form
    13. Footer
    14. The moments where the page holds ("choreo")
    15. Phone
    16. No script, no WebGL, reduced motion

   Text contrast on the page colour #0c0b10 (WCAG, small text needs 4.5):
     text #EFEAE0 16.3   muted #a29d93 7.3   coral #E75A3B 5.4
     near-black on the coral button 5.4 */


/* ── 1. Fonts and tokens ─────────────────────────────────────────────────── */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The only colours on the page. */
  --bg: #0c0b10;
  --raised: #15141b;
  --raised-2: #1d1c25;
  --line: rgba(239, 234, 224, .12);
  --text: #EFEAE0;
  --muted: #a29d93;
  --coral: #E75A3B;
  --coral-hover: #f08a6b;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-title: clamp(2.5rem, 1.5rem + 2.7vw, 4rem);          /* 62px at 1440, 40px on a phone */
  --fs-h3: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .35vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);   /* page side margin */
  --wrap: 80rem;                           /* widest a row of content gets */
  --header-h: 3.75rem;
  --pad: clamp(5.5rem, 16vh, 11rem);       /* empty room above and below a section */
  --col-gap: clamp(2rem, 5vw, 5rem);
  --radius: 16px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
}
@media (min-width: 48rem) {
  :root { --header-h: 4.25rem; }
}


/* ── 2. Reset and base elements ──────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.015em; }
p { text-wrap: pretty; }

[hidden] { display: none !important; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 60;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }


/* ── 3. Layout pieces ────────────────────────────────────────────────────── */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--pad); }

.title { font-size: var(--fs-title); }

/* A section is a wide column (.main-col: heading and content) and a rail:
   the narrow column that holds the console's dock. On a desktop the rail
   stays in view while the wide column scrolls past. The rail changes side
   from section to section, so the console crosses the page in the empty
   room between two sections, never over the words. */
.rail, .main-col { min-width: 0; }

/* A dock is an empty box. scene.js reads where it is every frame and parks
   the console inside it. It never holds anything itself. */
.dock { width: 100%; pointer-events: none; }

/* The one canvas: fixed to the window, over the page, and it lets every
   click through. 100lvh (the window with the phone's address bar hidden)
   so it does not change size, and redraw, as that bar slides away. */
.stage-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}
/* On a phone, while the console rests in a strip, scene.js moves the canvas
   into that strip's dock: the same size as before, its middle on the dock's
   middle, so the page carries it along as it scrolls. */
.stage-canvas.is-riding {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  max-width: none;       /* a dock is narrower than the window; the canvas is not */
  margin: -50vh 0 0 -50vw;
  margin-top: -50lvh;
}
/* In the first screen it sits corner to corner instead, as it did when it
   was fixed to the window at the top of the page. */
.stage-canvas.is-riding--first { top: 0; left: 0; margin: 0; }
.over-console { cursor: pointer; }


/* ── 4. Small parts ──────────────────────────────────────────────────────── */

.mark { width: 11px; height: 21px; flex: none; }
.mark__bar { fill: var(--text); }
.mark__bar--accent { fill: var(--coral); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--coral); color: var(--bg); }
.btn--secondary { border-color: var(--line); color: var(--text); }
.btn--small { min-height: 2.5rem; padding: 0 1.15rem; font-size: .9375rem; }
.btn[disabled] { opacity: .6; cursor: default; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--coral-hover); }
  .btn--secondary:hover { border-color: var(--muted); }
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead { color: var(--text); font-size: var(--fs-lead); line-height: 1.45; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.arrow-link::after {
  content: '';
  width: .55rem;
  height: .55rem;
  border-top: 2px solid var(--coral);
  border-right: 2px solid var(--coral);
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.arrow-link--out::after { transform: rotate(0deg); }
@media (hover: hover) {
  .arrow-link:hover::after { transform: translateX(.3rem) rotate(45deg); }
  .arrow-link--out:hover::after { transform: translate(.2rem, -.2rem) rotate(0deg); }
}

/* Reveal. Two kinds:
     .rise          parts of the first screen; they come in when <html>
                    gets "is-in" (the loader has left)
     [data-seen]    everything further down; main.js adds "is-seen" the
                    first time the element is on screen
   The transition is written on the shown state only. Hiding is instant, so
   nothing can be caught half hidden on a fast load. */
.js .rise { opacity: 0; transform: translateY(1.1rem); }
.js.is-in .rise {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease, transform 1.1s var(--ease-out);
  transition-delay: calc(640ms + var(--i, 0) * 110ms);
}
.rise--1 { --i: 1; }
.rise--2 { --i: 2; }
.rise--3 { --i: 3; }

.js [data-seen] { opacity: 0; transform: translateY(1.5rem); }
.js [data-seen].is-seen {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease, transform 1.1s var(--ease-out);
  transition-delay: calc(var(--n, 0) * 90ms);
}


/* ── 5. Loader ───────────────────────────────────────────────────────────── */

/* A cover in the page colour with the mark in the middle. It leaves when
   the console is ready. If the script never says so, it leaves by itself. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: loader-failsafe 0s linear 9s forwards;
}
.loader__mark { width: 22px; height: 42px; animation: loader-show .4s ease .25s backwards; }
.loader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
@keyframes loader-show { from { opacity: 0; } }
@keyframes loader-failsafe { to { visibility: hidden; pointer-events: none; } }


/* ── 6. Header ───────────────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}
.nav { display: none; margin-left: auto; gap: 2rem; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s ease;
}
@media (hover: hover) { .nav a:hover { color: var(--text); } }
.header__cta { margin-left: auto; }

/* The phone menu: a round button that opens the page links in a panel
   under the header. It is a <details> element, so it opens and closes
   without any script. On a wide screen the links sit in the header itself
   (.nav) and this is hidden. */
.menu { flex: none; }
.menu__btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu__btn::-webkit-details-marker { display: none; }
/* Two lines that cross into an X while the menu is open. */
.menu__icon { position: relative; width: 1rem; height: .5rem; }
.menu__icon::before, .menu__icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease-out);
}
.menu__icon::before { top: 0; }
.menu__icon::after { bottom: 0; }
.menu[open] .menu__icon::before { transform: translateY(.2rem) rotate(45deg); }
.menu[open] .menu__icon::after { transform: translateY(-.2rem) rotate(-45deg); }
.menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: .5rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -.015em;
  text-decoration: none;
}
.menu__panel a:first-child { border-top: 0; }
.menu__panel a[aria-current="page"] { color: var(--coral); }
@media (max-width: 59.9375rem) {
  .header__inner { gap: .6rem; }
}
/* On the narrowest phones the logo's word, the button and the menu do not
   fit in one row, so the logo is the two-bar mark alone. */
@media (max-width: 23.9375rem) {
  .header .brand__name { display: none; }
}
@media (min-width: 60rem) {
  .menu { display: none; }
}

/* Over the first screen: the mark alone. */
.js .brand__name, .js .nav, .js .header__cta, .js .menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-.4rem);
  transition: opacity .35s ease, transform .5s var(--ease-out), visibility 0s linear .35s;
}
.js .is-past .brand__name, .js .is-past .nav, .js .is-past .header__cta, .js .is-past .menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.is-past.header {
  background: rgba(12, 11, 16, .78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}


/* ── 7. First screen ─────────────────────────────────────────────────────── */

/* Three layers, back to front: the giant word, the canvas (console and
   club objects), the copy. scene.js reads where the word ended up and
   places the 3D things from it, so the picture follows the layout. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-h) 0 1.5rem;
  text-align: center;
  overflow: hidden;
}

/* --word is the font size. "Parallo" set like this is 2.9 times its font
   size wide, so 29vw fills 86% of a phone and 28.8vw fills 85% of a
   desktop window. */
.hero__word {
  --word: 29vw;
  position: relative;   /* scene.js measures the baseline box from here */
  margin-top: 1.25rem;
  font-size: var(--word);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.028em;
  white-space: nowrap;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}
/* One letter. The clip-path is the window the letter rises behind. */
.ltr { display: inline-block; clip-path: inset(-.2em -.08em -.03em -.08em); }
.ltr__in { display: inline-block; will-change: transform; }
.js .ltr__in { transform: translateY(104%); }
.js.is-in .ltr__in {
  transform: none;
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(60ms + var(--i, 0) * 95ms);
}
.ltr--1 { --i: 1; }
.ltr--2 { --i: 2; }
.ltr--3 { --i: 3; }
.ltr--4 { --i: 4; }
.ltr--5 { --i: 5; }
.ltr--6 { --i: 6; }
/* A box with no size on the text baseline; scene.js measures it. */
.hero__baseline { display: inline-block; width: 0; height: 0; }

.hero__slot { flex: 1 1 auto; width: 100%; min-height: 15rem; }

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-inline: var(--gutter);
}
.hero__tag { color: var(--coral); }
.hero__lead { margin-top: .8rem; max-width: 22em; text-wrap: balance; }
.hero__actions { margin-top: 1.6rem; justify-content: center; align-self: stretch; }

@media (min-width: 48rem) {
  .hero { justify-content: center; padding-bottom: clamp(2rem, 7svh, 4.5rem); }
  .hero__word { --word: min(28.8vw, 52svh); margin-top: 0; }
  .hero__slot { display: none; }
  .hero__copy { margin-top: clamp(1.5rem, 4svh, 2.75rem); }
  .hero__lead { max-width: 25em; }
  .hero__actions { align-self: center; }
}


/* ── 8. Past work ───────────────────────────────────────────────────────── */

/* Each client is a .case. Its stage holds a small label and the devices: a
   browser window with a phone over its lower right corner. Inside each is
   a .screen: a strip of screenshots that main.js slides up as the visitor
   scrolls, so the client's site looks scrolled inside its frame.

   --case-w is how wide the devices are: as wide as the page allows, but
   never so wide that their height would not fit in the window. */
.case { padding-block: clamp(3rem, 8vh, 5rem); }
.case__stage {
  --case-w: 100%;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.1rem;
  padding-inline: var(--gutter);
}
.case__label, .case__devices { width: var(--case-w); }
.case__label {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  color: var(--muted);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.case__n { color: var(--coral); letter-spacing: .08em; }
.case__devices { position: relative; padding-bottom: 60%; }
.case__devices .phone { position: absolute; right: 3%; bottom: 0; width: 46%; }

/* A browser window drawn in CSS. */
.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, .55);
}
.browser__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.browser__url { color: var(--muted); font-size: .8125rem; font-weight: 500; letter-spacing: .02em; }

/* A phone drawn in CSS. */
.phone {
  padding: clamp(.25rem, .6vw, .45rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.1rem, 2.4vw, 1.9rem);
  background: var(--raised-2);
  box-shadow: 0 2rem 4.5rem rgba(0, 0, 0, .6);
}
.phone > * { border-radius: clamp(.9rem, 1.9vw, 1.5rem); }

/* A screen that holds several screenshots of one site, stacked in a strip.
   Every screenshot has the site's own nav bar baked into its top edge, so
   each frame is cropped below the nav and one copy of the nav stays pinned
   over the top, the way a sticky nav behaves. Without the script the strip
   never moves and the first frame shows. */
.screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1440 / 900;
  background: var(--raised-2);
}
.screen__nav, .screen__view { position: absolute; left: 0; right: 0; overflow: hidden; }
/* The nav overlaps the view by 1px so no gap can show between them. */
.screen__nav { top: 0; height: calc(7.444% + 1px); z-index: 1; }   /* nav is 67 of 900px */
.screen__view { top: 7.444%; bottom: 0; }
.screen__nav img, .screen__frame img { width: 100%; }
.screen__strip { display: flex; flex-direction: column; }
.screen__frame { flex: none; overflow: hidden; aspect-ratio: 1440 / 833; }
.screen__frame img { margin-top: -4.653%; }                      /* 67 of 1440px wide */

.screen--phone { aspect-ratio: 780 / 1688; }
.screen--phone .screen__nav { height: calc(7.938% + 1px); }      /* nav is 134 of 1688px */
.screen--phone .screen__view { top: 7.938%; bottom: 1px; }
.screen--phone .screen__frame { aspect-ratio: 780 / 1554; }
.screen--phone .screen__frame img { margin-top: -17.179%; }      /* 134 of 780px wide */

/* With motion allowed (main.js adds "pins"), each case is much taller than
   the window and its stage stays put while the visitor scrolls through it:
   the page seems to stop and the site inside the frames scrolls instead.
   The strip glides to its place with a short ease; scrolling itself is
   never touched. */
.pins .case { height: calc(100vh + var(--case-run, 170vh)); height: calc(100svh + var(--case-run, 170vh)); padding-block: 0; }
.pins .case__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-top: var(--header-h);
}
.pins .screen__strip { transition: transform .55s var(--ease-out); will-change: transform; }


/* ── 9. How it works ─────────────────────────────────────────────────────── */

.how__side { z-index: 3; }
.steps { margin-top: 2.5rem; }
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}
.step__n {
  display: block;
  overflow: hidden;      /* the numeral slides up from behind this edge */
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 4.5vw, 7.5rem);
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums;
  transition: color .5s ease;
}
.step h3 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
.step p { margin-top: .9rem; max-width: 30em; }
.step a, .brief__also a, .form a, .brief__noscript a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
.step.is-active .step__n { color: var(--text); }
.step__roll { display: block; }
/* With motion allowed, a step change is an event: the step that is not in
   the middle of the window sits dimmed with its numeral sunk behind the
   edge, and the one that arrives lights up as its numeral rolls up. */
.pins .step { transition: opacity .6s ease; }
.pins .step:not(.is-active) { opacity: .34; }
.pins .step__roll { transition: transform .8s var(--ease-out); }
.pins .step:not(.is-active) .step__roll { transform: translateY(34%); }


/* ── 10. What you get ────────────────────────────────────────────────────── */

/* The plain layout: heading, the four points, the big line. This is what
   shows with reduced motion, without WebGL and on a short window. The
   moving version (the points come out of the console) is further down,
   under "choreo". */
.get { padding-block: var(--pad); }
.get__stage { position: relative; }
.dock--get { display: none; }
.points { display: grid; gap: 0 var(--col-gap); margin-top: 2.5rem; }
.point { padding-block: 1.75rem; border-top: 1px solid var(--line); }
.point p { margin-top: .6rem; }
.pull {
  margin-top: clamp(3rem, 9vh, 5.5rem);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.pull__w { display: inline-block; }


/* ── 11. Questions ───────────────────────────────────────────────────────── */

.qa { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.qa__item { border-top: 1px solid var(--line); }
.qa__q {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  width: 100%;
  padding: 1.6rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.qa__n { color: var(--coral); font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; }
/* A plus that turns into a minus. */
.qa__sign { position: relative; flex: none; align-self: center; width: 1rem; height: 1rem; margin-left: auto; }
.qa__sign::before, .qa__sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--muted);
  transition: transform .45s var(--ease-out);
}
.qa__sign::after { transform: rotate(90deg); }
.qa__q[aria-expanded="true"] .qa__sign::after { transform: rotate(0deg); }
/* The answer opens by growing a grid row from 0 to its own height. */
.qa__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease-out); }
.qa__a > p { min-height: 0; overflow: hidden; max-width: 38em; padding-left: 2.2rem; }
.qa__a > p::after { content: ''; display: block; height: 1.75rem; }
/* main.js puts "is-open" on the open question. Without the script every
   answer simply shows. */
.js .qa__item:not(.is-open) .qa__a {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .5s var(--ease-out), visibility 0s linear .5s;
}
.qa__more { padding: 1rem 0; border-top: 1px solid var(--line); }


/* ── 12. The brief form ──────────────────────────────────────────────────── */

.brief__intro .lead { margin-top: 1.5rem; max-width: 22em; }
.brief__also { margin-top: .9rem; font-size: var(--fs-small); }
.brief__panel { margin-top: 2.5rem; min-width: 0; }
.brief__noscript { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }

.form { display: grid; gap: 2rem; }
.form__row { display: grid; gap: 2rem 1.25rem; margin-top: -1.25rem; }
.form__hint, .field__hint { font-size: var(--fs-small); line-height: 1.5; }
.field { display: grid; gap: .5rem; min-width: 0; }
.field label { color: var(--text); font-size: 1.0625rem; font-weight: 600; }
.field__req, .field__opt {
  margin-left: .5rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 3.5rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color .25s ease, background-color .25s ease;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field textarea.is-short { min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--coral); background-color: var(--raised-2); }
/* The pick-one box. The browser's own arrow is swapped for a small drawn
   one so the box matches the text boxes around it. */
.field select {
  padding-right: 3rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a29d93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: .75rem auto;
  cursor: pointer;
}
.field select:invalid { color: var(--muted); }
.field select option { background: var(--raised); color: var(--text); }
.field__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; }
.field__count { margin-left: auto; font-variant-numeric: tabular-nums; }
.field__err { color: var(--coral-hover); font-size: var(--fs-small); }
.field__err:empty { display: none; }
.field.is-bad input, .field.is-bad textarea, .field.is-bad select { border-color: var(--coral-hover); }
.form__optional { display: grid; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.form__trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.form__check:empty { display: none; }
.form__agree { font-size: var(--fs-small); }
.form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { font-size: var(--fs-small); }
.form__status.is-err { color: var(--coral-hover); }
.brief__done { padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brief__done h3 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.brief__done h3:focus { outline: none; }
.brief__done p { margin-top: 1rem; max-width: 30em; color: var(--text); }


/* ── 13. Footer ──────────────────────────────────────────────────────────── */

.footer { padding-block: clamp(4rem, 12vh, 7rem) 3rem; border-top: 1px solid var(--line); }
.footer__line { margin-top: 1.25rem; max-width: 24em; text-wrap: balance; color: var(--text); font-size: var(--fs-lead); line-height: 1.4; }
.footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin-top: 2rem; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color .25s ease;
}
@media (hover: hover) { .footer__links a:hover { color: var(--text); } }
.footer__small { margin-top: 2.5rem; font-size: .8125rem; }


/* ── Desktop: two columns, and the rails stay in view ────────────────────── */

@media (min-width: 60rem) {
  .questions__grid, .brief__grid {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
  .rail { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .dock--questions { width: 11rem; height: 10rem; margin-left: auto; }
  .dock--brief { height: clamp(13rem, 50vh, 27rem); }

  .qa { margin-top: clamp(2.5rem, 7vh, 4rem); }

  /* The devices: a wide browser window, the phone over its corner. */
  .case__stage { --case-w: min(100%, calc((100vh - var(--header-h) - 5.75rem) * 1.6)); }
  .case__devices { padding: 0 7% 3% 0; }
  .case__devices .phone { right: 0; width: 21%; }

  .how__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
  .how__title { grid-column: 1 / -1; grid-row: 1; }
  .steps { grid-column: 2; grid-row: 2; margin-top: clamp(2.5rem, 7vh, 4rem); }
  .how__side { grid-column: 1; grid-row: 2; margin-top: clamp(2.5rem, 7vh, 4rem); position: sticky; top: calc(50vh - min(26vh, 14.5rem) + var(--header-h) / 2); }
  .dock--how { height: min(52vh, 29rem); }
  .step { grid-template-columns: 9.5rem 1fr; gap: 2rem; min-height: 46vh; padding-block: 3rem; }

  .brief__panel { margin-top: clamp(2.5rem, 7vh, 4rem); }
  .points { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr 1fr; }

  .footer__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--col-gap); align-items: center; }
  .dock--footer { height: 13rem; margin-top: 0; }

  .nav { display: flex; }
  .header__cta { margin-left: 0; }
}


/* ── The moments where the page holds ("choreo") ─────────────────────────────
   main.js adds "choreo" to <html> when motion is allowed and the browser
   can draw the console. Each of these is plain position: sticky inside a
   taller block; main.js reads how far through the block the visitor is
   and moves things by that number. Scrolling is never taken over. */

/* Leaving the first screen: it holds while the club objects are pulled
   into the console, the lid shuts and the console flies off (scene.js). */
/* Not on a phone. A thumb scrolls a page by throwing it, and a first screen
   that stays put while things happen on it reads as a page that is stuck.
   There the first screen scrolls away like any page, and takes the console
   and the club objects with it (scene.js puts the canvas inside it). */
@media (min-width: 48rem) and (min-height: 40rem) {
  .choreo .hero-run { height: 175vh; height: 175svh; }
  .choreo .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
}

/* What you get, desktop: the console in the middle, two points on each
   side of it, and later the big line beside it. */
@media (min-width: 60rem) and (min-height: 40rem) {
  .choreo .get { padding-block: 0; }
  .choreo .get__run { height: 460vh; }
  .choreo .get__stage {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(15rem, 24vw, 22rem) minmax(0, 1fr);
    grid-template-rows: auto 1fr 1fr;
    column-gap: clamp(2rem, 4vw, 4rem);
    height: 100vh;
    height: 100svh;
    padding-block: calc(var(--header-h) + 2rem) 3rem;
  }
  .choreo .get__title { grid-column: 1 / -1; }
  .choreo .dock--get { display: block; grid-column: 2; grid-row: 2 / 4; align-self: center; height: min(50vh, 27rem); }
  .choreo .points { display: contents; }
  .choreo .point { align-self: center; max-width: 23rem; padding: 0; border: 0; }
  .choreo .point h3 { font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.125rem); }
  .choreo .point p { margin-top: .7rem; }
  .choreo .point:nth-child(odd) { grid-column: 1; justify-self: end; text-align: right; }
  .choreo .point:nth-child(even) { grid-column: 3; }
  .choreo .point:nth-child(-n+2) { grid-row: 2; }
  .choreo .point:nth-child(n+3) { grid-row: 3; }
  .choreo .pull {
    position: absolute;
    top: 50%;
    left: 38%;
    right: 0;
    margin: -.6em 0 0;
    translate: 0 -50%;
    font-size: clamp(2.25rem, 1.2rem + 3.2vw, 4.25rem);
  }
}
/* What you get, phone: the console in a strip on top, the points coming out
   beneath it, then the big line in their place. "Tall enough" is not a
   height query here: a phone's window changes height as its address bar
   hides, and the page must not change length with it. main.js measures
   once and sets short-get instead. */
@media (max-width: 59.9375rem) {
  .choreo:not(.short-get) .get { padding-block: 0; }
  .choreo:not(.short-get) .get__run { height: 420vh; height: 420svh; }
  .choreo:not(.short-get) .get__stage {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100svh;
    padding-block: calc(var(--header-h) + 1.25rem) 1rem;
  }
  .choreo:not(.short-get) .get__title { font-size: 2rem; }
  .choreo:not(.short-get) .dock--get { display: block; flex: none; height: 25vh; height: 25svh; margin-top: .5rem; }
  /* One point at a time, all in the same place under the console. */
  .choreo:not(.short-get) .points { position: relative; display: block; flex: 1; margin-top: 2rem; }
  .choreo:not(.short-get) .point { position: absolute; top: 0; left: 0; right: 0; padding: 0; border: 0; }
  .choreo:not(.short-get) .point h3 { font-size: 2rem; }
  .choreo:not(.short-get) .point p { margin-top: .75rem; color: var(--text); font-size: var(--fs-lead); line-height: 1.45; }
  .choreo:not(.short-get) .pull {
    position: absolute;
    top: calc(var(--header-h) + 25vh + 6.5rem);
    top: calc(var(--header-h) + 25svh + 6.5rem);
    left: 0;
    right: 0;
    margin: 0;
    font-size: 2rem;
  }
}
/* main.js sets the opacity and the place of each point and of the line
   while this section holds. Until it has, they are hidden. */
@media (min-width: 60rem) and (min-height: 40rem), (max-width: 59.9375rem) {
  .choreo:not(.short-get) .point, .choreo:not(.short-get) .pull { opacity: 0; will-change: transform, opacity; }
}


/* ── 15. Phone ───────────────────────────────────────────────────────────── */

/* On a phone the console shows in three places only: the first screen, a
   strip that stays above the five steps, and a strip that stays above the
   form. The other docks do not exist here, so the console tucks away and
   the picture stops drawing. The two strips have the page colour behind
   them, so text scrolls under them, never under the console. There is no
   line under a strip: the text fades out as it slides beneath, so the
   console reads as part of the page and not as a box laid on top of it. */
@media (max-width: 59.9375rem) {
  .dock--questions, .dock--footer { display: none; }
  .dock { position: relative; }     /* the canvas is placed inside it (.is-riding) */

  .how__side, .dock--brief {
    position: sticky;
    top: var(--header-h);
    z-index: 3;
    width: auto;
    margin: 1.5rem calc(-1 * var(--gutter)) 0;
    background: var(--bg);
  }
  .how__side::after, .dock--brief::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(var(--bg), transparent);
    pointer-events: none;
  }
  .dock--how { height: 30vh; height: 30svh; }
  .dock--brief { height: 26vh; height: 26svh; }
  .steps { margin-top: 0; }
  .step:first-child { border-top: 0; }
  .step { min-height: 44svh; align-content: start; }

  /* The two columns step aside, so the strip is a child of the section's
     own column: it sits between the intro and the form and stays for the
     whole form. */
  .brief__grid { display: grid; }
  .brief__main, .brief__rail { display: contents; }
  .brief__intro { order: 1; }
  .dock--brief { order: 2; }
  .brief__panel { order: 3; margin-top: 2rem; }
}
@media (max-width: 47.9375rem) {
  .btn { min-height: 3rem; }
  .hero__actions .btn { flex: 1 1 100%; }
}


/* ── 16. No WebGL, reduced motion ────────────────────────────────────────── */

/* Without a 3D picture the docks would be empty boxes: they close up. */
.no-webgl .stage-canvas, .no-webgl .dock, .no-webgl .hero__slot { display: none; }
.no-webgl .hero { justify-content: center; }
.no-webgl .hero__copy { margin-top: 1.75rem; }
/* With no console to sit beside them, the five steps take the full width. */
.no-webgl .how__side { display: none; }
.no-webgl .steps { grid-column: 1 / -1; }

/* Less motion: nothing slides, scales or fades in, the console does not
   travel (scene.js), so only its first dock keeps its room. */
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js [data-seen], .js .ltr__in, .js.is-in .ltr__in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .qa__a, .qa__sign::after, .header,
  .js .brand__name, .js .nav, .js .header__cta, .js .menu, .menu__icon::before, .menu__icon::after { transition: none; }
  .loader__mark { animation: none; }
  .loader.is-leaving { transition: none; }
  .dock, .how__side { display: none; }
  .steps { grid-column: 1 / -1; }
}
