:root {
  color-scheme: dark;
  --paper: #101d19; --ink: #faf8ef; --green: #d4e8ae; --soft: #d8e0d8; --rule: #cbd9ce4d;
  --mist: #eff2e5; --signal: #cfdf9d;
  --edge: clamp(22px,4.2vw,88px); --head: clamp(65px,9vh,88px); --foot: 62px;
  --sans: "Avenir Next","Gill Sans","Trebuchet MS",sans-serif;
  --editorial: -apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",sans-serif;
  --mono: "SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font: 100%/1.5 var(--sans); color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--green); }
a:focus-visible,button:focus-visible { outline: 2px solid #63955b; outline-offset: 3px; }
.skip { position: fixed; z-index: 9; padding: 12px 20px; color: var(--paper); background: var(--green); transform: translateY(-150%); }
.skip:focus { transform: none; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; height: var(--head); align-items: center; justify-content: space-between; padding: 0 var(--edge); background: var(--paper); }
.bar::after,.reader::before,.cinema .reader::after { content: ""; position: absolute; left: var(--edge); right: var(--edge); bottom: 0; height: 1px; background: var(--rule); }
.brand,.brand img { display: block; }
.brand img { width: clamp(80px,8vw,126px); height: auto; filter: brightness(0) invert(.96); }
.bar nav,.index { display: flex; align-items: center; }
.bar nav { gap: clamp(15px,2.6vw,46px); }
.bar nav a { text-decoration: none; font-size: .9rem; font-weight: 500; }
.bar nav a:not(.pill):hover,.index a:hover { text-decoration: underline; }
.bar .pill { display: inline-flex; align-items: center; gap: 16px; background: var(--ink); color: var(--paper); padding: 8px 17px; border-radius: 40px; }
.bar .pill:hover { background: var(--green); }
body { isolation: isolate; }
.exhibit { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 48% 31%,#526159 0%,#2d483d 29%,#1a352c 53%,#0c1c17 88%); }
.exhibit::after { content: ""; position: absolute; inset: 0; background: #0b1813b8; }
.cinema .exhibit::after { background: linear-gradient(180deg,#081510bb 0%,#09151045 14%,transparent 32%,#09151012 42%,#09151077 56%,#081510e8 78%,#081510fa 100%); }
.bloom { position: absolute; inset: 0; background: radial-gradient(ellipse at 10% 17%,#a99e7833,transparent 46%),radial-gradient(ellipse at 83% 91%,#41655830,transparent 48%); }
.bloom::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/backplane.svg") center / cover no-repeat;
  opacity: .53;
  --falloff: radial-gradient(ellipse at 50% 48%,transparent 12%,#0005 32%,#000 65%,#0008 100%);
  -webkit-mask-image: var(--falloff);
  mask-image: var(--falloff);
}
.bloom::after { content: ""; position: absolute; inset: 0; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.8' d='M0 0h150v150H0z'/%3E%3C/svg%3E"); }
.legal,.mode,.spec-label small { font-family: var(--mono); }
.art { position: absolute; inset: 0; }
.art canvas,.poster { position: absolute; display: block; width: 100%; height: 100%; }
.art canvas,.art.rendered .poster { display: none; }
.art.rendered canvas { display: block; }
.spec-label { display: flex; margin: 0 var(--edge); align-items: center; gap: 8px; padding: 12px 0; color: var(--mist); }
.section-key { flex: none; width: 43px; height: 43px; color: #8b9e93; }
.section-key path.active { stroke: var(--signal); stroke-width: 2.3; }
.legend-copy { min-width: 0; }
.legend-copy span,.legend-copy small { display: block; }
.legend-copy span { font: 500 clamp(1.05rem,1.4vw,1.5rem)/1.18 var(--sans); letter-spacing: -.035em; }
.legend-copy small { margin-top: 3px; font-size: clamp(.63rem,.76vw,.78rem); line-height: 1.35; color: #becdc2; }
.chapter { padding: clamp(42px,8vw,116px) var(--edge); scroll-margin-top: var(--head); border-bottom: 1px solid var(--rule); }
.copy { max-width: 1080px; margin-inline: auto; text-align: center; font-family: var(--editorial); }
h1,h2,p,ul { margin: 0; }
h1,h2 { font-weight: 650; font-size: clamp(3rem,6.1vw,5.25rem); line-height: 1.06; letter-spacing: -.042em; text-wrap: balance; }
.copy em { display: inline-block; max-width: 100%; color: var(--green); font-style: normal; }
.body-copy { max-width: 45ch; margin: clamp(14px,2.2vh,24px) auto 0; color: #e1e8e3; font-size: clamp(1.12rem,1.5vw,1.44rem); line-height: 1.42; letter-spacing: -.012em; text-wrap: balance; }
#intro .body-copy { max-width: 42ch; font-weight: 500; }
.text-link,.email { display: inline-flex; align-items: center; margin-top: clamp(8px,1.6vh,17px); color: var(--green); }
.text-link { margin-top: clamp(16px,2.5vh,25px); font-weight: 500; font-size: 1rem; text-decoration: underline; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.email { font-size: clamp(1.22rem,1.8vw,1.75rem); text-decoration-thickness: 1px; }
.legal { margin-top: 12px; color: var(--soft); font-size: .71rem; }
.families { list-style: none; padding: 0; margin: clamp(12px,2vh,23px) auto 0; width: min(100%,530px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; text-align: left; counter-reset: family; }
.families li { display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-top: 1px solid var(--rule); counter-increment: family; color: var(--soft); }
.families li::before { content: counter(family,decimal-leading-zero); font: .66rem var(--mono); color: var(--green); }
.families strong,.families span { display: block; }
.families strong { font-weight: 600; color: var(--ink); line-height: 1.25; }
.families span { margin-top: 2px; font-size: .875rem; line-height: 1.35; }
.reader { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--foot); padding: 8px var(--edge); background: var(--paper); }
.reader::before,.cinema .reader::after { top: 0; bottom: auto; }
.index { gap: clamp(16px,3vw,48px); counter-reset: chapters; }
.index a { display: flex; align-items: baseline; gap: 6px; color: var(--soft); text-decoration: none; font-size: .86rem; counter-increment: chapters; }
.index a::before { content: counter(chapters,decimal-leading-zero); font: .65rem var(--mono); color: #adbfae; }
.index a[aria-current="step"] { color: var(--green); font-weight: 700; }
.mode { border: 0; background: none; color: var(--soft); font-size: .73rem; cursor: pointer; padding: 7px 0; }
.mode:hover { color: var(--green); text-decoration: underline; }
.cinema .bar { position: fixed; inset: 0 0 auto; background: transparent; }
.cinema .spec-label { position: fixed; z-index: 2; inset: var(--head) var(--edge) auto; margin: 0; pointer-events: none; text-shadow: 0 1px 5px #06130d; }
.cinema .chapter { height: 100vh; height: 100svh; padding: 0; border: 0; scroll-margin-top: 0; pointer-events: none; }
.cinema .copy { position: fixed; inset: auto var(--edge) calc(var(--foot) + clamp(14px,3.3vh,50px)); opacity: var(--alpha,0); transform: translateY(var(--drift,0px)); visibility: hidden; text-shadow: 0 1px 8px #08140e; }
.cinema .copy.show { visibility: visible; }
.cinema .copy.show:not([inert]) a { pointer-events: auto; }
.cinema .reader { position: fixed; inset: auto 0 0; background: transparent; }
.cinema .reader::after { background: var(--green); transform: scaleX(var(--progress,0)); transform-origin: left; }
@media (max-width:900px) and (min-width:751px) {
  .section-key { width: 30px; }
  .spec-label { gap: 8px; }
}
@media (max-width:750px) {
  :root { --edge: clamp(14px,4.6vw,30px); --head: 54px; --foot: calc(62px + env(safe-area-inset-bottom)); }
  .brand img { width: 75px; }
  .bar nav { gap: 13px; } .bar nav a { font-size: .8rem; } .bar .pill { padding: 5px 11px; gap: 7px; }
  .spec-label { padding: 8px 0; gap: 8px; }
  .section-key { width: 29px; }
  .legend-copy span { font-size: .95rem; } .legend-copy small { font-size: .6rem; }
  .cinema .copy { bottom: calc(var(--foot) + 5svh); }
  h1,h2 { font-size: clamp(2rem,8.5vw,3.55rem); }
  .body-copy { font-size: 1rem; margin-top: 12px; }
  .email,.text-link { margin-top: 10px; } .legal { margin-top: 5px; }
  .families { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; width: 100%; margin-top: 12px; }
  .families li { gap: 5px; font-size: .84rem; line-height: 1.32; padding: 5px 0; }
  .reader { flex-wrap: wrap; align-content: center; justify-content: center; gap: 1px; }
  .index { width: 100%; justify-content: space-between; gap: 4px; } .index a { font-size: .75rem; gap: 3px; }
  .index a::before { font-size: .55rem; }
  .mode { font-size: .65rem; padding: 4px; }
}
@media (max-height:640px) and (min-width:751px) {
  :root { --head: 49px; --foot: 39px; }
  h1,h2 { font-size: clamp(3rem,5.8vw,5.8rem); }
  .legal { margin-block: 6px; } .body-copy,.families,.email { margin-top: 10px; } .families li { padding: 2px 0; }
}
@media print {
  .bar nav,.reader,.skip,.explore,.exhibit,.spec-label { display: none !important; }
  :root,body,.bar { background: white; color: black; }
  .bar,.cinema .bar,.cinema .copy { position: static; }
  .brand img { filter: none; }
  .cinema .copy { opacity: 1; visibility: visible; transform: none; width: 100%; }
  .chapter,.cinema .chapter { height: auto; padding: 18px; }
  .copy *, .copy em { color: black; } h1,h2 { font-size: 26pt; }
}
