/* Life Returned — v0.1
   One stylesheet. No framework. Typography carries the identity. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --paper-2: #faf8f3;
  --ink: #161512;
  --ink-2: #5c574e;
  --rule: #161512;

  /* Neon is a marker, not a text colour: ink on neon, or neon on ink. */
  --orange: #ff4d00;
  --green: #c6ff3d;
  --orange-text: #e64400; /* large text and focus rings on paper only (3.5:1) */

  --sans: "Archivo", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --gutter: clamp(1rem, 5vw, 4.5rem);
  --measure: 72rem;
  --gap-l: clamp(3rem, 9vh, 6.5rem);
  --gap-xl: clamp(5rem, 18vh, 12rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--green); color: var(--ink); }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--orange-text);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Highlighter marks. */
.accent, .hl {
  padding: 0 .12em;
  background: var(--orange);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-green { background: var(--green); }
.muted { color: var(--ink-2); }

/* ---------- Layout ---------- */

main > *, .end {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.chapter {
  padding-block: clamp(7rem, 26vh, 16rem);
}
.chapter > * + * { margin-top: 1.1rem; }
.chapter > .gap-l, .gap-l { margin-top: var(--gap-l); }
.chapter > .gap-xl, .gap-xl { margin-top: var(--gap-xl); }

.chapter-label {
  display: flex;
  gap: .9em;
  align-items: baseline;
  margin-bottom: clamp(3.5rem, 12vh, 8rem);
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.chapter-label .n {
  padding: .15em .35em;
  background: var(--orange);
  font-variant-numeric: tabular-nums;
}
.chapters .n { font-variant-numeric: tabular-nums; }

/* ---------- Type roles ---------- */

/* The human voice: handwriting. */
.voice {
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  max-width: 30ch;
}
.voice.large {
  font-size: clamp(2.6rem, 6.8vw, 5.4rem);
  line-height: 1;
  max-width: 22ch;
}
.voice.huge {
  font-size: clamp(3.6rem, 12vw, 10.5rem);
  font-weight: 600;
  line-height: .92;
  max-width: 14ch;
}

/* The argument: grotesk, firm. */
.statement {
  font-weight: 640;
  font-size: clamp(1.6rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  max-width: 22ch;
}
.statement.large {
  font-size: clamp(2.1rem, 6.4vw, 5.6rem);
  line-height: 1;
  max-width: none;
}

/* The poster: condensed, enormous. */
.poster {
  font-weight: 850;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(5rem, 27vw, 22rem);
  line-height: .8;
  letter-spacing: -.01em;
}
.poster-mid { font-size: clamp(4rem, 21vw, 17rem); }
.poster-end { font-size: clamp(3.1rem, 15.5vw, 14rem); }

.prose {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  max-width: 36rem;
}

.note {
  max-width: 36rem;
  padding-left: 1.1rem;
  border-left: 4px solid var(--orange);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Longer silence before a line that needs it. */
.chapter > .pause { margin-top: clamp(7rem, 34vh, 20rem); }

/* ---------- Opening ---------- */

/* A dark first screen that names the cost before asking for anything.
   The sequence is timed, never blocking: scroll, tap or a key ends it. */
.opening {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(1.25rem, 4vh, 2.5rem);
  padding-block: clamp(2.5rem, 9vh, 5.5rem) clamp(1rem, 4vh, 2.5rem);
}
.prelude p {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  color: rgb(243 239 230 / .8);
}
.prelude p + p { margin-top: .3em; }
.opening .principle { color: var(--green); }
.opening .prelude p,
.opening .title,
.opening .principle,
.opening .begin-row { animation: arrive 1.1s ease both; }
.opening .prelude p:nth-child(1) { animation-delay: .3s; }
.opening .prelude p:nth-child(2) { animation-delay: 1.8s; }
.opening .prelude p:nth-child(3) { animation-delay: 3.3s; }
/* The title is present from the start as a faint shadow, then comes forward. */
.opening .title { animation: emerge 1.4s ease 4.6s both; }
.opening .principle { animation-delay: 5.5s; }
.opening .begin-row { animation-delay: 6.3s; }
.intro-done .opening * { animation: none; }
@keyframes arrive { from { opacity: 0; transform: translateY(.25em); } }
@keyframes emerge { from { opacity: .42; } }

.title {
  align-self: end;
  font-weight: 850;
  font-stretch: 100%;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 14.6vw, 12.25rem);
  line-height: .84;
  letter-spacing: -.03em;
}
.title span { display: block; }
.principle {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.85rem, 5.4vw, 4.2rem);
  line-height: 1.02;
}
.begin {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(243 239 230 / .7);
}
.begin:hover { color: var(--paper); }

/* Two equal ways in: be fed, or set your own pace. */
.begin-row { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 2.25rem; }
.feed { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.feed span { color: var(--orange); }

/* The stop. */
dialog.fed { border: 0; background: var(--ink); color: var(--paper); }
dialog.fed::backdrop { background: rgb(22 21 18 / .35); }
.fed-stopped { font-size: .78rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
dialog.fed h2 { font-size: clamp(2.6rem, 10vw, 4.4rem); }
.fed-text { font-family: var(--hand); font-weight: 600; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.05; color: var(--green); }
dialog.fed form { margin-top: 1.75rem; }
.fed-ways { display: grid; gap: .6rem; }
@media (min-width: 30rem) { .fed-ways { grid-template-columns: 1fr 1fr; } }
dialog.fed .action { border-color: var(--paper); color: var(--paper); }
dialog.fed .action:hover, dialog.fed .action:focus-visible { background: var(--green); border-color: var(--green); color: var(--ink); }

/* Small notes at the bottom of the screen: "You took over." and the 60-second player. */
.fed-took, .player {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 20;
  translate: -50% 0;
  max-width: calc(100% - 2rem);
  margin: 0;
}
.player { display: grid; justify-items: center; gap: .5rem; width: max-content; }
.player[hidden] { display: none; }
.player-note {
  padding: .8rem 1rem;
  background: var(--ink);
  color: var(--green);
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  animation: arrive .5s ease both;
}
.fed-took, .playing {
  padding: .7rem 1.1rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fed-took {
  width: max-content;
  padding: .95rem 1.4rem;
  background: var(--orange);
  color: var(--ink);
  font-size: clamp(.85rem, 3.4vw, 1rem);
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  box-shadow: 0 8px 22px rgb(22 21 18 / .28), 0 2px 5px rgb(22 21 18 / .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.fed-took.is-on { opacity: 1; }
.playing { min-height: 44px; outline: 1.5px solid rgb(243 239 230 / .35); cursor: pointer; }
.play-row { margin-top: clamp(1.25rem, 4vh, 2rem); }
.play { display: inline-block; padding-inline: 1.4rem; }
.play span { margin-right: .5em; color: var(--orange); }
.play:hover span, .play:focus-visible span { color: inherit; }

/* ---------- Attention contract ---------- */

.contract {
  display: grid;
  gap: clamp(2.5rem, 7vh, 4.5rem);
  padding-block: clamp(5rem, 16vh, 10rem) clamp(3rem, 8vh, 6rem);
}
.label-contract { max-width: 30rem; }
.routes li + li { border-top: 1px solid var(--ink); }
.route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  padding: .55rem .3rem;
  margin-inline: -.3rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
}
.route .cost { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.route:hover, .route:focus-visible { background: var(--green); outline-offset: 0; }
.label-contract .label-total { margin-top: .5rem; }
.contract-return {
  padding-block: .2rem .7rem;
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  line-height: 1.05;
}

/* ---------- 01 Manifesto ---------- */

.cascade { line-height: 1.22; }

.escalate span {
  display: block;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
}
.escalate span:nth-child(1) { font-size: clamp(1rem,   1.6vw, 1.25rem); font-weight: 400; }
.escalate span:nth-child(2) { font-size: clamp(1.2rem, 2.2vw, 1.75rem); font-weight: 480; }
.escalate span:nth-child(3) { font-size: clamp(1.5rem, 3vw,   2.4rem);  font-weight: 560; }
.escalate span:nth-child(4) { font-size: clamp(1.8rem, 4vw,   3.3rem);  font-weight: 640; }
.escalate span:nth-child(5) { font-size: clamp(2.1rem, 5.4vw, 4.6rem);  font-weight: 720; }
.escalate span:nth-child(6) { font-size: clamp(2.4rem, 7.4vw, 6.6rem);  font-weight: 820; }
.poster + .escalate { margin-top: clamp(2.5rem, 7vh, 5rem); }

/* ---------- 02 Return on Life ---------- */

/* Full-bleed dark ground without horizontal overflow. */
.dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

/* Scroll-pinned stages. Without JavaScript they are ordinary blocks. */
.scrub .pin { position: relative; }
.scrub .pin > .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.turn { margin-top: 1.5rem; }
.scrub .turn { height: 240vh; height: 240svh; margin-top: 0; }
.lead {
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
}
.acronym {
  margin-top: .5rem;
  font-weight: 850;
  font-stretch: 100%;
  font-size: clamp(6rem, 30vw, 24rem);
  line-height: .82;
  letter-spacing: -.03em;
}
.expansion {
  margin-top: 1.25rem;
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}
.swap { display: inline-grid; justify-items: start; }
.swap > span {
  grid-area: 1 / 1;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.swap .to { opacity: 0; transform: translateY(.18em); }
.turned .swap .from { opacity: 0; transform: translateY(-.18em); }
.turned .swap .to { opacity: 1; transform: none; }
.turned .acronym .to { color: var(--orange-text); }
.turned .expansion .to { padding: 0 .12em; background: var(--green); }

/* Possible returns. Static: a calm list on dark ground. Pinned: a word cloud
   where each word comes forward in turn. */
.words { margin-top: var(--gap-l) !important; }
.words .stage { padding-block: clamp(3rem, 10vh, 6rem); }
.stage-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgb(243 239 230 / .65);
}
.returns {
  display: flex;
  flex-wrap: wrap;
  gap: .2em .6em;
  margin-top: 1.5rem;
  font-weight: 850;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--green);
}

.scrub .words { height: calc(100vh + 8 * 55vh); height: calc(100svh + 8 * 55svh); }
.scrub .words .stage { padding-block: 0; }
.scrub .words .stage-label { position: absolute; top: clamp(1.5rem, 5vh, 3rem); left: 0; }
.scrub .returns {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  font-size: clamp(2.8rem, 14vw, 10rem);
}
.scrub .returns li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  white-space: nowrap;
  color: rgb(243 239 230 / .45);
  transform: translate(-50%, -50%) scale(var(--s, .32));
  transition: left .8s cubic-bezier(.2, .7, .2, 1), top .8s cubic-bezier(.2, .7, .2, 1),
              transform .8s cubic-bezier(.2, .7, .2, 1), color .5s ease, text-shadow .5s ease;
}
.scrub .returns li:nth-child(1) { --x: 24%; --y: 14%; }
.scrub .returns li:nth-child(2) { --x: 70%; --y: 22%; }
.scrub .returns li:nth-child(3) { --x: 32%; --y: 36%; }
.scrub .returns li:nth-child(4) { --x: 72%; --y: 46%; }
.scrub .returns li:nth-child(5) { --x: 28%; --y: 58%; }
.scrub .returns li:nth-child(6) { --x: 74%; --y: 66%; }
.scrub .returns li:nth-child(7) { --x: 30%; --y: 80%; }
.scrub .returns li:nth-child(8) { --x: 70%; --y: 88%; }
.scrub .returns li.is-lit { color: var(--paper); }
.scrub .returns li.is-active {
  left: 50%;
  top: 50%;
  z-index: 1;
  --s: 1;
  color: var(--green);
  text-shadow: 0 0 .12em rgb(198 255 61 / .5), 0 0 .5em rgb(198 255 61 / .25);
}
.scrub .returns.is-done li { --s: .42; color: var(--green); }

/* ---------- 03 Digital Nutrition: the label ---------- */

.label {
  width: 100%;
  max-width: 23rem;
  padding: .6rem .8rem .8rem;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  font-size: .95rem;
  line-height: 1.3;
}
.label-title {
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: 2.6rem;
  line-height: .95;
  letter-spacing: -.01em;
}
.label-sub {
  margin-top: .3rem;
  font-weight: 600;
}
.label-sub span { font-weight: 400; color: var(--ink-2); }
.label-serving {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .3rem;
  padding-bottom: .35rem;
  border-bottom: 10px solid var(--ink);
}
.label-rows > div,
.label-total > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: .32rem;
  border-top: 1px solid var(--ink);
}
.label-rows > div:first-child { border-top: 0; }
.label-rows dd { font-weight: 700; text-align: right; }
.label-total { border-top: 5px solid var(--ink); }
.label-total > div { border-top: 0; }
.label-total dt {
  font-weight: 900;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.label-total dd {
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--orange-text);
  font-variant-numeric: tabular-nums;
}
.label-foot {
  padding-top: .5rem;
  border-top: 1px solid var(--ink);
  font-size: .78rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.label-wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}
@media (min-width: 52rem) {
  .label-wrap { grid-template-columns: auto 1fr; }
}
.caption-main {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.caption-sub {
  margin-top: .8rem;
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

/* ---------- 04 Human Impact ---------- */

/* Three questions, each one a wider circle. */
.widening p { font-weight: 640; letter-spacing: -.02em; line-height: 1.05; }
.widening p + p { margin-top: clamp(1.5rem, 4vh, 2.5rem); }
.widening p:nth-child(1) { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.widening p:nth-child(2) { font-size: clamp(1.7rem, 3.8vw, 3rem); }
.widening p:nth-child(3) { font-size: clamp(2.2rem, 6vw, 5rem); max-width: 18ch; }

/* ---------- 05 Life Happening ---------- */

.quiet { padding-block: clamp(9rem, 34vh, 22rem); }

.whiles p {
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--ink-2);
}
.whiles p + p { margin-top: clamp(1rem, 3vh, 1.75rem); }

.intervention {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: var(--gap-xl) !important;
  padding-block: 3rem;
}
.intervention > * + * { margin-top: 1.1rem; }
.intervention > .gap-l { margin-top: var(--gap-l); }
.elapsed {
  font-weight: 640;
  font-size: clamp(1.6rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.elapsed time {
  color: var(--green);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  max-width: 36rem;
  margin-top: var(--gap-l) !important;
}

/* Choices and actions share one style: no option is promoted over another. */
.choice, .action {
  display: block;
  padding: 1.05rem 1rem;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.choice:hover, .action:hover,
.choice:focus-visible, .action:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.dark .choice { border-color: var(--paper); color: var(--paper); }
.dark .choice:hover, .dark .choice:focus-visible { background: var(--green); border-color: var(--green); color: var(--ink); }
.dark :focus-visible { outline-color: var(--green); }

.final { margin-top: var(--gap-xl) !important; scroll-margin-top: 3rem; }
.final > * + * { margin-top: 1.1rem; }
.final > .gap-l { margin-top: var(--gap-l); }
.final > .gap-xl { margin-top: var(--gap-xl); }

.pairs p {
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  max-width: 26ch;
}
.pairs p span { color: var(--ink-2); }
.pairs p + p { margin-top: clamp(2rem, 6vh, 3.5rem); }

.colophon {
  margin-top: var(--gap-l) !important;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.7;
}

/* ---------- 06 Take It Further ---------- */

/* Four ways forward, set as an editorial index rather than cards.
   Each is distinguished by type, none by prominence. */
.ways { border-top: 1px solid var(--rule); }
.way {
  display: grid;
  gap: .6rem;
  width: 100%;
  padding: clamp(1.25rem, 3vh, 2rem) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.way-title {
  font-weight: 850;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 11vw, 6rem);
  line-height: .88;
  letter-spacing: -.01em;
}
.way-title span {
  padding: 0 .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-color .25s ease;
}
.way-text { max-width: 34ch; }
.way-sign .way-text,
.way-spread .way-text {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.6vw, 2.3rem);
  line-height: 1.05;
}
.way-spread .way-text { color: var(--ink-2); }
.way-challenge .way-text {
  font-weight: 640;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.way-build .way-text {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.way:hover .way-title span,
.way:focus-visible .way-title span { background: var(--green); }
.way-challenge:hover .way-title span,
.way-challenge:focus-visible .way-title span { background: var(--orange); }
.way:focus-visible { outline-offset: -2px; }
@media (min-width: 52rem) {
  .way {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    column-gap: var(--gutter);
  }
}
.ways + .tally { margin-top: 1.5rem; }
.tally + .tally { margin-top: .4rem; }

/* ---------- The end ---------- */

.end {
  display: grid;
  gap: clamp(3rem, 8vh, 5rem);
  padding-block: clamp(4rem, 12vh, 8rem) clamp(3rem, 10vh, 6rem);
}
.end::before {
  content: "";
  display: block;
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(-1rem, -2vh, 0rem);
}
.label-self .label-title { font-size: 2.1rem; }
.farewell {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.02;
}
.fin {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Return to life ---------- */

.returned { display: none; }

html:has(#good:target) { overflow: hidden; scroll-behavior: auto; }
body:has(#good:target) > :not(.returned) { display: none; }
#good:target {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  background: var(--paper);
  outline: none;
}
.good {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(6rem, 26vw, 20rem);
  line-height: .85;
  margin-bottom: clamp(2rem, 6vh, 4rem);
}
.returned p + p { margin-top: .35em; }
.returned p {
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.1;
}
.returned .returned-strong {
  margin-top: clamp(2rem, 6vh, 4rem);
  font-family: var(--sans);
  font-weight: 640;
  letter-spacing: -.02em;
}
.returned .returned-last {
  margin-top: clamp(4rem, 14vh, 9rem);
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

#good:target > * { animation: settle 1.6s ease both; }
#good:target > :nth-child(2) { animation-delay: .9s; }
#good:target > :nth-child(3) { animation-delay: 1.8s; }
#good:target > :nth-child(4) { animation-delay: 3s; }
#good:target > .returned-last { animation-delay: 6s; }

@keyframes settle { from { opacity: 0; } }

/* ---------- Chapter navigation (appears after the opening) ---------- */

.chapters {
  position: fixed;
  top: .75rem;
  right: .75rem;
  z-index: 5;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chapters ol { display: flex; gap: .15rem; }
.chapters a {
  display: flex;
  gap: .5em;
  padding: .45rem .4rem;
  text-decoration: none;
  color: var(--ink-2);
  background: var(--paper);
}
.chapters a:hover, .chapters a[aria-current] { color: var(--ink); }
.chapters .n { color: inherit; }
.chapters a[aria-current] .n { padding: 0 .3em; background: var(--orange); color: var(--ink); }
.chapters.on-dark a { background: transparent; color: rgb(243 239 230 / .6); }
.chapters.on-dark a:hover, .chapters.on-dark a[aria-current] { color: var(--paper); }
.chapters .t { display: none; }
@media (max-width: 39.99rem) {
  .chapters { display: none; }
}
@media (min-width: 64rem) {
  .chapters a[aria-current] .t { display: inline; }
}

/* Hidden by opacity, not visibility, so keyboard users can still reach it. */
.js .chapters {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}
.js .chapters.is-shown,
.js .chapters:focus-within {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Dialogs ---------- */

dialog {
  width: min(36rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgb(22 21 18 / .55); }
dialog > * + * { margin-top: 1rem; }
dialog h2 {
  font-weight: 850;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: .9;
}
dialog ul { display: grid; gap: .6rem; }
dialog li { padding-left: 1.6rem; position: relative; }
dialog li::before { content: "—"; position: absolute; left: 0; }
.dialog-close { display: flex; justify-content: flex-end; margin: 0 0 .5rem; }
.dialog-close button {
  padding: .4rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.dialog-close button:hover { color: var(--ink); }
.pledge p {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  line-height: 1.05;
}

/* ---------- Signing ---------- */

.tally { font-size: 1rem; }
.tally strong {
  padding: 0 .25em;
  background: var(--green);
  font-variant-numeric: tabular-nums;
}
.actions + .tally { margin-top: 1.5rem; }

.sign-form label,
.msg-form label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.msg-form label span {
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: none;
  color: var(--ink-2);
}
.sign-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  margin-top: .4rem;
}
.sign-row input,
.msg-form input:not([type=checkbox]),
.msg-form textarea {
  min-width: 0;
  padding: .85rem .8rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
}
.msg-form input:not([type=checkbox]),
.msg-form textarea { display: block; width: 100%; margin-top: .4rem; }
.msg-form textarea { resize: vertical; min-height: 8rem; }
.msg-form > * + * { margin-top: 1rem; }
.form-pair { display: grid; gap: 1rem; }
@media (min-width: 34rem) {
  .form-pair { grid-template-columns: 1fr 1fr; }
}
.msg-form .check label {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.msg-form .check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--ink); }
.sign-row .action { padding-inline: 1.4rem; }
.form-status:empty { display: none; }
.form-status { margin-top: .8rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
details.small summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
details.small p { margin-top: .6rem; }

/* Pages served by the signing backend. */
.standalone {
  min-height: 100vh;
  min-height: 100svh;
  max-width: calc(48rem + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.standalone .action { display: inline-block; margin-top: 1rem; }
.standalone-back {
  margin-top: var(--gap-l);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- v0.2: meaningful motion ---------- */

/* Live clock: the life this page has consumed. Hidden without JavaScript. */
html:not(.js) .consumed { display: none; }
.consumed { margin-bottom: var(--gap-l); }
.clock {
  font-weight: 850;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.2rem, 17vw, 10rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--orange-text);
}
.consumed .statement { margin-top: 1rem; }
.consumed .voice { margin-top: .6rem; }
.consumed-small { margin: 1.5rem 0 0; }
.consumed-small .clock { font-size: clamp(2.4rem, 12vw, 6rem); }
.consumed-small .prose { margin-top: .4rem; }

/* INFINITE keeps coming, then stops dead. */
.infinite {
  margin-top: clamp(2rem, 6vh, 4rem) !important;
  margin-inline: calc(-1 * var(--gutter));
  overflow: hidden;
  font-weight: 850;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: .92;
  letter-spacing: -.01em;
}
.infinite span { display: block; white-space: nowrap; --d: 0s; }
.infinite span:nth-child(2) { --d: .08s; }
.infinite span:nth-child(3) { --d: .16s; }
.infinite span:nth-child(4) { --d: .24s; }
.infinite span:nth-child(5) { --d: .32s; }
.infinite span:nth-child(6) { --d: .40s; }
.infinite span:nth-child(7) { --d: .48s; }
.infinite span:nth-child(8) { --d: .56s; }
.infinite span:nth-child(9) { --d: .64s; }
.js .infinite span { opacity: 0; }
.infinite.is-on span {
  animation: wall-in .01s linear var(--d) both, drift-l 1.6s linear var(--d) both, wall-dim .6s ease 2.4s forwards;
}
.infinite.is-on span:nth-child(even) {
  animation: wall-in .01s linear var(--d) both, drift-r 1.6s linear var(--d) both, wall-dim .6s ease 2.4s forwards;
}
.infinite-stop { margin-top: 1.5rem !important; }
.js .infinite-stop { opacity: 0; }
.infinite.is-on + .infinite-stop { animation: wall-in 0s linear 2.3s both; }
@keyframes wall-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift-l { from { transform: translateX(0); } to { transform: translateX(-30%); } }
@keyframes drift-r { from { transform: translateX(-30%); } to { transform: translateX(0); } }
@keyframes wall-dim { to { opacity: .12; } }

/* Some sentences arrive slowly. Most do not move at all. */
.arrive [data-arrive] { transition: opacity 1.8s ease, transform 1.8s ease; }
.arrive [data-arrive]:not(.arrived) { opacity: 0; transform: translateY(.4em); }

.origin {
  margin-top: 1.25rem !important;
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.05;
}

/* ---------- Spread the idea ---------- */

.pledge-like {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.05;
}
.share-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
dialog .share-list li { padding-left: 0; }
dialog .share-list li::before { content: none; }
.share-list .action,
.action-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
}

/* ---------- Life Ledger ---------- */

.labels { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
@media (min-width: 52rem) {
  .labels { grid-template-columns: repeat(2, minmax(0, 23rem)); }
}
.label-ledger .label-title { font-size: 2.1rem; }
.label-ledger dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-lines > * + * { margin-top: .8rem; }
.ledger-lines strong { padding: 0 .12em; background: var(--green); font-weight: inherit; }

/* ---------- The idea in 60 seconds ---------- */

.sixty > .beat {
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding-block: clamp(3rem, 10vh, 6rem);
}
.sixty > .beat-open { min-height: 100vh; min-height: 100svh; }
.sixty .gap-l { margin-top: clamp(1.5rem, 5vh, 3rem); }
.kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgb(243 239 230 / .7);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--paper); }
.rol-l { color: var(--orange-text); }
.returns-sixty li { font-size: clamp(2.6rem, 12vw, 6.5rem); line-height: .95; }
.returns-sixty { font-size: inherit; flex-direction: column; gap: .1em; }
.beat-end .choices { margin-top: 1rem; }
.beat-end .fin { margin-top: var(--gap-l); }

/* After signing: one optional question, every answer styled alike. */
.rol-question { margin-top: var(--gap-l); display: grid; gap: 1rem; }
.rol-answers { display: grid; gap: .5rem; max-width: 30rem; }
.standalone .rol-answers .action { width: 100%; margin-top: 0; }
.standalone .msg-form .action { margin-top: 0; }


/* ---------- Handheld details ---------- */

.chapters a { min-height: 44px; align-items: center; }

/* Phones on their side: keep stages inside the short viewport. */
@media (orientation: landscape) and (max-height: 30rem) {
  .chapters { display: none; }
  .title { font-size: min(14.6vw, 24vh); }
  .acronym { font-size: min(30vw, 46vh); }
  .poster { font-size: min(27vw, 40vh); }
  .scrub .returns { font-size: min(14vw, 22vh); }
  .scrub .words .stage-label { top: .75rem; }
  .sixty > .beat, .sixty > .beat-open { min-height: auto; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .infinite span, .js .infinite-stop, .arrive [data-arrive] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print: the manifesto, nothing else ---------- */

@media print {
  .chapters, .begin, .begin-row, .play-row, .player, .fed-took, .intervention, .ways, .contract, .returned, dialog { display: none !important; }
  .opening { min-height: auto; }
  .chapter { padding-block: 3rem; break-inside: avoid-page; }
}

/* ---------- v0.2 fixes ---------- */
.choice { display: flex; align-items: center; justify-content: center; }
.beat-end .choices { margin-top: .5rem !important; }
.label-total dd { white-space: nowrap; }
.label-ledger .label-total dd { font-size: 1.3rem; }
@media (max-width: 26rem) {
  .principle br { display: none; }
}

/* =====================================================================
   Storytelling pass: finite scroll, growing lines, ROL → ROLE →
   Digital Nutrition, ME · US · WE. Scroll-linked, reversible, light.
   ===================================================================== */

/* ---------- Growing lines: rules grow into their final length ---------- */
.chapter-label { border-top: 0; position: relative; }
.chapter-label::before,
.way::after,
.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
  transform: scaleX(var(--g, 1));
}
.chapter-label::before { top: 0; }
.way { position: relative; border-bottom: 0; }
.way::after { bottom: 0; }

/* ---------- Scroll-driven scenes ---------- */
/* JS sets --p from 0 to 1 while a scene is pinned. Each element appears at
   its own --t (and leaves at --e). Without JS, or with reduced motion,
   --p is 1 and every scene is shown complete and static. */
.pin[data-scrub="p"] { --p: 1; }
.ratio .num, .ratio .den, .ratio .terms li, .ratio .ratio-rol, .ratio .ratio-note,
.dn .dn-scale li, .dn .dn-dims li, .dn .dn-category, .dn .dn-relative,
.circles .w {
  --on: clamp(0, (var(--p) - var(--t, 0)) * 14, 1);
  opacity: var(--on);
}
.dn .cap, .circles .q {
  --on: min(clamp(0, (var(--p) - var(--t, 0)) * 14, 1), clamp(0, (var(--e, 2) - var(--p)) * 14, 1));
  opacity: var(--on);
}

/* ROL ≈ value returned / life consumed */
.scrub .ratio { height: 280vh; height: 280svh; }
.scrub .ratio.short { height: 170vh; height: 170svh; }
.ratio > .stage { gap: clamp(1.25rem, 4vh, 2.5rem); }
.ratio-figure { display: grid; gap: 1rem; }
@media (min-width: 52rem) {
  .ratio-figure { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 2.5rem; }
}
.ratio-rol {
  --t: .78;
  font-weight: 850;
  font-stretch: 100%;
  font-size: clamp(3rem, 14vw, 8rem);
  line-height: .85;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.fraction { display: grid; gap: .45rem; }
.num, .den {
  font-weight: 850;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 8vw, 4.2rem);
  line-height: .9;
}
.num { --t: .04; }
.den { --t: .5; }
.terms {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.num-terms li:nth-child(1) { --t: .10; }  .num-terms li:nth-child(2) { --t: .125; }
.num-terms li:nth-child(3) { --t: .15; }  .num-terms li:nth-child(4) { --t: .175; }
.num-terms li:nth-child(5) { --t: .20; }  .num-terms li:nth-child(6) { --t: .225; }
.num-terms li:nth-child(7) { --t: .25; }  .num-terms li:nth-child(8) { --t: .275; }
.den-terms li:nth-child(1) { --t: .56; }  .den-terms li:nth-child(2) { --t: .59; }
.den-terms li:nth-child(3) { --t: .62; }  .den-terms li:nth-child(4) { --t: .65; }
.den-terms li:nth-child(5) { --t: .68; }  .den-terms li:nth-child(6) { --t: .71; }
.bar {
  height: 5px;
  margin-block: .35rem;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(clamp(0, (var(--p) - .3) / .18, 1));
}
.ratio-note {
  --t: .86;
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
}
/* Narrow screens: the same composition as on desktop, ROL ≈ beside the
   fraction, scaled down. Stacked, ROL entered last above a finished fraction
   and the formula looked broken while it was built. */
@media (max-width: 51.99rem) {
  .ratio-figure { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(.6rem, 3vw, 1.25rem); }
  .ratio-rol { font-size: clamp(1.9rem, 10vw, 3rem); }
  .ratio .num, .ratio .den { font-size: clamp(1.35rem, 6.6vw, 2rem); }
  .ratio .terms { font-size: clamp(.62rem, 2.9vw, .72rem); gap: .1rem .6rem; letter-spacing: .1em; }
  .ratio .bar { height: 4px; }
}

/* ROL + E: the evaluation */
.role .lead { margin-bottom: .5rem; }
.role-e { display: inline-block; color: var(--orange-text); }
.js .role .role-e { opacity: 0; transform: translateX(-.12em); transition: opacity .9s ease, transform .9s ease; }
.js .role.is-on .role-e { opacity: 1; transform: none; }
.role-list {
  display: grid;
  max-width: 44rem;
  margin-top: 1.25rem !important;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (min-width: 40rem) { .role-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.role-list li { position: relative; padding-block: .6rem; }
.role-list li::before { top: 0; }
.role .note { margin-top: 1.5rem; }

/* Digital Nutrition, built while scrolling */
.scrub .dn { height: 340vh; height: 340svh; }
.scrub .dn.short { height: 200vh; height: 200svh; }
.dn > .stage, .scrub .dn > .stage {
  display: grid;
  align-content: center;
  gap: clamp(1rem, 3vh, 2rem);
}
@media (min-width: 52rem) {
  .dn > .stage, .scrub .dn > .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: center; column-gap: var(--gutter); }
}
.dn-captions { display: grid; }
.cap {
  grid-area: 1 / 1;
  font-weight: 640;
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.cap-1 { --t: -1; --e: .2; }
.cap-2 { --t: .2;  --e: .32; }
.cap-3 { --t: .32; --e: .6; }
.cap-4 { --t: .62; --e: .8; }
.cap-5 { --t: .8; }
.dn-label {
  --sel: clamp(0, (var(--p) - .58) * 14, 1);
  --dig: clamp(0, (var(--p) - .5) * 14, 1);
  width: 100%;
  max-width: 24rem;
  padding: .7rem .9rem .9rem;
  border: 2px solid var(--ink);
  background: var(--paper-2);
}
.dn-title {
  --t: -1;
  display: grid;
  padding-bottom: .45rem;
  border-bottom: 8px solid var(--ink);
  font-weight: 900;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: 2.2rem;
  line-height: .95;
}
/* An original A–E scale: monochrome, square, typographic.
   Only the grade is marked, in the house green. */
.dn-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; margin-block: .8rem; }
.dn-scale li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  font-weight: 850;
  font-stretch: 100%;
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1;
}
.dn-scale li:nth-child(1) { --t: .04; }
.dn-scale li:nth-child(2) { --t: .07; }
.dn-scale li:nth-child(3) { --t: .10; }
.dn-scale li:nth-child(4) { --t: .13; }
.dn-scale li:nth-child(5) { --t: .16; }
.dn-scale li:not(.is-grade) { opacity: calc(var(--on) * (1 - .6 * var(--sel))); }
.dn-scale .is-grade {
  background: rgb(198 255 61 / var(--sel));
  box-shadow: 0 0 0 calc(2px * var(--sel)) var(--ink);
  transform: scale(calc(1 + .14 * var(--sel)));
}
.dn-dims li {
  display: flex;
  justify-content: space-between;
  padding-block: .3rem;
  border-top: 1px solid var(--ink);
  font-weight: 600;
  font-size: .95rem;
  opacity: calc(var(--on) * (1 - .45 * var(--sel)));
}
.dn-dims li:nth-child(1) { --t: .34; }
.dn-dims li:nth-child(2) { --t: .385; }
.dn-dims li:nth-child(3) { --t: .43; }
.dn-dims li:nth-child(4) { --t: .475; }
.dn-dims li:nth-child(5) { --t: .52; }
.dn-category {
  --t: .6;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: .3rem;
  padding-top: .45rem;
  border-top: 5px solid var(--ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dn-category strong { font-size: 1.15rem; font-weight: 900; letter-spacing: .02em; }
.dn-relative {
  --t: .66;
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px solid var(--ink);
  font-size: .75rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.underneath summary {
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.underneath[open] summary { margin-bottom: 1.5rem; }

/* ME · US · WE: the circle widens */
.scrub .circles { height: 340vh; height: 340svh; }
.scrub .circles.short { height: 200vh; height: 200svh; }
.circles > .stage { gap: clamp(1.5rem, 5vh, 3rem); }
.meuswe {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 850;
  font-stretch: 68%;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 13vw, 7rem);
  line-height: 1;
}
.meuswe .link {
  flex: 1;
  height: 3px;
  background: var(--ink);
  transform-origin: left;
}
.link-1 { transform: scaleX(clamp(0, (var(--p) - .26) / .12, 1)); }
.link-2 { transform: scaleX(clamp(0, (var(--p) - .6) / .12, 1)); }
.w-me { --t: -1; }
.w-us { --t: .36; }
.w-we { --t: .7; }
.mq { display: grid; }
.q { grid-area: 1 / 1; }
.q-1 { --t: -1; --e: .34; }
.q-2 { --t: .36; --e: .68; }
.q-3 { --t: .7; }
.q .statement { max-width: 24ch; }
.q .ex {
  max-width: 32ch;
  margin-top: .8rem;
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.8vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink-2);
}

/* Does this technology deserve a ROLE in your life? */
.role-ask {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  margin-top: var(--gap-xl) !important;
}
.role-poster { font-size: clamp(5.5rem, 34vw, 24rem); }
.role-ask .voice.huge { max-width: 15ch; }

/* ---------- Static scenes: no JS, or reduced motion ---------- */
html:not(.scrub) .dn-captions,
html:not(.scrub) .mq { gap: 1.25rem; }
html:not(.scrub) .cap,
html:not(.scrub) .q { grid-area: auto; --on: 1; }
html:not(.scrub) .pin > .stage { padding-block: clamp(2rem, 6vh, 4rem); }
/* ROI → ROL as a visible correction rather than a transition. */
html:not(.scrub) .swap { display: inline-flex; flex-wrap: wrap; column-gap: .3em; align-items: baseline; }
html:not(.scrub) .swap > span { grid-area: auto; opacity: 1; transform: none; }
html:not(.scrub) .swap .from { opacity: .4; text-decoration: line-through; text-decoration-thickness: .06em; }
html:not(.scrub) .acronym .swap .from { opacity: .18; text-decoration: none; }
html:not(.scrub) .acronym .swap .to { color: var(--orange-text); }

/* ---------- This page + Life Ledger: equal height side by side ---------- */
.labels { align-items: stretch; }
.labels > .label { display: flex; flex-direction: column; }
.labels > .label[hidden] { display: none; }
.labels .label-foot { margin-top: auto; }

/* ---------- Reduced motion: complete and still ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-grow] { --g: 1 !important; }
  .js .role .role-e { opacity: 1; transform: none; }
}

/* The label starts as a food label and becomes a digital one. */
.dn-title span { grid-area: 1 / 1; }
.dn-food { opacity: calc(1 - var(--dig)); }
.dn-digital { opacity: var(--dig); }
/* Scenes kept short: every scroll should be worth making. */
.scrub .ratio { height: 220vh; height: 220svh; }
.scrub .dn { height: 270vh; height: 270svh; }
.scrub .circles { height: 250vh; height: 250svh; }
.scrub .ratio.short { height: 150vh; height: 150svh; }
.scrub .dn.short { height: 180vh; height: 180svh; }
.scrub .circles.short { height: 170vh; height: 170svh; }

/* Phones on their side: a compact label that fits the short screen. */
@media (orientation: landscape) and (max-height: 30rem) {
  .dn-title { font-size: 1.5rem; padding-bottom: .3rem; border-bottom-width: 5px; }
  .dn-scale { margin-block: .45rem; }
  .dn-scale li { aspect-ratio: auto; height: 2.3rem; font-size: 1.3rem; }
  .dn-dims li { padding-block: .12rem; font-size: .8rem; }
  .dn-category { padding-top: .25rem; }
  .dn-relative { margin-top: .25rem; padding-top: .25rem; }
  .meuswe { font-size: min(13vw, 18vh); }
  .cap { font-size: clamp(1.3rem, 4vw, 2.2rem); }
}

html:not(.scrub) .pin > .stage > * + * { margin-top: 1.5rem; }
html:not(.scrub) .acronym .swap { column-gap: 0; }

/* =====================================================================
   THE FINITE TRACK
   One orange track through the whole experience: finite attention moving
   through finite digital space. Drawn by main.js from data-track anchors.
   ===================================================================== */

:root {
  --track: #ff4d00;
  --track-w: 4px;
  --track-dash: 16px 10px;
}
@media (max-width: 39.99rem) {
  :root { --track-w: 3px; --track-dash: 12px 8px; }
}

.track {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
html:not(.js) .track { display: none; }

.track path {
  fill: none;
  stroke: var(--track);
  stroke-width: var(--track-w);
  stroke-dasharray: var(--track-dash);
  stroke-dashoffset: var(--flow, 0);
  stroke-linecap: butt;
  stroke-linejoin: round;
}
/* One line, one weight. Behind you it simply fades. */
.tr-behind path { opacity: .28; }
.tr-start { fill: var(--paper); stroke: var(--track); stroke-width: 3px; }
.tr-end { fill: var(--track); }
/* You. */
.tr-you { fill: var(--track); stroke: var(--paper); stroke-width: 3px; }

/* Text always sits above the track; the track passes behind it. */
main :where(p, h1, h2, ul, ol, dl, figure, blockquote, details, a, button, .label, .dn-label, .meuswe, .infinite),
footer :where(p, .labels, .ledger-lines) {
  position: relative;
  z-index: 2;
}
/* Pinned scenes sit above the track; their empty space lets it show through. */
.scrub .pin > .stage { z-index: 2; }

/* ---------- Track moments: the orange layer speaks ---------- */

.track-moment {
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  margin-block: var(--gap-l) !important;
  color: var(--orange-text);
}
.dark .track-moment, .dark.track-moment { color: var(--track); }
.tm-big {
  font-weight: 850;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(3.6rem, 19vw, 12rem);
  line-height: .84;
  letter-spacing: -.01em;
}
.tm-small {
  font-size: clamp(.85rem, 2.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.track-start {
  min-height: 0;
  margin-block: clamp(2.5rem, 8vh, 5rem) clamp(1rem, 3vh, 2rem) !important;
  align-items: flex-end;
  text-align: right;
}
.track-start .tm-big { font-size: clamp(2rem, 9vw, 5rem); }
html:not(.js) .track-moment:has([data-cm]) { display: none; }

/* ---------- The end ---------- */

.reached { margin-top: clamp(1rem, 4vh, 2rem); }
.return-link {
  display: inline-block;
  font-weight: 850;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(3rem, 14vw, 8rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .06em;
}
.return-link:hover, .return-link:focus-visible { background: var(--green); }
.end .fin { margin-top: clamp(2.5rem, 8vh, 5rem); }

@media (prefers-reduced-motion: reduce) {
  .tr-ahead path { stroke-dashoffset: 0; }
}
@media print {
  .track, .track-moment { display: none !important; }
}

/* ---------- No horizontal page scroll ---------- */
/* Scaled words in the cloud keep their unscaled box in some engines (WebKit);
   keep the cloud inside its stage. */
.scrub .returns { overflow: clip; }
/* Defensive only, after fixing the sources: clip, not hidden, so sticky still works. */
html, body { overflow-x: clip; }


/* ---------- Long words ---------- */
/* Labels hyphenate instead of growing wider than the screen. */
.label dt, .label dd, .label-serving span, .label-title, .label-sub, .route span, .dn-category span {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
  min-width: 0;
}
.contract > *, .labels > *, .label-wrap > * { min-width: 0; }

/* ---------- Direction: where is technology taking you? ---------- */
.direction > * + * { margin-top: 1.1rem; }
.direction > .statement:last-child { margin-top: var(--gap-l); }

/* ---------- Provenance: quiet, after the end ---------- */
.credit {
  margin-top: clamp(3rem, 10vh, 6rem) !important;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.sixty .credit { margin-top: var(--gap-l) !important; }

/* Totals: the label wraps onto several lines, the value stays beside it. */
.label-total dt { flex: 1 1 auto; min-width: 0; }
.label-total dd { flex: none; align-self: center; }

/* Room for the line to turn before "Did you notice the turn?" */
.direction > .statement:last-child { margin-top: clamp(7rem, 24vh, 13rem); }
