/* LooL Fit — the story in two circles.
   Works as a plain readable page without JavaScript; .js turns it into a pinned, scroll-driven stage. */
@font-face {
  font-family: Hanken;
  src: url("assets/fonts/HankenGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url("assets/fonts/HankenGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url("assets/fonts/HankenGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Space;
  src: url("assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@property --g1 {
  syntax: "<color>";
  inherits: true;
  initial-value: #f49a50;
}

:root {
  color-scheme: dark;
  --bg: #111112;
  --ink: #f2f1ee;
  --muted: #b9b7b2;
  --sport: #f49a50;
  --nutrition: #72d3a8;
  --tasks: #a5b6ff;
  --sand: #f4ca7c;
  --line: #343436;
  --g1: #f49a50;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-h: 64px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Hanken, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--sport);
  outline-offset: 3px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon,
.hs-ico,
.checks svg,
.ticket-when svg,
.fx-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--sport);
  color: #1c1206;
  font-weight: 700;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Top bar ---------- */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(14px, 4vw, 40px);
  background: linear-gradient(#111112 10%, #111112cc 55%, transparent);
}
.bar-brand {
  display: inline-flex;
  align-items: center;
}
.bar-brand img {
  display: block;
  width: auto;
  height: 40px;
}
.chapters {
  display: flex;
  gap: 4px;
}
.chapters a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s, background 0.3s;
}
.chapters a:hover,
.chapters a.is-current {
  color: var(--ink);
}
.chapters a:hover {
  background: #ffffff0d;
}
.chapters svg {
  width: 24px;
  height: 24px;
  fill: none;
}
.ch-track {
  stroke: #3d3d40;
  stroke-width: 3.6;
}
.ch-fill {
  stroke: var(--c);
  stroke-width: 3.6;
  stroke-dasharray: var(--p, 0) 1;
  transform: rotate(-90deg);
  transform-origin: 12px 12px;
}
.ch-dot {
  fill: #55555a;
  transition: fill 0.3s;
}
.chapters a.is-current .ch-dot {
  fill: var(--c);
}
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 16px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1b1b1dcc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}
.sound-toggle[aria-pressed="true"] {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--sport) 60%, transparent);
}
.eq {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 16px;
}
.eq i {
  width: 2.5px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.eq-on i {
  height: 100%;
  transform-origin: center;
  animation: eq 0.9s ease-in-out infinite alternate;
}
.spk {
  width: 20px;
  height: 20px;
}
.sound-toggle[aria-pressed="true"] .spk {
  color: var(--sport);
}
.sound-toggle[aria-pressed="true"] .spk-off,
.sound-toggle[aria-pressed="false"] .spk-on {
  display: none;
}
.eq i:nth-child(2) {
  animation-delay: -0.35s !important;
}
.eq i:nth-child(3) {
  animation-delay: -0.6s !important;
}
.eq i:nth-child(4) {
  animation-delay: -0.15s !important;
}
@keyframes eq {
  from {
    transform: scaleY(0.25);
  }
  to {
    transform: scaleY(1);
  }
}

/* ---------- Shared type ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--c, var(--sport));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker-center {
  justify-content: center;
}
.kicker .num {
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--c, var(--sport)) 50%, transparent);
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.kicker .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--c) 42%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  font-size: 1rem;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sport);
  box-shadow: 0 0 0 5px #f49a5026;
}
h1,
h2 {
  margin: 0;
  font-family: Space, Hanken, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 7.4vw, 6.2rem);
  line-height: 0.98;
}
h2 {
  font-size: clamp(1.75rem, 3.4vw, 3.4rem);
  line-height: 1.04;
}
h1 em,
h2 em {
  font-style: normal;
  color: var(--c, var(--sport));
}
.lede {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 9%, transparent);
  color: var(--c);
  font-size: 0.82rem;
  font-weight: 600;
}
.fine {
  margin: 18px 0 0;
  color: #8d8b87;
  font-size: 0.78rem;
  line-height: 1.5;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-solid {
  background: var(--sport);
  color: #1c1206;
}
.btn-solid:hover {
  background: #ffae6a;
}
.btn-ghost {
  border-color: #4a4a4d;
  background: #1b1b1d99;
}
.btn-ghost:hover {
  border-color: #77777c;
}

/* ---------- Scenes: readable baseline (no JavaScript) ---------- */
main {
  position: relative;
  z-index: 1;
}
.scene {
  position: relative;
  padding: 72px clamp(20px, 6vw, 80px);
}
.scene-intro {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--bar-h) + 24px);
  padding-bottom: 72px;
  text-align: center;
}
.mark-slot {
  width: min(64vw, 700px);
  aspect-ratio: 882 / 266;
  margin-bottom: clamp(26px, 5.5vh, 60px);
}
.mark-slot img {
  width: auto;
  height: 100%;
}
.intro-copy {
  display: grid;
  justify-items: center;
}
.intro-copy .lede {
  max-width: 33em;
}
.caption {
  max-width: 640px;
  margin: 0 auto 72px;
}
.kinetic {
  margin: 0;
  font: 700 clamp(2.4rem, 8vw, 5rem) / 1 Space, sans-serif;
  letter-spacing: -0.03em;
  text-align: center;
}
.kinetic-b {
  color: var(--sport);
}
.stage,
.scroll-hint {
  display: none;
}

/* ---------- Scenes: scroll-driven ---------- */
.js main {
  pointer-events: none;
  overflow-x: clip;
}
.js .scene-act {
  height: calc(var(--len) * 100vh);
  padding: 0;
}
.js .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.js .captions {
  position: absolute;
  top: var(--bar-h);
  bottom: 0;
  left: max(6vw, 28px);
  display: grid;
  align-content: center;
  width: min(36vw, 480px);
}
.js .scene-act[data-side="right"] .captions {
  left: auto;
  right: max(6vw, 28px);
}
.js .caption {
  grid-area: 1 / 1;
  align-self: center;
  max-width: none;
  margin: 0;
  pointer-events: none;
}
.js .caption > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.3s ease, transform 0.45s ease;
}
.js .caption.is-post > * {
  transform: translateY(-26px);
}
.js .caption.is-on {
  pointer-events: auto;
}
.js .caption.is-on > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.js .caption.is-on > :nth-child(2) {
  transition-delay: 0.07s;
}
.js .caption.is-on > :nth-child(3) {
  transition-delay: 0.14s;
}
.js .caption.is-on > :nth-child(4) {
  transition-delay: 0.21s;
}
.js .caption.is-on > :nth-child(n + 5) {
  transition-delay: 0.28s;
}
.js .scene-finale .captions {
  top: var(--fin-top, 56vh);
  right: 20px;
  bottom: 16px;
  left: 20px;
  width: auto;
  align-content: start;
  justify-items: center;
  text-align: center;
}
.js .scene-finale .caption {
  display: grid;
  justify-items: center;
  align-self: start;
  max-width: 700px;
}
.js .scene-finale .lede {
  margin-top: 14px;
}
.js .scene-finale .cta-row {
  margin-top: 24px;
}
.js .intro-copy {
  pointer-events: auto;
  will-change: opacity, transform;
}
.js .scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: block;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid #5a5a5e;
  border-radius: 14px;
  transition: opacity 0.4s;
}
.js .scroll-hint i {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--sport);
  animation: hint 1.6s var(--ease) infinite;
}
@keyframes hint {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}
.js .scene-bridge {
  display: grid;
  align-content: center;
  gap: clamp(8px, 2vh, 24px);
  height: 70vh;
  padding: 0;
  overflow: clip;
}
.js .kinetic {
  width: max-content;
  font-size: clamp(4rem, 15vw, 14rem);
  line-height: 0.95;
  text-align: left;
  white-space: nowrap;
  opacity: var(--o, 0);
  will-change: transform;
}
.js .kinetic-a {
  color: transparent;
  -webkit-text-stroke: 1.5px #f2f1ee99;
  transform: translateX(calc(45vw - var(--p, 0) * 190vw));
}
.js .kinetic-b {
  transform: translateX(calc(-150vw + var(--p, 0) * 190vw));
}

/* ---------- Stage ---------- */
.js .stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      58vmax 58vmax at var(--gx, 50%) var(--gy, 38%),
      color-mix(in srgb, var(--g1) 17%, transparent),
      transparent 64%
    ),
    radial-gradient(46vmax 46vmax at 8% 108%, #f49a5012, transparent 62%),
    radial-gradient(46vmax 46vmax at 96% -6%, #a5b6ff0d, transparent 62%);
  transition: --g1 1s ease;
}
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.world {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
}
.world .rim {
  stroke: #c0592f;
}
.world .metal {
  stroke: url(#silver);
}
.world .track {
  stroke: #29292b;
}
#letters path {
  stroke-linecap: round;
  stroke-linejoin: round;
}
#letters .rim {
  stroke-width: 63;
}
#letters .metal {
  stroke-width: 56;
}
.world .ticks {
  stroke: #ffffff30;
  stroke-width: 5;
  stroke-dasharray: 1.2 11.995;
}
.world .pupil-rim {
  fill: #c0592f;
}
.world .pupil-fill {
  fill: #e6e3dd;
}
#ringA,
#ringB {
  cursor: pointer;
  pointer-events: auto;
}
.smile-rim,
.smile-ink,
.smile-tip {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.smile-rim {
  stroke: #a94a22;
  stroke-width: 37;
}
.smile-ink {
  stroke: url(#copper);
  stroke-width: 30;
}
.smile-tip {
  stroke: #f08a4b;
  stroke-width: 15;
}
.seg {
  stroke-linecap: butt;
}
.seg-label {
  fill: #17120c;
  font: 700 10.5px Hanken, sans-serif;
  letter-spacing: 1.8px;
  text-anchor: middle;
}
.node circle.body {
  stroke: #141414;
  stroke-width: 2.5;
}
.node circle.halo {
  stroke: var(--sport);
  stroke-width: 1.6;
  stroke-dasharray: 3 3.4;
}
.node text {
  fill: #17120c;
  font: 700 13px Hanken, sans-serif;
  text-anchor: middle;
}
.node .badge circle {
  fill: #141414;
  stroke: var(--sport);
  stroke-width: 1.6;
}
.node .badge path {
  stroke: var(--sport);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.links path {
  stroke-linecap: round;
  stroke-width: 1.2;
}
.links .edge {
  stroke: var(--sand);
  stroke-width: 4.5;
}
.ripples circle {
  stroke: #ff9d7a;
  stroke-width: 1.4;
}

/* ---------- Inside the circles ---------- */
.hole {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--d, 300px);
  height: var(--d, 300px);
  margin: calc(var(--d, 300px) / -2) 0 0 calc(var(--d, 300px) / -2);
  font-size: calc(var(--d, 300px) / 16);
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}
.hole.is-on {
  opacity: 1;
}
.hs {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  gap: 0.55em;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.5s var(--ease);
}
.hs.is-on {
  opacity: 1;
  transform: none;
}
.hs p,
.hs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hs-label {
  color: var(--muted);
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hs-swap {
  display: grid;
}
.hs-swap span {
  grid-area: 1 / 1;
  transition: opacity 0.4s;
}
.hs-swap span[data-mix="on"],
.hs-swap.is-level span[data-mix="off"] {
  opacity: 0;
}
.hs-swap.is-level span[data-mix="on"] {
  opacity: 1;
  color: var(--sport);
}
.mix {
  display: grid;
  gap: 0.5em;
  width: 10.5em;
}
.mix li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6em;
  font-size: 1.12em;
  font-weight: 600;
  text-align: left;
}
.mix i {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--c);
}
.mix b {
  color: var(--c);
  font-family: Space, sans-serif;
  font-variant-numeric: tabular-nums;
}
.hs-ico {
  width: 2em;
  height: 2em;
  color: var(--c);
}
.hs-ico-lg {
  width: 2.8em;
  height: 2.8em;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 0.48em;
  height: 4.6em;
}
.bars i {
  width: 0.86em;
  height: 100%;
  border-radius: 0.3em 0.3em 0.12em 0.12em;
  background: linear-gradient(#ffc18e, var(--sport));
  transform: scaleY(0);
  transform-origin: bottom;
}
.hs-days {
  display: flex;
  gap: 0.8em; /* same pitch as the bars above, in this smaller type size */
  color: #8d8b87;
  font-size: 0.6em;
  font-weight: 700;
}
.hs-days span {
  width: 1.433em;
}
.macro {
  width: 8.6em;
  height: 8.6em;
}
.macro circle {
  fill: none;
  stroke-width: 7.5;
  stroke-linecap: round;
}
.m-track {
  stroke: #ffffff12;
}
.m-arc {
  stroke-dasharray: 0 100;
}
.hs-legend {
  display: flex;
  gap: 1em;
  font-size: 0.68em;
  font-weight: 700;
}
.hs-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--c);
}
.hs-legend span::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: currentColor;
}
.checks {
  display: grid;
  gap: 0.62em;
  text-align: left;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--ink);
  font-size: 0.98em;
  font-weight: 600;
  transition: color 0.3s;
}
.checks i {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border: 0.12em solid var(--c);
  border-radius: 50%;
  transition: background 0.25s, transform 0.4s var(--ease);
}
.checks svg {
  width: 0.9em;
  height: 0.9em;
  color: #141414;
  stroke-width: 3.2;
  opacity: 0;
}
.checks li.is-done {
  color: #9c9a96;
}
.checks li.is-done span {
  text-decoration: line-through;
  text-decoration-color: #6b6966;
}
.checks li.is-done i {
  background: var(--c);
  transform: scale(1.12);
}
.checks li.is-done svg {
  opacity: 1;
}
.hs-big {
  font: 700 1.55em / 1.05 Space, sans-serif;
  letter-spacing: -0.02em;
}
.hs-num {
  color: var(--c, var(--ink));
  font: 700 5em / 0.9 Space, sans-serif;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.hs-num-wide {
  font-size: 4.4em;
}
.hs-note {
  min-height: 1.4em;
  color: var(--ink);
  font-size: 0.82em;
  font-weight: 600;
}
.ticket {
  display: grid;
  justify-items: center;
  gap: 0.5em;
  width: 11.6em;
  padding: 0.95em 0.8em;
  border: 0.08em dashed color-mix(in srgb, var(--sport) 60%, transparent);
  border-radius: 1.1em;
  background: #1c1713e6;
}
.ticket-when {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.28em 0.8em;
  border-radius: 99em;
  background: var(--sport);
  color: #1c1206;
  font-size: 0.66em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticket-when svg {
  width: 1.2em;
  height: 1.2em;
}
.ticket-title {
  font: 700 1.2em / 1.1 Space, sans-serif;
  letter-spacing: -0.02em;
}
.ticket-going {
  color: var(--muted);
  font-size: 0.74em;
  font-weight: 600;
}
.ticket-going b {
  color: var(--sport);
  font-size: 1.25em;
}

/* ---------- Small celebration effects ---------- */
.fx {
  position: absolute;
  inset: 0;
}
.fx > * {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
}
.fx-ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 2px solid var(--c, var(--sport));
  border-radius: 50%;
}
.fx-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sport);
  color: #1c1206;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  translate: -50% -50%;
}
.fx-icon {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  color: var(--c, var(--sport));
  fill: color-mix(in srgb, var(--c, var(--sport)) 35%, transparent);
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 28px;
  padding: 34px clamp(20px, 6vw, 80px) 40px;
  border-top: 1px solid #262628;
  background: #0c0c0d;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot nav a:hover {
  color: var(--ink);
}
.foot small {
  color: #8d8b87;
}
.foot-credits {
  grid-column: 1 / -1;
  margin: 0;
  color: #8d8b87;
  font-size: 0.72rem;
  line-height: 1.5;
}

/* ---------- Small screens: circle on top, words below ---------- */
@media (max-width: 899px) {
  h2 {
    font-size: clamp(1.55rem, 6.4vw, 2.3rem);
  }
  .mark-slot {
    width: 84vw;
  }
  .kicker {
    margin-bottom: 12px;
  }
  .kicker .ico {
    width: 32px;
    height: 32px;
  }
  .lede {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.5;
  }
  .tags {
    gap: 6px;
    margin-top: 14px;
  }
  .tags li {
    padding: 5px 11px;
    font-size: 0.76rem;
  }
  .js .captions,
  .js .scene-act[data-side="right"] .captions {
    top: var(--cap-top, 52vh);
    right: 20px;
    bottom: 14px;
    left: 20px;
    width: auto;
    align-content: start;
  }
  .js .caption {
    align-self: start;
  }
  .js .scene-finale .captions {
    top: var(--fin-top, 44vh);
  }
  .js .scene-finale .cta-row {
    margin-top: 18px;
  }
  .btn {
    min-height: 48px;
    padding: 10px 20px;
  }
  .soon {
    margin-top: 16px;
  }
  .fine {
    margin-top: 10px;
  }
  .foot {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 899px) and (max-height: 700px) {
  .js .scene-act:not(.scene-finale) .tags {
    display: none;
  }
}
@media (max-width: 620px) {
  :root {
    --bar-h: 58px;
  }
  .bar-brand img {
    height: 34px;
  }
  .chapters a {
    padding: 6px;
  }
  .chapters a span,
  .sound-toggle [data-sound-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .sound-toggle {
    gap: 0;
    padding: 6px 12px;
  }
  .scene-intro .cta-row {
    flex-direction: column;
    width: min(100%, 300px);
  }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .eq i,
  .js .scroll-hint i {
    animation: none !important;
  }
  .js .caption > *,
  .js .caption.is-post > * {
    transform: none;
    transition: opacity 0.3s ease;
  }
  .hs {
    transform: none;
    transition: opacity 0.3s ease;
  }
  .js .kinetic {
    transform: none;
    width: auto;
    white-space: normal;
    text-align: center;
    font-size: clamp(2.4rem, 8vw, 6rem);
  }
  .btn:hover {
    transform: none;
  }
}

/* ---------- Arriving from, and leaving for, the landing page ---------- */
/* The landing page's wordmark travels into the opening mark, and this page opens
   like an iris: stepping inside the O. Browsers without cross-document view
   transitions simply load the page. The opt-in (@view-transition) is inline in
   story.html. */
.bar .bar-brand img {
  view-transition-name: brand-logo;
}
.mark-slot {
  view-transition-name: lool-mark;
}
::view-transition-group(brand-logo),
::view-transition-group(lool-mark) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes vt-stay {
  to {
    opacity: 1;
  }
}
@keyframes vt-iris-open {
  from {
    clip-path: circle(0 at 50% 42%);
  }
  to {
    clip-path: circle(125vmax at 50% 42%);
  }
}
@keyframes vt-mark-out {
  0%,
  65% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
/* The wordmark lands first; the iris opens just behind it, so the travelling
   mark and the page's own mark are never seen side by side. */
::view-transition-old(root) {
  mix-blend-mode: normal;
  animation: vt-stay 1s both;
}
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation: vt-iris-open 0.8s cubic-bezier(0.6, 0, 0.3, 1) 0.18s both;
}
::view-transition-old(lool-mark) {
  animation: vt-mark-out 0.9s both;
}

/* ---------- Played inside the landing page (story.html?embed=1) ---------- */
/* The landing page scrolls this document itself and supplies the header, the sound
   toggle and the way onward, so this page's own chrome and calls to action step aside. */
html.embed {
  overflow: hidden;
  scroll-behavior: auto;
}
.embed .bar,
.embed .foot,
.embed .skip-link,
.embed .scene-intro .cta-row,
.embed [data-sound-note],
.embed .scene-finale .cta-row,
.embed .soon {
  display: none !important;
}
