/* The marketplace's waitlist, drawn like a system sheet: one field of glass
   over a soft wallpaper. Everything on the page is one of three things — the
   wallpaper, a pane, or white type. */

:root {
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.84);
  --text-3: rgba(255, 255, 255, 0.6);
  --red: #ff8a80;
  /* The one colour on the page, and only the mark wears it. */
  --brand: #fcf48c;

  --r-pane: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: #22272d; }
body {
  /* The foot is placed against the bottom of the whole page. */
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 17px/1.35 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
/* On a touch screen: no grey flash on a tap, no double-tap zoom on a control. */
a, button, input { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
p, h1, h2 { margin: 0; }
code { font: 0.9em var(--mono); }
::selection { background: rgba(255, 255, 255, 0.3); }

:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: #fff; color: #111; font-weight: 600; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Wallpaper ──────────────────────────────────────────────────────────── */

/* The background says what this is without a sentence: a wall of real
   collectibles drifting past. The collections, and which of them are public
   domain, are listed in waitlist.js; a card is the art alone, with no name
   and no price, because none of it is for sale here. */
/* It is as tall as the screen is with the browser's address bar away, and
   stays that tall. Sized to the visible area instead, it is laid out and
   drawn again every time the bar slides, and a tablet drops whole layers
   from the frames in between. */
.wall {
  position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden;
  background: linear-gradient(165deg, #3a434d 0%, #262b32 50%, #131619 100%);
}
.wall > i {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.wall > i:nth-child(1) { width: 44vmax; height: 44vmax; left: -14%; top: -22%; background: #8ea5c2; opacity: 0.5; }
.wall > i:nth-child(2) { width: 40vmax; height: 40vmax; right: -12%; bottom: -20%; background: #5d7696; opacity: 0.45; }

.deck {
  position: absolute; inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 40%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.deck.on { opacity: 1; }
.cols {
  --card: 164px;
  --gap: 18px;
  position: absolute; left: 50%; top: 50%;
  display: flex; gap: var(--gap);
  transform: translate(-50%, -50%) rotateX(42deg) rotateZ(-17deg);
  opacity: 0.9;
  will-change: transform;
}
.col { flex: none; width: var(--card); height: 1980px; overflow: hidden; }
.col-track { display: grid; gap: var(--gap); padding-bottom: var(--gap); animation: scroll-up 80s linear infinite; will-change: transform; }
.col:nth-child(even) .col-track { animation-name: scroll-down; }
/* A column that cannot reach this screen is not drawn and does not run. It
   comes after the line above because the two weigh the same, and placed
   before it every other hidden column went on running. */
.col.off { visibility: hidden; }
.col.off .col-track { animation: none; will-change: auto; }
/* The track holds its cards twice, so half of it is one full lap. */
@keyframes scroll-up { to { transform: translate3d(0, -50%, 0); } }
@keyframes scroll-down { from { transform: translate3d(0, -50%, 0); } }

.nft {
  padding: 7px;
  border-radius: 22px;
  background: rgba(30, 34, 40, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 24px 40px -20px rgba(0, 0, 0, 0.75);
}
/* One image holds every piece, twelve across and six down. */
.nft .art { aspect-ratio: 1; border-radius: 16px; background: url("/waitlist-wall.webp") 0 0 / 1200% 600% no-repeat; }
/* Dark where the words are, so the wall is felt around them rather than
   read through them. */
.veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 46% at 50% 50%, rgba(14, 17, 20, 0.94), rgba(14, 17, 20, 0.72) 45%, rgba(14, 17, 20, 0.3) 100%),
    linear-gradient(180deg, rgba(17, 20, 24, 0.7), transparent 22%, transparent 78%, rgba(17, 20, 24, 0.75));
}

@media (max-width: 720px) {
  .cols { --card: 132px; --gap: 14px; transform: translate(-50%, -50%) rotateX(42deg) rotateZ(-17deg); }
  .col { height: 1500px; }
  .nft { padding: 5px; border-radius: 17px; }
  .nft .art { border-radius: 12px; }
  .veil { background:
    radial-gradient(ellipse 110% 42% at 50% 50%, rgba(14, 17, 20, 0.94), rgba(14, 17, 20, 0.7) 50%, rgba(14, 17, 20, 0.3) 100%),
    linear-gradient(180deg, rgba(17, 20, 24, 0.7), transparent 22%, transparent 78%, rgba(17, 20, 24, 0.75)); }
}

.bar, main { position: relative; z-index: 1; }

/* ── Glass ──────────────────────────────────────────────────────────────── */

/* The pane: a blur of what is behind it, lifted a little. The rim is a
   masked gradient, bright where light would catch the top-left and
   bottom-right edges and almost absent between. */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 28px rgba(255, 255, 255, 0.07),
    0 26px 60px -18px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.12);
}
.glass::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.12) 30%, rgba(255, 255, 255, 0.06) 68%, rgba(255, 255, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* A highlight that follows the pointer across a pane, set by waitlist.js. */
.glass::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 255, 255, 0.2), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glass:hover::after { opacity: 1; }

.glass-dark { background: linear-gradient(180deg, rgba(28, 30, 34, 0.62), rgba(28, 30, 34, 0.44)); }

/* ── Bar ────────────────────────────────────────────────────────────────── */

.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) max(clamp(18px, 4vw, 32px), env(safe-area-inset-right)) 0 max(clamp(18px, 4vw, 32px), env(safe-area-inset-left));
}
.logo { display: inline-flex; align-items: center; gap: 10px; padding: 11px 0; margin: -11px 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
/* Wider than it is tall, so it is sized by eye against the name beside it:
   24 wide stands 20.6 high. The shadow is for the moment a pale card passes
   under it. */
.logo svg { width: 24px; height: auto; fill: var(--brand); filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.45)); }

.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px;
  color: var(--text);
  font: 600 15px var(--sans); letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.chip:active { transform: scale(0.96); }

/* ── Stack ──────────────────────────────────────────────────────────────── */

main { flex: 1; overflow-x: clip; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.stack { width: 100%; max-width: 520px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.title { display: grid; justify-items: center; padding: 0 8px 22px; text-align: center; }
h1 { font-size: clamp(38px, 8vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -0.028em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3); }
.lede { text-wrap: balance; margin-top: 12px; color: var(--text-2); font-size: 18px; font-weight: 500; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3); }


/* ── Field ──────────────────────────────────────────────────────────────── */

ui-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }

.field {
  display: flex; align-items: center; gap: 10px;
  height: 68px; padding: 0 10px 0 28px;
  border-radius: 999px;
  transition: box-shadow 0.35s ease;
}
/* Focus is a glow, not a hard ring: the rim brightens and light spreads a
   little way past the glass. */
.field:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 0 28px rgba(255, 255, 255, 0.09),
    0 0 0 5px rgba(255, 255, 255, 0.07),
    0 0 46px rgba(200, 215, 255, 0.18),
    0 26px 60px -18px rgba(0, 0, 0, 0.5);
}
.field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  color: var(--text);
  font: 600 21px var(--sans); letter-spacing: -0.005em;
  caret-color: #fff;
}
.field input::placeholder { color: var(--text-2); opacity: 1; }
/* Chrome paints its own slab over an autofilled input; this holds the glass. */
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }

ui-button { display: block; flex: none; }
.go {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: #fff; color: #15171a;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.25s ease, translate 0.4s var(--ease);
}
.go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
/* Only where there is a pointer to hover with: on a touch screen a hover
   state stays stuck after the tap. */
@media (hover: hover) {
  .go:hover { transform: scale(1.06); }
  .go:hover svg:not(.spinner) { transform: translateX(2px); }
}
.go:active { transform: scale(0.94); }
[data-show="pending"] { display: none; }
[data-pending] [data-show="pending"] { display: block; }
[data-pending] [data-show="idle"] { display: none; }
.spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

ui-field-error { display: block; padding: 0 28px; color: var(--red); font-size: 14px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3); }
ui-field-error[hidden] { display: none; }
/* Until the behaviors load nothing has decided whether an error applies. */
ui-field:not(:defined) ui-field-error { display: none; }
ui-field[data-invalid] .field { box-shadow: inset 0 0 0 1.5px var(--red), 0 26px 60px -18px rgba(0, 0, 0, 0.45); }

.pane { border-radius: var(--r-pane); }

/* ── States ─────────────────────────────────────────────────────────────── */

.state { padding: 30px 26px; text-align: center; outline: 0; }
.state h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.state p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

.joined { display: grid; justify-items: center; padding-top: 34px; }
.tick {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 18px;
  border-radius: 50%;
  background: #fff; color: #15171a;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.1);
  animation: pop 0.5s cubic-bezier(.2, 1.5, .4, 1) both;
}
.tick svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.joined .chip { margin-top: 22px; }

.loading { height: 68px; border-radius: 999px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; } }

/* ── Entrance ───────────────────────────────────────────────────────────── */

.title, .form, .state { animation: arrive 0.8s var(--ease) backwards; }
.form, .state { animation-delay: 0.08s; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

/* ── Toast ──────────────────────────────────────────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60;
  transform: translateX(-50%);
  max-width: min(92vw, 440px);
  padding: 13px 20px;
  border-radius: 22px;
  font-size: 15px; font-weight: 500; text-align: center;
  animation: toast 0.45s var(--ease);
}
.toast.bad { color: var(--red); }
@keyframes toast { from { transform: translate(-50%, 16px) scale(0.96); opacity: 0; } }

@media (max-width: 480px) {
  :root { --r-pane: 28px; }
  .field { height: 62px; padding-left: 22px; }
  .rim { height: 62px; }
  .field input { font-size: 19px; }
  .go { width: 46px; height: 46px; }
}

/* ── Scroll ─────────────────────────────────────────────────────────────── */

/* Below the first screen the page is a short story told by scrolling. Every
   moving rule sits under .motion, which waitlist.js sets only when it is
   running and the visitor has not asked for less motion; without it the same
   sections are an ordinary page with everything already in place.

   Nothing that contains glass is ever faded: an ancestor with opacity below
   one becomes the backdrop a pane blurs, and the pane would lose the wall. */

.s-hero {
  position: relative;
  /* The small viewport: a phone's address bar sliding away must not resize
     the first screen under a thumb. */
  min-height: calc(100vh - 62px);
  min-height: calc(100svh - 62px);
  display: grid; place-items: center;
  padding: 32px 16px 120px;
}
/* What the scroll moves on every frame is given a layer of its own, here and
   on the last screen, so moving it is the compositor's work and the page
   under it is not painted again each time. */
.motion .s-hero .stack { transform: translateY(calc(var(--p, 0) * -90px)) scale(calc(1 - var(--p, 0) * 0.1)); will-change: transform; }
.motion .s-hero .title, .motion .s-hero .field, .motion .s-hero .state { opacity: calc(1 - var(--p, 0) * 1.7); will-change: opacity; }

.cue {
  position: absolute; left: 50%; bottom: 18px;
  display: grid; justify-items: center; gap: 4px;
  padding: 10px 14px;
  transform: translateX(-50%);
  color: var(--text-2);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: calc(1 - var(--p, 0) * 5);
}
.cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); opacity: 0.5; } }

/* How far down the page, as a hairline along the top. */
.meter { display: none; }
.motion .meter {
  display: block;
  position: fixed; inset: 0 0 auto 0; z-index: 25;
  height: 2px;
  background: #fff;
  transform-origin: 0 50%;
  transform: scaleX(var(--page, 0));
  will-change: transform;
  opacity: 0.9;
}

/* The wall is the camera's subject: it tips away and closes in as the page
   leaves the first screen, and settles back for the last one. */
/* waitlist.js writes the wall's transform and this sheet's opacity onto the
   two elements themselves. As variables on the wall they were inherited by
   every card in it, and all of them were restyled on every frame. The sheet
   is one flat colour on its own layer, so darkening it paints nothing. */
.dim {
  position: absolute; inset: 0;
  background: #0e1114;
  opacity: 0;
  will-change: opacity;
}

.jump {
  position: fixed; top: max(16px, env(safe-area-inset-top)); right: max(clamp(18px, 4vw, 32px), env(safe-area-inset-right)); z-index: 20;
  opacity: 0; transform: translateY(-14px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.jump.on { opacity: 1; transform: none; pointer-events: auto; }

/* The page scrolls freely: as slowly or as fast as it is scrolled, and what
   moves with the scroll moves at that pace. Three sections are a screen each,
   in the tall viewport like the wall, so a phone's address bar coming and
   going resizes none of them. */
.motion .story-card, .motion .s-caps, .motion .s-closing { min-height: 100vh; min-height: 100lvh; }

/* Things that simply arrive when they come into view. */
.motion .reveal { opacity: 0; transform: translateY(38px); transition: opacity 0.9s ease, transform 1.1s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }

.kicker { color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.display { font-size: clamp(38px, 6vw, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }

/* One sentence, held in place and read a word at a time at the pace of the
   scroll. It holds for one screen of scrolling, and that much reads all of
   it: scrolled slowly the words come slowly, scrolled fast they come fast. */
.s-statement { padding: 14vh clamp(20px, 6vw, 80px); }
.motion .s-statement { height: 200vh; padding-top: 0; padding-bottom: 0; }
.statement-pin { display: grid; place-items: center; }
.motion .statement-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.statement {
  max-width: 1120px;
  font-size: clamp(30px, 4.9vw, 70px); line-height: 1.1; font-weight: 700; letter-spacing: -0.032em;
  text-align: center; text-wrap: balance;
}
.motion .statement .w {
  display: inline-block;
  opacity: clamp(0.13, calc(var(--p, 1) * var(--n, 1) * 1.3 - var(--i, 0)), 1);
  transform: translateY(calc((1 - clamp(0, calc(var(--p, 1) * var(--n, 1) * 1.3 - var(--i, 0)), 1)) * 0.16em));
  filter: blur(calc((1 - clamp(0, calc(var(--p, 1) * var(--n, 1) * 1.3 - var(--i, 0)), 1)) * 3px));
}

/* Three small drawings set into the sentence, each after the word it draws:
   the assets, the sum, and the work. They are the height of a capital
   and sit on the line like one, so the lines keep their spacing. Each is lit
   in its turn with the words, and grows into its place as it is. */
.statement .tie { white-space: nowrap; }
.statement .ico {
  display: inline-flex; align-items: center; justify-content: center;
  height: 0.8em; min-width: 0.8em;
  border-radius: 0.24em;
  vertical-align: -0.05em;
}
.statement .ico svg { display: block; height: 66%; width: auto; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.motion .statement .ico.w {
  display: inline-flex;
  transform:
    translateY(calc((1 - clamp(0, calc(var(--p, 1) * var(--n, 1) * 1.3 - var(--i, 0)), 1)) * 0.16em))
    scale(calc(0.62 + clamp(0, calc(var(--p, 1) * var(--n, 1) * 1.3 - var(--i, 0)), 1) * 0.38))
    rotate(calc((1 - clamp(0, calc(var(--p, 1) * var(--n, 1) * 1.3 - var(--i, 0)), 1)) * -10deg));
}
/* A white pill, as a bank's sign would be. */
.ico-assets { width: 1.42em; border-radius: 999px; background: #fff; color: #1b1e23; }
/* Three pieces from the wall, overlapping, each ringed in the page's dark. */
.ico-art { padding: 0 0.05em; }
.ico-art i { flex: none; width: 0.8em; height: 0.8em; border-radius: 0.24em; background: url("/waitlist-wall.webp") 0 0 / 1200% 600% no-repeat; box-shadow: 0 0 0 0.05em #14171b; }
.ico-art i + i { margin-left: -0.26em; }
.ico-art i:nth-child(1) { transform: rotate(-7deg); }
.ico-art i:nth-child(3) { transform: rotate(7deg); }
/* The same pill in outline, for the sum: a stack of coins. */
.ico-sum { width: 1.42em; border-radius: 999px; box-shadow: inset 0 0 0 0.05em rgba(255, 255, 255, 0.85); }

/* Two rows of the art itself, large, sliding against each other as the page
   moves and leaning into the speed of the scroll. No words: it is the wall
   seen close. The rows run level and edge to edge. Tilted, their ends rose
   into the title on one side and sank into the band on the other. */
.s-ribbon { display: grid; gap: clamp(12px, 1.6vw, 24px); overflow: hidden; }
/* Twenty-four cards a row and a sixth of the row to travel, so twenty stay
   on screen at the far end of the slide and no window sees a row run out. */
.ribbon-row {
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  width: max-content;
  transform: translate3d(calc(var(--p, 0.5) * -16%), 0, 0) skewX(calc(var(--v, 0) * -1deg));
  will-change: transform;
}
.ribbon-back { transform: translate3d(calc(-16% + var(--p, 0.5) * 16%), 0, 0) skewX(calc(var(--v, 0) * -1deg)); }
/* Sized by the height as well as the width, so two rows, the title above
   them and the band below all fit one screen. */
.ribbon-row .nft { flex: none; width: min(clamp(150px, 18vw, 270px), 19vh); padding: clamp(6px, 0.6vw, 9px); border-radius: clamp(20px, 2vw, 30px); }
.ribbon-row .nft .art { border-radius: clamp(15px, 1.5vw, 22px); }

/* A sale, told on one stage. The page holds still while the scroll runs the
   sale forward: the piece is listed, offers stack beside it, and it settles.
   Three numbers drive it, each 0 to 1 — --a listed, --b offers, --c settled —
   and every rule defaults them to 1, so without .motion the three steps are a
   plain list and the stage shows its last frame. */
/* The sale's title card: its name, the art seen close, and the four verbs
   the stage below acts out. */
.story-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(20px, 4.5vh, 56px); padding: 9vh 0 7vh; overflow: hidden; }
.story-head { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.story-head .kicker { margin-bottom: 18px; }
/* The title gives way to a short window as the rows and the band do. */
.story-head .display { font-size: min(clamp(38px, 6vw, 88px), 11vh); }

.scene-pin {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center;
  gap: clamp(24px, 4vw, 72px);
  max-width: 1280px; margin: 0 auto; padding: 6vh clamp(20px, 5vw, 56px);
}
.motion .scene { height: 380vh; }
.motion .scene-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 0; padding-bottom: 0; }

.steps { display: grid; gap: 44px; margin: 0; padding: 0; list-style: none; }
.step-no { display: block; margin-bottom: 14px; color: var(--text-3); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.step h3 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.step p { max-width: 32ch; margin-top: 16px; color: var(--text-2); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }

/* Pinned, the three steps share one place and take turns in it: the one that
   has been read leaves upward, the next comes up from below. */
.motion .steps { gap: 0; }
.motion .step { grid-area: 1 / 1; }
.motion .step h3 { font-size: clamp(40px, 5.6vw, 88px); line-height: 0.96; letter-spacing: -0.042em; }
.motion .step p { margin-top: 24px; }
.motion .step > * {
  opacity: 0; transform: translateY(46px); filter: blur(8px);
  transition: opacity 0.45s ease, transform 0.85s var(--ease), filter 0.5s ease;
}
.motion .step > :nth-child(2) { transition-delay: 0.05s; }
.motion .step > :nth-child(3) { transition-delay: 0.1s; }
.motion .scene[data-step="0"] .step:nth-child(1) > *,
.motion .scene[data-step="1"] .step:nth-child(2) > *,
.motion .scene[data-step="2"] .step:nth-child(3) > * { opacity: 1; transform: none; filter: none; }
.motion .scene[data-step="1"] .step:nth-child(1) > *,
.motion .scene[data-step="2"] .step:nth-child(-n+2) > * { transform: translateY(-46px); }

.segs { display: none; }
.motion .segs { display: flex; gap: 8px; margin-top: 44px; }
.segs i { position: relative; width: 56px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.segs i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.segs i:nth-child(1)::after { --f: var(--f1, 0); }
.segs i:nth-child(2)::after { --f: var(--f2, 0); }
.segs i:nth-child(3)::after { --f: var(--f3, 0); }

.tag {
  display: inline-flex; align-items: center;
  height: 38px; margin: 0; padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 15px; font-weight: 600; white-space: nowrap;
}
.tag-solid { background: #fff; color: #15171a; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.7); }

/* The stage keeps one shape at every size, so its parts are placed in
   percentages of it and the drawing underneath shares its coordinates. */
.stage { position: relative; justify-self: center; width: 100%; max-width: min(660px, calc(78vh * 600 / 520)); aspect-ratio: 600 / 520; }

/* Settlement: four parties, one node. The lines draw in together and a mark
   runs out along each at the same moment, because the legs settle together. */
.legs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.legs path { fill: none; stroke-linecap: round; }
.leg {
  stroke: rgba(255, 255, 255, 0.46); stroke-width: 1.5;
  stroke-dasharray: 100px;
  stroke-dashoffset: calc((1 - clamp(0, calc(var(--c, 1) * 2.2 - 0.5), 1)) * 100px);
}
.pulse { display: none; }
.motion .pulse {
  display: block;
  stroke: #fff; stroke-width: 7;
  stroke-dasharray: 0.01px 100px;
  opacity: clamp(0, calc(var(--c, 1) * 8 - 7), 1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
  animation: pulse 2.6s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes pulse { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100px; } }

.party {
  position: absolute; z-index: 1;
  background: #2c3138;
  transform: translate(-50%, -50%) scale(clamp(0, calc(var(--c, 1) * 3 - 1.4), 1));
}
.p1 { left: 16%; top: 15%; }
.p2 { left: 84%; top: 15%; }
.p3 { left: 16%; top: 85%; }
.p4 { left: 84%; top: 85%; }
.hub {
  position: absolute; left: 50%; top: 90%; z-index: 3;
  height: 46px; padding: 0 22px; font-size: 16px;
  transform: translate(-50%, -50%) scale(clamp(0, calc(var(--c, 1) * 4 - 2.8), 1));
}

/* Offers: rows that arrive lowest first. Their lengths are a drawing of
   "higher", not amounts; the top one is the only thing the ledger keeps. */
.offers { position: absolute; left: 57%; right: 0; top: 50%; z-index: 1; display: grid; gap: 12px; transform: translateY(-50%); }
.offer {
  --t: clamp(0, calc(var(--b, 1) * 3.2 - var(--k, 0) * 0.85), 1);
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: calc(var(--t) * (1 - clamp(0, calc(var(--c, 1) * 3.5), 1)));
  transform: translate3d(calc(var(--c, 1) * 70px), calc((1 - var(--t)) * 56px), 0) scale(calc(0.92 + var(--t) * 0.08));
}
.offer i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.offer b { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.3); }
.offer-top { height: 68px; background: #fff; color: #15171a; box-shadow: 0 24px 54px -18px rgba(255, 255, 255, 0.42); }
.offer-top i { background: #15171a; }
.offer-top span { display: grid; gap: 1px; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.offer-top em { color: rgba(21, 23, 26, 0.62); font-size: 12.5px; font-style: normal; font-weight: 500; }

/* The piece itself. It comes in turned away and squares up to the reader as
   the sale becomes final; .mover carries it across the stage, so its travel
   is a share of the stage and not of the card. */
.mover {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  perspective: 1100px;
  transform: translate3d(calc((var(--c, 1) - var(--b, 1)) * 23%), calc((1 - var(--a, 1)) * 62%), 0);
  pointer-events: none;
}
.mover::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 92%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(196, 212, 255, 0.2), transparent);
  transform: translate(-50%, -50%);
  opacity: var(--a, 1);
}
.piece {
  position: relative;
  width: 46%;
  transform-style: preserve-3d;
  opacity: clamp(0, calc(var(--a, 1) * 3), 1);
  transform:
    scale(calc(1 - var(--b, 1) * 0.1 - var(--c, 1) * 0.34))
    rotateY(calc(-40deg + var(--a, 1) * 26deg + var(--b, 1) * 5deg + var(--c, 1) * 9deg + var(--px, 0) * 7deg))
    rotateX(calc(16deg - var(--a, 1) * 9deg - var(--b, 1) * 2deg - var(--c, 1) * 5deg + var(--py, 0) * -6deg))
    rotateZ(calc(-7deg + var(--a, 1) * 4deg + var(--b, 1) * 1deg + var(--c, 1) * 2deg));
}
/* The token is a slab of dark glass with the artwork set into it. A second
   face sits a little way behind the first, so turning it shows an edge and
   it reads as a thing with thickness rather than a picture of one. */
.slab {
  position: relative;
  padding: 5.4%;
  border-radius: 15.5%;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03) 36%, rgba(255, 255, 255, 0.02) 64%, rgba(255, 255, 255, 0.13)),
    #22262d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.17), inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
}
.slab-back {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, #c3cad8, #565d69 42%, #3a4049 60%, #98a1b1);
  box-shadow: 0 70px 90px -32px rgba(0, 0, 0, 0.95), 0 0 120px -12px rgba(190, 200, 220, 0.2);
  transform: translateZ(-12px);
}
.slab-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(90% 70% at 18% 8%, rgba(255, 255, 255, 0.06), transparent 62%),
    linear-gradient(155deg, #0b0c0e, #030304 48%, #000);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 1.5px 0 1px rgba(255, 255, 255, 0.13);
  transform-style: preserve-3d;
}
/* The piece is this venue's own: its mark, the same path the bar draws, on
   black, and nothing else. It sits a little way off the face, so it shifts
   against its ground as the card turns. */
.lay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transform: translateZ(26px); }
.gem { fill: var(--brand); }
/* The artwork sits under glass: lit along the top, shaded along the bottom. */
.slab-art::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 22px 34px -22px rgba(255, 255, 255, 0.14), inset 0 -34px 44px -26px rgba(0, 0, 0, 0.38);
}
/* Two lights on the face: one that follows the pointer, and a band that
   crosses as the page moves. */
.slab-glare {
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(58% 48% at calc(30% + var(--px, 0) * 36%) calc(18% + var(--py, 0) * 28%), rgba(255, 255, 255, 0.1), transparent 72%),
    linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.13) 47%, rgba(255, 255, 255, 0.02) 54%, transparent 68%) calc(115% - var(--s, 0.5) * 230%) 0 / 300% 100% no-repeat;
  transform: translateZ(1px);
  pointer-events: none;
}
/* It is never quite still. */
.motion .piece { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -2.4%; } }
.piece .tag { position: absolute; opacity: calc(1 - clamp(0, calc(var(--c, 1) * 3), 1)); }
.t-listed { left: -15%; top: -3%; transform: translateZ(46px) scale(clamp(0, calc(var(--a, 1) * 3 - 1.5), 1)); }

/* Three limits the ledger enforces, on one sheet. They are constants, not
   statistics. */
.s-caps { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; width: 100%; max-width: 1280px; margin: 0 auto; padding: 8vh clamp(16px, 5vw, 56px); }
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 44px; }
.cap { padding: clamp(26px, 3.4vw, 52px); }
.cap + .cap { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.16); }
.cap-figure { display: flex; align-items: flex-start; white-space: nowrap; font-size: clamp(84px, 11vw, 176px); line-height: 0.9; font-weight: 700; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.cap-figure sup { margin: 0.14em 0 0 0.1em; color: var(--text-3); font-size: 0.34em; line-height: 1; letter-spacing: 0; }
.cap-label { max-width: 20ch; margin-top: clamp(26px, 5vh, 60px); color: var(--text-2); font-size: 17px; line-height: 1.4; }
.motion .caps { opacity: 0; transform: translateY(70px) scale(0.96); transition: opacity 0.9s ease, transform 1.3s var(--ease); }
.motion .s-caps.in .caps { opacity: 1; transform: none; }
.motion .cap-label { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease 0.7s, transform 1s var(--ease) 0.7s; }
.motion .cap:nth-child(2) .cap-label { transition-delay: 0.82s; }
.motion .cap:nth-child(3) .cap-label { transition-delay: 0.94s; }
.motion .s-caps.in .cap-label { opacity: 1; transform: none; }

/* The last screen asks the first screen's question again, with the wall back. */
.s-closing {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 34px;
  padding: 10vh 16px 16vh;
  text-align: center;
}
.closing-title { max-width: 12ch; font-size: clamp(44px, 8.2vw, 124px); line-height: 0.98; font-weight: 700; letter-spacing: -0.04em; text-wrap: balance; text-shadow: 0 2px 50px rgba(0, 0, 0, 0.45); }
/* The last screen arrives in the order it is read, at the pace of the scroll:
   the mark turns into place, the headline's words come up out of a blur one
   after another, each tipping level as it lands, and the field follows. --t
   is one word's share of that, 0 to 1. */
.motion .closing-title .w {
  --t: clamp(0, calc(var(--p, 1) * var(--n, 1) * 1.15 - var(--i, 0)), 1);
  display: inline-block;
  transform-origin: 0 100%;
  opacity: var(--t);
  transform: translateY(calc((1 - var(--t)) * 0.62em)) rotate(calc((1 - var(--t)) * 5deg));
  filter: blur(calc((1 - var(--t)) * 9px));
  will-change: opacity, transform, filter;
}
/* The bar has scrolled away by here, so the mark signs the last screen, on the
   same dark tile as the tab icon: bare, it is lost whenever a pale card passes
   behind it. It is kept under the size where the drawing's unequal lobes show. */
.sign {
  position: relative;
  display: grid; place-items: center;
  width: 60px; height: 60px; margin-bottom: -6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(40, 45, 52, 0.94), rgba(26, 29, 33, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 14px 40px rgba(0, 0, 0, 0.45);
}
.sign img { width: 34px; height: auto; }
/* The mark itself stays still and unlit: it is a signature, not an effect.
   Once the whole screen is in place a light goes round the rim of the field
   that is waiting to be typed in, a gradient on a small layer of its own,
   turned and never redrawn large. waitlist.js adds .there when the screen
   has arrived. */

.closing-form { position: relative; width: min(520px, 100%); }
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.rim {
  position: absolute; inset: 0 0 auto 0; z-index: 1;
  height: 68px; padding: 1.5px;
  border-radius: 999px;
  background: conic-gradient(from var(--turn), transparent 0 68%, rgba(255, 255, 255, 0.5) 80%, #fff 86%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.there .rim { opacity: 1; animation: turn 5.5s linear infinite; }
.closing-form:has([data-invalid]) .rim { opacity: 0; }
@keyframes turn { to { --turn: 360deg; } }
.motion .closing-form .field { opacity: clamp(0, calc(var(--p, 1) * 3 - 2), 1); transform: translateY(calc((1 - clamp(0, calc(var(--p, 1) * 3 - 2), 1)) * 24px)); will-change: opacity, transform; }
.s-closing { position: relative; }

/* The foot of the page, laid over the bottom of the last screen and not
   under it, so the page still ends on that screen. A shade behind it keeps
   small type readable whatever card is passing. */
.foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px;
  padding: 56px max(clamp(18px, 4vw, 32px), env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(clamp(18px, 4vw, 32px), env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(14, 17, 20, 0), rgba(14, 17, 20, 0.82) 72%);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 2.4vw, 28px); }
.foot a { display: inline-block; padding: 12px 4px; margin: -12px -4px; color: var(--text); border-radius: 6px; outline-offset: 4px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.motion .foot { opacity: clamp(0, calc(var(--p, 1) * 4 - 3), 1); will-change: opacity; }
@media (max-width: 640px) {
  .foot { flex-direction: column-reverse; justify-content: center; gap: 12px; padding-top: 44px; text-align: center; }
  .foot nav { justify-content: center; }
}
.closing-done { padding: 6px 14px; border-radius: 999px; outline-offset: 4px; color: var(--text-2); font-size: 19px; font-weight: 600; }

/* The compact stage is for narrow screens and for short ones. */
@media (max-width: 860px), (max-height: 520px) {
  .scene-pin { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; }
  /* Room at the top for the button that floats there. */
  .motion .scene-pin { padding-top: 56px; padding-bottom: 12px; }
  .motion .scene { height: 340vh; }
  .stage { order: -1; max-width: min(100%, calc(44vh * 600 / 520)); max-width: min(100%, calc(44svh * 600 / 520)); }
  .steps { gap: 30px; }
  .motion .step h3 { font-size: clamp(34px, 9.6vw, 48px); }
  .motion .step p { margin-top: 14px; }
  .step-no { margin-bottom: 10px; }
  .motion .segs { margin-top: 24px; }
  .tag { height: 30px; padding: 0 12px; font-size: 13px; }
  .hub { top: 102%; height: 36px; padding: 0 15px; font-size: 14px; }
  .telling { padding-top: 10px; }
  .slab-back { transform: translateZ(-7px); }
  .lay { transform: translateZ(15px); }
  .offers { left: 56%; gap: 8px; }
  .offer { height: 44px; gap: 9px; padding: 0 12px; border-radius: 15px; }
  .offer i { width: 18px; height: 18px; }
  .offer b { height: 6px; }
  .offer-top { height: 52px; }
  .offer-top i { display: none; }
  .offer-top span { font-size: 13px; }
  .offer-top em { font-size: 11px; }
  .caps { border-radius: 34px; }
  .cap { padding: 24px 22px; }
  .cap-figure { font-size: clamp(64px, 11vw, 96px); }
  .cap-label { margin-top: 20px; font-size: 15px; }
  .jump { top: max(12px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
}

/* A phone held upright: the three figures become rows, figure then meaning. */
@media (max-width: 600px) {
  .caps { grid-template-columns: minmax(0, 1fr); border-radius: 32px; }
  .cap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 18px; padding: 22px 24px; }
  .cap + .cap { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
  .cap-figure { min-width: 1.5em; font-size: 76px; }
  .cap-label { margin-top: 0; padding-bottom: 6px; font-size: 15.5px; }
}

/* A small phone held upright: the stage and its words both give a little. */
@media (max-width: 860px) and (max-height: 620px) {
  .scene-pin { gap: 22px; }
  .stage { max-width: min(100%, calc(40vh * 600 / 520)); max-width: min(100%, calc(40svh * 600 / 520)); }
  .motion .step h3 { font-size: 32px; }
  .motion .step p { margin-top: 10px; font-size: 15.5px; line-height: 1.42; }
  .motion .segs { margin-top: 18px; }
}

/* A phone on its side: too short to stack the stage over its words, so they
   sit beside each other as they do on a desk, at a size the height allows. */
@media (max-height: 520px) and (min-width: 560px) {
  .s-hero { padding-top: 12px; padding-bottom: 56px; }
  .s-hero h1 { font-size: clamp(38px, 15vh, 64px); }
  .s-hero .title { padding-bottom: 16px; }
  .s-hero .lede { margin-top: 10px; font-size: 16px; }
  .cue { bottom: 4px; }
  .cue span { display: none; }
  .statement { font-size: clamp(22px, 8vh, 36px); }
  .display { font-size: clamp(30px, 11vh, 48px); }
  .scene-pin { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; gap: 28px; }
  .motion .scene-pin { padding-top: 0; padding-bottom: 0; }
  .stage { order: 0; max-width: min(100%, calc(74vh * 600 / 520)); max-width: min(100%, calc(74svh * 600 / 520)); }
  .hub { top: 94%; }
  .telling { padding-top: 0; }
  .motion .step h3 { font-size: clamp(26px, 9.5vh, 40px); }
  .motion .step p { margin-top: 8px; font-size: 15px; line-height: 1.4; }
  .step-no { margin-bottom: 6px; }
  .motion .segs { margin-top: 14px; }
  .closing-title { font-size: clamp(34px, 15vh, 60px); }
  .sign { display: none; }
  .s-closing { gap: 18px; padding-top: 6vh; padding-bottom: 64px; }
}

/* ── Life ───────────────────────────────────────────────────────────────── */

/* The opening: the wall settles in from close up, and the headline is set a
   letter at a time. It plays once and leaves nothing behind. */
.s-hero .title { width: max-content; max-width: calc(100vw - 32px); justify-self: center; padding-bottom: 30px; }
.s-hero h1 { font-size: clamp(46px, 8.8vw, 108px); line-height: 0.98; letter-spacing: -0.042em; text-wrap: balance; }
.s-hero .lede { margin-top: 18px; font-size: clamp(17px, 1.5vw, 21px); }
h1 .word { display: inline-block; white-space: nowrap; }
.motion h1 .c { display: inline-block; animation: char-in 1.2s var(--ease) backwards; animation-delay: calc(0.3s + var(--i) * 0.038s); }
@keyframes char-in { from { opacity: 0; transform: translateY(0.55em) rotate(7deg) scale(0.9); filter: blur(10px); } }
.motion .deck { animation: deck-in 2.8s var(--ease) backwards; }
@keyframes deck-in { from { opacity: 0; transform: scale(1.45) translateY(7%); } }
.motion .s-hero .lede { animation: arrive 1s var(--ease) 0.95s backwards; }
.motion .s-hero .form, .motion .s-hero .state { animation-delay: 1.1s; }
.motion .cue { animation: fade-in 1s ease 1.9s backwards; }
@keyframes fade-in { from { opacity: 0; } }

/* The wall leans a little toward the pointer, and where the pointer is the
   dark thins, as if it were carrying a light. */
/* Only where there is a pointer to carry it: a mask makes the sheet something
   to paint, and a touch screen has no light to show for that. */
.pointer .dim {
  -webkit-mask-image: radial-gradient(circle 340px at var(--cx, 50%) var(--cy, -600px), rgba(0, 0, 0, 0.3), #000 100%);
  mask-image: radial-gradient(circle 340px at var(--cx, 50%) var(--cy, -600px), rgba(0, 0, 0, 0.3), #000 100%);
}

/* The arrow leans toward a pointer that comes near it. */
.go { translate: var(--tx, 0px) var(--ty, 0px); }

/* Four words, very large, drifting across as the page moves. */
.s-band { overflow: hidden; }
.band {
  display: flex; align-items: center; gap: 0.3em;
  width: max-content;
  font-size: min(clamp(72px, 14vw, 240px), 14vh); line-height: 1; font-weight: 800; letter-spacing: -0.045em; white-space: nowrap;
  transform: translate3d(calc(-4% + var(--p, 0.5) * -30%), 0, 0) skewX(calc(var(--v, 0) * -1.3deg));
  will-change: transform;
}
.band span { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.5); }
.band span.fill { color: #fff; -webkit-text-stroke: 0; }
.band i { width: 0.16em; height: 0.16em; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }

/* A figure rolls up to its value like a counter, one digit a column. */
/* The window a digit rolls through is larger than the space it takes up: the
   padding is given back as negative margin. A window the size of the digit's
   own box shaves the glyph, because tight tracking makes that box narrower
   than the ink. */
.roll { display: inline-block; height: 1.2em; margin: -0.14em -0.08em; padding: 0 0.08em; overflow: hidden; vertical-align: bottom; }
.roll b { display: block; font-weight: inherit; transition: transform 1.7s var(--ease); }
.roll b span { display: block; height: 1.2em; line-height: 1.2; }
.roll:nth-of-type(2) b { transition-delay: 0.12s; }
.s-caps.in .roll b { transform: translateY(calc(var(--d, 0) * -1.2em)); }

/* Grain over the wall, so the dark reads as a surface and not a flat fill. */
.wall::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}

/* The smooth-scroll library's own requirements, when it is running. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (max-width: 860px) {
  .s-hero .title { padding-bottom: 24px; }
  .band span { -webkit-text-stroke-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Without backdrop-filter a pane would be a faint white wash over the
   wallpaper and the type on it would not hold; it becomes a solid tint. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(120, 130, 142, 0.92); }
  .glass-dark { background: rgba(34, 37, 42, 0.94); }
}

/* ── What a touch screen is asked to draw ─────────────────────────────────

   A tablet was reported to flicker. The columns of the wall never stop, so
   the backdrop of every pane over them changes on every frame, and a blurred
   pane has to be blurred again each time. A compositor that cannot finish
   that inside a frame shows the pane it had last, or none.

   So on a touch screen a pane is the solid tint the stylesheet already falls
   back to where there is no backdrop-filter at all. Its rim and its shadow
   are untouched: they are drawn over the tint, not through it.

   Gated on the pointer, not the width: a tablet is a coarse pointer at any
   width, and a narrow desktop window is not.

   The wall keeps its size here. The phone's shorter columns are right for a
   screen about 800px tall and leave a tall tablet's top edge bare. */
@media (pointer: coarse) {
  /* The animation puts each track on a layer of its own without being asked. */
  .col-track { will-change: auto; }
  .glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(120, 130, 142, 0.92);
  }
  .glass-dark { background: rgba(34, 37, 42, 0.94); }
}
