/* The Misbehaving Brain: three inks on newsprint. Values from the design system's tokens.json. */

@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/InterTight-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #e8e3d5;
  --paper-bare: #f7f2e4;
  --ink: #18181c;
  --blue-printed: #2e64bd;
  --orange-printed: #e0883c;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter Tight", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
  --rule-heavy: 3px;
  --rule-thin: 1px;
  --card-radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) url("/img/paper.jpg") repeat;
  background-size: 640px;
  color: var(--ink);
  font: 400 19px/1.55 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.blue :focus-visible { outline-color: var(--paper-bare); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper-bare); padding: 8px 12px; z-index: 10; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; }
h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
em.mis { font-style: italic; text-decoration: underline; text-decoration-color: var(--orange-printed); text-decoration-thickness: 0.09em; text-underline-offset: 0.12em; text-decoration-skip-ink: none; }
.blue em.mis, .orange em.mis { text-decoration-color: var(--orange-printed); }
.label { font: 500 13px/1.2 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; }
.caption { font: 400 16px/1.5 var(--sans); }
.source { font: 400 14px/1.5 var(--sans); }
.tag { font: 600 15px/1.3 var(--sans); }
.lede { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; }

/* Rules: heavy over thin, the newspaper pairing */
.rules { border-top: var(--rule-heavy) solid currentColor; padding-top: 3px; }
.rules::before { content: ""; display: block; border-top: var(--rule-thin) solid currentColor; margin-bottom: 14px; }
.fighead { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }

/* Masthead */
.mast { padding: 14px 0 0; position: sticky; top: 0; z-index: 20; background: var(--paper) url("/img/paper.jpg") repeat; background-size: 640px; }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mast .logo img { height: 52px; width: auto; }
.mast .logo .logo-mark { display: none; }
.mast nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font: 500 15px/1 var(--sans); }
.mast nav a { text-decoration: none; padding: 8px 0; }
.mast nav a:hover, .mast nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mast .rules { margin-top: 14px; }
.mast .rules::before { margin-bottom: 0; }

.btn {
  display: inline-block; font: 600 16px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  background: var(--blue-printed) url("/img/blue.jpg"); background-size: 640px; color: var(--paper-bare);
  padding: 13px 18px; border: 0; border-radius: 0; cursor: pointer;
}
.btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.mast nav .btn { padding: 11px 14px; }

/* Blue page */
.blue { background: var(--blue-printed) url("/img/blue.jpg") repeat; background-size: 640px; color: var(--paper-bare); }

/* Hero: printed tiles scattered like the channel header */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); }
.scatter { position: relative; height: clamp(220px, 30vw, 380px); }
.scatter img { position: absolute; aspect-ratio: 1; object-fit: cover; width: clamp(84px, 13vw, 168px); }
.scatter img:nth-child(1) { left: 3%; top: 30%; }
.scatter img:nth-child(2) { left: 17%; top: 4%; width: clamp(96px, 15vw, 190px); }
.scatter img:nth-child(3) { left: 36%; top: 38%; width: clamp(70px, 10vw, 128px); }
.scatter img:nth-child(4) { left: 50%; top: 0; }
.scatter img:nth-child(5) { left: 66%; top: 34%; width: clamp(96px, 15vw, 190px); }
.scatter img:nth-child(6) { right: 3%; top: 2%; width: clamp(70px, 10vw, 128px); }
.scatter img:nth-child(7) { right: 6%; top: 58%; width: clamp(64px, 8vw, 104px); }
.scatter .dot { position: absolute; width: clamp(18px, 2.4vw, 30px); aspect-ratio: 1; border-radius: 50%; background: var(--orange-printed); left: 47%; top: 22%; }
.hero-text { margin-top: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); column-gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-text .label { grid-column: 1 / -1; margin-bottom: 18px; }
.hero-text h1 { margin: 0; }
.hero-text .lede { margin: 0 0 0.4em; }
@media (max-width: 860px) { .hero-text { grid-template-columns: 1fr; } .hero-text h1 { margin-bottom: 22px; } }

/* Page header: a printed tile over a centred title */
.phead { text-align: center; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(8px, 2vw, 24px); }
.phead-tile { width: clamp(96px, 12vw, 140px); aspect-ratio: 1; object-fit: cover; margin: 0 auto 22px; }
.phead p { margin-left: auto; margin-right: auto; }
.phead .label { margin-bottom: 10px; }
.phead h1 { font-size: clamp(44px, 7vw, 84px); margin-bottom: 14px; }
.phead .lede { margin: 0 auto; max-width: 40ch; }

/* Pills: the date and the tags on each card */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-block; font: italic 400 15px/1 var(--serif); padding: 6px 11px 7px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--paper-bare); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.pill.topic { font: 500 13px/1 var(--sans); padding: 7px 11px; background: var(--blue-printed); border-color: var(--blue-printed); color: var(--paper-bare); }
.pill.tested { font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; background: var(--ink); color: var(--paper-bare); }
.pill.ours { font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; background: transparent; }
a.pill.topic:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The garden: a growing grid of cards, staggered */
.garden { columns: 3 300px; column-gap: clamp(16px, 2.4vw, 28px); }
.card {
  break-inside: avoid; position: relative; display: block; margin: 0 0 clamp(16px, 2.4vw, 28px);
  border: 1.5px solid var(--ink); background: rgba(247, 242, 228, 0.55); padding: 14px 14px 18px;
  border-radius: var(--card-radius); overflow: hidden;
}
.card .card-img { display: block; margin: -14px -14px 14px; border-bottom: 1.5px solid var(--ink); }
.card .card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .card-img.square img { aspect-ratio: 1; }
.card .card-tile { width: 46%; aspect-ratio: 1; object-fit: cover; margin: 6px auto 16px; }
.card .pill.date { display: inline-block; margin-bottom: 10px; }
.card .card-img.square + .pill.date { position: absolute; top: 10px; left: 10px; }
.card h3 { margin: 4px 0 8px; font-size: clamp(24px, 2.2vw, 29px); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.card p { font-size: 17px; line-height: 1.45; color: #3b3832; margin-bottom: 14px; }
.card .pills { position: relative; z-index: 1; }
.card-blue { background: var(--blue-printed) url("/img/blue.jpg") repeat; background-size: 640px; border-color: var(--blue-printed); color: var(--paper-bare); padding: 20px 18px 22px; }
.card-blue p { color: var(--paper-bare); }
.card-blue .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-blue .mark { width: 48px; height: 48px; }
.card-blue .signup { grid-template-columns: 1fr; }
.card-blue .signup input[type=email] { border-right: 2px solid var(--paper-bare); border-bottom: 0; }
.card-blue .signup label { font-size: 12px; }

.section.tight { padding-top: clamp(24px, 4vw, 40px); }
.section .fighead { margin-bottom: 24px; }
.section .fighead::before { flex-basis: 100%; margin-bottom: 0; }
.fighead h2.label { margin: 0; }

/* Episode page */
.episode { padding: clamp(28px, 4vw, 48px) 0 clamp(16px, 3vw, 32px); }
.crumb { margin-bottom: 18px; }
.episode .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.episode .grid.lower { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); margin-top: clamp(36px, 5vw, 64px); }
.episode h1 { font-size: clamp(38px, 5.4vw, 68px); margin: 16px 0 18px; }
.episode .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1.5px solid var(--ink); border-radius: var(--card-radius); }
.episode .rules h2.label { margin: 0; }
.try { list-style: none; padding: 0; margin: 14px 0 36px; }
.try li { padding: 14px 0; border-bottom: 1px solid var(--ink); font-size: 19px; }
.try li:first-child { padding-top: 4px; }
.try .pill { vertical-align: 3px; margin-right: 6px; }
.try .basis { display: block; margin-top: 6px; color: #3b3832; }
ol.studies { padding-left: 1.4em; margin: 14px 0 20px; }
ol.studies li { font: 400 14px/1.5 var(--sans); margin-bottom: 8px; overflow-wrap: anywhere; }
.episode aside .card { position: sticky; top: 110px; }
.plain-list { padding-left: 1.2em; margin: 0 0 26px; }
.plain-list li { margin-bottom: 6px; }

/* Sign-up form */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; max-width: 560px; }
.signup label { grid-column: 1 / -1; margin-bottom: 10px; }
.signup input[type=email] {
  font: 400 18px/1.2 var(--sans); color: var(--ink); background: var(--paper-bare);
  border: 2px solid var(--ink); border-right: 0; border-radius: 0; padding: 14px 14px; min-width: 0;
}
.signup input[type=email]::placeholder { color: #6b675d; }
.signup button {
  font: 600 16px/1.2 var(--sans); color: var(--ink); background: var(--orange-printed);
  border: 2px solid var(--ink); border-radius: 0; padding: 14px 18px; cursor: pointer;
}
.signup button:hover { text-decoration: underline; text-underline-offset: 4px; }
.signup .fine { grid-column: 1 / -1; margin: 12px 0 0; }
.signup .fine a { text-underline-offset: 3px; }
.blue .signup input[type=email], .blue .signup button { border-color: var(--paper-bare); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Note band */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.band h2 { margin: 14px 0 18px; }
.figlist { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: fig; }
.figlist li { counter-increment: fig; display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid currentColor; font: 400 18px/1.45 var(--sans); }
.figlist li::before { content: "[" counter(fig) "]"; font: 600 17px/1.45 var(--sans); }
.figlist li:last-child { border-bottom: 1px solid currentColor; }

/* Long text pages */
.page { padding: clamp(40px, 6vw, 80px) 0; }
.page .wrap.narrow { max-width: 760px; }
.page h1 { font-size: clamp(40px, 6vw, 76px); margin: 14px 0 28px; }
.page h2 { font-size: clamp(26px, 3vw, 34px); margin: 40px 0 12px; }
.page ul { padding-left: 1.2em; max-width: var(--measure); }
.page li { margin-bottom: 0.6em; }
.page aside img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.page aside img + img { width: 62%; margin: 18px 0 0 auto; }
.rule-list { list-style: none; padding: 0 !important; counter-reset: fig; }
.rule-list li { counter-increment: fig; display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-top: 1px solid var(--ink); margin: 0 !important; }
.rule-list li::before { content: "[" counter(fig) "]"; font: 600 17px/1.55 var(--sans); }
.rule-list li:last-child { border-bottom: 1px solid var(--ink); }

/* The sign-up page: one job */
.notes { min-height: 100vh; display: flex; flex-direction: column; }
.notes main { flex: 1; display: flex; align-items: center; padding: clamp(32px, 6vw, 72px) 0; }
.notes .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 88px); align-items: center; width: 100%; }
.notes .brand { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); text-decoration: none; }
.notes .brand img.mark { width: 64px; height: 64px; }
.notes .brand img.word { height: 52px; width: auto; }
.notes h1 { margin: 12px 0 20px; }
.notes .art { position: relative; }
.notes .art img { width: 78%; aspect-ratio: 1; object-fit: cover; margin-left: auto; }
.notes .art img + img { position: absolute; width: 44%; left: 0; bottom: -8%; }
.notes .art .dot { position: absolute; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--orange-printed); right: 4%; top: -4%; }
.notes footer { padding: 18px 0 24px; }
.notes footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; grid-template-columns: none; }

/* Confirmation pages */
.status main { padding: clamp(48px, 8vw, 110px) 0; }
.status main .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 6vw, 96px); align-items: center; }
.status h1 { margin: 12px 0 22px; }
.status .art img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Footer */
.foot { padding: 40px 0 48px; }
.foot .wrap > .rules { margin-bottom: 18px; }
.foot .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot .word { height: 46px; width: auto; margin-bottom: 12px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; font: 500 15px/1.6 var(--sans); }
.foot .source { margin-top: 10px; max-width: 46ch; }

@media (max-width: 860px) {
  .band .wrap, .episode .grid, .episode .grid.lower, .notes .wrap, .status .wrap { grid-template-columns: 1fr; }
  .scatter img:nth-child(3), .scatter img:nth-child(7) { display: none; }
  .scatter img:nth-child(4) { left: 44%; }
  .scatter img:nth-child(5) { left: 62%; top: 44%; }
  .episode aside .card { position: static; }
  .notes .art { max-width: 340px; }
  .status .art { max-width: 220px; }
  .mast .logo img { height: 40px; }
}
@media (max-width: 520px) {
  body { font-size: 18px; }
  .signup { grid-template-columns: 1fr; }
  .signup input[type=email] { border-right: 2px solid var(--ink); border-bottom: 0; }
  .blue .signup input[type=email] { border-right-color: var(--paper-bare); }
  .mast nav { gap: 14px; font-size: 14px; }
  .mast nav .hide-sm { display: none; }
  .mast .wrap { flex-wrap: nowrap; gap: 12px; }
  .mast .logo .logo-full { display: none; }
  .mast .logo .logo-mark { display: block; height: 40px; width: 40px; }
  .mast nav .btn { padding: 10px 12px; }
}

/* About */
.about-hero { padding: clamp(40px, 6vw, 88px) 0; overflow: hidden; }
.about-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-hero h1 { margin: 12px 0 22px; font-size: clamp(40px, 5.4vw, 74px); }
.orbit { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: end; }
.orbit .orbit-mark { position: absolute; width: 44%; left: 28%; top: 28%; border-radius: 50%; }
.orbit img:not(.orbit-mark) { position: absolute; width: 24%; aspect-ratio: 1; object-fit: cover; }
.orbit img:nth-of-type(2) { left: 38%; top: 0; }
.orbit img:nth-of-type(3) { right: 0; top: 22%; }
.orbit img:nth-of-type(4) { right: 4%; bottom: 8%; }
.orbit img:nth-of-type(5) { left: 38%; bottom: 0; }
.orbit img:nth-of-type(6) { left: 0; bottom: 18%; }
.orbit img:nth-of-type(7) { left: 2%; top: 10%; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.steps .card { margin: 0; }
.steps .card.rule .pill.date { top: 10px; left: 10px; }
.step-tile { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--card-radius) - 8px); margin-bottom: 16px; }
.figtag { font: 600 17px/1 var(--sans); display: block; margin-bottom: 8px; }
.print-band { padding: 0 var(--gutter); }
.print-band img { max-width: 1180px; width: 100%; margin: 0 auto; border-radius: var(--card-radius); border: 1.5px solid var(--ink); }
.card.rule .card-img.square img { aspect-ratio: 4 / 3; }

@media (max-width: 860px) {
  .about-hero .wrap { grid-template-columns: 1fr; }
  .orbit { justify-self: center; max-width: 340px; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Motion: the video's lead-in, ring and entrances (motion.js) ---------- */

/* Lead-in: the episode's own opening, over everything, once per visit. Its poster is the first frame. */
.leadin { display: none; }
.lead .leadin {
  display: block; position: fixed; inset: 0; z-index: 100; cursor: pointer;
  background: var(--blue-printed) url("/motion/leadin-wide.jpg") center / cover no-repeat;
}
@media (orientation: portrait) { .lead .leadin { background-image: url("/motion/leadin-tall.jpg"); } }
.leadin video { width: 100%; height: 100%; object-fit: cover; display: block; }
.leadin.gone { display: none; }
.lead body { overflow: hidden; }

/* The ring hero: library tiles orbit the tagline over blue grain rings, as in the subscribe ask. */
.ring-hero { position: relative; height: clamp(600px, calc(100svh - 80px), 860px); overflow: hidden; }
.ring { position: absolute; inset: 0; }
.ring canvas.rings { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.ring .rt {
  position: absolute; left: 0; top: 0; width: 120px; height: 120px; object-fit: cover;
  transform: translate(-999px, -999px); will-change: transform;
  filter: drop-shadow(5px 8px 9px rgba(20, 14, 8, 0.3));
}
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; z-index: 60; padding: 0 var(--gutter) 4%;
}
.ring-center > * { pointer-events: auto; }
.ring-center .label { margin: 0 0 14px; }
.ring-center h1 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.03; margin: 0 0 20px; }
.ring-center .btn { padding: 11px 15px; font-size: 15px; }
.ring-sub { font-size: clamp(18px, 1.8vw, 22px); margin: 0 auto 18px; max-width: 30ch; }
.ring-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn.ghost { background: var(--paper-bare); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* A round ring around the mark, on About's blue page. */
.ring.round { position: relative; inset: auto; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: end; }
.ring.round .ring-mark { position: absolute; width: 36%; left: 32%; top: 32%; border-radius: 50%; z-index: 50; }

/* Emphasis: the grainy orange stroke draws itself left to right, as it does under spoken words. */
em.mis { text-decoration: none; background: url("/img/stroke.png") left 92% / 100% 0.13em no-repeat; padding-bottom: 0.06em; }

/* Entrances, from engine.py Layer.pose: a pop from 0.55 with a back ease, or in from below, 0.3 s at 12 fps.
   Each keyframe holds (step-end), so they move in the episodes' four frames. */
@keyframes mb-pop {
  0% { visibility: visible; transform: scale(0.55); }
  25% { transform: scale(0.918); }
  50% { transform: scale(1.039); }
  75% { transform: scale(1.029); }
  100% { visibility: visible; transform: scale(1); }
}
@keyframes mb-b {
  0% { visibility: visible; transform: translateY(70px); }
  25% { transform: translateY(13px); }
  50% { transform: translateY(-6px); }
  75% { transform: translateY(-4px); }
  100% { visibility: visible; transform: none; }
}
@keyframes mb-cut { 0%, 100% { visibility: visible; } }
@keyframes mb-draw {
  0% { background-size: 0% 0.13em; } 17% { background-size: 17% 0.13em; } 33% { background-size: 33% 0.13em; }
  50% { background-size: 50% 0.13em; } 67% { background-size: 67% 0.13em; } 83% { background-size: 83% 0.13em; }
  100% { background-size: 100% 0.13em; }
}
@keyframes mb-rule { 0% { visibility: visible; transform: scaleX(0); } 100% { visibility: visible; transform: scaleX(1); } }
.js:not(.still) [data-in="pop"], .js:not(.still) [data-in="b"], .js:not(.still) [data-in="cut"] { visibility: hidden; }
.js:not(.still) [data-in="draw"] { background-size: 0% 0.13em; }
.js:not(.still) [data-in="rule"] { transform-origin: left center; visibility: hidden; }
.js:not(.still) [data-in="pop"].in { animation: mb-pop 0.333s step-end forwards; }
.js:not(.still) [data-in="b"].in { animation: mb-b 0.333s step-end forwards; }
.js:not(.still) [data-in="cut"].in { animation: mb-cut 0.01s step-end forwards; }
.js:not(.still) [data-in="draw"].in { animation: mb-draw 0.5s step-end forwards; }
.js:not(.still) [data-in="rule"].in { animation: mb-rule 0.5s steps(6, end) forwards; }
.js [data-in].shown { animation: none !important; visibility: visible !important; transform: none !important; background-size: 100% 0.13em; }

@media (prefers-reduced-motion: reduce) {
  .lead .leadin { display: none; }
  .js [data-in] { visibility: visible !important; animation: none !important; transform: none !important; }
  .js [data-in="draw"] { background-size: 100% 0.13em !important; }
}

@media (max-width: 860px) {
  .ring-hero { height: max(620px, calc(100svh - 75px)); }
  .ring-center h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .ring.round { justify-self: center; max-width: 340px; }
}
