/* KHAVINSON · The Body, Regulated — tokens, type, layout, shell.
   The site is a set of photographs with a caption line. One type size, two tones, twelve columns:
   text only ever starts at column 1, 5, 9 or the right edge, so the type stays put while the
   pictures change. No display type outside the library. */

@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/shared/fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  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: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/shared/fonts/inter-tight-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Inter Tight'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/shared/fonts/inter-tight-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/shared/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('/shared/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
  /* contract tokens */
  --void: #050505;
  --carbon: #0E0F10;
  --graphite: #18191B;
  --bone: #ECEAE4;
  --silver: #A8A8A4;
  --ash: #84837F;
  --signal: #CFE34A;
  --rule: rgba(236, 234, 228, 0.20);          /* hairline on the current surface */
  --font-sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;   /* the library only */
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* shell tokens (modules may read them) */
  --rule-strong: rgba(236, 234, 228, 0.92);
  --nav-h: 64px;                              /* height reserved by the fixed header */
  --gutter: 20px;                             /* page margin and column gap */
  --fs: 13px;                                 /* the one type size */
  --lh: 16px;
  --dim: rgba(236, 234, 228, 0.54);           /* the second tone */
  --gap: 6px;                                 /* black between two plates */
  --line: 18px;                               /* where the first and last line of a frame sit */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-weight: cubic-bezier(0.7, 0, 0.15, 1);
  color-scheme: dark;
}
html[data-room="calm"] { --rule: rgba(236, 234, 228, 0.11); --rule-strong: rgba(236, 234, 228, 0.26); }
@media (max-width: 760px) { :root { --nav-h: 56px; --gutter: 14px; --fs: 12.5px; --line: 16px; --gap: 4px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: #2a2b2d var(--void); scrollbar-width: thin; }
body { margin: 0; min-height: 100svh; background: var(--void); color: var(--bone);
  font-family: var(--font-sans); font-size: var(--fs); line-height: var(--lh); font-weight: 400; letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums; font-feature-settings: 'ss01' 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; }
::selection { background: var(--bone); color: var(--void); }

#stage { position: relative; display: block; outline: none; }
#cinema-root, #atlas-root { position: relative; display: block; min-height: 100svh; }
#story { position: relative; display: block; }
#research-root { display: block; min-height: 100svh; padding-top: var(--nav-h); }
#research-root[hidden], #stage[hidden] { display: none; }

.sh-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sh-skip { position: fixed; left: var(--gutter); top: 8px; z-index: 200; padding: 8px 12px; background: var(--bone); color: var(--void); text-decoration: none; transform: translateY(-200%); }
.sh-skip:focus { transform: none; }

/* ---------- shared atoms ---------- */
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
button:disabled { cursor: default; }
:focus { outline: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
#stage:focus-visible { outline: none; }

/* twelve columns; children name their own start */
.sh-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.sh-row > * { min-width: 0; margin: 0; }
.sh-c1 { grid-column: 1 / span 4; } .sh-c5 { grid-column: 5 / span 4; } .sh-c9 { grid-column: 9 / span 3; } .sh-c12 { grid-column: 12; justify-self: end; text-align: right; white-space: nowrap; }
.sh-d { color: var(--dim); }
.sh-b { font-weight: 500; }
.sh-sp > * + * { margin-left: 14px; }
/* a text control: dim until it is wanted */
.sh-t { color: var(--dim); text-decoration: none; transition: color 0.25s linear; }
.sh-t:hover, .sh-t:focus-visible, .sh-t[aria-current], .sh-t[aria-expanded="true"], .sh-t[aria-pressed="true"] { color: var(--bone); }
/* hit areas stay finger-sized without growing the type */
.sh-hit { position: relative; }
.sh-hit::after { content: ''; position: absolute; inset: -14px -7px; }
@media (max-width: 760px) {
  .sh-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sh-c1 { grid-column: 1 / span 2; } .sh-c5, .sh-c9 { grid-column: 1 / span 4; } .sh-c12 { grid-column: 3 / span 2; }
}

.sh-grain { position: absolute; inset: -120px; pointer-events: none; z-index: 2; opacity: 0.2; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 1.6 -.55'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px; }
html[data-motion="full"] .is-live > .sh-grain,
html[data-motion="full"] #gate:not([hidden]) > .sh-grain { animation: sh-grain 0.9s steps(1) infinite; }
@keyframes sh-grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-37px, 61px); } 25% { transform: translate(83px, -29px); }
  37% { transform: translate(-71px, -53px); } 50% { transform: translate(19px, 97px); } 62% { transform: translate(101px, 41px); }
  75% { transform: translate(-13px, -89px); } 87% { transform: translate(-97px, 23px); } 100% { transform: translate(0, 0); }
}

/* ---------- the header: one line ---------- */
#nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 60; pointer-events: none; color: var(--bone); --dim: rgba(236, 234, 228, 0.54); transition: color 0.3s linear; }
/* in the library the header is opaque; the room's own tab bar draws the one rule under it */
html[data-room="calm"] #nav { background: var(--void); }
/* over a section that is read (lists and lines on black) the header stands on black too, so no
   line of text ever runs under its labels; over a picture it stays clear */
#nav::before { content: ''; position: absolute; inset: 0 0 -14px 0; pointer-events: none; opacity: 0; transition: opacity 0.2s linear;
  background: linear-gradient(to bottom, var(--void) 0, var(--void) calc(100% - 14px), rgba(5, 5, 5, 0)); }
html[data-room="epic"][data-hd="solid"] #nav::before { opacity: 1; }
html[data-gate="open"] #nav { visibility: hidden; }
html[data-gate="leaving"] #nav { animation: sh-nav-in 1.4s 0.5s var(--ease-out) both; }
@keyframes sh-nav-in { from { opacity: 0; } to { opacity: 1; } }
.sh-hd { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--line); }
.sh-hd a, .sh-hd button { pointer-events: auto; }
.sh-hd > * { grid-row: 1; }
.sh-hd__mark { grid-column: 1 / span 4; justify-self: start; font-weight: 500; text-decoration: none; }
.sh-hd__nav { grid-column: 5 / span 4; }
.sh-hd__rooms { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.sh-hd__a { position: relative; color: var(--dim); text-decoration: none; transition: color 0.25s linear; white-space: nowrap; }
.sh-hd__a:hover, .sh-hd__a:focus-visible, .sh-hd__a[aria-current="page"] { color: inherit; }
.sh-hd__rooms .sh-hd__a::before { content: ''; display: inline-block; width: 0; height: 6px; margin-right: 0; background: var(--signal); vertical-align: 1px; transition: width 0.4s var(--ease-out), margin-right 0.4s var(--ease-out); }
.sh-hd__rooms .sh-hd__a[aria-current="page"]::before { width: 6px; margin-right: 8px; }
.sh-hd__ctx { grid-column: 9 / -1; margin-right: calc(var(--sh-tools, 130px) + var(--gutter)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-hd__m { margin-left: 14px; color: var(--dim); }
.sh-hd__m:empty { display: none; }
.sh-hd__tools { grid-column: 12; justify-self: end; display: flex; gap: 14px; white-space: nowrap; }
.sh-hd__n { margin-left: 5px; }
.sh-hd__n:empty { display: none; }
.sh-hd__sound { color: inherit; }
.sh-hd__state { margin-left: 5px; color: var(--dim); transition: color 0.25s linear; }
.sh-hd__sound[aria-pressed="true"] .sh-hd__state { color: inherit; }
.sh-hd__menu { display: none; color: inherit; }
.sh-hd [hidden], .sh-sheet [hidden] { display: none !important; }
/* over the film only: a soft fall-off of dark keeps one line of small type legible on white frames */
.sh-hd-scrim { position: fixed; inset: 0 0 auto 0; height: calc(var(--nav-h) + 70px); z-index: 59; pointer-events: none; background: linear-gradient(to bottom, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0.32) 50%, rgba(5, 5, 5, 0)); opacity: 0; transition: opacity 0.6s linear; }
html[data-room="epic"] .sh-hd-scrim { opacity: 1; }
html[data-gate="open"] .sh-hd-scrim { opacity: 0; }
@media (max-width: 860px) {
  .sh-hd__nav, .sh-hd__ctx, .sh-hd__boards { display: none; }
  .sh-hd__mark { grid-column: 1 / span 2; }
  .sh-hd__tools { grid-column: 3 / -1; gap: 18px; }
  .sh-hd__menu { display: inline; }
}

/* ---------- phone sheet ---------- */
.sh-sheet { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; justify-content: space-between; padding: var(--line) var(--gutter) calc(var(--line) + env(safe-area-inset-bottom)); background: var(--void); color: var(--bone); opacity: 0; transition: opacity 0.35s linear; overflow-y: auto; }
.sh-sheet[hidden] { display: none; }
.sh-sheet:focus { outline: none; }
.sh-sheet[data-state="open"] { opacity: 1; }
.sh-sheet__top { display: flex; justify-content: space-between; }
.sh-sheet__mark { font-weight: 500; }
.sh-sheet__list { margin: 0; padding: 0; list-style: none; }
.sh-sheet__a { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); padding: 15px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--dim); }
.sh-sheet__a[aria-current="page"] { color: var(--bone); }
.sh-sheet__l { grid-column: 1 / span 2; }
.sh-sheet__a[aria-current="page"] .sh-sheet__l::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: var(--signal); vertical-align: 1px; }
.sh-sheet__m { grid-column: 3 / span 2; color: var(--dim); }
.sh-sheet__tools { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--rule); }
.sh-sheet__tool { color: var(--bone); text-decoration: none; white-space: pre; }
html[data-motion="reduced"] .sh-sheet { transition: none; }

/* ---------- the gate: the name and two ways in ---------- */
#gate { position: fixed; inset: 0; z-index: 100; background: var(--void); color: var(--bone); overflow: hidden; transition: opacity 1.1s linear 0.25s; }
#gate[hidden] { display: none; }
#gate[data-state="leaving"] { opacity: 0; pointer-events: none; }
/* the picture: one loop, full bleed */
.sh-gate__reel { position: absolute; inset: 0; background: #050505; }
.sh-gate__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#gate > .sh-grain { opacity: 0.16; }
.sh-gate__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 5, 5, 0) 38%, rgba(5, 5, 5, 0.5) 72%, rgba(5, 5, 5, 0.9) 100%); }
.sh-gate__in { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(var(--line) + 14px); }
#gate[data-state="leaving"] .sh-gate__in { opacity: 0; transition: opacity 0.3s linear; }
/* the name: as wide as the screen, cut out of the picture where the picture is bright */
.sh-gate__name { margin: 0 0 0 -0.045em; font: 700 min(18.1vw, 40svh) / 0.78 var(--font-sans); letter-spacing: -0.052em; text-transform: uppercase; white-space: nowrap; color: #fff; mix-blend-mode: difference; }
/* his line: bold, one line about half the frame wide (on a phone, two lines) */
.sh-gate__say { margin: 0 0 clamp(14px, 1.6vw, 24px); font-weight: 700; font-size: clamp(24px, 2.9vw, 62px); line-height: 1.04; letter-spacing: -0.025em; white-space: nowrap; opacity: 0; transition: opacity 1.2s linear; }
#gate[data-ready="true"] .sh-gate__say { opacity: 1; }
.sh-gate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 2.6vw, 34px); }
.sh-gate__btn { min-height: 46px; padding: 0 22px; border: 1px solid rgba(236, 234, 228, 0.7); color: var(--bone); background: rgba(5, 5, 5, 0.35); font-weight: 500; transition: background-color 0.25s linear, color 0.25s linear, opacity 0.6s linear, border-color 0.25s linear; }
.sh-gate__btn--primary { background: var(--bone); border-color: var(--bone); color: var(--void); }
.sh-gate__btn--primary::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 10px; background: var(--void); vertical-align: 1px; }
.sh-gate__btn:hover, .sh-gate__btn:focus-visible { background: var(--signal); border-color: var(--signal); color: var(--void); }
.sh-gate__btn:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }
.sh-gate__btn:disabled { opacity: 0.4; }
.sh-gate__btn[hidden] { display: none; }
.sh-gate__line { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 7px; height: 1px; background: rgba(236, 234, 228, 0.16); transition: opacity 0.8s linear 0.4s; }
.sh-gate__line i { position: absolute; inset: 0; background: var(--bone); transform-origin: 0 50%; transform: scaleX(var(--load, 0)); transition: transform 0.6s var(--ease-out); }
#gate[data-ready="true"] .sh-gate__line { opacity: 0; }
html[data-motion="reduced"] #gate { transition-duration: 0.2s; transition-delay: 0s; }
@media (max-width: 860px) {
  .sh-gate__in { bottom: calc(var(--line) + 18px); }
  .sh-gate__say { white-space: normal; max-width: 11em; font-size: clamp(24px, 7vw, 40px); text-wrap: balance; }
  .sh-gate__actions { gap: 8px; }
  .sh-gate__btn { flex: 1 1 0; padding: 0 10px; white-space: nowrap; }
}

/* ---------- house lights ---------- */
#curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; visibility: hidden; }
#curtain[data-state]:not([data-state=""]) { visibility: visible; pointer-events: auto; }
.sh-lights__top, .sh-lights__bottom { position: absolute; left: 0; right: 0; height: 50.2%; background: #000; transform: scaleY(0); }
.sh-lights__top { top: 0; transform-origin: 50% 0; }
.sh-lights__bottom { bottom: 0; transform-origin: 50% 100%; }
.sh-lights__line { position: absolute; left: 50%; top: 50%; width: 100vw; height: 1px; background: var(--bone); transform: translate(-50%, -50%); opacity: 0; }
.sh-lights__label { position: absolute; left: 50%; top: calc(50% + 22px); transform: translateX(-50%); font-size: 12.5px; color: var(--silver); opacity: 0; white-space: nowrap; }
#curtain[data-state="down-1"] :is(.sh-lights__top, .sh-lights__bottom) { transform: scaleY(1); transition: transform 0.88s var(--ease-weight); }
#curtain[data-state="down-1"] .sh-lights__line { opacity: 1; transition: opacity 0.25s linear 0.5s; }
#curtain[data-state="down-2"] :is(.sh-lights__top, .sh-lights__bottom) { transform: scaleY(1); }
#curtain[data-state="down-2"] .sh-lights__line { opacity: 1; width: 7px; height: 7px; transition: width 0.66s var(--ease-weight), height 0.2s linear 0.5s; }
#curtain[data-state="down-2"] .sh-lights__label { opacity: 1; transition: opacity 0.5s linear 0.3s; }
#curtain[data-state="down-3"] :is(.sh-lights__top, .sh-lights__bottom) { transform: scaleY(1); opacity: 0; transition: opacity 1.4s cubic-bezier(0.3, 0, 0.2, 1); }
#curtain[data-state="down-3"] .sh-lights__line { width: 7px; height: 7px; opacity: 0; transition: opacity 0.7s linear 0.35s; }
#curtain[data-state="down-3"] .sh-lights__label { opacity: 0; transition: opacity 0.5s linear; }
#curtain[data-state="down-3"] { pointer-events: none; }
#curtain[data-state="black"] :is(.sh-lights__top, .sh-lights__bottom) { transform: scaleY(1); animation: sh-in 0.24s linear both; }
#curtain[data-state="fade"] :is(.sh-lights__top, .sh-lights__bottom) { transform: scaleY(1); animation: sh-out 0.5s cubic-bezier(0.3, 0, 0.2, 1) both; }
#curtain[data-state="fade"] { pointer-events: none; }
#curtain[data-state="up-2"] :is(.sh-lights__top, .sh-lights__bottom) { transform: scaleY(0); transition: transform 0.95s var(--ease-weight); }
#curtain[data-state="up-2"] { pointer-events: none; }
@keyframes sh-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sh-out { from { opacity: 1; } to { opacity: 0; } }

/* the room itself changes temperature */
#research-root { animation: none; }
html[data-room="calm"] body { background: var(--void); }

/* =====================================================================================
   Home — the film, one sentence, a stack of plates, the door
   ===================================================================================== */
/* ---------- the statement, in the header zone over the film ---------- */
/* nothing stands on the film: the sentence, the footage credit and "More information" follow it on black */
.sh-statement { padding: 22px var(--gutter) 30px; background: var(--void); align-items: start; }
.sh-statement > * { margin: 0; min-width: 0; }
.sh-st__text { grid-column: 1 / span 4; max-width: 30em; text-wrap: pretty; }
.sh-st__credit { grid-column: 5 / span 5; color: var(--dim); }
/* one credit to a line; in the band a long one is held to two lines (it stands whole in the closing credits) */
.sh-cr { display: block; }
.sh-st__credit .sh-cr { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.sh-st__credit a { text-decoration: none; transition: color 0.25s linear; }
.sh-st__credit a:hover { color: var(--bone); }
.sh-st__act { grid-column: 11 / span 2; justify-self: end; white-space: nowrap; }
@media (max-width: 860px) {
  .sh-statement { row-gap: 10px; }
  .sh-st__text, .sh-st__credit { grid-column: 1 / -1; }
  .sh-st__act { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- the library door: one line between two rules ---------- */
.sh-door { padding: 12svh var(--gutter) 13svh; background: var(--void); }
.sh-door__in { padding: 22px 0 23px; border-block: 1px solid var(--rule); text-decoration: none; color: var(--bone); transition: border-color 0.3s linear; }
.sh-door__in:hover, .sh-door__in:focus-visible { border-color: var(--rule-strong); }
.sh-door__h { grid-column: 1 / span 4; font-weight: 500; }
.sh-door__fig { grid-column: 5 / span 6; color: var(--dim); transition: color 0.3s linear; }
.sh-door__cta { grid-column: 12; justify-self: end; white-space: nowrap; }
.sh-door__cta::before { content: ''; display: inline-block; width: 0; height: 6px; margin-right: 0; background: var(--signal); vertical-align: 1px; transition: width 0.4s var(--ease-out), margin-right 0.4s var(--ease-out); }
.sh-door__in:hover .sh-door__cta::before, .sh-door__in:focus-visible .sh-door__cta::before { width: 6px; margin-right: 8px; }
.sh-door__in:hover .sh-door__fig { color: var(--bone); }
@media (max-width: 760px) {
  .sh-door { padding: 9svh var(--gutter) 10svh; }
  .sh-door__in { padding: 18px 0 19px; row-gap: 6px; }
  .sh-door__h { grid-column: 1 / span 2; grid-row: 1; }
  .sh-door__cta { grid-column: 3 / span 2; grid-row: 1; }
  .sh-door__fig { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- credits: one line ---------- */
#credits { padding: 0 var(--gutter) var(--line); background: var(--void); }
.sh-credits__line { margin: 0; color: var(--dim); }
.sh-credits__line > :nth-child(1) { grid-column: 1 / span 4; color: var(--bone); }
.sh-credits__line > :nth-child(2) { grid-column: 5 / span 7; }
.sh-credits__line > :nth-child(3) { grid-column: 12; justify-self: end; }
.sh-credits__line a { text-decoration: none; transition: color 0.25s linear; }
.sh-credits__line a:hover { color: var(--bone); }
@media (max-width: 760px) { .sh-credits__line { row-gap: 4px; } .sh-credits__line > * { grid-column: 1 / -1 !important; justify-self: start !important; } }

/* =====================================================================================
   #story — the legend. Every line is read from data/legend.json.
   ===================================================================================== */
#story { --col: calc((100vw - 2 * var(--gutter) + var(--gutter)) / 3); background: var(--void); }
@media (max-width: 760px) { #story { --col: 0px; } }
.sh-empty { padding: 30svh var(--gutter); color: var(--dim); max-width: 40em; }

/* ---------- the man: the 2017 photograph, printed in the film's silver ---------- */
/* clip, not hidden: a clipped box has no scroll offset, so nothing inside can shift the picture sideways */
.sh-man { position: relative; height: 100svh; min-height: 540px; overflow: hidden; overflow: clip; background: var(--void); }
.sh-man__stage { position: absolute; inset: 0; overflow: hidden; overflow: clip; background: radial-gradient(58% 66% at 67% 38%, #1d1d1d 0%, #0b0b0b 56%, #050505 100%); }
.sh-man__fig { position: absolute; left: 67%; top: 3%; height: 134%; aspect-ratio: 640 / 1140; margin: 0; transform: translateX(-50%); opacity: 0; transition: opacity 1.8s linear; }
.sh-man.is-in .sh-man__fig { opacity: 1; }
.sh-man__l { position: absolute; inset: 0; }
.sh-man__cut { position: absolute; inset: 0; overflow: hidden; -webkit-mask-image: var(--matte); mask-image: var(--matte); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.sh-man__cut img { position: absolute; display: block; max-width: none; width: 293.75%; height: 101.7544%; left: -134.375%; top: -1.7544%; }
.sh-man__print img { filter: grayscale(1) contrast(1.5) brightness(0.98); }
.sh-man__halo { mix-blend-mode: screen; filter: blur(18px); opacity: 0.38; }
.sh-man__halo img { filter: grayscale(1) contrast(4.2) brightness(0.5); }
/* echoes: the silhouette again, larger and softer, standing behind him */
.sh-man__echo { transform-origin: 40% 14%; filter: blur(26px); opacity: 0.15; transform: scale(1.46); }
.sh-man__echo .sh-man__cut { background: #d8d6d0; }
.sh-man__echo--far { filter: blur(44px); opacity: 0.085; transform: scale(2.2); }
html[data-motion="full"] .sh-man.is-live .sh-man__echo { animation: sh-echo 11s ease-in-out infinite alternate; }
html[data-motion="full"] .sh-man.is-live .sh-man__echo--far { animation: sh-echo-far 15s ease-in-out infinite alternate; }
@keyframes sh-echo { from { transform: scale(1.42); } to { transform: scale(1.54); } }
@keyframes sh-echo-far { from { transform: scale(2.1); } to { transform: scale(2.4); } }
/* the moving print: the subject sits at the centre of a 16:9 frame; it is hung so he stands right of centre */
.sh-man__loop { position: absolute; top: 0; height: 100%; aspect-ratio: 16 / 9; left: 68%; transform: translateX(-50%); max-width: none; object-fit: cover; opacity: 0; transition: opacity 1.8s linear;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%); }
.sh-man.is-in .sh-man__loop { opacity: 1; }
.sh-man--loop .sh-man__stage { background: #050505; }
.sh-man--loop .sh-man__shade { background: linear-gradient(0deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0) 30%), linear-gradient(90deg, rgba(5, 5, 5, 0.85) 0%, rgba(5, 5, 5, 0) 46%); }
@media (max-width: 860px) {
  .sh-man__loop { left: 50%; height: 78%; }
  .sh-man--loop .sh-man__shade { background: linear-gradient(0deg, #050505 0%, #050505 22%, rgba(5, 5, 5, 0.75) 42%, rgba(5, 5, 5, 0) 66%); }
}
.sh-man > .sh-grain { opacity: 0.3; z-index: 2; mix-blend-mode: overlay; }
.sh-man__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(0deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0) 26%); }
.sh-man__cap { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); }
/* his line: the one exception to the one-size type, bold and unmissable */
.sh-say { margin: 0; font-weight: 640; font-size: clamp(42px, 7.1vw, 148px); line-height: 0.9; letter-spacing: -0.04em; text-wrap: balance; }
.sh-man__say { position: absolute; z-index: 3; left: var(--gutter); bottom: calc(var(--line) + var(--lh) + 9svh); margin: 0; max-width: calc(100vw - 2 * var(--gutter)); }
.sh-man__say .sh-say { max-width: 7.4em; opacity: 0; transform: translateY(0.18em); transition: opacity 1.4s linear 0.5s, transform 2.2s var(--ease-out) 0.4s; }
.sh-man.is-in .sh-man__say .sh-say { opacity: 1; transform: none; }
.sh-man__say blockquote { margin: 0 0 20px; }
.sh-man__by { margin: 0; }
.sh-man__by b { font-weight: 500; }
.sh-man__by span { margin-left: 14px; color: var(--dim); }
html[data-motion="reduced"] .sh-man__say .sh-say { transition: none; transform: none; }
.sh-man__cap { bottom: var(--line); align-items: end; }
.sh-man__ep { grid-column: 1 / span 6; }
.sh-man__jump { grid-column: 12; justify-self: end; display: flex; gap: 14px; white-space: nowrap; }
@media (max-width: 860px) {
  .sh-man__fig { left: 50%; top: 9%; height: 100%; }
  .sh-man__say { bottom: calc(var(--line) + 2 * var(--lh) + 26px); }
  .sh-say { font-size: clamp(40px, 12.4vw, 76px); }
  .sh-man__cap { row-gap: 10px; }
  .sh-man__ep { grid-column: 1 / span 3; }
  /* one above the other, far enough apart that each has its own finger-sized hit area */
  .sh-man__jump { grid-column: 4; flex-direction: column; gap: 22px; text-align: right; }
  .sh-man__jump .sh-hit::after { inset: -11px -10px; }
}

/* ---------- the athletes: one plate, three sourced lines ---------- */
.sh-ath { position: relative; height: 100svh; min-height: 540px; margin-top: var(--gap); overflow: hidden; background: #0a0a0a; }
.sh-ath__m { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity 1.2s linear, transform 2.6s var(--ease-out); }
.sh-ath.is-in .sh-ath__m { opacity: 1; transform: none; }
.sh-ath::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 30%, rgba(5, 5, 5, 0) 72%, rgba(5, 5, 5, 0.6) 100%); }
.sh-ath__top, .sh-ath__cap { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); }
.sh-ath__top { top: calc(var(--line) + var(--lh) + 6px); }
.sh-ath__lines { grid-column: 9 / span 4; margin: 0; padding: 0; list-style: none; max-width: 32em; }
.sh-ath__lines li + li { margin-top: 10px; }
.sh-ath__lines span { display: block; color: var(--dim); }
.sh-ath__cap { bottom: var(--line); }
.sh-ath__k { grid-column: 1 / span 4; font-weight: 500; }
.sh-ath--film .sh-ath__m { filter: grayscale(1) contrast(1.45) brightness(0.78); }
.sh-ath--film > .sh-grain { opacity: 0.34; z-index: 1; mix-blend-mode: overlay; }
/* the Kremlin: his words stand on the floor of the picture beside its caption, clear of the header's line */
.sh-ath--film .sh-ath__top { top: auto; bottom: var(--line); }
.sh-ath--film .sh-ath__lines { grid-column: 5 / span 6; max-width: 34em; }
@media (max-width: 860px) { .sh-ath--film .sh-ath__top { bottom: calc(var(--line) + 2 * var(--lh) + 18px); } .sh-ath--film .sh-ath__lines { grid-column: 1 / -1; } }
.sh-ath--film::after { z-index: 1; background: linear-gradient(180deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.5) 14%, rgba(5, 5, 5, 0) 38%, rgba(5, 5, 5, 0) 70%, rgba(5, 5, 5, 0.78) 100%); }
/* the athletes: the three lines stand on the floor of the picture, whatever the picture is */
.sh-ath--lines::after { background: linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0) 22%, rgba(5, 5, 5, 0) 62%, rgba(5, 5, 5, 0.88) 100%); }
.sh-ath--lines .sh-ath__top { top: auto; bottom: var(--line); }
.sh-ath--lines .sh-ath__lines { grid-column: 5 / -1; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1fr); column-gap: var(--gutter); }
.sh-ath--lines .sh-ath__lines li + li { margin-top: 0; }
.sh-ath--lines .sh-ath__lines li { max-width: 26em; text-wrap: balance; }
@media (max-width: 860px) {
  .sh-ath--lines .sh-ath__top { bottom: calc(var(--line) + var(--lh) + 18px); }
  /* a wide picture on a tall screen: shown whole across the width, fading into the black around it */
  .sh-ath--lines { background: #050505; }
  .sh-ath--lines .sh-ath__m { inset: 25% -22% auto -22%; width: 144%; height: auto; aspect-ratio: 16 / 9;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%); }
  .sh-ath--lines::after { background: none; }
  .sh-ath--lines .sh-ath__lines { grid-column: 1 / -1; display: block; }
  .sh-ath--lines .sh-ath__lines li + li { margin-top: 10px; }
}
.sh-ath__lines p { margin: 0; }
.sh-ath__lines p + p { margin-top: 8px; }
.sh-ath__n a { text-decoration: none; }
.sh-ath__n a:hover { color: var(--bone); }
.sh-ath__n { grid-column: 5 / span 7; color: var(--dim); }
@media (max-width: 860px) { .sh-ath__lines { grid-column: 1 / -1; } .sh-ath__k, .sh-ath__n { grid-column: 1 / -1; } .sh-ath__cap { row-gap: 4px; } }

/* ---------- the record: numbers, then lines ---------- */
.sh-rec { padding: 20svh var(--gutter) 6svh; background: var(--void); }
.sh-nums { margin: 0; row-gap: 22px; }
.sh-num { grid-column: span 2; margin: 0; }
.sh-num dt { font-weight: 500; }
.sh-num dd { margin: 0; text-wrap: balance; max-width: 15em; }
.sh-num__src { color: var(--dim); margin-top: 4px !important; }
.sh-grp { margin-top: 13svh; }
.sh-grp--top { margin-top: 15svh; }
.sh-grp__k { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 16px); }
.sh-grp__k b { font-weight: 500; }
.sh-grp__k span { margin-left: 14px; color: var(--dim); }
.sh-grp__list { grid-column: 5 / -1; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.sh-ln { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gutter); width: 100%; padding: 7px 0 8px; border-top: 1px solid var(--rule); color: var(--bone); cursor: pointer; }
.sh-ln__y { grid-column: 1; color: var(--dim); }
.sh-ln__h { grid-column: 2 / span 3; transition: transform 0.5s var(--ease-out); }
.sh-ln__s { grid-column: 5 / span 4; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.25s linear; }
.sh-ln:hover .sh-ln__h, .sh-ln[aria-expanded="true"] .sh-ln__h { transform: translateX(8px); }
.sh-ln:hover .sh-ln__s { color: var(--bone); }
.sh-ln[aria-expanded="true"] .sh-ln__y { color: var(--signal); }
.sh-ln__more { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gutter); padding: 6px 0 22px; }
.sh-ln__more[hidden] { display: none; }
.sh-ln__body { grid-column: 2 / span 3; }
.sh-ln__body p { margin: 0 0 10px; text-wrap: pretty; }
.sh-ln__body .sh-ru { color: var(--dim); }
.sh-ln__src { grid-column: 5 / span 4; margin: 0; padding: 0; list-style: none; color: var(--dim); }
.sh-ln__src li { margin: 0 0 10px; overflow-wrap: anywhere; }
.sh-ln__src b { font-weight: 400; color: var(--bone); }
.sh-ln__src q { display: block; margin-top: 3px; quotes: none; }
.sh-rec__all { margin-top: 26px; }
.sh-rec__notes { margin-top: 40px; row-gap: 4px; color: var(--dim); }
.sh-rec__notes p { margin: 0; }
.sh-rec__notes a { text-decoration: none; transition: color 0.25s linear; }
.sh-rec__notes a:hover { color: var(--bone); }
.sh-rec__all button { color: var(--bone); }
.sh-rec__all button::before { content: '+'; display: inline-block; width: 14px; }
.sh-rec__all button[aria-expanded="true"]::before { content: '–'; }
.sh-rec__more[hidden] { display: none; }
@media (max-width: 760px) {
  .sh-rec { padding: 14svh var(--gutter) 12svh; }
  .sh-num { grid-column: span 2; }
  .sh-grp { row-gap: 10px; margin-top: 9svh; }
  .sh-grp__k { grid-column: 1 / -1; position: static; }
  .sh-grp__list { grid-column: 1 / -1; }
  .sh-ln, .sh-ln__more { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sh-ln__h { grid-column: 2 / -1; }
  .sh-ln__s { display: none; }
  .sh-ln__body, .sh-ln__src { grid-column: 2 / -1; }
}

/* ---------- drawers (timeline, school): on demand ---------- */
.sh-drawer[hidden] { display: none; }
/* an opened drawer is scrolled to just under the header: the header's own strip above it stays empty */
.sh-drawer { margin-top: calc(var(--nav-h) + 12px); }

/* ---------- section grid ---------- */
.sh-strip, .sh-school { position: relative; display: grid; grid-template-columns: var(--gutter) var(--col) minmax(0, 1fr) var(--gutter); align-content: start; }
.sh-strip > *, .sh-school > * { grid-column: 3; min-width: 0; }
.sh-col-label { grid-column: 2 !important; grid-row: 1; align-self: start; display: grid; gap: 6px; padding-top: 0.5em; font-size: 13px; line-height: 1.1; }
.sh-col-label__src { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; color: var(--ash); }
.sh-sec-h { grid-row: 1; margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(42px, 6vw, 104px); line-height: 0.92; letter-spacing: -0.018em; text-wrap: balance; }
.sh-sec-h em { color: var(--silver); }
.sh-sec-sub { margin: 16px 0 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0; color: var(--silver); }
:is(.sh-strip, .sh-school) > :is(.sh-col-label, .sh-sec-h) { opacity: 0; transform: translateY(22px); transition: opacity 1.2s linear, transform 1.6s var(--ease-out); }
.is-seen > :is(.sh-col-label, .sh-sec-h) { opacity: 1; transform: none; }
html[data-motion="reduced"] :is(.sh-strip, .sh-school) > * { opacity: 1; transform: none; transition: none; }
@media (max-width: 760px) {
  .sh-col-label { grid-column: 3 !important; grid-row: auto; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
  .sh-sec-h { grid-row: auto; }
}

/* ---------- shared by the drawers ---------- */
.sh-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 11px; border-bottom: 1px solid var(--rule-strong); font-size: 13px; font-weight: 420; }
.sh-h span { font-family: var(--font-mono); font-size: 10.5px; color: var(--ash); letter-spacing: 0; }
.sh-sources { font-size: 12.5px; color: var(--silver); }
.sh-sources summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 9px; padding: 6px 0; }
.sh-sources summary::-webkit-details-marker { display: none; }
.sh-sources summary::before { content: '+'; font-family: var(--font-mono); width: 9px; }
.sh-sources[open] summary::before { content: '−'; }
.sh-sources ul { margin: 8px 0 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.7; letter-spacing: 0; color: var(--silver); overflow-wrap: anywhere; }

/* ---------- the strip ---------- */
.sh-strip { padding: clamp(60px, 10svh, 120px) 0 clamp(70px, 12svh, 140px); --fw: 348px; }
.sh-strip__viewport { grid-column: 1 / -1 !important; margin-top: clamp(32px, 6svh, 64px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; cursor: grab; background: #0b0c0c; border-block: 1px solid var(--rule); }
.sh-strip__viewport::-webkit-scrollbar { display: none; }
.sh-strip__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.sh-strip__viewport:focus-visible { outline-offset: -3px; }
.sh-strip__film { position: relative; display: flex; align-items: stretch; width: max-content; margin: 0; padding: 30px calc(50vw - var(--fw) / 2); list-style: none; }
.sh-strip__film::before, .sh-strip__film::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='10'%3E%3Crect x='8' y='0' width='13' height='10' rx='2.2' fill='%23050505' stroke='%23ffffff' stroke-opacity='.13'/%3E%3C/svg%3E") repeat-x 0 0 / 29px 10px; }
.sh-strip__film::before { top: 10px; }
.sh-strip__film::after { bottom: 10px; }
.sh-frame { position: relative; flex: none; width: var(--fw); padding: 0 4px; scroll-snap-align: center; display: flex; flex-direction: column; }
.sh-frame__edge { display: flex; justify-content: space-between; padding: 3px 8px 5px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--ash); }
.sh-frame__pic { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 350px; padding: 20px 22px 14px; background: var(--void); color: var(--silver); border-radius: 2px; cursor: pointer;
  transition: background 0.6s var(--ease-out), color 0.6s var(--ease-out); }
.sh-frame__year { margin: 0; font-family: var(--font-mono); font-weight: 300; font-size: 58px; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--bone); transition: color 0.6s var(--ease-out); }
.sh-frame__label { margin: 16px 0 0; font-size: 15px; line-height: 1.36; text-wrap: pretty; }
.sh-frame__people { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12px; }
.sh-frame__people button { padding: 4px 0; border-bottom: 1px solid var(--rule); transition: border-color 0.3s; }
.sh-frame__people button:hover, .sh-frame__people button:focus-visible { border-color: currentColor; }
.sh-frame__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; }
.sh-frame__src { padding: 4px 0; }
button.sh-frame__src::before { content: '+ '; }
button.sh-frame__src[aria-expanded="true"]::before { content: '− '; }
.sh-frame__src.is-none { opacity: 0.7; }
.sh-frame__srclist { margin: 8px 0 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 9.5px; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
.sh-frame.is-current .sh-frame__pic { background: var(--bone); color: #1b1b1a; cursor: default; }
.sh-frame.is-current .sh-frame__year { color: var(--void); }
.sh-frame.is-current .sh-frame__edge { color: var(--silver); }
.sh-frame.is-current .sh-frame__people button { border-color: rgba(5, 5, 5, 0.3); }
.sh-frame.is-current .sh-frame__people button:hover { border-color: var(--void); }
.sh-frame.is-current :focus-visible { outline-color: var(--void); }
.sh-strip__transport { margin-top: 22px; }
.sh-strip__ctl { display: flex; justify-content: flex-end; align-items: baseline; gap: 16px; font-size: 13px; line-height: 1; }
.sh-strip__btn { padding: 10px 0; transition: color 0.3s; }
.sh-strip__btn:disabled { color: var(--ash); }
.sh-strip__btn:not(:disabled):hover { text-decoration: underline; text-underline-offset: 4px; }
.sh-strip__count, .sh-strip__year { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sh-strip__count { margin-left: 10px; color: var(--silver); }
.sh-axis { position: relative; height: 102px; margin-top: 2px; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.sh-axis__svg { position: absolute; left: 0; top: 0; width: 100%; height: 74px; overflow: visible; }
.sh-axis__bar { fill: rgba(236, 234, 228, 0.26); }
.sh-axis__line { stroke: var(--rule-strong); stroke-width: 1; }
.sh-axis__ticks { position: absolute; left: 0; right: 0; top: 56px; height: 0; }
.sh-axis__tick { position: absolute; top: calc(5px + var(--k) * 7px); width: 5px; height: 5px; margin-left: -2.5px; background: var(--ash); transition: background 0.3s; }
.sh-axis__tick.is-current { background: var(--bone); }
.sh-axis__head { position: absolute; top: 52px; left: 0; width: 9px; height: 9px; margin-left: -4.5px; background: var(--bone); transition: left 0.5s var(--ease-out); pointer-events: none; }
.sh-axis__labels { position: absolute; left: 0; right: 0; top: 84px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; color: var(--ash); }
.sh-axis__labels span { position: absolute; transform: translateX(-50%); }
.sh-axis__tip { position: absolute; top: -10px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; white-space: nowrap; color: var(--bone); background: var(--void); padding: 2px 6px; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.sh-axis.is-hover .sh-axis__tip { opacity: 1; }
.sh-strip__legend { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 0; font-size: 12px; color: var(--silver); }
.sh-strip__legend span { display: inline-flex; align-items: center; gap: 8px; }
.sh-key { display: inline-block; flex: none; }
.sh-key--sq { width: 5px; height: 5px; background: var(--silver); }
.sh-key--bar { width: 4px; height: 12px; background: rgba(236, 234, 228, 0.3); }
@media (max-width: 760px) {
  .sh-strip { --fw: min(78vw, 320px); }
  .sh-frame__pic { min-height: 372px; padding: 18px 18px 12px; }
  .sh-frame__year { font-size: 50px; }
  .sh-strip__ctl { justify-content: space-between; }
  .sh-strip__count { margin-left: auto; }
}

/* ---------- the school ---------- */
.sh-school { padding: clamp(50px, 8svh, 100px) 0 clamp(70px, 12svh, 140px); }
.sh-net { grid-column: 2 / 4 !important; display: grid; grid-template-columns: 252px minmax(0, 1fr) 372px; margin-top: clamp(28px, 5svh, 56px); height: clamp(560px, 82svh, 860px); border-block: 1px solid var(--rule); }
.sh-net__index { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--rule); }
.sh-net__search { width: 100%; height: 44px; padding: 0 12px 0 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; color: var(--bone); font: inherit; font-size: 13px; }
.sh-net__search::placeholder { color: var(--ash); }
.sh-net__search:focus-visible { outline: none; border-bottom-color: var(--bone); }
.sh-net__search::-webkit-search-cancel-button { -webkit-appearance: none; }
.sh-tabs { display: flex; gap: 18px; padding: 0; border-bottom: 1px solid var(--rule); }
.sh-tab { padding: 12px 0 11px; font-size: 12.5px; color: var(--ash); border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color 0.3s; }
.sh-tab[aria-selected="true"] { color: var(--bone); border-bottom-color: var(--bone); }
.sh-tab:hover { color: var(--bone); }
.sh-net__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 16px 0; scrollbar-width: thin; scrollbar-color: #2a2b2d transparent; overscroll-behavior: contain; }
.sh-idx { margin: 0; padding: 0; list-style: none; }
.sh-idx__h { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; margin: 0; padding: 14px 0 7px; background: var(--void); font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0; color: var(--ash); }
.sh-idx__a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; width: 100%; padding: 6px 0 6px 0; font-size: 13px; color: var(--silver); transition: color 0.25s, padding 0.35s var(--ease-out); }
.sh-idx__a:hover, .sh-idx__a:focus-visible { color: var(--bone); padding-left: 6px; }
.sh-idx__a:focus-visible { outline-offset: -1px; }
.sh-idx__a[aria-current="true"], .sh-idx__a[aria-pressed="true"] { color: var(--bone); padding-left: 14px; background: linear-gradient(var(--bone), var(--bone)) no-repeat 0 50% / 6px 6px; }
.sh-idx__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-idx__m { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; color: var(--ash); white-space: nowrap; }
.sh-net__none { margin: 18px 0; font-size: 12.5px; line-height: 1.45; color: var(--silver); }
.sh-net__map { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.sh-net__roles { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 4px 16px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--rule); }
.sh-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 9px 0; font-size: 12.5px; color: var(--ash); text-transform: capitalize; transition: color 0.25s; }
.sh-chip span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0; }
.sh-chip:hover { color: var(--bone); }
.sh-chip[aria-pressed="true"] { color: var(--bone); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.sh-net__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: radial-gradient(60% 60% at 50% 50%, #0b0b0b, var(--void) 100%); }
.sh-net__stage > .sh-grain { opacity: 0.07; inset: 0; }
.sh-net__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.sh-net__canvas.is-dragging { cursor: grabbing; }
.sh-net__canvas:focus-visible { outline: 1px solid var(--rule-strong); outline-offset: -1px; }
.sh-net__zoom { position: absolute; z-index: 3; right: 12px; top: 12px; display: grid; border: 1px solid var(--rule); background: rgba(5, 5, 5, 0.7); }
.sh-net__z { width: 36px; height: 34px; text-align: center; font-size: 13px; color: var(--silver); transition: color 0.2s, background 0.2s; }
.sh-net__z + .sh-net__z { border-top: 1px solid var(--rule); }
.sh-net__z:last-child { font-size: 10.5px; }
.sh-net__z:hover { color: var(--void); background: var(--bone); }
.sh-net__hint { position: absolute; z-index: 3; left: 16px; bottom: 10px; margin: 0; font-size: 11.5px; color: var(--ash); pointer-events: none; }
.sh-net__time { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto auto; align-items: center; gap: 14px; padding: 0 16px; min-height: 46px; border-top: 1px solid var(--rule); font-size: 12.5px; }
.sh-net__timelabel { color: var(--silver); }
.sh-net__yearout { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; color: var(--silver); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh-net__play { padding: 8px 0; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ash); }
.sh-net__play:hover { text-decoration-color: var(--bone); }
.sh-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: ew-resize; }
.sh-range::-webkit-slider-runnable-track { height: 1px; background: var(--rule-strong); }
.sh-range::-moz-range-track { height: 1px; background: var(--rule-strong); }
.sh-range::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; margin-top: -4px; border-radius: 0; background: var(--bone); border: 0; }
.sh-range::-moz-range-thumb { width: 9px; height: 9px; border-radius: 0; background: var(--bone); border: 0; }
.sh-range:focus-visible { outline-offset: 0; }
.sh-net__legend { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 2px 16px; min-height: 42px; align-items: center; border-top: 1px solid var(--rule); }
.sh-lg { display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; font-size: 12px; color: var(--silver); transition: color 0.25s; }
.sh-lg span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0; color: var(--ash); }
.sh-lg:hover, .sh-lg[aria-pressed="true"] { color: var(--bone); }
.sh-lg[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
.sh-lg__l { width: 26px; height: 0; border-top: 1px solid currentColor; }
.sh-lg__l[data-t="co-author"] { border-top-style: dotted; }
.sh-lg__l[data-t="mentor"] { border-top-style: dashed; }
.sh-lg__l[data-t="colleague"] { border-top: 0; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px); }
.sh-lg__l[data-t="co-developed"] { border-top-width: 2px; }
.sh-lg__l[data-t="succeeded"] { border-top: 0; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 10px, transparent 10px 13px, currentColor 13px 15px, transparent 15px 18px); }

.sh-net__panel { min-height: 0; overflow-y: auto; padding: 18px 0 28px 24px; border-left: 1px solid var(--rule); scrollbar-width: thin; scrollbar-color: #2a2b2d transparent; overscroll-behavior: contain; }
.sh-net__panel:focus-visible { outline-offset: -1px; }
.sh-panel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sh-panel__eyebrow { margin: 0 0 12px; font-size: 12px; color: var(--silver); }
.sh-panel__eyebrow::first-letter { text-transform: uppercase; }
.sh-panel__x { font-size: 12px; color: var(--ash); padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; }
.sh-panel__x:hover { color: var(--bone); }
.sh-panel__name { margin: 4px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 42px; line-height: 0.98; letter-spacing: -0.012em; text-wrap: balance; }
.sh-panel__ru { margin: 12px 0 0; font-size: 12.5px; color: var(--silver); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sh-panel__ru span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; color: var(--bone); }
.sh-panel__meta { margin: 12px 0 22px; font-size: 12.5px; color: var(--silver); }
.sh-panel__summary, .sh-panel__lede { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--bone); text-wrap: pretty; }
.sh-panel__lede { margin: 0 0 22px; color: var(--silver); }
.sh-panel__blk { margin-top: 24px; }
.sh-panel__blk h5 { display: flex; justify-content: space-between; margin: 0 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-strong); font-size: 12px; font-weight: 420; }
.sh-panel__blk h5 span { font-family: var(--font-mono); font-size: 10px; color: var(--ash); letter-spacing: 0; }
.sh-panel__plain, .sh-panel__rels, .sh-panel__evs, .sh-panel__links, .sh-panel__key, .sh-panel__peps { margin: 0; padding: 0; list-style: none; }
.sh-panel__plain li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.35; color: var(--silver); }
.sh-panel__fields { margin: 10px 0 0; font-size: 13px; color: var(--silver); }
.sh-panel__peps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sh-pep { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid var(--rule); font-size: 12.5px; transition: border-color 0.25s, color 0.25s; }
button.sh-pep::before { content: ''; width: 5px; height: 5px; background: var(--ash); transition: background 0.25s; }
button.sh-pep:hover, button.sh-pep:focus-visible { border-color: var(--rule-strong); }
button.sh-pep:hover::before, button.sh-pep:focus-visible::before { background: var(--signal); }
.sh-rel { padding: 11px 0 12px; border-bottom: 1px solid var(--rule); }
.sh-rel__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.sh-rel__y { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; color: var(--ash); min-width: 34px; font-variant-numeric: tabular-nums; }
.sh-rel__t { color: var(--silver); }
.sh-rel__c { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0; color: var(--void); background: var(--silver); padding: 1px 5px; }
.sh-rel__l { margin: 5px 0 0 42px; font-size: 12.5px; line-height: 1.42; color: var(--silver); }
.sh-hop { display: inline; padding: 3px 0; color: var(--bone); border-bottom: 1px solid var(--ash); transition: border-color 0.25s; }
.sh-hop:hover, .sh-hop:focus-visible { border-color: var(--bone); }
.sh-hop__m { margin-left: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; color: var(--ash); }
.sh-panel__links li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.sh-panel__links .sh-hop { border: 0; display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
.sh-panel__links .sh-hop:hover { color: #fff; }
.sh-panel__key { margin-bottom: 26px; }
.sh-panel__key li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--silver); }
.sh-panel__key li span { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--ash); }
.sh-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--silver); }
.sh-dot[data-g="-1"] { background: var(--void); box-shadow: inset 0 0 0 1.2px var(--bone); }
.sh-dot[data-g="0"] { background: var(--bone); }
.sh-dot[data-g="2"] { background: var(--ash); }
.sh-ev { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: baseline; width: 100%; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; line-height: 1.42; color: var(--silver); transition: color 0.25s; }
.sh-ev:hover, .sh-ev:focus-visible { color: var(--bone); }
.sh-net__panel .sh-sources { margin-top: 20px; }
.sh-panel__acts { margin-top: 18px; }
.sh-panel__act, .sh-panel__start { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border: 1px solid var(--rule-strong); font-size: 12.5px; transition: background 0.3s, color 0.3s; }
.sh-panel__start { margin-top: 24px; }
.sh-panel__act:hover, .sh-panel__start:hover { background: var(--bone); color: var(--void); }

@media (max-width: 1180px) {
  .sh-net { grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: clamp(520px, 78svh, 760px) auto; height: auto; }
  .sh-net__map { grid-column: 1; grid-row: 1; }
  .sh-net__panel { grid-column: 2; grid-row: 1; }
  .sh-net__index { grid-column: 1 / -1; grid-row: 2; border-right: 0; border-top: 1px solid var(--rule); max-height: 420px; }
}
@media (max-width: 760px) {
  .sh-net { grid-column: 1 / -1 !important; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .sh-net__map, .sh-net__panel, .sh-net__index { grid-column: 1; grid-row: auto; }
  .sh-net__stage { flex: none; height: 56svh; min-height: 340px; }
  .sh-net__roles, .sh-net__legend { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-inline: var(--gutter); }
  .sh-net__roles::-webkit-scrollbar, .sh-net__legend::-webkit-scrollbar { display: none; }
  .sh-net__hint { display: none; }
  .sh-net__time { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 10px var(--gutter); }
  .sh-net__timelabel { grid-column: 1; } .sh-net__play { grid-column: 2; grid-row: 1; }
  .sh-range { grid-column: 1 / -1; } .sh-net__yearout { grid-column: 1 / -1; }
  .sh-net__panel { border-left: 0; border-top: 1px solid var(--rule-strong); padding: 22px var(--gutter) 30px; overflow: visible; }
  .sh-net__index { border-top: 1px solid var(--rule); padding: 0 var(--gutter); max-height: 70svh; }
  .sh-panel__name { font-size: 38px; }
  .sh-chip, .sh-lg { padding: 13px 0; }
  .sh-idx__a { padding: 10px 0; }
}

/* ---------- more information ---------- */
#sh-info { position: fixed; inset: 0; z-index: 80; }
#sh-info[hidden] { display: none; }
.sh-info__scrim { position: absolute; inset: 0; background: rgba(5, 5, 5, 0.62); opacity: 0; transition: opacity 0.5s linear; }
.sh-info__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 2.6vw, 40px) 64px; background: var(--carbon); border-left: 1px solid var(--rule); color: var(--silver); transform: translateX(102%); transition: transform 0.62s var(--ease-out); outline: none; scrollbar-width: thin; scrollbar-color: #2a2b2d transparent; }
#sh-info[data-state="open"] .sh-info__scrim { opacity: 1; }
#sh-info[data-state="open"] .sh-info__panel { transform: none; }
.sh-info__top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0 18px; background: var(--carbon); }
.sh-info__h { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 3vw, 44px); line-height: 1; color: var(--bone); }
.sh-info__x { padding: 10px 0; font-size: 12.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ash); }
.sh-info__x:hover { color: var(--bone); }
.sh-info__sec { margin-top: 30px; }
.sh-info__lede { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.55; color: var(--bone); }
.sh-info__k { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 450; color: var(--bone); }
.sh-info__k span { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--ash); }
.sh-kvs { margin: 0; }
.sh-kv { display: grid; grid-template-columns: 8.4em minmax(0, 1fr); column-gap: 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sh-kv dt { grid-column: 2; grid-row: 1; font-size: 13.5px; color: var(--bone); }
.sh-kv dd { display: contents; }
.sh-kv__v { grid-column: 1; grid-row: 1 / span 2; font-family: var(--font-mono); font-weight: 300; font-size: 19px; letter-spacing: -0.03em; color: var(--bone); font-variant-numeric: tabular-nums; }
.sh-kv__n { grid-column: 2; grid-row: 2; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--silver); }
.sh-info__note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--silver); }
.sh-credits-list { margin: 0; }
.sh-credits-list > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sh-credits-list dt { font-size: 13px; color: var(--bone); }
.sh-credits-list dd { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.sh-credits-list a { color: var(--bone); text-underline-offset: 3px; text-decoration-color: var(--ash); }
html[data-motion="reduced"] :is(.sh-info__panel, .sh-info__scrim) { transition: none; }

/* ---------- one type size in the drawers and the panel too ---------- */
#story :is(.sh-sec-h, .sh-panel__name), .sh-info__h { font-family: var(--font-sans); font-size: var(--fs); line-height: var(--lh); font-weight: 500; letter-spacing: 0.005em; }
#story :is(.sh-sec-h) em { font-style: normal; color: var(--dim); }
#story :is(.sh-strip, .sh-school) :is([class*="__src"], [class*="__i"], [class*="__m"], .sh-sec-sub, .sh-h span), .sh-info__k span { font-family: var(--font-sans); font-size: var(--fs); }
.sh-info__lede { font-size: var(--fs); line-height: var(--lh); max-width: 40em; }
#story .sh-frame__year { font-family: var(--font-sans); font-weight: 500; font-size: var(--fs); line-height: var(--lh); letter-spacing: 0.005em; }
#story :is(.sh-frame__label, .sh-panel__summary, .sh-panel__lede) { font-size: var(--fs); line-height: 1.42; }
#story .sh-frame__label { margin-top: 10px; }
#story :is(.sh-strip, .sh-school) [class] { font-family: var(--font-sans); letter-spacing: 0.005em; }
.sh-kv dt, .sh-credits-list dt, .sh-credits-list dd, .sh-kv__n, .sh-info__note, .sh-info__x { font-size: var(--fs); line-height: var(--lh); }
.sh-kv__v { font-family: var(--font-sans); font-weight: 500; font-size: var(--fs); letter-spacing: 0; }
.sh-kv { padding: 8px 0; }
.sh-info__x { text-decoration: none; color: var(--dim); }

/* ---------- the library before its stylesheet arrives ---------- */
/* css/research.css (Research) styles the inside of #research-root; until it exists the room is at
   least dark and legible, and its icons keep their size. :where() keeps these at zero specificity. */
:where(#research-root) { background: var(--carbon); color: var(--silver); font-size: 14px; line-height: 1.5; }
:where(#research-root) :where(a) { color: var(--bone); }
:where(#research-root) :where(img, svg, video, canvas) { max-width: 100%; height: auto; }
:where(#research-root) :where(input, select, textarea) { font: inherit; color: var(--bone); background: var(--graphite); border: 1px solid var(--rule); }

@media print { #gate, #nav, #curtain, #sh-info, .sh-sheet, .sh-grain { display: none !important; } }
