/* Co-Existence: animated edition
   Layout: a fixed WebGL sky (with the cover's two hands) under one scrolling column of
   collage pieces, yellow tape labels and paper slips, like the jacket itself. */
:root {
  --sky:        #0aa2e4;   /* cover sky, sampled from the jacket */
  --sky-deep:   #0b6fb8;
  --tape:       #ffee00;   /* cover yellow */
  --ink:        #0d0e10;
  --paper:      #fbf8ef;
  --pen:        #e5322d;   /* the AI's proofreading pen */
  --night:      #141c45;
  --paper-ink:  #2a2c31;
  --shadow:     rgba(8, 40, 80, .28);

  --ff-label: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ff-read:  "Fraunces", Georgia, "Times New Roman", serif;

  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0a94dc 0%, #46b6ef 40%, #f3b38b 85%, #2b2f6a 100%) fixed var(--sky);
  color: var(--ink);
  font-family: var(--ff-read);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
/* Phones widen the page for anything poking past the edge (tilted slips, the AI cursor arriving from
   off screen), and overflow on body alone doesn't stop them. Clipping body itself does, without
   turning it into a scroller that would break the pinned scenes. */
@supports (overflow: clip) { html { overflow-x: hidden; } body { overflow-x: clip; } }
html.gl body { background: var(--sky); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--tape); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.selectable { user-select: all; }

/* ---------- stage ---------- */
#sky {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh;
  display: block; z-index: 0; pointer-events: none;
}
.stage-fallback { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
html.gl .stage-fallback { display: none; }
.fb-hand { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; will-change: transform; }

.gap-spec {
  position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none;
  opacity: 0; will-change: transform, opacity;
}
/* a proofreader's ring around the near-touch, with a leader up to the measurement */
.gap-spec__line {
  position: absolute; left: -19px; top: -19px; width: 38px; height: 38px;
  border: 2px solid var(--pen); border-radius: 50%;
}
.gap-spec__line::after {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 0; height: 34px;
  border-left: 2px solid var(--pen); transform: translateX(-1px);
}
.gap-spec__label {
  position: absolute; left: 0; top: -84px; transform: translateX(-50%);
  font: 700 .8125rem/1 var(--ff-label); color: #fff; background: var(--pen);
  padding: .35rem .5rem; border-radius: 2px; white-space: nowrap;
}

/* the warm light that blooms out of the gap as the view flies through it */
.gap-glow {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  --gx: 50%; --gy: 50%; --gr: 10vmax;
  background: radial-gradient(circle at var(--gx) var(--gy), #fff 0, #fff6e2 calc(var(--gr) * .1), rgba(255, 222, 168, .92) calc(var(--gr) * .3), rgba(255, 184, 120, .5) calc(var(--gr) * .62), rgba(255, 150, 100, 0) var(--gr));
}

/* first load: the jacket lies on a sheet of paper, then opens out into the sky */
.cover-intro { display: none; }
html.intro .cover-intro { display: block; position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.cover-intro__hole {
  position: absolute; left: 50%; top: 50%;
  height: min(76vh, 76svh, 128vw); aspect-ratio: 1000 / 1510; transform: translate(-50%, -50%);
  border-radius: 3px;
  box-shadow: 0 30px 60px -24px rgba(20, 34, 60, .45), 0 0 0 220vmax var(--paper);
}
.cover-intro__img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---------- tape: the jacket's yellow label blocks ---------- */
.tape {
  background: var(--tape); color: var(--ink);
  font-family: var(--ff-label); font-weight: 700;
  padding: .1em .38em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tape--line { display: inline; line-height: 1.62; }
.tape--title { display: inline-block; font-size: clamp(2.35rem, 8vw, 7.6rem); line-height: 1.12; padding: .06em .28em .02em; letter-spacing: .005em; }
.tape--title-sm { display: inline-block; font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.15; padding: .06em .3em .02em; }
.tape--stack { display: inline-block; font-size: clamp(1.15rem, 2.3vw, 2.05rem); line-height: 1.62; padding: .55em 1.3em .55em .6em; letter-spacing: .02em; }
.tape--author { display: inline-block; font-size: clamp(1.15rem, 2.6vw, 2.3rem); line-height: 1.3; padding: .3em .55em .2em; letter-spacing: .02em; }
.tape--credit { display: inline-block; font-weight: 500; font-size: clamp(.72rem, 1.1vw, .95rem); padding: .25em .7em .4em; margin-top: -1px; }
.tape--small { display: inline; font-weight: 500; font-size: clamp(.86rem, 1.5vw, 1.06rem); line-height: 1.85; }
.tape--name { display: inline-block; font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1.08; padding: .1em .3em; text-transform: uppercase; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gut-r) 14px var(--gut);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar__brand { text-decoration: none; font-size: .95rem; letter-spacing: .02em; padding: .3em .55em; }
.topbar__links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.topbar__links a {
  display: inline-block; text-decoration: none;
  font: 500 .8rem/1 var(--ff-label); letter-spacing: .01em;
  padding: .6em .75em; background: rgba(251, 248, 239, .9); color: var(--ink);
  transition: background .2s, transform .2s var(--ease);
}
.topbar__links a:hover { background: var(--paper); transform: translateY(-1px); }
.topbar__links a.topbar__cta { background: var(--tape); font-weight: 700; font-size: .92rem; padding: .7em 1em; box-shadow: 0 4px 0 -1px var(--ink); }
@media (max-width: 760px) { .hide-sm { display: none; } }
@media (max-width: 360px) { .topbar { gap: .5rem; } .topbar__brand { font-size: .85rem; } .topbar__links a.topbar__cta { font-size: .82rem; padding: .65em .75em; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 700 .95rem/1 var(--ff-label); text-decoration: none; cursor: pointer;
  border: 0; padding: .95em 1.25em; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 6px 0 -2px rgba(13, 14, 16, .9);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px rgba(13, 14, 16, .9); }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 -2px rgba(13, 14, 16, .9); }
.btn--tape { background: var(--tape); }
.btn--paper { background: var(--paper); }
.btn--sm { font-size: .8rem; padding: .7em .9em; }
.btn--block { width: 100%; }

/* ---------- scenes ---------- */
main, .hero, .footer { position: relative; z-index: 3; }
.scene { position: relative; padding-left: var(--gut); padding-right: var(--gut-r); }
.kicker {
  font: 500 .75rem/1 var(--ff-label); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: var(--paper); display: inline-block; padding: .55em .7em; margin: 0 0 1.4rem;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(34vh, 1fr) auto;
  grid-template-areas:
    "status status status"
    "title  title  title"
    "band   band   band"
    "stack  deck   author";
  column-gap: clamp(1rem, 3vw, 3rem);
  padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
  padding-bottom: clamp(1.5rem, 5vh, 3.5rem);
}
.hero__status {
  grid-area: status; margin: 0 0 .9rem; max-width: 100%;
  font: 500 .78rem/1.3 var(--ff-label); letter-spacing: .03em; color: var(--ink);
  justify-self: start; background: var(--paper); padding: .5em .75em;
  display: inline-flex; align-items: center; gap: .55em;
}
.hero__title { grid-area: title; margin: 0; display: contents; }
.hero__title .tape--title { grid-area: title; justify-self: start; align-self: start; }
.hero__title .tape--stack { grid-area: stack; justify-self: start; align-self: end; }
.hero__band { grid-area: band; min-height: 34vh; }
.hero__author { grid-area: author; justify-self: end; align-self: end; margin: 0; display: flex; flex-direction: column; align-items: flex-end; }
.hero__deck { grid-area: deck; align-self: end; justify-self: center; max-width: 34rem; }
.hero__deck p {
  margin: 0 0 1.1rem; background: var(--paper); padding: 1rem 1.2rem;
  font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.5; color: var(--paper-ink);
  box-shadow: 0 14px 30px -18px var(--shadow);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(20vh, 1fr) auto auto;
    grid-template-areas:
      "status status"
      "title  title"
      "band   band"
      "stack  author"
      "deck   deck";
    padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
    row-gap: 0;
  }
  .hero__band { min-height: 20vh; }
  .tape--title { font-size: clamp(2rem, 11.2vw, 5rem); }
  .hero__title .tape--stack { align-self: start; }
  .hero__author { align-self: start; margin-top: 18%; }
  .hero__deck { justify-self: stretch; max-width: none; margin-top: 1.6rem; }
}
@media (max-width: 420px) {
  .hero__status { font-size: .68rem; }
  .tape--stack { padding: .45em 1em .45em .5em; }
}

/* ---------- thesis ---------- */
.scene--thesis { padding-top: 26vh; padding-bottom: 10vh; max-width: 70rem; }
.statement {
  margin: 0; font-size: clamp(1.7rem, 4.6vw, 3.9rem); line-height: 1.2; font-weight: 700;
  text-wrap: balance; max-width: 22ch;
}
.statement .tape { font-weight: 700; }

/* ---------- paper slips ---------- */
.slip {
  position: relative; background: var(--paper); color: var(--paper-ink);
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3.4vw, 2.6rem);
  box-shadow: 0 30px 60px -30px var(--shadow), 0 2px 0 rgba(0, 0, 0, .04);
  transform: rotate(var(--tilt, 0deg));
  max-width: 40rem;
}
.slip p { margin: 0 0 1em; }
.slip p:last-child { margin-bottom: 0; }
.slip__lede { font-size: clamp(1.15rem, 1.9vw, 1.42rem); line-height: 1.45; font-weight: 400; }
.slip__lede::first-letter { font-family: var(--ff-label); font-weight: 700; background: var(--tape); padding: 0 .12em; margin-right: .04em; }
.slip__tag { font: 500 .78rem/1 var(--ff-label); letter-spacing: .06em; color: var(--sky-deep); }

/* ---------- story + questions ---------- */
.scene--story {
  padding-top: 8vh; padding-bottom: 12vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start;
  max-width: 82rem;
}
.slip--story { margin-left: clamp(0rem, 4vw, 4rem); }
.questions { list-style: none; margin: 18vh 0 0; padding: 0; display: grid; gap: 1.6rem; }
.questions li { transform: rotate(var(--tilt, 0deg)); max-width: 30rem; }
.questions li:nth-child(even) { margin-left: clamp(0rem, 6vw, 5rem); }
.tape--q { display: inline; font-weight: 500; font-size: clamp(.98rem, 1.5vw, 1.15rem); line-height: 1.9; padding: .2em .45em; }
@media (max-width: 800px) {
  .scene--story { grid-template-columns: minmax(0, 1fr); }
  .questions { margin-top: 4vh; }
  .slip--story { margin-left: 0; }
}

/* ---------- pull quote ---------- */
.scene--quote { padding-top: 14vh; padding-bottom: 18vh; display: flex; justify-content: flex-end; }
.pull { margin: 0; max-width: 46rem; background: var(--ink); color: #fff; padding: clamp(1.5rem, 4vw, 3rem); transform: rotate(-.6deg); box-shadow: 0 40px 70px -35px rgba(5, 20, 50, .55); }
.pull blockquote { margin: 0; }
.pull p { margin: 0; font-family: var(--ff-read); font-weight: 300; font-size: clamp(1.4rem, 3.1vw, 2.35rem); line-height: 1.28; }
.pull mark { background: var(--tape); color: var(--ink); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pull figcaption { margin-top: 1.4rem; font: 500 .8rem/1 var(--ff-label); letter-spacing: .06em; color: #c9ccd2; }
.pull figcaption::before { content: "\2014\00a0"; }
.pull cite { font-style: italic; }

/* ---------- the two figures (jagged frontier, exponential): pinned plates the scroll draws on ---------- */
.scene--frontier { height: 320vh; height: 320svh; padding-left: 0; padding-right: 0; }
.scene--expo { height: 320vh; height: 320svh; padding-left: 0; padding-right: 0; }
.frontier, .expo {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 5vw, 5rem);
  max-width: 82rem; margin: 0 auto; padding: 76px var(--gut-r) 28px var(--gut);
}
.expo { grid-template-columns: auto minmax(0, 1fr); }
.frontier__copy, .expo__copy { max-width: 30rem; }
.frontier__hed { margin: 0 0 1.4rem; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.3; }
/* One step at a time, in the same spot. */
.frontier__steps { display: grid; grid-template-areas: "s"; }
.frontier__step {
  grid-area: s; align-self: start;
  margin: 0; background: var(--paper); color: var(--paper-ink); padding: .95rem 1.15rem;
  font-size: clamp(1.02rem, 1.45vw, 1.25rem); line-height: 1.5;
  box-shadow: 0 14px 30px -18px var(--shadow);
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .6s var(--ease-out);
}
.frontier__step.is-past { opacity: 0; transform: translateY(-10px); }
.frontier__step.is-on { opacity: 1; transform: none; }
.frontier__plate {
  margin: 0; background: var(--paper); padding: clamp(.9rem, 2vw, 1.4rem);
  transform: rotate(.7deg); box-shadow: 0 34px 64px -30px var(--shadow), 0 2px 0 rgba(0, 0, 0, .04);
}
.frontier__fig { margin: 0 0 .6rem; font: 700 .7rem/1 var(--ff-label); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-deep); }
.frontier__fig span { color: #9aa0aa; }
/* sized by the height left after the plate's label and caption, so it never runs off a short screen */
.fmap { position: relative; width: min(44vw, calc(100vh - 250px), calc(100svh - 250px), 600px); min-width: 240px; aspect-ratio: 1; }
.fmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fmap__rings circle { fill: none; stroke: #b9c6d3; stroke-width: .5; stroke-dasharray: 1.6 2.2; opacity: 0; transform: scale(.6); transform-origin: 0 0; transition: opacity .6s, transform .9s var(--ease-out); }
.fmap__rings circle:nth-child(2) { transition-delay: .08s; } .fmap__rings circle:nth-child(3) { transition-delay: .16s; } .fmap__rings circle:nth-child(4) { transition-delay: .24s; }
.fmap.is-rings .fmap__rings circle { opacity: 1; transform: none; }
.fmap__ghost { fill: none; stroke: var(--pen); stroke-width: .7; stroke-dasharray: 1.4 1.8; opacity: 0; }
.fmap__wall { fill: rgba(229, 50, 45, 0); stroke: var(--pen); stroke-width: 1.1; stroke-linejoin: miter; stroke-miterlimit: 8; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fmap__task {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  opacity: 0; transition: opacity .5s var(--ease);
}
.fmap.is-rings .fmap__task { opacity: 1; }
.fmap__task i {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.fmap__task b {
  position: absolute; top: 0; width: max-content; max-width: 11.5em;
  font: 500 clamp(.62rem, .95vw, .78rem)/1.3 var(--ff-label); color: var(--ink);
  background: #fff; border: 1.5px dashed #9aa0aa; padding: .35em .5em;
  transform: translate(10px, -50%);
  transition: background .3s, border-color .3s, color .3s;
}
.fmap__task.is-left b { transform: translate(calc(-100% - 10px), -50%); }
.fmap__task.is-below b { transform: translate(-50%, 9px); text-align: center; }
.fmap__task.is-above b { transform: translate(-50%, calc(-100% - 9px)); text-align: center; }
.fmap__task.is-in i { background: var(--pen); border-color: var(--pen); transform: scale(1.15); }
.fmap__task.is-in b { background: var(--tape); border: 1.5px solid var(--tape); font-weight: 700; }
.fmap__task.is-out b { background: #fff; border-color: var(--ink); }
.frontier__cap { margin: .8rem 0 0; max-width: 34rem; font: 400 .72rem/1.45 var(--ff-label); color: #5b5e66; }

/* Fig. 2 is printed on black, like the pull quote */
.expo__plate {
  margin: 0; background: var(--ink); color: #fff; padding: clamp(.9rem, 2vw, 1.4rem);
  transform: rotate(-.6deg); box-shadow: 0 40px 70px -35px rgba(5, 20, 50, .55);
}
.expo__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 .7rem; }
.expo__plate .frontier__fig { margin: 0; color: var(--tape); }
.expo__plate .frontier__fig span { color: #7d828c; }
.expo__count { margin: 0; font-size: clamp(.95rem, 1.7vw, 1.4rem); line-height: 1; }
.expo__count .tape { display: inline-block; min-width: 5.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.expo__chart { position: relative; width: min(50vw, calc((100vh - 260px) * 1.5), calc((100svh - 260px) * 1.5), 760px); min-width: 300px; aspect-ratio: 3 / 2; }
.expo__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.expo__grid line { stroke: rgba(255, 255, 255, .17); stroke-width: 1; }
.expo__grid text { fill: #a3a8b2; font: 500 11px var(--ff-label); }
.expo__axis { fill: none; stroke: rgba(255, 255, 255, .65); stroke-width: 1.5; }
.expo__area { fill: rgba(229, 50, 45, .22); stroke: none; }
.expo__curve { fill: none; stroke: #ff5546; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.expo__plan { fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-dasharray: 6 5; opacity: 0; }
.expo__dot { fill: #ff5546; stroke: #fff; stroke-width: 2.5; }
.expo__now, .expo__planlabel { position: absolute; left: 0; top: 0; white-space: nowrap; font: 700 .7rem/1.2 var(--ff-label); padding: .28em .5em; }
.expo__now { background: var(--tape); color: var(--ink); }
.expo__planlabel { background: var(--paper); color: var(--ink); opacity: 0; }
.expo__time { position: absolute; right: 0; bottom: -1.5em; font: 500 .7rem/1 var(--ff-label); color: #a3a8b2; }
.expo__cap { margin-top: 1.4rem; color: #a3a8b2; }

@media (max-width: 800px) {
  .frontier, .expo { grid-template-columns: minmax(0, 1fr); align-content: center; align-items: start; gap: .9rem; padding-top: 64px; }
  .frontier__copy, .expo__copy { display: contents; }
  .frontier .kicker, .expo .kicker { display: none; }
  .frontier__hed { margin: 0; font-size: 1.45rem; order: 1; }
  .frontier__plate, .expo__plate { order: 2; justify-self: center; padding: .7rem; }
  .frontier__plate { transform: rotate(.5deg); }
  .frontier__steps { order: 3; }
  .frontier__step { font-size: .98rem; padding: .7rem .9rem; }
  .fmap { width: min(84vw, 46svh, 440px); min-width: 0; }
  .fmap__task b { max-width: 8.6em; font-size: .6rem; }
  .frontier__cap { font-size: .64rem; }
  .expo__chart { width: min(84vw, 46svh, 440px); min-width: 0; aspect-ratio: 1 / 1; }
  .expo__grid text { font-size: 10px; }
}

/* ---------- author: one card, the name taped across its top ---------- */
.scene--author { padding-top: 16vh; padding-bottom: 12vh; }
.slip--author { max-width: 46rem; margin: 0 auto; padding-top: clamp(1.6rem, 3.4vw, 2.6rem); }
.slip--author .kicker { position: absolute; left: clamp(1.25rem, 3.4vw, 2.6rem); top: 0; transform: translateY(-55%); margin: 0; background: var(--ink); color: var(--paper); }
.author__name { margin: 0 0 1.1rem; font-size: 1rem; line-height: 1; }
.tape--name { font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.1; padding: .08em .3em; }
.author__links { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.author__links a { font: 500 .8rem/1 var(--ff-label); text-decoration: none; display: inline-block; padding: .55em .7em; background: #eee8d6; color: var(--ink); transition: background .2s; }
.author__links a:hover { background: var(--tape); }

/* ---------- bonus ---------- */
.scene--bonus { padding-top: 12vh; padding-bottom: 16vh; display: flex; flex-direction: column; align-items: flex-start; max-width: 50rem; margin-left: auto; margin-right: clamp(0rem, 8vw, 8rem); }
.bonus__hed { margin: 0 0 .9rem; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.3; }
.bonus__link { font: 700 .9rem/1 var(--ff-label); text-decoration: none; background: var(--ink); color: var(--tape); padding: .65em .85em; margin-bottom: 1.6rem; }
.bonus__link:hover { background: #000; }
.bonus__lede { font-size: 1.02rem; }
.bonus__form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field__label { font: 500 .74rem/1 var(--ff-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.field input[type="text"], .field input[type="email"] {
  font: 400 1rem/1.2 var(--ff-label); padding: .8em .85em; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; width: 100%;
}
.field input[type="file"] { font: 400 .85rem/1.2 var(--ff-label); padding: .7em; border: 2px dashed var(--ink); background: #fffdf3; width: 100%; color: var(--ink); }
.field input:focus-visible { outline: 3px solid var(--tape); outline-offset: 0; box-shadow: none; }
.field__hint { font: 400 .74rem/1.4 var(--ff-label); color: #5b5e66; }
.bonus__fine { font: 400 .72rem/1.5 var(--ff-label); color: #5b5e66; margin: 0; }
.bonus__msg { font: 500 .85rem/1.45 var(--ff-label); margin: 0; padding: .8em 1em; background: var(--tape); color: var(--ink); }
.bonus__msg.is-error { background: var(--pen); color: #fff; }

/* ---------- the gap ---------- */
/* No words here: the hands hold 1 px apart, then the view flies through the gap into the next scene. */
.scene--gap { padding: 0; }
.gap__band { height: 100vh; height: 100svh; }
.gap__fly { height: 45vh; height: 45svh; }

/* ---------- buy ---------- */
.scene--buy { padding-top: 8vh; padding-bottom: 16vh; }
.buy {
  max-width: 76rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.buy__hed { margin: 0 0 1rem; }
.buy__label { display: inline-block; margin: 0 0 1rem; font: 500 .8rem/1 var(--ff-label); letter-spacing: .12em; text-transform: uppercase; background: var(--paper); padding: .55em .7em; }
.retailers { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .6rem; }
.retailer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: 700 .98rem/1 var(--ff-label); text-decoration: none; color: var(--ink);
  background: var(--tape); padding: 1.05em 1.1em;
  box-shadow: 0 5px 0 -1px var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.retailer:hover { transform: translateY(-2px); box-shadow: 0 7px 0 -1px var(--ink); }
.retailer:active { transform: translateY(3px); box-shadow: 0 2px 0 -1px var(--ink); }
.retailer--more { background: var(--paper); }
.retailer.is-pointed { background: #fff; }
.intl { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: baseline; font: 400 .85rem/1.6 var(--ff-label); background: var(--paper); padding: .8em 1em; color: var(--ink); }
.intl__label { font-weight: 700; }
.intl__region { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #5b5e66; }
.intl a { color: var(--ink); text-underline-offset: .2em; }
.intl a:hover { background: var(--tape); }
.buy__meta { margin: 1.1rem 0 .4rem; font: 500 .78rem/1.4 var(--ff-label); letter-spacing: .04em; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.buy__pitch { margin: 0; font-style: italic; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.buy__cover { display: block; justify-self: center; width: min(100%, 22rem); transform: perspective(1200px) rotateY(-10deg) rotateX(3deg); transition: transform .6s var(--ease-out); box-shadow: 30px 40px 60px -25px rgba(0, 0, 0, .55); }
.buy__cover:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-4px); }
.buy__cover img { width: 100%; height: auto; }
.buy__cover.is-poked { animation: poke .6s var(--ease); }
@keyframes poke { 0% { transform: perspective(1200px) rotateY(-10deg) rotateX(3deg); } 30% { transform: perspective(1200px) rotateY(-16deg) rotateX(5deg) scale(.97); } 60% { transform: perspective(1200px) rotateY(-6deg) rotateX(1deg) scale(1.01); } 100% { transform: perspective(1200px) rotateY(-10deg) rotateX(3deg); } }
@media (max-width: 860px) { .buy { grid-template-columns: minmax(0, 1fr); } .buy__cover { width: min(70%, 18rem); grid-row: 1; } }

/* ---------- AI agents ---------- */
.scene--agents { padding-top: 6vh; padding-bottom: 14vh; }
.agents { max-width: 44rem; margin: 0 auto; background: var(--ink); color: #fff; padding: clamp(1.5rem, 4vw, 2.6rem); transform: rotate(.5deg); }
.agents__kicker { margin: 0 0 .5rem; font: 500 .75rem/1 var(--ff-label); letter-spacing: .16em; text-transform: uppercase; color: var(--tape); }
.agents__hed { margin: 0 0 .5rem; font: 600 clamp(1.35rem, 3vw, 1.9rem)/1.15 var(--ff-read); }
.agents__sub { margin: 0 0 1.4rem; font: 400 .9rem/1.55 var(--ff-label); color: #c3c6cc; max-width: 46ch; }

/* ---------- footer ---------- */
.footer { padding-top: 8vh; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); color: #fff; }
.footer__inner { max-width: 76rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; }
.footer__title { margin: 0 0 .6rem; font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.footer__sub { margin: 0 0 1.2rem; font: 500 .82rem/1.5 var(--ff-label); color: #e9e7ff; }
.share { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; }
.share__net { font: 500 .8rem/1 var(--ff-label); color: #fff; text-underline-offset: .25em; }
.footer__cols ul { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.footer__cols a { font: 500 .82rem/1.4 var(--ff-label); color: #fff; text-underline-offset: .25em; }
.footer__fine { margin: 0; font: 400 .75rem/1.7 var(--ff-label); color: #cfd0ec; }
.footer__park { grid-column: 1 / -1; margin: 0; min-height: 3rem; font: 400 .72rem/1.4 var(--ff-label); color: rgba(255, 255, 255, .55); }
@media (max-width: 760px) { .footer__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- settings dock ---------- */
.dock {
  position: fixed; z-index: 35;
  left: calc(env(safe-area-inset-left, 0px) + 12px); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  display: flex; gap: .35rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .35s, transform .35s var(--ease), visibility 0s .35s;
}
.dock.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s var(--ease), visibility 0s; }
/* On phones the settings live in the footer instead of floating over the page. */
@media (max-width: 760px) {
  .dock, .dock.is-shown { position: static; grid-column: 1 / -1; opacity: 1; visibility: visible; transform: none; }
}
.dock__btn {
  font: 500 .7rem/1 var(--ff-label); letter-spacing: .02em; color: var(--ink);
  background: rgba(251, 248, 239, .92); border: 0; padding: .65em .75em; cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .5);
}
.dock__btn:hover { background: var(--tape); }
.dock__btn[aria-pressed="false"] { background: rgba(13, 14, 16, .78); color: #fff; }

/* ---------- skip link ---------- */
.skip-link { position: absolute; left: var(--gut); top: -100px; z-index: 50; background: var(--tape); color: var(--ink); font: 700 .85rem/1 var(--ff-label); padding: .8em 1em; text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* ---------- the AI companion ---------- */
#ai-layer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 25; pointer-events: none; overflow-x: clip; }
#ai-marks { position: absolute; left: 0; top: 0; width: 100%; overflow: visible; pointer-events: none; }
#ai-marks path { fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset .7s var(--ease), opacity 1.2s; }
#ai-marks path.is-old { opacity: .55; }
.ai-cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; pointer-events: auto; cursor: pointer; will-change: transform; transition: opacity .4s; }
.ai-cursor.is-hidden { opacity: 0; pointer-events: none; }
.ai-cursor__arrow { position: absolute; left: 0; top: 0; width: 22px; height: 26px; transform-origin: 3px 3px; transition: transform .12s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.ai-cursor.is-clicking .ai-cursor__arrow { transform: scale(.82); }
.ai-cursor__tag {
  position: absolute; left: 17px; top: 20px; white-space: nowrap;
  font: 700 .66rem/1 var(--ff-label); letter-spacing: .06em; color: #fff; background: var(--pen);
  padding: .32em .5em; border-radius: 1px 5px 5px 5px;
}
.ai-bubble {
  position: absolute; left: 17px; top: 40px; width: max-content; max-width: min(250px, 70vw);
  font: 500 .8rem/1.4 var(--ff-label); color: #fff; background: var(--pen);
  padding: .55em .75em; border-radius: 1px 10px 10px 10px;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-4px) scale(.96); transform-origin: 0 0;
  transition: opacity .2s, transform .25s var(--ease);
}
.ai-bubble.is-on { opacity: 1; transform: none; }
.ai-cursor.flip .ai-bubble { left: auto; right: 4px; border-radius: 10px 1px 10px 10px; transform-origin: 100% 0; }
.ai-cursor.flip .ai-cursor__tag { left: auto; right: 10px; border-radius: 5px 1px 5px 5px; }
.ai-ripple { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--pen); border-radius: 50%; animation: ripple .6s var(--ease-out) forwards; pointer-events: none; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.you-tag {
  position: fixed; left: 0; top: 0; z-index: 26; pointer-events: none;
  font: 700 .66rem/1 var(--ff-label); letter-spacing: .06em; color: var(--tape); background: var(--ink);
  padding: .32em .5em; border-radius: 1px 5px 5px 5px; opacity: 0; transition: opacity .4s;
}
.you-tag.is-on { opacity: 1; }
mark.ai-hl { background: rgba(229, 50, 45, .22); color: inherit; border-radius: 2px; transition: background .4s; }

/* ---------- intro (first load only): main.js moves the hero pieces from the jacket to the page ---------- */
html.intro [data-flip] { opacity: 0; transform-origin: 0 0; will-change: transform, opacity; }
html.intro [data-intro-late] { opacity: 0; transform: translateY(14px); }
html.intro.intro-late [data-intro-late] { opacity: 1; transform: none; transition: opacity .7s, transform .9s var(--ease-out); }
html.intro.intro-late .hero__deck { transition-delay: .15s; }

/* ---------- reveal on scroll (only armed below the fold) ---------- */
.rv-armed { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), clip-path .8s var(--ease-out); }
.rv-armed.rv-slip { opacity: 0; transform: translateY(60px) rotate(calc(var(--tilt, 0deg) * 3)); }
.rv-armed.rv-tape { clip-path: inset(0 100% 0 0); }
.rv-armed.rv-in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
.rv-armed.rv-tape.rv-in { clip-path: inset(0 0 0 0); }
.questions li.rv-armed.rv-slip { transform: translateX(-40px) rotate(var(--tilt, 0deg)); }
.questions li.rv-armed.rv-in { transform: rotate(var(--tilt, 0deg)); }

/* ---------- calm mode: reduced motion or the Motion toggle ---------- */
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.calm .rv-armed { opacity: 1 !important; transform: rotate(var(--tilt, 0deg)) !important; clip-path: none !important; }
html.calm .scene--frontier, html.calm .scene--expo, html:not(.js) .scene--frontier, html:not(.js) .scene--expo { height: auto; }
html.calm .frontier, html.calm .expo, html:not(.js) .frontier, html:not(.js) .expo { position: relative; height: auto; min-height: 0; padding-top: 12vh; padding-bottom: 12vh; }
html.calm .frontier__step, html:not(.js) .frontier__step { opacity: 1 !important; transform: none !important; grid-area: auto; }
html.calm .frontier__steps, html:not(.js) .frontier__steps { grid-template-areas: none; gap: .9rem; }
/* Without scripts the figures, the hands and the gap have nothing to draw with, so they step aside. */
html:not(.js) .stage-fallback, html:not(.js) .dock button, html:not(.js) .frontier__plate, html:not(.js) .expo__plate,
html:not(.js) .scene--gap, html:not(.js) .gap-spec, html:not(.js) #share-copy, html:not(.js) .footer__park { display: none; }
html.calm .gap__fly { height: 0; }
html.calm .gap-glow { display: none; }
