/* Carpet Cup homepage, design "C, the world first".
   The page is the render's own haze. Type sits in its open sky: no panels, no bands, no shadows.
   Pictures dissolve into the haze at their edges (mask-image), never a hard seam.
   /privacy and /support keep style.css; nothing here touches them. */

:root {
  --haze: #9AC67B;                /* sampled from the frames */
  --ink: #0E1A08;                 /* near-black, every word (Alec 11/7; TYPE.md) */
  --paper: #FBFDF6;
  /* TYPE.md (locked 11/7): Fraunces everywhere. All three stacks are the one face; the roles below set weight + opsz. */
  --serif: Fraunces, "Source Serif 4", ui-serif, Georgia, serif;
  --sans: var(--serif);
  --caps: var(--serif);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --stage-h: 100vh;
  --stage-h-small: 100vh;
  --safe-top: env(safe-area-inset-top, 0px);
  /* One design px: phone frames are 390 x 844, desktop 1440 x 900. The smaller
     ratio wins so a tablet or a short laptop keeps the same proportions. */
  --u: min(calc(100vw / 390), calc(100svh / 844));
}
@supports (height: 100lvh) {
  /* The stage fills the LARGE viewport so iOS hiding its URL bar never shows a gap;
     scroll lengths use the SMALL one. */
  :root { --stage-h: 100lvh; --stage-h-small: 100svh; }
}
@media (orientation: landscape) {
  :root { --u: min(calc(100vw / 1440), calc(100svh / 900)); }
}

/* Fraunces, the variable roman (google/fonts ofl/fraunces, OFL; same file as fonts/Fraunces/ on the app branch) */
@font-face {
  font-family: Fraunces;
  src: url(/assets/fonts/Fraunces.woff2) format("woff2-variations"), url(/assets/fonts/Fraunces.woff2) format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

* { box-sizing: border-box; }
html { background: var(--haze); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--haze);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--ink); }
h1, h2, p { margin: 0; }

/* ── The one kind of link: a plain line of text, a 1px underline ───────────── */
.line {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease;
}
.line-lg { font-size: 18px; text-underline-offset: 6px; }

/* ── The one button: Pre-order on the App Store → /get (11/12; was Join the beta 11/6, Alec: the nav link "looks janky") ─── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--haze);
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.btn::after { content: ""; position: absolute; inset: -4px; }       /* 44px hit area around a 36px pill */
.btn:active { transform: scale(0.97); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 18px; }
@media (max-width: 429px) { .nav .join-rest { display: none; } }   /* 11/12: the full label pushed the wordmark off a 375 px phone */
@media (hover: hover) and (pointer: fine) {
  a.btn:hover { background: var(--paper); color: var(--ink); }
}

/* The wordmark: the traced vector, filled with whatever colour the text is */
.wordmark {
  display: inline-block; aspect-ratio: 2261 / 571; height: 1em; vertical-align: top;
  background: currentColor;
  -webkit-mask: url(/assets/wordmark.svg) no-repeat center / contain;
          mask: url(/assets/wordmark.svg) no-repeat center / contain;
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--paper); }
}
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ── Nav: phone keeps it upper right with the copy (the islands own the left) ── */
.nav {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: calc(var(--safe-top) + 10px) 18px 10px;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.nav > * { pointer-events: auto; }
.nav.is-away { opacity: 0; transform: translateY(-8px); }
.nav.is-away > * { pointer-events: none; }
.brand { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; transition: opacity 260ms var(--ease-out); }
.at-open .nav .brand { opacity: 0; pointer-events: none; }   /* the big wordmark is on screen */

/* ── Pinned moments ────────────────────────────────────────────────────────── */
.moment { position: relative; height: calc(var(--stage-h) + var(--scroll) * var(--stage-h-small)); }
/* The putt starts on the drive's last frame: its stage pins while the drive's is
   still pinned, and crossfades in over it, so the camera never cuts. */
.moment.moment-putt { margin-top: calc(-1 * var(--stage-h) - var(--handoff, 0) * var(--stage-h-small)); }
.stage {
  position: sticky;
  top: 0;
  height: var(--stage-h);
  overflow: hidden;
}
/* the picture's bottom dissolves into the haze, so when the lock lets go there is no edge. On the picture only:
   11/7, on the whole stage it faded the type too, which ruled out the clean haze at the bottom for copy */
.stage .cv {
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}
.moment-putt .stage { opacity: 0; }
.stage.is-hidden { visibility: hidden; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Copy lands with its beat and leaves the way it came. */
.copy { position: absolute; inset: 0; pointer-events: none; }
.beat {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 10px, 0);
  transition: opacity 420ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s linear 420ms;
}
.beat.is-past { transform: translate3d(0, -8px, 0); }
.beat.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 520ms var(--ease-out) 60ms, transform 800ms var(--ease-out) 60ms, visibility 0s;
}
.mark-h { line-height: 0; }                                   /* the wordmark's box is the wordmark: no text line around it */
.beat.scrub .line.w.only-desktop { display: none; }
@media (orientation: landscape) { .beat.scrub .line.w.only-desktop { display: inline-flex; } }
.headline { font-weight: 800; letter-spacing: -0.005em; text-wrap: balance; }

.only-desktop { display: none; }


/* ── Fleet: normal scroll, the 18 islands, the line in the haze on top ─────── */
.fleet { position: relative; height: calc(100vw * 16 / 9); max-height: 140svh; }
.fleet-cv {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 72%, transparent 94%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 72%, transparent 94%);
}
.fleet-h {
  position: absolute; top: calc(56 * var(--u)); left: 24px; right: 24px;
  text-align: center; font-weight: 800; font-size: calc(36 * var(--u)); line-height: 1.04;
}

/* ── End: the last line, the link, the footer; the end shot rising beneath ─── */
.end { position: relative; padding-top: calc(72 * var(--u)); overflow: hidden; }
.end-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 0 24px; text-align: center; }
.end-h { font-weight: 800; font-size: calc(38 * var(--u)); line-height: 1.04; text-wrap: balance; max-width: 12em; }
.end > .foot { position: relative; z-index: 1; padding: 8px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px;
  font-family: var(--sans); font-weight: 400; font-size: 14px;
}
.foot a, .foot span { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.end-note { margin-top: -8px; font-family: var(--sans); font-size: 14px; }   /* "Out Nov 24" under the button (11/12) */
.end-shot { display: block; margin-top: 8px; }
.end-shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
}

/* ── Desktop: the desktop frames, copy in the open haze top left ───────────── */
@media (orientation: landscape) {
  .nav { justify-content: space-between; padding: calc(var(--safe-top) + 28px) 64px 20px; }
  .brand { font-size: 30px; }
  .btn { height: 40px; padding: 0 20px; font-size: 16px; }
  .btn-lg { height: 52px; padding: 0 28px; font-size: 18px; }
  .only-desktop { display: inline-flex; }

  /* the putt's blurred foreground is dark: dissolve it into the haze sooner, so it never leaves a muddy band over the fleet */
  .moment-putt .cv { -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 96%); mask-image: linear-gradient(to bottom, #000 52%, transparent 96%); }

  .fleet { height: calc(100vw * 9 / 16); max-height: none; margin-top: -42vh; }   /* 11/7: rise into the putt as it leaves; no dead screen of blur between */
  .fleet-h { top: calc(150 * var(--u)); left: 0; right: 0; text-align: center; font-size: calc(60 * var(--u)); line-height: 1.04; }   /* 11/7: centred above the fleet, as on the phone */

  .end { padding-top: calc(140 * var(--u)); }
  .end-copy { align-items: center; text-align: center; padding: 0 calc(64 * var(--u)); gap: calc(24 * var(--u)); }   /* centred over the phone (11/7) */
  .end-h { font-size: calc(72 * var(--u)); line-height: 1.0; max-width: 11em; }
  .foot { justify-content: center; margin-top: 8px; }
  .end > .foot { padding: 8px calc(64 * var(--u)) 32px; }
  .end-shot { margin-top: calc(40 * var(--u)); }
  .end-shot img {
    aspect-ratio: 16 / 9;
    /* the wide end plate (RunPod 11/7): the whole phone and the cup, carpet edge to edge, rising out of the haze */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }
}

/* ── Reduced motion: nothing pins, one still per line, stacked, dissolving ─── */
.rm .scene { position: relative; height: 100svh; min-height: 560px; }
.rm .scene .cv {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
}
.rm .scene:first-child .cv {
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
}
.rm .beat { transition: none; }
.rm .scene .beat { left: calc(100% - 166 * var(--u)); right: calc(18 * var(--u)); top: calc(104 * var(--u)); }
.rm .scene:first-child .beat { top: calc(var(--safe-top) + 104 * var(--u)); }
.rm .scene .beat[data-size="open"] { left: calc(24 * var(--u)); right: calc(22 * var(--u)); top: calc(var(--safe-top) + 84 * var(--u)); text-align: right; }
@media (orientation: landscape) {
  .rm .scene .beat, .rm .scene:first-child .beat { left: calc(64 * var(--u)); right: auto; width: calc(600 * var(--u)); top: calc(200 * var(--u)); text-align: left; }
  .rm .scene .beat[data-size="open"] { width: calc(640 * var(--u)); top: calc(190 * var(--u)); }
}
.rm .nav { position: absolute; }
.rm .end-shot img { will-change: auto; }

/* ── QR panel (desktop only: you can't swing a laptop) ─────────────────────── */
.qr-panel {
  position: fixed;
  z-index: 30;
  top: calc(var(--safe-top) + 84px);
  right: 48px;
  width: 300px;
  padding: 24px 22px 18px;
  background: var(--paper);
  border: 1px solid rgba(31, 61, 14, 0.18);
  color: var(--ink);
  transform-origin: calc(100% - 50px) -8px;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.qr-panel.is-centered { top: 50%; left: 50%; right: auto; transform-origin: 50% 50%; translate: -50% -50%; }
.qr-panel[hidden] { display: block; visibility: hidden; opacity: 0; transform: scale(0.96); pointer-events: none; }
.qr-panel.is-closing { opacity: 0; transform: scale(0.96); }
.qr-code {
  width: 220px; aspect-ratio: 1; margin: 0 auto;
  background: var(--ink);
  -webkit-mask: var(--qr) center / contain no-repeat;
          mask: var(--qr) center / contain no-repeat;
}
.qr-title { margin-top: 18px; font-weight: 800; font-size: 22px; line-height: 1.15; }
.qr-note { margin-top: 6px; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.qr-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-family: var(--sans); font-weight: 500; font-size: 15px; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.qr-panel a:hover { color: var(--ink); text-decoration-thickness: 2px; }
.qr-close {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer;
}

.noscript { padding: 120px 24px; text-align: center; }
.noscript h1 { font-size: 40px; font-weight: 800; line-height: 1.02; }

@media (prefers-reduced-motion: reduce) {
  .nav, .line, .qr-panel { transition: none; }
}

/* 11/7 option: near-black ink (Alec: the dark green "looks uglier and a little more amateurish"; white fails WCAG at 2.0-2.9:1).
   #0E1A08 = 9:1 on the haze, ~6:1 over the drive; the button is the same ink with white type. */
:root { --ink: #0E1A08; }
.btn { background: var(--ink); color: #fff; }
.qr-panel, .qr-panel a { color: var(--ink); }   /* the QR card is light: its words stay ink */


/* ── Type roles (TYPE.md). House settings everywhere: SOFT 100, WONK 0, lining figures. Each role sets weight + --opsz;
   children inherit --opsz, so every scrubbed word in a headline is cut at the headline's size. ─────────────────── */
html { font-variant-numeric: lining-nums; font-feature-settings: "liga" 1, "dlig" 0; }
body, body * { font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" var(--opsz, 16); }
body { --opsz: 16; font-weight: 400; }                                   /* Text 400, opsz 14-20 */
/* Display 900 / opsz 144: every headline */
.headline, .fleet-h, .end-h, .noscript h1, .p-h { font-weight: 800; letter-spacing: -0.012em; }
/* Title 700 / opsz 72: section lines, the line under a headline */
.qr-title, .p-title, .p-lede { --opsz: 72; font-weight: 700; }
.tagline, .beat .sub { --opsz: 24; font-weight: 400; }
/* Text 400: body, captions, footer, links in running text */
.foot, .foot a, .end-note, .qr-note, .line, .p-intro, .p-prose, .p-facts dd, .p-desc, .p-meta, .p-contact, .p-foot { --opsz: 16; font-weight: 400; }
/* Label 500 / opsz 9, tracked caps: buttons, kickers, small labels */
.btn, .qr-link, .p-kicker, .p-facts dt, .p-box-meta { --opsz: 9; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.btn { font-size: 13px; }
.btn-lg { font-size: 14px; }
@media (orientation: landscape) { .btn { font-size: 13px; } .btn-lg { font-size: 15px; } }

/* ══ 11/25 the system ═══════════════════════════════════════════════════════════════════════════════════════════
   One hierarchy for every beat: KICKER (what this is) > HEADLINE (the instruction) > SUB (the detail).
   Three type sizes per shape, one story edge per shape, one way for copy to move.
     desktop: every story line hangs off the same left edge and bottom line (64u, 112u up), the open haze under the islands.
     phone:   every story line hangs off the same right edge and top line (22u, 108u down), the open sky upper right.
   Motion: a line rises out of its own baseline as the scroll brings it, holds whole, and lifts away whole.
   It confirms the scroll; it never performs. ───────────────────────────────────────────────────────────────── */
:root {
  --kicker: max(11px, calc(12 * var(--u)));
  --display: calc(32 * var(--u));  --display-opsz: 36;    /* every beat headline, the fleet, the end */
  --hero: calc(68 * var(--u));     --hero-opsz: 72;       /* the payoff: "Drained it." (the wordmark sets its own) */
  --text: calc(16 * var(--u));                            /* tagline, subs */
  --gap-k: calc(12 * var(--u));                           /* kicker to headline */
  --gap-s: calc(12 * var(--u));                           /* headline to sub */
}
@media (orientation: landscape) {
  :root {
    --kicker: max(12px, calc(14 * var(--u)));
    --display: calc(76 * var(--u));  --display-opsz: 72;
    --hero: calc(148 * var(--u));    --hero-opsz: 144;
    --text: calc(26 * var(--u));
    --gap-k: calc(20 * var(--u));
    --gap-s: calc(18 * var(--u));
  }
}

.kicker {
  display: block;
  --opsz: 9; font-weight: 600; font-size: var(--kicker); line-height: 1;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(14, 26, 8, 0.66);
  margin: 0 0 var(--gap-k);
}
.headline, .fleet-h, .end-h { --opsz: var(--display-opsz); font-weight: 800; letter-spacing: -0.012em; text-wrap: balance; }
.beat .headline { font-size: var(--display); line-height: 1.0; max-width: 9.2em; }
.beat .sub { --opsz: 24; font-weight: 400; font-size: var(--text); line-height: 1.32; margin-top: var(--gap-s); max-width: 19em; color: rgba(14, 26, 8, 0.86); text-wrap: pretty; }
.beat[data-size="green"] .headline { --opsz: var(--hero-opsz); font-size: var(--hero); line-height: 0.95; letter-spacing: -0.022em; }
.beat .hands { display: block; width: auto; height: calc(96 * var(--u)); margin: 0 0 calc(14 * var(--u)); }

/* Phone: the right edge, the top line */
.moment .beat {
  left: calc(22 * var(--u)); right: calc(22 * var(--u)); top: calc(var(--safe-top) + 108 * var(--u)); bottom: auto; width: auto;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
}
.moment .beat[data-size="open"] { top: calc(var(--safe-top) + 84 * var(--u)); }
.beat[data-size="open"] .headline { font-size: calc(78 * var(--u)); line-height: 1; max-width: none; }
.beat[data-size="open"] .tagline { --opsz: 24; font-weight: 400; margin: calc(16 * var(--u)) 0 0; max-width: 11em; font-size: calc(19 * var(--u)); line-height: 1.25; text-wrap: balance; }
.moment-drive .beat:not([data-size="open"]) .headline { max-width: 6.6em; }   /* the far islands own the upper left */

/* Desktop: the left edge, the bottom line */
@media (orientation: landscape) {
  .moment .beat, .moment .beat[data-size="open"] {
    left: calc(64 * var(--u)); right: auto; width: calc(900 * var(--u)); top: auto; bottom: calc(112 * var(--u));
    align-items: flex-start; text-align: left;
  }
  .beat[data-size="open"] .headline { font-size: calc(148 * var(--u)); }
  .beat[data-size="open"] .tagline { margin-top: calc(26 * var(--u)); max-width: 16em; font-size: calc(30 * var(--u)); line-height: 1.2; }
  .moment-drive .beat:not([data-size="open"]) .headline { max-width: 9.2em; }
  .beat .hands { height: calc(150 * var(--u)); margin-bottom: calc(22 * var(--u)); }

  .fleet-h { top: calc(140 * var(--u)); font-size: var(--display); line-height: 1.0; }
  .end-h { font-size: var(--display); line-height: 1.0; max-width: 11em; }
  .end-copy { gap: 0; }
}
.fleet-h { font-size: var(--display); line-height: 1.0; }
.fleet-h .kicker { margin-bottom: var(--gap-k); }
.end-copy { gap: 0; }
.end-copy .kicker { margin-bottom: var(--gap-k); }
.end-h { font-size: var(--display); line-height: 1.0; }
.end-copy .btn-lg { margin-top: calc(28 * var(--u)); }
.end-note { margin-top: 14px; font-size: 14px; color: rgba(14, 26, 8, 0.72); }

/* The reveal. --t runs 0 > 1 across a line's window; --k orders the pieces (drawing, kicker, headline, sub).
   In: over the first 13 % each piece rises 0.3em out of its own baseline, a soft wipe from the bottom up, 3 % apart.
   Hold: whole and still from ~20 % to 84 %. Out: every piece together, a 0.25em lift and fade over the last 12 %. */
.beat.scrub, .beat.scrub.is-on, .beat.scrub.is-past { transition: none; transform: none; opacity: 1; }
.beat.scrub:not(.is-on) { visibility: hidden; }
.beat.scrub .w {
  --in: clamp(0, calc((var(--t, 0) - var(--k) * 0.03) / 0.13), 1);
  --out: clamp(0, calc((var(--t, 0) - 0.84) / 0.12), 1);
  display: block;
  opacity: calc(min(1, var(--in) * 1.5) - var(--out));
  transform: translate3d(0, calc((1 - var(--in)) * 0.3em - var(--out) * 0.25em), 0);
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--in) * 150% - 50%), transparent calc(var(--in) * 150%));
          mask-image: linear-gradient(to top, #000 calc(var(--in) * 150% - 50%), transparent calc(var(--in) * 150%));
  will-change: transform, opacity;
}
.mark-h { line-height: 0; }

/* Reduced motion: the same edges, no movement */
.rm .scene .beat, .rm .scene:first-child .beat, .rm .scene .beat[data-size="open"] {
  left: calc(22 * var(--u)); right: calc(22 * var(--u)); top: calc(var(--safe-top) + 108 * var(--u)); width: auto;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
}
@media (orientation: landscape) {
  .rm .scene .beat, .rm .scene:first-child .beat, .rm .scene .beat[data-size="open"] {
    left: calc(64 * var(--u)); right: auto; width: calc(900 * var(--u)); top: auto; bottom: calc(112 * var(--u)); align-items: flex-start; text-align: left;
  }
}

/* Small print: ink stays ink on hover; the underline says it's a link */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--ink); }
  .foot a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
.foot span { color: rgba(14, 26, 8, 0.62); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.nav:focus-within { opacity: 1; transform: none; }
/* the end shot dissolves at the bottom too: no ruled line above the footer */
.end-shot img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%);
}
/* the wordmark is itself a mask: it rises and fades with the line, but keeps its own shape (no wipe) */
.beat.scrub .w.wordmark {
  -webkit-mask: url(/assets/wordmark.svg) no-repeat center / contain;
          mask: url(/assets/wordmark.svg) no-repeat center / contain;
  display: inline-block;
}
/* Phone, the putt: the sky above the flag is short, so the drawing stands beside the words, not over them */
@media (orientation: portrait) {
  .moment-putt .beat.has-hands { display: grid; grid-template-columns: auto auto; justify-content: end; column-gap: calc(14 * var(--u)); align-items: center; }
  .moment-putt .beat.has-hands .hands { grid-row: 1 / span 3; grid-column: 1; height: calc(112 * var(--u)); margin: 0; }
  .moment-putt .beat.has-hands > :not(.hands) { grid-column: 2; justify-self: end; }
  .moment-putt .beat { top: calc(var(--safe-top) + 96 * var(--u)); }
}
/* Large screens: the chrome grows with the page (the design px), never below its laptop size */
@media (orientation: landscape) {
  .nav { padding: calc(var(--safe-top) + max(28px, 28 * var(--u))) max(64px, 64 * var(--u)) 20px; }
  .brand { font-size: max(30px, calc(30 * var(--u))); }
  .nav .btn { height: max(40px, calc(40 * var(--u))); padding: 0 max(20px, calc(20 * var(--u))); font-size: max(13px, calc(13 * var(--u))); }
  .end-copy .btn-lg { height: max(52px, calc(56 * var(--u))); padding: 0 max(28px, calc(32 * var(--u))); font-size: max(15px, calc(15 * var(--u))); }
  .foot, .end-note { font-size: max(14px, calc(15 * var(--u))); }
}
