/* Layout: one dark production slate. The show's own figures (shot codes,
   bid days, tokens, margin) run through it in mono, the way they read in
   the product; cyan marks only what to look at or click. */
:root {
  --ink: #030818;
  --slate: #06122c;
  --raise: #0b1c44;
  --line: rgba(214, 236, 242, 0.10);
  --fg: #eef3f8;
  --soft: #b9c7d6;
  --muted: #8a99ab;
  --cyan: #22e0c0;
  --rim: #ffa62b;
  --cyan-ink: #04131c;
  --display: "Anton", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink); color: var(--fg);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 2px; background: var(--cyan); color: var(--cyan-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
::selection { background: rgba(255, 166, 43, 0.35); color: #fff; }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wrap); margin: 0 auto; }

.eyebrow { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--rim); font-weight: 500; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(48px, 8.4vw, 112px); line-height: 0.95; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1; }
h3 { font: 600 21px/1.3 var(--body); margin: 0; text-wrap: balance; }
p { margin: 0; }
.accent { color: var(--rim); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--body); text-decoration: none;
  padding: 15px 22px; border-radius: 2px; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--cyan-ink); }
.btn-primary:hover { background: #2fd3bb; }
.btn-quiet { border-color: var(--line); color: var(--fg); }
.btn-quiet:hover { border-color: rgba(34, 224, 192, 0.5); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Header */
header.band { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: rgba(7, 9, 11, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.bar img { height: 20px; width: auto; }
.bar nav { display: flex; gap: 24px; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.bar nav a:hover { color: var(--fg); }
.bar .btn { padding: 10px 16px; font-size: 14.5px; }
@media (max-width: 640px) { .bar nav { display: none; } .bar .btn { margin-left: auto; } }

/* Teaser: the type is in the picture, so nothing sits on it. As wide as the
   window, as long as all of it fits under the header. */
.teaser { background: #000; border-bottom: 1px solid var(--line); }
.teaser .frame { position: relative; width: min(100%, calc((100svh - 66px) * 16 / 9)); margin-inline: auto; aspect-ratio: 16 / 9; }
.teaser video { width: 100%; height: 100%; }
/* Top right, clear of the chapter rail along the bottom of the picture. */
.teaser button { position: absolute; right: clamp(8px, 1.4vw, 24px); top: clamp(8px, 1.4vw, 24px); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--fg); background: rgba(7, 9, 11, 0.6); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.teaser button[hidden] { display: none; }
.teaser button:hover { color: var(--rim); }
.teaser button svg { width: 16px; height: 16px; }
.teaser button .pause, .teaser button.playing .play { display: none; }
.teaser button.playing .pause { display: block; }

/* Hero: the claim, then who it's for and the way in, all above the teaser. */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.hero .wrap { display: grid; gap: clamp(24px, 3vw, 36px); }
.hero-side { display: grid; gap: 18px; }
.hero .lede { max-width: 46ch; font-size: clamp(18px, 2vw, 21px); color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.assure { font: 400 13.5px/1.4 var(--mono); color: var(--muted); }
@media (min-width: 900px) {
  .hero-side { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: start; column-gap: 48px; }
  .hero-side .lede { grid-row: 1 / span 2; }
  .hero-side .actions, .hero-side .assure { grid-column: 2; }
  .hero-side .actions { margin-top: 4px; }
}


/* The show, stage by stage */
.show { padding-block: clamp(72px, 9vw, 120px) 0; }
.show .head { display: grid; gap: 20px; max-width: 760px; justify-items: start; }
/* A slate: the show's fields, labelled the way a clapperboard labels them. */
.slate { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--line); border-radius: 2px; }
.slate div { display: grid; gap: 2px; padding: 8px 16px 9px; min-width: 0; }
.slate div + div { border-left: 1px solid var(--line); }
.slate dt { font: 500 11px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.slate dd { margin: 0; font: 500 15px/1.3 var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.show .head .sub { color: var(--soft); max-width: 60ch; margin-top: -6px; text-wrap: pretty; }
@media (max-width: 560px) {
  .slate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .slate div:nth-child(3) { border-left: 0; }
  .slate div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.stages { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stages li { padding: 20px 18px 4px 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.stages li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.stages .n { font: 500 12px/1 var(--mono); color: var(--rim); letter-spacing: 0.1em; }
.stages strong { font: 600 17px/1.3 var(--body); }
.stages .fig { font: 500 22px/1.15 var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; display: grid; gap: 3px; }
.stages .fig small { font: 500 11px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stages .note { font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 980px) {
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stages li:nth-child(4) { padding-left: 0; border-left: 0; }
  .stages li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages li:nth-child(4) { padding-left: 18px; border-left: 1px solid var(--line); }
  .stages li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stages li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Who it's for */
.who { padding-block: clamp(80px, 10vw, 136px) 0; }
.who > .wrap > .head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.role { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.role:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.role:nth-of-type(even) .copy { order: 2; }
/* The Assistant's phone screenshot is narrow: the words get the wide column. */
.role.ask { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.role.ask .shot.tall { max-width: 300px; }
.close .assure { font: 400 13.5px/1.4 var(--mono); color: var(--muted); max-width: none; }
.role .copy p, .role li, .forged-note, .close p { text-wrap: pretty; }
.role .copy { display: grid; gap: 14px; min-width: 0; }
.role .copy > p { color: var(--soft); max-width: 46ch; }
.role ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.role li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15.5px; max-width: 50ch; }
.role li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--cyan); }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: var(--slate); min-width: 0; }
.shot img { width: 100%; height: auto; }
.shot.tall { max-width: 340px; justify-self: center; }
.role .for { font: 400 13px/1.4 var(--mono); color: var(--fg); margin-top: -4px; }
.role .for span { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; margin-right: 10px; }
/* Crop marks: product screens framed the way a print or a plate is, with
   registration ticks just outside each corner. */
.marks { --tick: rgba(214, 236, 242, 0.42); position: relative; overflow: visible; border-radius: 2px; }
.marks img { border-radius: 1px; }
.marks::before { content: ""; position: absolute; inset: -12px; pointer-events: none;
  background:
    linear-gradient(var(--tick), var(--tick)) left top / 8px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) left top / 1px 8px no-repeat,
    linear-gradient(var(--tick), var(--tick)) right top / 8px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) right top / 1px 8px no-repeat,
    linear-gradient(var(--tick), var(--tick)) left bottom / 8px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) left bottom / 1px 8px no-repeat,
    linear-gradient(var(--tick), var(--tick)) right bottom / 8px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) right bottom / 1px 8px no-repeat; }
/* A small panel shown at its own size rather than blown up. */
.shot figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--mono); color: var(--muted); text-wrap: pretty; }
/* A small panel shown at its own size, its frame fitted to it. */
.shot.fit { width: fit-content; max-width: 100%; justify-self: center; }
.shot.fit img { width: auto; max-width: 100%; margin: 16px 16px 14px; max-width: calc(100% - 32px); border-radius: 2px; }
.shot.fit figcaption { max-width: 481px; }
.prov-shot.marks { border-radius: 2px; overflow: visible; }
@media (max-width: 820px) {
  .role, .role:nth-of-type(even), .role.ask { grid-template-columns: minmax(0, 1fr); }
  .role:nth-of-type(even) .copy { order: 0; }
}

/* Forged in production: where it has been used, as a credit list. */
.forged { padding-block: clamp(80px, 10vw, 136px) 0; }
.forged h2 { margin-bottom: 28px; }
.forged .credits .facts { font: 400 15px/1.5 var(--body); color: var(--soft); max-width: 36ch; }
.forged .credits .name { font-size: clamp(26px, 2.8vw, 36px); }
.forged-note { margin: 24px 0 0; max-width: 70ch; color: var(--soft); }
.forged-note a { color: var(--rim); text-decoration: none; white-space: nowrap; }
.forged-note a:hover { text-decoration: underline; }
.forged-fine { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* Tutorials */

/* Close */
.close { padding-block: clamp(88px, 11vw, 144px); }
.close .wrap { display: grid; gap: 22px; justify-items: start; }
.close p { color: var(--soft); max-width: 52ch; font-size: 18px; }
footer.band { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-block: 24px; font: 400 13px/1.4 var(--mono); color: var(--muted); }
footer img { height: 14px; width: auto; opacity: 0.8; }

/* Playlist rows with thumbnails (home) */

/* Header: the current page */
.bar nav a[aria-current="page"] { color: var(--fg); }

/* Tutorials index */
.page-head { padding-block: clamp(48px, 7vw, 88px) 0; }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(44px, 6.4vw, 84px); }
.page-head p.lede { max-width: 58ch; color: var(--soft); font-size: 18px; }
.shelf { padding-block: clamp(48px, 6vw, 72px) 0; }
.shelf .head { display: grid; gap: 10px; max-width: 760px; margin-bottom: 24px; }
.shelf .head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.card { display: grid; gap: 10px; text-decoration: none; color: inherit; align-content: start; min-width: 0; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); transition: border-color .15s ease, transform .15s ease; }
.card:hover img { border-color: rgba(34, 224, 192, 0.55); transform: translateY(-2px); }
.card .meta { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.card h3 { font-size: 17px; }
.card:hover h3 { color: var(--rim); }
.card .len { font: 400 13px/1 var(--mono); color: var(--muted); flex: none; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.end { padding-block: clamp(72px, 9vw, 112px); }

/* Tutorial page */
.crumbs { font: 400 13px/1.4 var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rim); }
.crumbs b { color: var(--rim); font-weight: 500; }
.watch { padding-block: 28px 0; }
.watch .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.player { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: #000; }
.player video, .player iframe, .player .poster { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
/* A YouTube tutorial's poster until it's pressed (build.py player). */
.player .poster { position: relative; padding: 0; background: #000; cursor: pointer; }
.player .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player .poster .play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; display: grid; place-items: center; color: var(--fg); background: rgba(7, 9, 11, 0.6); border: 1px solid var(--line); border-radius: 50%; }
.player .poster .play svg { width: 26px; height: 26px; margin-left: 3px; }
.player .poster:hover .play, .player .poster:focus-visible .play { color: var(--rim); border-color: var(--rim); }
.chapters { background: var(--slate); border: 1px solid var(--line); border-radius: 2px; padding: 16px 8px 8px; max-height: min(560px, 56vw); overflow-y: auto; }
.chapters h2 { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; color: var(--muted); padding: 0 10px 8px; }
.chapters ol { list-style: none; margin: 0; padding: 0; }
.chapters a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 8px 10px; border-radius: 2px; text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.chapters a:hover, .chapters a.on { background: var(--raise); }
.chapters a.on .c { color: var(--rim); }
.chapters .c { font: 400 12.5px/1.6 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .watch .wrap { grid-template-columns: minmax(0, 1fr); } .chapters { max-height: none; } }

.about { padding-block: clamp(40px, 5vw, 64px) 0; }
.about .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); }
.about .intro { font-size: 18.5px; color: var(--soft); max-width: 60ch; }
.about .downloads { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.about .downloads .size { opacity: .7; font-weight: 400; margin-left: 6px; }
.about .on-youtube { margin-top: 16px; font-size: 15px; }
.points { background: var(--slate); border: 1px solid var(--line); border-radius: 2px; padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--soft); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--cyan); }
@media (max-width: 900px) { .about .wrap { grid-template-columns: minmax(0, 1fr); } }

.steps { padding-block: clamp(56px, 7vw, 88px) 0; }
.steps > .wrap > .head { display: grid; gap: 10px; margin-bottom: 8px; }
.step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 40px); padding-block: 28px; border-top: 1px solid var(--line); align-items: start; }
.step .copy { display: grid; gap: 10px; min-width: 0; }
.step .n { font: 500 12px/1 var(--mono); color: var(--rim); letter-spacing: 0.1em; }
.step .copy p { color: var(--soft); font-size: 16px; }
.step .copy strong { color: var(--fg); font-weight: 600; }
.step .copy em { color: var(--fg); }
.step img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px; }
@media (max-width: 820px) { .step { grid-template-columns: minmax(0, 1fr); } }

.next { padding-block: clamp(64px, 8vw, 104px); }
.next .wrap { display: grid; gap: 20px; }
.next .card { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px; align-items: center; }
.next .card .txt { display: grid; gap: 8px; }
@media (max-width: 640px) { .next .card { grid-template-columns: minmax(0, 1fr); } }
.also { font-size: 15px; color: var(--muted); }
.also a { color: var(--fg); }

/* Playlist rows: number, thumbnail, title and length share one top line. */
.card .meta { align-items: start; }

/* Made on Loft: the productions themselves, then the tally across them. */
.made { padding-block: clamp(80px, 10vw, 128px) 0; }
.made .head { display: grid; gap: 14px; margin-bottom: 32px; }
.credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.credits li { display: grid; gap: 6px; padding: 22px 18px 22px 0; min-width: 0; }
.credits li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.credits .name { font: 400 clamp(34px, 4.4vw, 56px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.credits .facts { font: 400 13px/1.4 var(--mono); color: var(--muted); }
.tally { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tally div { padding: 18px 18px 18px 0; display: grid; gap: 4px; min-width: 0; }
.tally div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.tally dt { font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tally dd { margin: 0; font: 500 clamp(24px, 2.6vw, 32px)/1.1 var(--mono); color: var(--rim); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .credits { grid-template-columns: minmax(0, 1fr); }
  .credits li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tally div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.made .head p:not(.eyebrow) { color: var(--soft); max-width: 56ch; }
.made .tally-head { margin: 32px 0 0; padding-bottom: 4px; }
.made .tally { margin-top: 10px; }

/* Our story */
.story-head .lede { max-width: 62ch; }
.career, .research, .shows { padding-block: clamp(72px, 9vw, 120px) 0; }
.career .head, .research .head, .shows .head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 36px; }
.career .head p:not(.eyebrow), .research .head p:not(.eyebrow) { color: var(--soft); }
.years { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.years li { display: grid; grid-template-columns: 96px minmax(0, 260px) minmax(0, 1fr); gap: 8px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.years .yr { font: 500 15px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.years strong { font: 600 18px/1.3 var(--body); }
.years li > span:last-child { color: var(--muted); font-size: 15.5px; }
.years li.now .yr, .years li.now strong { color: var(--rim); }
.years li.now > span:last-child { color: var(--soft); }
@media (max-width: 720px) {
  .years li { grid-template-columns: 64px minmax(0, 1fr); }
  .years li > span:last-child { grid-column: 2; }
}
.qa { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.qa div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; min-width: 0; }
.qa dt { font: 600 19px/1.35 var(--body); text-wrap: balance; }
.qa dd { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .qa { grid-template-columns: minmax(0, 1fr); } }
.shows .credits { list-style: none; }
.shows .credits .facts { font: 400 15px/1.5 var(--body); color: var(--muted); max-width: 34ch; }
.close .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Our story: a full-bleed frame behind the opening, the shows as galleries. */
.story-hero { position: relative; overflow: hidden; background: var(--ink); }
.story-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: 0.7; }
.story-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 11, 0.94) 0%, rgba(7, 9, 11, 0.72) 48%, rgba(7, 9, 11, 0.2) 100%), linear-gradient(0deg, var(--ink) 0%, rgba(7, 9, 11, 0) 40%); }
.story-hero > .band { position: relative; z-index: 1; padding-block: clamp(96px, 14vw, 200px) clamp(56px, 7vw, 96px); }
.story-hero .wrap { display: grid; gap: 22px; }
.story-hero h1 { font-size: clamp(48px, 7.6vw, 104px); }
.story-hero .lede { max-width: 56ch; font-size: clamp(17px, 1.8vw, 20px); color: var(--soft); }
.hero-credit { position: relative; z-index: 1; margin: 0; padding-block: 0 20px; font: 400 12.5px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--muted); }
.hero-credit .wrap { display: block; }

.director { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.director .head { margin-bottom: 0; }
.director:has(.portrait) { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.portrait { margin: 0; border-radius: 2px; overflow: hidden; border: 1px solid var(--line); }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.portrait figcaption { padding: 10px 14px; font: 400 12.5px/1.4 var(--mono); color: var(--muted); border-top: 1px solid var(--line); background: var(--slate); }
@media (max-width: 720px) { .director:has(.portrait) { grid-template-columns: minmax(0, 1fr); } .portrait { max-width: 320px; } }

.shows .head p:not(.eyebrow) { color: var(--soft); }
.show-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "copy lead" ". strip"; gap: 14px clamp(24px, 4vw, 48px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.show-copy { grid-area: copy; display: grid; gap: 12px; align-content: start; min-width: 0; }
.show-copy p:not(.eyebrow) { color: var(--soft); max-width: 40ch; }
.show-name { font: 400 clamp(44px, 5.6vw, 76px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }
.show-row .lead { grid-area: lead; margin: 0; min-width: 0; }
.show-row .lead img, .strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); display: block; }
.strip { grid-area: strip; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
@media (max-width: 820px) {
  .show-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "lead" "strip"; }
  .strip { gap: 8px; }
}
.show-copy .press { font: 400 13px/1.5 var(--mono); color: var(--muted); }
.show-copy .press a { color: var(--fg); text-decoration-color: rgba(34, 224, 192, 0.5); text-underline-offset: 3px; }
.show-copy .press a:hover { color: var(--rim); }

/* Header: Sign in beside Get started. */
.bar .account { display: flex; align-items: center; gap: 18px; flex: none; }
.bar .sign-in { color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 500; }
.bar .sign-in:hover { color: var(--rim); }
@media (max-width: 640px) { .bar .account { margin-left: auto; gap: 14px; } }

/* Integrations: a card per kind of work, name left and maker right. */
.integ { padding-block: clamp(64px, 8vw, 104px) 0; }
.integ .head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 32px; }
.integ .head p:not(.eyebrow) { color: var(--soft); }
.integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.integ-card { background: var(--slate); border: 1px solid var(--line); border-radius: 2px; padding: 22px 22px 18px; display: grid; gap: 12px; min-width: 0; }
.integ-card h3 { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rim); }
.integ-card ul { list-style: none; margin: 0; padding: 0; }
.integ-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.integ-card li b { font-weight: 600; font-size: 15.5px; min-width: 0; }
.integ-card li span { font: 400 12.5px/1.4 var(--mono); color: var(--muted); text-align: right; flex: none; max-width: 50%; }
.integ-card > p { color: var(--muted); font-size: 14.5px; }
.integ .via { margin-top: 22px; font: 400 13px/1.6 var(--mono); color: var(--fg); }
.integ .via span { color: var(--muted); margin-right: 10px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 32px; }
.soon-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.soon-list b { font-weight: 600; }
.soon-list span { color: var(--muted); font-size: 15px; }
.integ-grid.pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .integ-grid.pairs { grid-template-columns: minmax(0, 1fr); } }

/* Compare: Loft's column lit, the others plain; the table scrolls inside
   its frame on a phone rather than widening the page. */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 2px; background: var(--slate); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); vertical-align: baseline; }
.compare thead th { border-top: 0; font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--fg); }
.compare td { font: 400 13.5px/1.4 var(--mono); color: var(--muted); }
.compare td.part { color: var(--soft); }
.compare td.yes { color: var(--fg); }
.compare .loft { background: var(--raise); }
.compare thead .loft, .compare td.loft.yes { color: var(--rim); }
.soon-list a { text-decoration: none; }
.soon-list a:hover b { color: var(--rim); }
.compare tbody th { position: sticky; left: 0; z-index: 1; background: var(--slate); min-width: 200px; }
@media (max-width: 640px) { .compare tbody th { min-width: 150px; font-size: 14px; } }

/* Investors: numbered differentiator cards and a two-axis market map with
   Loft's corner lit. */
.diffs .n { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.1em; margin: 0; }
.diffs .claim { color: var(--fg); font-size: 16.5px; font-weight: 500; }
.market-map { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 0 34px 34px; }
.market-map .cell { background: var(--slate); border: 1px solid var(--line); border-radius: 2px; padding: 22px; min-height: 140px; display: grid; gap: 6px; align-content: end; min-width: 0; }
.market-map .cell b { font-weight: 600; font-size: 17px; }
.market-map .cell span { font: 400 13px/1.5 var(--mono); color: var(--muted); }
.market-map .loft { background: var(--raise); border-color: rgba(34, 224, 192, 0.45); }
.market-map .loft b { color: var(--rim); font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; line-height: 1; }
.market-map .tl { grid-area: 1 / 1; } .market-map .tr { grid-area: 1 / 2; }
.market-map .bl { grid-area: 2 / 1; } .market-map .br { grid-area: 2 / 2; }
.market-map .axis { position: absolute; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.market-map .axis.x { left: 34px; right: 0; bottom: 6px; text-align: right; }
.market-map .axis.x::before { content: "→ "; color: var(--rim); }
.market-map .axis.y { left: 0; top: 0; bottom: 34px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: right; }
.market-map .axis.y::after { content: " →"; color: var(--rim); }
.more-link { margin: 22px 0 0; }
.more-link a { color: var(--fg); text-decoration-color: rgba(34, 224, 192, 0.5); text-underline-offset: 3px; }
.more-link a:hover { color: var(--rim); }
@media (max-width: 560px) { .market-map .cell { min-height: 120px; padding: 16px; } .market-map .loft b { font-size: 28px; } }
.soon-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .soon-list.two { grid-template-columns: minmax(0, 1fr); } }

/* Commercials: the delivery list is the centrepiece. */
.cm-hero h1 { font-size: clamp(56px, 10vw, 136px); line-height: 0.95; }
.cm-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cm-section { padding-block: clamp(72px, 9vw, 120px) 0; }
.cm-section .head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 40px); }
.cm-section .head > p:not(.eyebrow) { color: var(--soft); }
.cm-board { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); border: 1px solid var(--line); border-radius: 2px; background: var(--slate); overflow: hidden; }
.cm-matrix { padding: clamp(16px, 2.4vw, 28px); border-right: 1px solid var(--line); min-width: 0; }
.cm-scroll { overflow-x: auto; }
.cm-board table { border-collapse: collapse; width: 100%; font: 400 13px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.cm-board th { font-weight: 500; color: var(--muted); padding: 6px; text-align: center; white-space: nowrap; }
.cm-board thead th:first-child, .cm-board tbody th { text-align: left; padding-left: 0; }
.cm-board tr.first th, .cm-board tr.first td { border-top: 1px solid var(--line); }
.cm-board td { padding: 4px; }
.cm-cell { appearance: none; display: block; width: 100%; min-width: 38px; height: 26px; padding: 0; border: 1.5px solid var(--cyan); background: transparent; cursor: pointer; }
.cm-cell.delivered { background: var(--cyan); }
.cm-cell.qc { background: linear-gradient(90deg, var(--cyan) 50%, transparent 50%); }
.cm-cell.version { background: rgba(34, 224, 192, 0.18); }
.cm-cell.master { border: 1.5px dashed rgba(214, 236, 242, 0.28); }
.cm-cell[aria-pressed="true"] { outline: 2px solid var(--fg); outline-offset: 2px; }
.cm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font: 400 13px/1.3 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.cm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cm-legend .cm-cell { width: 18px; min-width: 18px; height: 12px; cursor: default; }
.cm-record { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.cm-record dl, .cm-slip dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: 15px; }
.cm-record dt, .cm-slip dt { font: 400 13px/1.75 var(--mono); color: var(--muted); }
.cm-record dd, .cm-slip dd { margin: 0; overflow-wrap: anywhere; }
.cm-steps { display: grid; border-bottom: 1px solid var(--line); }
.cm-step { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 10px 32px; padding-block: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); align-items: baseline; }
.cm-step-name { font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rim); }
.cm-step p { color: var(--soft); max-width: 52ch; }
.cm-slip { border: 1px solid var(--line); border-radius: 2px; background: var(--slate); padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; min-width: 0; }
.cm-starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; padding-block: 8px; }
.cm-starts > div { display: grid; gap: 8px; align-content: start; min-width: 0; }
.close .cm-starts p:not(.eyebrow) { font-size: 16px; }
@media (max-width: 820px) {
  .cm-board { grid-template-columns: minmax(0, 1fr); }
  .cm-matrix { border-right: 0; border-bottom: 1px solid var(--line); }
  .cm-step { grid-template-columns: minmax(0, 1fr); }
  .cm-starts { grid-template-columns: minmax(0, 1fr); }
}
.close .wrap > .eyebrow, .close .cm-starts .eyebrow { font-size: 12.5px; color: var(--muted); }

/* Footer links */
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer nav a { color: inherit; text-decoration: none; }
footer nav a:hover { color: var(--rim); }

/* Company */
.co-section { padding-block: clamp(56px, 7vw, 88px) 0; }
.co-section h2 { margin-bottom: 26px; }
.co-record { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.co-record li { display: grid; align-content: start; gap: 8px; padding: 20px 20px 4px 0; }
.co-record li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.co-record .fig { font: 500 22px/1.15 var(--mono); }
.co-record .note { font-size: 15px; line-height: 1.5; color: var(--muted); }
.co-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.co-team article { display: grid; align-content: start; gap: 8px; padding: 26px; background: var(--slate); border: 1px solid var(--line); border-radius: 2px; }
.co-team h3 { font-size: 24px; }
.co-team p:last-child { margin: 8px 0 0; color: var(--soft); }
.co-team p { margin: 0; }
.co-intro { max-width: 62ch; margin: 0 0 22px; font-size: 18px; color: var(--soft); }
.co-shows { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.co-shows li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.co-shows strong { font-weight: 600; }
.co-shows span { color: var(--soft); }
.jf-logo { display: block; width: 160px; height: auto; margin-top: 28px; }
.co-fine { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.co-beliefs { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: clamp(18px, 2vw, 22px); }
.co-beliefs li { padding-left: 18px; border-left: 2px solid var(--cyan); }
.co-contact { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; margin: 0; padding: 0; font: 400 15px/1.5 var(--mono); color: var(--soft); }
.co-contact a { color: var(--rim); text-decoration: none; }
.co-contact a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .co-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-record li:nth-child(3) { padding-left: 0; border-left: 0; }
  .co-team { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .co-record { grid-template-columns: minmax(0, 1fr); }
  .co-record li, .co-record li + li { padding: 16px 0; border-left: 0; }
  .co-record li + li { border-top: 1px solid var(--line); }
  .co-shows li { grid-template-columns: minmax(0, 1fr); }
}

/* Provenance */
.prov { padding-block: clamp(80px, 10vw, 136px) 0; }
.prov .head { display: grid; gap: 14px; max-width: 760px; }
.prov .head p:last-child { margin: 0; font-size: 18px; color: var(--soft); }
.prov-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.prov-points li { display: grid; align-content: start; gap: 6px; padding: 18px 20px 4px 0; }
.prov-points li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.prov-points strong { font: 600 17px/1.3 var(--body); }
.prov-points span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.prov-shot { margin: 28px 0 0; overflow: hidden; background: var(--slate); border: 1px solid var(--line); border-radius: 2px; }
.prov-shot img { width: 100%; height: auto; }
/* Phone: a product screen too wide to read as a picture is shown as its rows. */
.phone-rows { display: none; }
@media (max-width: 760px) {
  .has-rows > img { display: none; }
  .phone-rows { display: grid; }
  .phone-rows .row { padding: 14px 16px; display: grid; gap: 8px; }
  .phone-rows .row + .row { border-top: 1px solid var(--line); }
  .phone-rows .file { font: 500 14px/1.4 var(--mono); color: var(--fg); overflow-wrap: anywhere; }
  .phone-rows dl { margin: 0; display: grid; gap: 4px; }
  .phone-rows dl div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 14.5px; line-height: 1.45; }
  .phone-rows dt { font: 500 11.5px/1.9 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .phone-rows dd { margin: 0; color: var(--soft); }
  .phone-rows dd.num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); }
  .phone-rows .flagged dl div:last-child dd { color: var(--fg); outline: 2px solid var(--cyan); outline-offset: 2px; padding: 1px 6px; border-radius: 2px; width: fit-content; }
}
.prov-shot figcaption { padding: 10px 16px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--mono); color: var(--muted); }
.prov-more { margin: 16px 0 0; }
.prov-more a { color: var(--rim); text-decoration: none; }
.prov-more a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .prov-points { grid-template-columns: minmax(0, 1fr); }
  .prov-points li, .prov-points li + li { padding: 14px 0; border-left: 0; }
  .prov-points li + li { border-top: 1px solid var(--line); }
}

/* FAQ */
.faq { padding-block: clamp(80px, 10vw, 136px) 0; }
.faq h2 { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font: 400 22px/1 var(--mono); color: var(--rim); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:hover { color: var(--rim); }
.faq-list p { max-width: 68ch; margin: 0; padding: 0 0 18px; color: var(--soft); }
.faq-list a { color: var(--rim); }


/* Asset management: six questions, two rows of three. */
.am-points li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.am-points li:nth-child(n+4) { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .am-points li:nth-child(n) { padding: 14px 0; border-left: 0; } }

/* Phone: the section links move into a slide-in menu. */
.menu-toggle { display: none; flex: none; width: 40px; height: 40px; padding: 0; margin-right: -8px; background: none; border: 0; color: var(--fg); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.22s ease, opacity 0.22s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer-scrim { position: fixed; inset: 0; z-index: 8; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.25s ease; }
.drawer-scrim.open { opacity: 1; }
.drawer { position: fixed; z-index: 9; top: 0; right: 0; bottom: 0; width: min(82vw, 320px); overflow-y: auto;
  padding: calc(72px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); border-left: 1px solid var(--line); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.8);
  display: flex; flex-direction: column; gap: 28px; transform: translateX(100%); transition: transform 0.25s ease; }
.drawer.open { transform: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 17px; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--fg); }
.drawer nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--cyan); padding-left: 12px; }
.drawer-account { display: flex; flex-direction: column; gap: 10px; }
.drawer-account .btn { justify-content: center; }
html.menu-open { overflow: hidden; }
@media (max-width: 640px) {
  .menu-toggle { display: inline-flex; }
  header.band { z-index: 10; }
}
@media (max-width: 420px) { .bar .sign-in { display: none; } .bar { gap: 14px; } }
@media (min-width: 641px) { .drawer, .drawer-scrim { display: none; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim, .menu-toggle span { transition: none; } }

/* Infrastructure: the three-part map reads left to right on wide screens. */
.infra-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .infra-map { grid-template-columns: minmax(0, 1fr); } }
.integ .via a { color: var(--rim); }

/* News: the index reuses the tutorial cards; an article reads as one column. */
.article-head h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 24ch; }
.card .eyebrow { font-size: 11.5px; }
.article-cover { padding-block: clamp(32px, 4vw, 48px) 0; }
.article-cover img { width: auto; max-width: 100%; height: auto; max-height: 640px; margin-inline: auto; border-radius: 2px; border: 1px solid var(--line); }
.article { padding-block: clamp(32px, 4vw, 56px) 0; }
.prose { max-width: 70ch; font-size: 17.5px; color: var(--soft); }
.prose > * { margin: 0 0 1.1em; }
.prose h2, .prose h3 { color: var(--fg); margin-top: 1.8em; line-height: 1.25; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }
.prose a { color: var(--rim); text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
.prose img { border-radius: 2px; border: 1px solid var(--line); margin-block: 0.4em; }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 2px solid var(--cyan); color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose code { font: 400 0.9em var(--mono); background: var(--raise); padding: 1px 5px; border-radius: 2px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* Contact */
.ct-section { padding-block: clamp(24px, 3vw, 40px) clamp(72px, 9vw, 120px); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 820px) { .ct-grid { grid-template-columns: 1fr; } }
.ct-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--slate); border: 1px solid var(--line); border-radius: 2px; }
.ct-form label { display: grid; gap: 8px; font: 500 13px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ct-opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.ct-form input, .ct-form textarea { width: 100%; padding: 12px 14px; font: 400 16px/1.5 var(--body); color: var(--fg); background: var(--ink); border: 1px solid var(--line); border-radius: 2px; }
.ct-form textarea { resize: vertical; min-height: 140px; }
.ct-form input::placeholder { color: var(--muted); }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--rim); }
.ct-form input:disabled, .ct-form textarea:disabled, .ct-form button:disabled { opacity: .5; }
.ct-form button { justify-self: start; cursor: pointer; }
.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-note { margin: 0; padding: 12px 14px; border-radius: 2px; font-size: 15px; }
.ct-note.ok { background: rgba(34, 224, 192, 0.08); border: 1px solid rgba(34, 224, 192, 0.35); color: var(--fg); }
.ct-note.bad { background: rgba(255, 110, 90, 0.08); border: 1px solid rgba(255, 110, 90, 0.4); color: #ffd2ca; }
.ct-direct { display: grid; gap: 26px; }
.ct-direct h2 { margin: 0 0 4px; font: 500 12.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ct-direct p { margin: 0; font-size: 19px; }
.ct-direct a { color: var(--rim); text-decoration: none; }
.ct-direct a:hover { text-decoration: underline; }

/* Learn: the pointer to Before you start, and that page's checklist. */
.page-head p.aside { color: var(--muted); }
.page-head p.aside a { color: var(--rim); }
.needs { padding-block: clamp(40px, 5vw, 64px) 0; }
.needs .inner { display: grid; gap: 20px; max-width: 760px; }
.needs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.needs li { padding-left: 22px; position: relative; color: var(--soft); }
.needs li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--cyan); }
.needs li b { color: var(--fg); font-weight: 600; }
.needs li a { color: var(--rim); }
.needs .actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 560px) {
  .hero .actions .btn { flex: 1 1 100%; justify-content: center; }
}
.close .assure a { color: var(--rim); text-decoration: none; }
.close .assure a:hover { text-decoration: underline; }

/* The Tokenator page. */
.tk-hero { padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.tk-hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.tk-hero-copy { display: grid; gap: 16px; }
.tk-hero h1 { max-width: 13ch; }
.tk-hero .lede { max-width: 54ch; }
.tk-meter { position: relative; margin: 0; padding: 40px 0 56px; }
.tk-meter::before { content: ""; position: absolute; inset: -10% -20% -10% 0; background: radial-gradient(closest-side, rgba(255, 166, 43, 0.16), transparent 70%); pointer-events: none; }
.tk-card { position: relative; padding: 22px; background: linear-gradient(180deg, var(--raise), var(--slate)); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); display: grid; gap: 18px; }
.tk-card-head { display: grid; justify-items: start; gap: 10px; }
.tk-label { font: 500 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tk-chip { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #1c1100; background: var(--rim); padding: 6px 8px; border-radius: 2px; }
.tk-bars { display: grid; gap: 12px; }
.tk-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; color: var(--soft); }
.tk-bar b { font: 500 14px/1 var(--mono); color: var(--fg); }
.tk-bar i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(214, 236, 242, 0.08); position: relative; overflow: hidden; }
.tk-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--to); border-radius: 3px; animation: tk-fill 1.4s cubic-bezier(.2, .7, .2, 1) both .3s; }
.tk-bar i.spent::after { background: var(--rim); }
.tk-bar i.earned::after { background: var(--cyan); }
.tk-forecast { display: flex; align-items: center; gap: 14px; padding-block: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.tk-forecast b { font: 400 64px/0.9 var(--display); color: var(--rim); letter-spacing: 0.01em; }
.tk-forecast small { font-size: 0.5em; }
.tk-forecast span { font-size: 14px; color: var(--soft); line-height: 1.4; }
.tk-forecast em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tk-burn { width: 100%; height: auto; overflow: visible; }
.tk-burn text { font: 9px var(--mono); fill: var(--muted); }
.tk-burn .budget { stroke: var(--muted); stroke-dasharray: 3 4; stroke-width: 1; }
.tk-burn .today { stroke: var(--line); stroke-width: 1; }
.tk-burn polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: tk-draw 1.6s ease-out forwards .5s; }
.tk-burn .spent { stroke: var(--rim); }
.tk-burn .earned { stroke: var(--cyan); }
.tk-burn .forecast { stroke: var(--rim); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0; animation: tk-in .6s ease-out forwards 2s; }
.tk-burn .dot { fill: var(--rim); opacity: 0; animation: tk-in .6s ease-out forwards 2.3s, tk-pulse 2.4s ease-in-out infinite 2.9s; transform-origin: 300px 16px; }
.tk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.tk-legend span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: currentColor; }
.tk-legend .spent::before { background: var(--rim); }
.tk-legend .earned::before { background: var(--cyan); }
.tk-legend .forecast::before { background: repeating-linear-gradient(90deg, var(--rim) 0 4px, transparent 4px 7px); }
.tk-float { position: absolute; display: grid; gap: 3px; padding: 12px 14px; background: rgba(6, 18, 44, 0.92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 13px; color: var(--soft); opacity: 0; animation: tk-rise .7s ease-out forwards; }
.tk-float b { color: var(--fg); font-size: 15px; font-weight: 600; }
.tk-float b .tk-mono { margin-left: 8px; color: var(--soft); }
.tk-mono { font: 500 13px/1.3 var(--mono); color: var(--fg); }
.tk-float-user { top: 0; right: -14px; grid-template-columns: auto auto; align-items: center; column-gap: 14px; animation-delay: 1.2s; }
.tk-float-user .tk-label { grid-column: 1 / -1; }
.tk-float-user .tk-hard { margin: 0; }
.tk-hard { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 3px; padding: 3px 7px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--rim); border: 1px solid rgba(255, 166, 43, 0.5); border-radius: 2px; }
.tk-hard svg { width: 12px; height: 12px; }
.tk-float-refused { bottom: 0; right: -14px; max-width: 250px; border-color: rgba(255, 92, 92, 0.45); animation-delay: 2.6s; }
.tk-float-refused .tk-label { color: #ff7a7a; }
@keyframes tk-fill { from { width: 0; } }
@keyframes tk-draw { to { stroke-dashoffset: 0; } }
@keyframes tk-in { to { opacity: 1; } }
@keyframes tk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tk-pulse { 50% { transform: scale(1.8); opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .tk-bar i::after, .tk-burn polyline, .tk-burn .forecast, .tk-burn .dot, .tk-float { animation: none; opacity: 1; stroke-dashoffset: 0; }
}
.tk-line { padding-block: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); background: var(--slate); }
.tk-line p { margin: 0; max-width: 30ch; font: 400 clamp(30px, 4.2vw, 54px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.tk-section { padding-block: clamp(56px, 7vw, 96px) 0; }
.tk-section .head { margin-bottom: 32px; }
.tk-watch { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tk-watch h2 { margin: 8px 0 16px; }
.tk-watch p { color: var(--soft); }
.tk-fine { font-size: 14px; color: var(--muted) !important; }
.tk-video { position: relative; display: block; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: #000; }
.tk-video img { width: 100%; height: auto; display: block; }
.tk-video .play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; display: grid; place-items: center; color: var(--fg); background: rgba(7, 9, 11, 0.6); border: 1px solid var(--line); border-radius: 50%; }
.tk-video .play svg { width: 26px; height: 26px; margin-left: 3px; }
.tk-video:hover .play, .tk-video:focus-visible .play { color: var(--rim); border-color: var(--rim); }
.tk-step { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: 28px; border-top: 1px solid var(--line); }
.tk-step:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tk-step:nth-of-type(even) > img { order: 2; }
.tk-step img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 2px; }
.tk-step h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 8px 0 10px; }
.tk-step p { color: var(--soft); margin: 0 0 14px; }
.tk-n { font: 500 12px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tk-at { font-size: 15px; }
.tk-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tk-levels article { padding: 24px; background: var(--slate); border: 1px solid var(--line); border-radius: 2px; }
.tk-levels h3 { font-size: 20px; margin: 0 0 8px; }
.tk-levels p { margin: 0; color: var(--soft); }
.tk-levels-band { padding-bottom: clamp(56px, 7vw, 96px); }
.tk-close { padding-bottom: clamp(56px, 7vw, 96px); }
.tk-close .lede { margin: 12px 0 24px; }
@media (max-width: 900px) {
  .tk-hero .wrap, .tk-watch, .tk-step, .tk-step:nth-of-type(even), .tk-levels { grid-template-columns: minmax(0, 1fr); }
  .tk-meter { padding-top: 76px; }
  .tk-float-user { right: 0; }
  .tk-float-refused { right: 0; }
  .tk-step:nth-of-type(even) > img { order: 0; }
}

/* The beta (build.py --beta): a bar over every page, and its index page. */
.beta-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 8px 16px; font-size: 14px; color: #1c1100; background: var(--rim); }
.beta-bar b { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.beta-bar a { color: inherit; text-decoration: underline; }
.beta-list { list-style: none; margin: 16px 0 24px; padding: 0; border-top: 1px solid var(--line); max-width: 640px; }
.beta-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.beta-list span { color: var(--muted); font-size: 14px; }
