/*
 * Theme "capsule" (poppy-seeds.net)
 * 1. Concept: a scrollytelling data story around one object, the opium poppy capsule, from flower to seed to test tube.
 * 2. Type: Besley (Clarendon-like serif, headings and figures) + Spline Sans (text and labels). Self-hosted woff2.
 * 3. Palette: glaucous bloom #e6eaee, sheet #fafbfc, ink #191e2c, seed slate #2c3a5c, petal #b83a22, latex #efe4c6.
 * 4. Layout signature: one sticky SVG capsule that changes state as text steps scroll past; myth-or-fact flip
 *    cards; quick-answer grid; articles open with the same drawing frozen in their state plus a "short answer".
 * 5. Finishing detail: the honeycomb seed-coat pattern and latex drops reused as markers, rules and list bullets.
 */
@font-face { font-family: "Besley"; src: url(fonts/besley-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Besley"; src: url(fonts/besley-latin-ext.woff2) format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Besley"; font-style: italic; src: url(fonts/besley-italic-latin.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Besley"; font-style: italic; src: url(fonts/besley-italic-latin-ext.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Spline Sans"; src: url(fonts/spline-sans-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Spline Sans"; src: url(fonts/spline-sans-latin-ext.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bloom: #e6eaee; --bloom-2: #dde3e9; --sheet: #fafbfc; --ink: #191e2c; --mute: #4f5869;
  --slate: #2c3a5c; --petal: #b83a22; --petal-l: #d4563c; --latex: #efe4c6; --line: #c5ccd5;
  --serif: "Besley", Georgia, serif; --sans: "Spline Sans", system-ui, sans-serif;
  --bar: 64px; --w: 1240px; --read: 68ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 64px); }
body { margin: 0; background: var(--bloom); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--petal); }
:focus-visible { outline: 3px solid var(--petal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
.kicker { font: 600 .78rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--petal); margin: 0 0 .9rem; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: 1.5rem; padding: 0 clamp(1rem, 3vw, 2.5rem); background: rgba(250, 251, 252, .94); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.25rem/1 var(--serif); white-space: nowrap; }
.brand i { font-weight: 500; color: var(--slate); }
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; }
.nav ol, .menu ol { list-style: none; margin: 0; padding: 0; }
.nav ol { display: flex; gap: .2rem; }
.nav a, .menu a { display: flex; align-items: baseline; gap: .4rem; text-decoration: none; color: var(--ink); font-size: .92rem; padding: .45rem .7rem; border-radius: 99px; }
.nav a span, .menu a span { font: 600 .72rem/1 var(--sans); color: var(--mute); font-variant-numeric: tabular-nums; }
.nav a:hover { background: var(--bloom); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--slate); color: #fff; }
.nav a[aria-current="page"] span { color: var(--latex); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: .45rem .9rem; border: 1px solid var(--ink); border-radius: 99px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] ol { position: absolute; right: 0; top: calc(100% + 10px); background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: .5rem; width: min(80vw, 300px); box-shadow: 0 12px 30px rgba(25, 30, 44, .12); }
.menu a { padding: .65rem .7rem; }
.langs { display: flex; gap: .3rem; }

/* cover */
.cover { max-width: var(--w); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2.5rem) 2rem; display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.cover-text .lede p { font-size: 1.16rem; color: #2a3142; max-width: 40ch; }
.cover-img { margin: 0; border-radius: 22px; overflow: hidden; background: var(--bloom-2); }
.cover-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 1.6rem 0 1.4rem; border-top: 1px solid var(--ink); }
.figures div { padding: .8rem .8rem 0 0; }
.figures div + div { padding-left: .8rem; border-left: 1px solid var(--line); }
.figures dt { font-size: .76rem; line-height: 1.3; color: var(--mute); }
.figures dd { margin: .3rem 0 0; font: 700 clamp(1.5rem, 3vw, 2.2rem)/1 var(--serif); color: var(--slate); font-variant-numeric: lining-nums; }
.figures small { font: 500 .8rem var(--sans); color: var(--mute); }
.cue a { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.cue a::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--petal); border-bottom: 2px solid var(--petal); transform: rotate(45deg) translateY(-3px); }

/* scrollytelling */
.story { position: relative; max-width: var(--w); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem) 4rem; }
.stage { margin: 0 0 1.5rem; }
.stage-in { position: relative; background: var(--sheet); border-radius: 22px; padding: 1rem 1rem 2.6rem; border: 1px solid var(--line); }
.stage-hud { position: absolute; left: 1.1rem; bottom: .8rem; margin: 0; font: 600 .8rem/1 var(--sans); color: var(--mute); display: flex; gap: .4rem; align-items: baseline; }
.stage-hud b { font: 700 1.1rem/1 var(--serif); color: var(--petal); }
.stage-hud em { font-style: normal; color: var(--ink); margin-left: .4rem; }
.stage-dots { position: absolute; right: 1.1rem; bottom: 1rem; display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.stage-dots li { width: 18px; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.stage-dots li.on { background: var(--petal); }
.step { padding: .5rem 0; }
.step-card { background: var(--sheet); border-radius: 18px; padding: 1.4rem 1.4rem .6rem; border: 1px solid var(--line); max-width: 34rem; transition: border-color .3s, box-shadow .3s; }
.step-n { font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--petal); margin-bottom: .7rem; }
.step h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.step-body p:last-child a:only-child, .step-body a[href^="/"] { font-weight: 600; }
.js .story { display: grid; grid-template-columns: 1fr; }
.js .stage { position: sticky; top: calc(var(--bar) + 8px); z-index: 2; margin-bottom: 0; }
.js .stage-in { padding: .4rem .4rem 2.4rem; }
.js .cap-story { max-height: 40vh; margin: 0 auto; }
.js .steps { position: relative; z-index: 3; }
.js .step { min-height: 100vh; display: flex; align-items: flex-end; padding-bottom: 3vh; }
.js .step:first-child { min-height: 70vh; }
.js .step-card { background: rgba(250, 251, 252, .97); }
.js .step-card { box-shadow: 0 10px 30px rgba(25, 30, 44, .10); }
.js .step.is-on .step-card { border-color: var(--slate); }

/* the drawing */
.cap { color: var(--slate); overflow: visible; }
.cap g { transition: opacity .55s ease, transform .8s cubic-bezier(.3, .7, .2, 1); transform-box: view-box; transform-origin: 200px 220px; }
.cap .lbl { font: 500 11px/1 var(--sans); fill: var(--ink); }
.cap .lbl-soft { fill: var(--mute); font-size: 10px; }
.cap .lbl-cut { fill: var(--petal); font-weight: 600; paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.cap .lbl-band { fill: var(--slate); font-weight: 600; }
.cap .axis { stroke: var(--ink); stroke-width: 1.2; }
.g-ground line { stroke: var(--line); stroke-width: 2; }
.g-stem path { fill: none; stroke: #5d6e62; stroke-width: 5; stroke-linecap: round; }
.g-stem .leaf { fill: #8a9a8c; stroke: none; }
.g-petals ellipse { fill: var(--petal-l); }
.g-petals .blotch { fill: #3a1f24; opacity: .85; }
.g-capsule .body { fill: #95a3b8; stroke: var(--slate); stroke-width: 3; }
.g-capsule .ribs path, .g-capsule .neck { fill: none; stroke: var(--slate); stroke-width: 2; opacity: .55; }
.g-capsule .crown { fill: var(--slate); }
.g-capsule .rays path { stroke: var(--petal); stroke-width: 3; stroke-linecap: round; }
.g-latex path { fill: var(--latex); stroke: #b49a5a; stroke-width: 1.5; }
.g-latex .pointer { stroke: var(--ink); stroke-width: 1; }
.g-seed .seed { fill: #5d6c8c; stroke: var(--slate); stroke-width: 3; }
.g-seed .comb { color: #e6eaee; }
.g-seed .specks circle { fill: var(--latex); stroke: #b49a5a; stroke-width: 1; transition: opacity .6s; }
.g-wash .before { fill: var(--latex); stroke: #b49a5a; }
.g-wash .range { fill: var(--latex); opacity: .6; stroke: #b49a5a; stroke-dasharray: 3 3; }
.g-test .band { opacity: .85; }
.g-test .raw { fill: #f0d8cf; }
.g-test .roll { fill: #c9d2df; }
.g-test .cut { stroke: var(--petal); stroke-width: 1.6; stroke-dasharray: 6 4; }
.g-risk .bars rect { fill: var(--slate); }
.g-risk .bars rect:nth-child(5), .g-risk .bars rect:nth-child(9) { fill: var(--petal); }
.g-law .divide { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 4; }
.g-law .seeds ellipse { fill: var(--slate); }

/* states: everything hidden by default, each state reveals and places its groups */
.cap > g { opacity: 0; }
.cap[data-state="flower"] .g-ground, .cap[data-state="capsule"] .g-ground { opacity: 1; }
.cap[data-state="flower"] .g-stem, .cap[data-state="flower"] .g-petals, .cap[data-state="flower"] .g-capsule { opacity: 1; }
.cap[data-state="flower"] .g-capsule { transform: translateY(12px) scale(.42); }
.cap[data-state="flower"] .g-petals { transform: scale(1); }
.cap[data-state="capsule"] .g-stem, .cap[data-state="capsule"] .g-capsule, .cap[data-state="capsule"] .g-latex { opacity: 1; }
.cap[data-state="capsule"] .g-petals { transform: translateY(60px) scale(.8); }
.cap[data-state="seed"] .g-seed { opacity: 1; }
.cap[data-state="seed"] .g-capsule { transform: scale(2.4); }
.cap[data-state="wash"] .g-seed, .cap[data-state="wash"] .g-wash { opacity: 1; }
.cap[data-state="wash"] .g-seed { transform: translate(-62px, -10px) scale(.7); }
.cap[data-state="wash"] .g-seed .specks circle:nth-child(odd) { opacity: .12; }
.cap[data-state="wash"] .g-seed text { opacity: 0; }
.cap[data-state="test"] .g-test { opacity: 1; }
.cap[data-state="risk"] .g-risk { opacity: 1; }
.cap[data-state="law"] .g-capsule, .cap[data-state="law"] .g-law, .cap[data-state="law"] .g-stem { opacity: 1; }
.cap[data-state="law"] .g-capsule { transform: translateY(-36px) scale(.8); }
.cap[data-state="law"] .g-stem { opacity: .35; }

/* section heads */
.sec-head { max-width: 46rem; margin: 0 0 2rem; }
.sec-note { color: var(--mute); }

/* myth or fact */
.myths { background: var(--slate); color: #fff; padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 3vw, 2.5rem); }
.myths > * { max-width: calc(var(--w) - 2 * clamp(1rem, 3vw, 2.5rem)); margin-left: auto; margin-right: auto; }
.myths .sec-head { margin-left: auto; margin-right: auto; }
.myths h2 { color: #fff; }
.myths .kicker { color: var(--latex); }
.myths .sec-note { color: #c9d1de; }
.flips { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); perspective: 1200px; }
.flip { border-radius: 18px; background: var(--sheet); color: var(--ink); min-height: 15rem; position: relative; }
.flip summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem; min-height: 15rem; border-radius: 18px; }
.flip summary::-webkit-details-marker { display: none; }
.flip-n { font: 700 .9rem/1 var(--serif); color: var(--petal); }
.flip-claim { font: 600 1.3rem/1.25 var(--serif); flex: 1; }
.flip-hint { align-self: flex-start; font-size: .8rem; font-weight: 600; border: 1px solid var(--ink); border-radius: 99px; padding: .3rem .8rem; }
.flip-hint::after { content: " · open"; color: var(--mute); font-weight: 400; }
.flip[open] summary { min-height: 0; padding-bottom: .4rem; }
.flip[open] .flip-claim { font-size: 1rem; color: var(--mute); }
.flip[open] .flip-hint { display: none; }
.flip-back { padding: 0 1.4rem 1.2rem; animation: turn .5s cubic-bezier(.3, .7, .2, 1); transform-origin: 50% 0; }
.flip-back a { color: var(--slate); }
.verdict { display: inline-block; font: 700 1.5rem/1 var(--serif); margin: 0 0 .6rem; padding-bottom: .25rem; border-bottom: 3px solid currentColor; }
.flip-myth .verdict { color: var(--petal); }
.flip-fact .verdict { color: var(--slate); }
.flip-half .verdict { color: #8a6a1c; }
@keyframes turn { from { opacity: 0; transform: rotateX(-70deg); } to { opacity: 1; transform: none; } }

/* quick answers */
.answers, .index { max-width: var(--w); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2.5rem) 1rem; }
.qa { display: grid; gap: 0; grid-template-columns: 1fr; margin: 0; border-top: 2px solid var(--ink); }
.qa > div { padding: 1.3rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .4rem; }
.qa dt { font: 600 1.2rem/1.3 var(--serif); }
.qa dd { margin: 0; color: #2a3142; }
.qa dd p { margin: 0; }

/* page index */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cards a { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto 1fr; column-gap: 1rem; height: 100%; padding: 1.1rem; background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.cards a:hover { border-color: var(--slate); transform: translateY(-2px); color: var(--ink); }
.card-fig { grid-row: 1 / 4; background: var(--bloom); border-radius: 12px; padding: 4px; align-self: start; }
.card-n { font: 700 .8rem/1 var(--serif); color: var(--petal); }
.cards strong { font: 600 1.12rem/1.25 var(--serif); margin: .3rem 0 .4rem; }
.card-d { font-size: .9rem; color: var(--mute); line-height: 1.5; }
.cap-mini .lbl, .cap-head .lbl { display: none; }
.cap-mini g, .cap-head g { transition: none; }

/* article */
.article { padding-bottom: 3rem; }
.head { max-width: var(--w); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem) 2rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
.head-fig { width: 130px; background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: .4rem; }
.head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 20ch; }
.short { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.4rem .3rem; max-width: 46rem; position: relative; }
.short::before { content: ""; position: absolute; left: 1.4rem; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--petal); }
.short-label { font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--petal); margin-bottom: .6rem; }
.short p:not(.short-label) { font-size: 1.12rem; line-height: 1.55; }
.rail { position: sticky; top: var(--bar); z-index: 10; background: rgba(230, 234, 238, .96); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.rail-t { position: absolute; left: -9999px; }
.rail ol { list-style: none; margin: 0 auto; padding: .55rem clamp(1rem, 3vw, 2.5rem); max-width: var(--w); display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; counter-reset: r; }
.rail li { flex: none; counter-increment: r; }
.rail a { display: block; font-size: .84rem; text-decoration: none; color: var(--mute); padding: .35rem .75rem; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; }
.rail a::before { content: counter(r) " "; font-weight: 600; color: var(--petal); }
.rail a:hover { color: var(--ink); border-color: var(--line); }
.rail a.is-on { background: var(--slate); color: #fff; }
.rail a.is-on::before { color: var(--latex); }
.prose { max-width: calc(var(--read) + 2 * clamp(1rem, 3vw, 2.5rem)); margin: 0 auto; padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 0; }
.prose h2 { margin-top: 2.4em; padding-top: .9em; position: relative; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 8px; background: radial-gradient(circle, var(--slate) 2.5px, transparent 3px) 0 0 / 14px 8px repeat-x; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.prose ul li { margin: .35em 0; padding-left: .3rem; }
.prose ul li::marker { content: "● "; color: var(--petal); font-size: .7em; }
.prose ol li { margin: .35em 0; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.3rem; background: var(--sheet); border-radius: 14px; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 16px; max-width: 220px; }
.table { overflow-x: auto; margin: 1.6em 0 2em; background: var(--sheet); border-radius: 14px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.45; }
th, td { text-align: left; padding: .7rem .9rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font: 600 .76rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); background: var(--bloom); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; }
.updated { margin-top: 3em; font-size: .85rem; color: var(--mute); }
.onward { max-width: calc(var(--read) + 2 * clamp(1rem, 3vw, 2.5rem)); margin: 2.5rem auto 0; padding: 0 clamp(1rem, 3vw, 2.5rem); display: grid; gap: 1rem; }
.onward-next { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: center; background: var(--slate); color: #fff; text-decoration: none; padding: 1rem; border-radius: 18px; }
.onward-next:hover { color: #fff; background: var(--ink); }
.onward-fig { background: var(--sheet); border-radius: 12px; padding: 3px; }
.onward-t span { display: block; font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--latex); margin-bottom: .45rem; }
.onward-t strong { font: 600 1.25rem/1.25 var(--serif); }
.onward-prev { font-size: .92rem; color: var(--mute); }
.onward-prev span { font-weight: 600; color: var(--ink); }

/* footer */
.foot { background: var(--ink); color: #d7dce5; margin-top: 4rem; }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 3rem clamp(1rem, 3vw, 2.5rem) 2rem; display: grid; gap: 1.5rem; }
.foot a { color: #fff; }
.foot-pub { display: flex; gap: 1.2rem; align-items: center; }
.foot-pub img { width: 88px; height: 88px; flex: none; background: var(--bloom); border-radius: 50%; padding: 6px; }
.foot-pub p { margin: 0; max-width: 60ch; }
.foot-disc { font-size: .9rem; max-width: 70ch; color: #b9c0cc; }
.foot-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; }
.foot-small { font-size: .8rem; color: #8d95a5; margin: 0; }

@media (min-width: 720px) {
  .qa { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .head { grid-template-columns: 220px 1fr; gap: 2.5rem; }
  .head-fig { width: 220px; }
}
@media (min-width: 960px) {
  .cover { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; }
  .js .story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
  .js .stage { top: calc(var(--bar) + 24px); height: calc(100vh - var(--bar) - 48px); }
  .js .stage-in { height: 100%; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1.5rem 3rem; }
  .js .cap-story { max-height: 100%; height: 100%; width: auto; }
  .js .step { min-height: 92vh; align-items: center; padding-bottom: 0; }
  .js .step:first-child { min-height: 70vh; }
  .js .step:last-child { min-height: 80vh; }
}
@media (max-width: 1080px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 959px) {
  .js .cap-story { max-height: 42vh; }
  .cap-story .lbl { font-size: 15px; }
  .cap-story .lbl-soft { font-size: 13px; }
}
@media (max-width: 520px) {
  .figures dt { font-size: .7rem; }
  .figures div + div { padding-left: .5rem; }
  .bar { gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print { .bar, .rail, .stage, .onward, .foot-nav { display: none; } body { background: #fff; } }
@media (min-width: 1200px) { .flips { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
