/* Break the Chain — two grounds that never mix within a section:
   night (globe, lab) and paper (reading). One warm accent: red = chokepoint / broken. */
:root {
  --night: #071722;          /* deeper than Indigo Depth so the globe glows */
  --night-2: #0B2E5B;        /* Indigo Depth */
  --deep-teal: #0F5E7A;
  --ice: #B3DFF1;            /* Ice Blue */
  --sea: #94BEC6;            /* Sea Glass */
  --sky: #7FA7B8;            /* Digital Sky */
  --mint: #6EB5B2;           /* Frosted Mint */
  --paper: #E6EFEC;          /* between Glass Mint and cream */
  --paper-2: #D8ECE8;        /* Glass Mint */
  --ink: #0B2E5B;
  --ink-soft: #3E5D6E;
  --red: #E0452C;            /* the one warm accent */
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ice); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

/* grain over everything */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; color: #dfeff3; transition: background .4s, color .4s; }
.nav.solid { background: rgba(7,23,34,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav.light { background: rgba(230,239,236,.86); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(11,46,91,.08); }
.nav a, .nav span { pointer-events: auto; text-decoration: none; }
.nav .links { display: flex; gap: 26px; }
.nav .links a { opacity: .75; transition: opacity .3s; } .nav .links a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 50%, #0d2a45 0%, var(--night) 60%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.hero canvas:active { cursor: grabbing; }
.hero .copy { position: absolute; left: 6vw; top: 22vh; max-width: 520px; z-index: 2; pointer-events: none; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 92px); line-height: .95; margin: 0 0 22px; color: #eaf6f8; letter-spacing: -.01em; }
.hero h1 em { color: var(--red); font-style: italic; }
.hero p { color: var(--sea); max-width: 40ch; font-size: 17px; margin: 0 0 30px; }
.hero .cta { pointer-events: auto; display: inline-flex; gap: 10px; align-items: center; background: var(--red); color: #fff; text-decoration: none; padding: 13px 20px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.hero .readout { position: absolute; left: 28px; bottom: 26px; color: var(--sky); z-index: 2; line-height: 1.9; }
.hero .readout b { color: var(--ice); font-weight: 500; }
.hero .legend { position: absolute; right: 28px; bottom: 26px; color: var(--sky); text-align: right; z-index: 2; line-height: 2; }
.swatch { display: inline-block; width: 18px; height: 2px; vertical-align: middle; margin-left: 8px; }
.hero .tip { position: absolute; z-index: 3; pointer-events: none; background: rgba(7,23,34,.92); border: 1px solid rgba(179,223,241,.2); padding: 10px 12px; color: var(--ice); font-size: 13px; line-height: 1.5; opacity: 0; transition: opacity .2s; max-width: 260px; }
.hero .tip .mono { color: var(--sky); display: block; margin-bottom: 4px; }

/* ---------- 3D periodic table hero ----------
   Recipe taken from her Paperstack pages: "Maps & Seeds" (plum ground, pink ink, violet stars,
   roughened Alfa Slab, Archivo caps, Roboto Slab) + "Ads, Tossed" (pulp covers scattered). */
:root { --plum: #232a22; --pink: #e8ecdf; --violet: #9aa395; --pulpY: #F2C230; --pulpR: #D7262A; --pulpB: #1F5FA8; --pulpG: #2E7D4F; }
.hero3 { position: relative; background: var(--plum); color: var(--pink); padding: 78px 16px 18px; overflow: hidden; }
.hero3::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.masthead3 { text-align: center; position: relative; z-index: 2; }
.masthead3 .kick { display: flex; justify-content: space-between; font: 500 13px/1.3 Archivo, sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 0 6px 6px; text-align: left; }
.masthead3 h1 { font: italic 400 clamp(60px, 9vw, 150px)/.9 "Cormorant Garamond", serif; color: var(--pink); filter: url(#rough); margin: 4px 0 0; letter-spacing: -.01em; }
.masthead3 .dek { font: 400 clamp(17px, 1.7vw, 23px)/1.45 "Roboto Slab", serif; max-width: 30ch; margin: 22px auto 26px; padding-top: 22px; border-top: 1px solid rgba(231,169,210,.35); }
.masthead3 .star { color: var(--violet); font-size: 1.25em; vertical-align: -.1em; margin: 0 .35em; }
.plate3 { position: relative; height: 86vh; min-height: 600px; background: #1d231c; border-radius: 26px; overflow: hidden; z-index: 2; }
.plate3::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: .12; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.plate3 .rule { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--plum); opacity: .55; z-index: 3; }
.stage3, .stage3 .gl3, .stage3 .css3 { position: absolute; inset: 0; }

/* element tiles: unlit = engraved outline on the pink plate */
.el3 { width: 120px; height: 150px; position: relative; border: 1px solid rgba(232,236,223,.16); color: rgba(232,236,223,.32); font-family: Archivo, sans-serif;
  user-select: none; backface-visibility: hidden; transition: opacity .6s; }
.el3 .z { position: absolute; left: 9px; top: 7px; font-size: 13px; font-weight: 500; }
.el3 .sym { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font: 400 58px/1 "Alfa Slab One", serif; }
.el3 .nm { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
/* lit = a tiny pulp magazine cover: flat printed ink, halftone, slab masthead, price flash */
.el3.hot { cursor: pointer; border: 0; color: #fff; background-color: var(--cov, var(--pulpR)); box-shadow: 3px 4px 0 rgba(43,22,49,.5);
  background-image: radial-gradient(rgba(0,0,0,.22) 1.1px, transparent 1.5px), linear-gradient(180deg, transparent 62%, rgba(0,0,0,.18));
  background-size: 6px 6px, 100% 100%; }
.el3.hot .sym { color: var(--mast, #fff); text-shadow: 3px 3px 0 rgba(43,22,49,.55); filter: url(#rough); }
.el3.hot .nm { color: #fff; background: rgba(43,22,49,.82); bottom: 0; padding: 5px 0; }
.el3.hot .pct { position: absolute; right: 6px; top: 6px; font: 400 14px/1 "Alfa Slab One"; color: var(--plum); background: var(--pulpY); padding: 6px 5px; border-radius: 50%; min-width: 40px; text-align: center; transform: rotate(10deg); }
.el3.hot .pct:empty { display: none; }
.el3.hot:hover { box-shadow: 6px 8px 0 rgba(43,22,49,.6); }
.el3 .gauge { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--geo); transition: height 1.2s cubic-bezier(.2,.8,.2,1); z-index: 0; }
.el3 .z, .el3 .sym, .el3 .nm, .el3 .pct { z-index: 1; }
[data-mode="geo"] .el3.hot { background: #e8ecdf; color: var(--plum); background-image: none; }
[data-mode="geo"] .el3.hot .sym { color: var(--plum); text-shadow: none; }
[data-mode="geo"] .el3.hot .gauge { height: var(--fill); opacity: .92; }
[data-layout="globe"] .el3:not(.hot) { opacity: 0; }
[data-layout="drawer"] .el3.hot { box-shadow: 10px 14px 24px rgba(43,22,49,.45); }

.ui3 { position: absolute; z-index: 4; font: 400 11px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; color: #9aa395; }
.ui3.tl { left: 46px; top: 20px; } .ui3.tr { right: 46px; top: 20px; text-align: right; color: var(--pulpR); }
.ctrl3 { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.seg3 { display: flex; background: #2d352b; border-radius: 999px; padding: 4px; }
.seg3 button { font: 500 12px Archivo, sans-serif; text-transform: uppercase; color: var(--pink); background: none; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.seg3 button[aria-pressed="true"] { background: var(--pink); color: var(--plum); }
.key3 { position: absolute; left: 46px; bottom: 26px; z-index: 4; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 360px; font: 400 11px/1.6 "IBM Plex Mono", monospace; text-transform: uppercase; color: #9aa395; }
.key3 i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.panel3 { position: absolute; top: 18px; right: 18px; bottom: 18px; width: 330px; z-index: 5; background: #2d352b; color: var(--pink); border-radius: 18px; padding: 24px 22px; overflow: auto;
  transform: translateX(115%); transition: transform .5s cubic-bezier(.2,.8,.2,1); font-family: "Roboto Slab", serif; }
.panel3.open { transform: none; }
.panel3 .x { position: absolute; right: 14px; top: 10px; background: none; border: 0; color: var(--pink); font-size: 24px; cursor: pointer; }
.panel3 .cell { width: 86px; height: 104px; border-radius: 4px; position: relative; color: #fff; background-color: var(--cov, var(--pulpR)); background-image: radial-gradient(rgba(0,0,0,.22) 1.1px, transparent 1.5px); background-size: 6px 6px; box-shadow: 3px 4px 0 rgba(0,0,0,.4); }
.panel3 .cell span { position: absolute; left: 7px; top: 5px; font: 500 11px Archivo; }
.panel3 .cell b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 42px "Alfa Slab One"; color: var(--mast, #fff); filter: url(#rough); }
.panel3 h3 { font: italic 400 44px/1 "Cormorant Garamond", serif; margin: 18px 0 4px; filter: url(#rough); }
.panel3 .sub { font: 500 12px Archivo; text-transform: uppercase; opacity: .75; margin-bottom: 14px; }
.panel3 p { font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.panel3 .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(231,169,210,.25); padding: 9px 0; font-size: 14px; }
.panel3 .row span { font: 500 11px Archivo; text-transform: uppercase; opacity: .7; padding-top: 2px; }
.panel3 .row b { font-weight: 400; text-align: right; }
.panel3 .row i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }
.panel3 .links { display: flex; gap: 18px; margin-top: 16px; font: 500 13px Archivo; text-transform: uppercase; }
.panel3 .links a { color: var(--pink); text-decoration: underline; text-underline-offset: 4px; }
.panel3 .links a::before { content: "\2736  "; color: var(--violet); }
@media (max-width: 900px) { .plate3 { height: 74vh; } .key3, .ui3 { display: none; } .panel3 { left: 12px; right: 12px; width: auto; } }

/* ---------- paper sections ---------- */
.paper { background: var(--paper); color: var(--ink); position: relative; }
.paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(11,46,91,.08) 1px, transparent 1.2px); background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; position: relative; }
.read { max-width: 660px; }
.kicker { color: var(--ink-soft); margin-bottom: 18px; display: block; }
.paper h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; margin: 0 0 24px; letter-spacing: -.01em; }
.paper h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0 0 12px; }
.paper p { font-size: 18px; line-height: 1.65; color: #183c5c; margin: 0 0 18px; }
.paper p.small, .small { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.section { padding-top: 130px; padding-bottom: 130px; }
hr.rule { border: 0; border-top: 1px solid rgba(11,46,91,.14); margin: 0; }
.cite { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-soft); text-decoration: none; border-bottom: 1px dotted currentColor; white-space: nowrap; }
.red { color: var(--red); }

/* the chain: stage-by-stage concentration */
.chain { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0; margin: 48px 0 12px; border-top: 1px solid rgba(11,46,91,.18); }
.chain .stage { padding: 18px 16px 22px 0; border-right: 1px solid rgba(11,46,91,.1); position: relative; }
.chain .stage:last-child { border-right: 0; }
.chain .stage .mono { color: var(--ink-soft); display: block; min-height: 2.6em; }
.chain .big { font-family: var(--serif); font-size: 54px; line-height: 1; margin: 10px 0 4px; }
.chain .who { font-size: 14px; color: var(--ink-soft); }
.chain .stage.hot .big { color: var(--red); }
.chain .stage::after { content: "→"; position: absolute; right: -7px; top: 14px; color: var(--ink-soft); font-size: 13px; background: var(--paper); }
.chain .stage:last-child::after { display: none; }

/* dossier picker */
.picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.picker button { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid rgba(11,46,91,.25); padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: all .25s; }
.picker button:hover { border-color: var(--ink); }
.picker button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.dossier { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; margin-top: 56px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(11,46,91,.12); border: 1px solid rgba(11,46,91,.12); margin: 26px 0; }
.facts div { background: var(--paper); padding: 16px; }
.facts .mono { color: var(--ink-soft); display: block; margin-bottom: 6px; }
.facts b { font-family: var(--serif); font-weight: 400; font-size: 30px; display: block; line-height: 1.1; }
.facts small { color: var(--ink-soft); font-size: 12.5px; }
.callout { border-left: 2px solid var(--red); padding: 4px 0 4px 18px; margin: 26px 0; }
.callout .mono { color: var(--red); display: block; margin-bottom: 6px; }
.callout p { font-size: 16.5px; margin: 0; }
ul.surprise { list-style: none; padding: 0; margin: 0; counter-reset: s; }
ul.surprise li { counter-increment: s; padding: 14px 0 14px 40px; border-top: 1px solid rgba(11,46,91,.12); position: relative; font-size: 15.5px; line-height: 1.55; color: #183c5c; }
ul.surprise li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { font-family: var(--mono); font-size: 10px; fill: var(--ink-soft); }
.chart .axis path, .chart .axis line { stroke: rgba(11,46,91,.2); }
.chart .lab { font-family: var(--mono); font-size: 10px; fill: var(--ink); letter-spacing: .06em; }

/* things: exploded diagram */
.things-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.things-diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.things-diagram .breaking { animation: crackle 1.2s linear infinite; }
@keyframes crackle { to { stroke-dashoffset: -20; } }
.verdict-box { border-top: 1px solid rgba(11,46,91,.18); padding-top: 18px; min-height: 92px; }
@media (max-width: 900px) { .things-grid { grid-template-columns: 1fr; } }

/* data center */
.dc-stack { margin-top: 70px; border-left: 1px solid rgba(11,46,91,.2); }
.dc-layer { position: relative; padding: 18px 0 22px 28px; border-bottom: 1px solid rgba(11,46,91,.08); transition-delay: calc(var(--i) * 90ms); }
.dc-layer::before { content: ""; position: absolute; left: -5px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.dc-layer .mono { color: var(--ink-soft); }
.dc-comp { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin: 6px 0 10px; color: var(--ink); }
.dc-mats { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-mats span, .dc-mats button { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(11,46,91,.2); background: transparent; color: var(--ink); }
.dc-mats button { cursor: pointer; border-color: var(--ink); } .dc-mats button:hover { background: var(--ink); color: var(--paper); }
.volt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 90px; align-items: start; }
.volt-viz svg { width: 100%; height: auto; overflow: visible; }
.volt-viz .lab, .paper .lab { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; fill: var(--ink); }
input.paper-range { background: rgba(11,46,91,.2); }
input.paper-range::-webkit-slider-thumb { background: var(--red); box-shadow: 0 0 0 6px rgba(224,69,44,.15); }
input.paper-range::-moz-range-thumb { background: var(--red); }
@media (max-width: 900px) { .volt { grid-template-columns: 1fr; } #datacenter .facts { grid-template-columns: 1fr 1fr !important; } }

/* timeline */
.tl { position: relative; margin-top: 50px; }
.tl-row { display: grid; grid-template-columns: 120px 1fr 180px; gap: 24px; padding: 16px 0; border-top: 1px solid rgba(11,46,91,.12); align-items: baseline; }
.tl-row .when { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: .08em; }
.tl-row .what { font-size: 16px; color: #183c5c; }
.tl-row .what b { font-weight: 600; color: var(--ink); }
.tl-row .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-align: right; color: var(--ink-soft); }
.tl-row.upcoming .when, .tl-row.upcoming .tag { color: var(--red); }
.tl-filter { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- lab (night) ---------- */
.lab { background: var(--night); color: var(--ice); position: relative; padding: 120px 0 110px; }
.lab h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; margin: 0 0 20px; color: #eaf6f8; }
.lab .lede { color: var(--sea); font-size: 18px; max-width: 60ch; margin: 0; }
.lab-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; margin-top: 54px; }
.controls { display: flex; flex-direction: column; gap: 26px; }
.ctl .mono { color: var(--sky); display: flex; justify-content: space-between; margin-bottom: 10px; }
.ctl .mono output { color: var(--ice); }
.ctl p { font-size: 13px; color: var(--sky); margin: 8px 0 0; line-height: 1.5; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: rgba(179,223,241,.22); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ice); cursor: pointer; box-shadow: 0 0 0 6px rgba(179,223,241,.12); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ice); cursor: pointer; border: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: transparent; color: var(--ice); border: 1px solid rgba(179,223,241,.25); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.presets button:hover { border-color: var(--ice); }
.presets button.on { background: var(--ice); color: var(--night); }

/* objective triangle */
.tri { position: relative; width: 100%; aspect-ratio: 1.15; }
.tri svg { width: 100%; height: 100%; overflow: visible; }
.tri text { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; fill: var(--sky); text-transform: uppercase; }

.result { display: grid; grid-template-rows: auto auto 1fr; gap: 22px; min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(179,223,241,.12); }
.metrics div { background: var(--night); padding: 16px 14px; }
.metrics .mono { color: var(--sky); display: block; }
.metrics b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; display: block; margin-top: 8px; color: #eaf6f8; }
.metrics small { font-family: var(--mono); font-size: 11px; color: var(--sky); }
.metrics .up { color: var(--red); } .metrics .down { color: var(--mint); }
.routes { display: grid; gap: 10px; }
.route { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: center; }
.route .mono { color: var(--sky); font-size: 10px; }
.route .track { display: flex; height: 26px; background: rgba(179,223,241,.05); }
.route .seg { display: flex; align-items: center; justify-content: flex-start; padding-left: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--night); background: var(--sea); border-right: 1px solid var(--night); transition: flex-basis .8s cubic-bezier(.2,.8,.2,1); overflow: hidden; white-space: nowrap; }
.route .seg.cn { background: var(--red); color: #fff; }
.route .seg.us { background: var(--ice); }
.lab-globe { position: relative; height: 420px; border: 1px solid rgba(179,223,241,.1); }
.lab-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.solve-note { color: var(--sky); }
.solve-note b { color: var(--ice); font-weight: 500; }
.story { font-size: 16px; color: var(--ice); line-height: 1.6; min-height: 3.2em; max-width: 70ch; }
.story .red { color: #ff7a63; }

/* ---------- footer ---------- */
.foot { background: var(--paper-2); color: var(--ink); padding: 80px 0 60px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot p, .foot li { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot .mono { color: var(--ink); display: block; margin-bottom: 12px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav .links { display: none; }
  .hero .copy { left: 16px; right: 16px; top: 14vh; }
  .hero .legend { display: none; }
  .wrap { padding: 0 16px; }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain .stage::after { display: none; }
  .dossier, .lab-grid, .foot .cols { grid-template-columns: 1fr; gap: 36px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr; gap: 4px; }
  .tl-row { grid-template-columns: 1fr; gap: 4px; }
  .tl-row .tag { text-align: left; }
  .section { padding-top: 90px; padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ======================================================================
   PLATE STYLE (chosen 2026-10-22): toile blue on cream, EB Garamond.
   From her references: Amalfi engravings R12–15, GLAUX R73–75, Tufte covers R151–152.
   One ink (cobalt), one accent (madder red) for chokepoints. Overrides everything above.
   ====================================================================== */
:root { --paper: #F4EEDF; --paper-2: #EDE5D1; --ink: #1E3A8A; --ink-soft: #4A5F9A; --red: #B0222E; --gold: #C8913A;
  --serif: "EB Garamond", Georgia, serif; --sans: "EB Garamond", Georgia, serif; }
html, body { background: var(--paper); color: var(--ink); }
body { font-family: var(--serif); font-size: 18px; }
body::after { opacity: .05; mix-blend-mode: multiply; }
.mono, .sc { font-family: var(--serif); font-size: 13px; letter-spacing: .09em; text-transform: uppercase; font-variant: small-caps; }
a { color: var(--ink); }

/* nav */
.nav, .nav.light, .nav.solid { background: rgba(244,238,223,.92); color: var(--ink); border-bottom: 1px solid rgba(30,58,138,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* hero: the plate */
.atlas-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 2vw; min-height: 100vh; padding: 92px 3vw 40px; background: var(--paper); }
.ah-copy { display: flex; flex-direction: column; gap: 20px; padding-top: 6vh; }
.ah-copy .sc { color: var(--ink-soft); }
.ah-copy h1 { font: 400 clamp(52px, 6.4vw, 104px)/.98 var(--serif); margin: 0; color: var(--ink); letter-spacing: -.01em; }
.ah-copy .dek { font: italic 400 21px/1.5 var(--serif); margin: 0; max-width: 34ch; color: var(--ink); }
.ah-copy .clock { margin: 0; font-size: 16px; color: var(--ink-soft); max-width: 36ch; border-top: 1px solid rgba(30,58,138,.25); padding-top: 14px; }
.ah-copy .clock b { color: var(--red); font-weight: 500; }
.ah-ctrl { display: flex; gap: 18px; align-items: center; margin-top: 6px; }
.ah-ctrl button, .ah-ctrl a { font: 400 16px var(--serif); color: var(--ink); background: none; border: 1px solid var(--ink); padding: 9px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.ah-ctrl a { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-left: 0; }
.ah-plate { position: relative; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; margin: 6px; min-height: 80vh; display: flex; flex-direction: column; }
.ah-stage { position: relative; flex: 1; min-height: 72vh; }
.ah-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ah-caption { margin: 0; padding: 10px 18px 14px; text-align: center; font: italic 400 15px/1.4 var(--serif); color: var(--ink); border-top: 1px solid rgba(30,58,138,.25); }
.atl-tile { position: absolute; width: 46px; height: 56px; transform: translate(-50%, -50%); background: #FBF7EC; color: var(--ink); border: 1px solid var(--ink);
  font-family: var(--serif); cursor: pointer; padding: 0; z-index: 2; box-shadow: 2px 2px 0 rgba(30,58,138,.18);
  transition: left 1.6s cubic-bezier(.65,0,.35,1), top 1.6s cubic-bezier(.65,0,.35,1), opacity .4s, background .2s; }
.atl-tile .z { position: absolute; left: 4px; top: 3px; font-size: 9px; }
.atl-tile .s { font-size: 21px; display: block; margin-top: 8px; }
.atl-tile .p { position: absolute; right: 3px; bottom: 2px; font-size: 9px; color: var(--red); }
.atl-tile:hover, .atl-tile:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.atl-tile:hover .p { color: #f3c9cd; }
.atl-tile.back { opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .atlas-hero { grid-template-columns: 1fr; padding-top: 76px; } .ah-stage { min-height: 62vh; } .atl-tile { width: 38px; height: 46px; } .atl-tile .s { font-size: 17px; } }

/* reading sections */
.paper, .foot { background: var(--paper); color: var(--ink); }
.paper::before { display: none; }
.paper h2, .lab h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.paper p, .paper .small, .small { color: var(--ink); }
.kicker { color: var(--ink-soft) !important; }
hr.rule { border-top: 1px solid var(--ink); opacity: .35; }
.chain { border-top-color: var(--ink); } .chain .big { color: var(--ink); } .chain .stage.hot .big { color: var(--red); }
.facts { background: rgba(30,58,138,.3); border-color: rgba(30,58,138,.3); } .facts div { background: var(--paper); } .facts b { font-family: var(--serif); color: var(--ink); }
.callout { border-left-color: var(--red); } .callout .mono { color: var(--red); }
.picker button { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; text-transform: none; color: var(--ink); border-color: rgba(30,58,138,.4); }
.picker button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tl-row { border-top-color: rgba(30,58,138,.2); } .tl-row .what, ul.surprise li { color: var(--ink); }
.chart .axis text, .chart .lab, .paper .lab { font-family: var(--serif); fill: var(--ink); }
.cite { font-family: var(--serif); color: var(--ink-soft); }
.dc-comp { font-family: var(--serif); color: var(--ink); }
.dc-mats span, .dc-mats button { font-family: var(--serif); font-size: 13px; }

/* the lab becomes a second plate (no dark ground) */
.lab { background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.lab .lede, .lab .ctl p, .solve-note, .story { color: var(--ink) !important; }
.lab .kicker, .ctl .mono, .metrics .mono, .route .mono { color: var(--ink-soft) !important; }
.ctl .mono output { color: var(--ink); }
input[type=range] { background: rgba(30,58,138,.3); }
input[type=range]::-webkit-slider-thumb { background: var(--ink); box-shadow: 0 0 0 6px rgba(30,58,138,.12); }
input[type=range]::-moz-range-thumb { background: var(--ink); }
.presets button { color: var(--ink); border-color: rgba(30,58,138,.4); font-family: var(--serif); font-size: 13px; text-transform: none; letter-spacing: .02em; }
.presets button.on { background: var(--ink); color: var(--paper); }
.tri text { fill: var(--ink-soft); font-family: var(--serif); }
.metrics { background: rgba(30,58,138,.3); } .metrics div { background: var(--paper-2); } .metrics b { color: var(--ink); font-family: var(--serif); }
.metrics .up { color: var(--red); } .metrics .down { color: #2E6B4F; }
.route .track { background: rgba(30,58,138,.08); } .route .seg { background: #9DB0D8; color: var(--ink); border-right-color: var(--paper-2); font-family: var(--serif); }
.route .seg.cn { background: var(--red); color: #fff; } .route .seg.us { background: var(--ink); color: var(--paper); }
.lab-globe { border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; background: var(--paper); }
.story .red { color: var(--red); }
.foot .mono { color: var(--ink); }

/* ======================================================================
   READABILITY PASS (2026-10-22, her request): white paper, darker ink, sturdier type.
   Fraunces for headlines, Source Serif 4 for reading, Inter Tight for small labels.
   ====================================================================== */
:root { --paper: #FFFFFF; --paper-2: #F6F7FB; --ink: #0F2463; --ink-soft: #3B4A7A; --text: #121826;
  --serif: "Source Serif 4", Georgia, serif; --sans: "Inter Tight", Arial, sans-serif; --display: "Fraunces", Georgia, serif; }
html, body, .atlas-hero, .paper, .foot { background: #FFFFFF; }
body { font-family: var(--serif); color: var(--text); font-size: 18px; }
body::after { display: none; }
.mono, .sc, .kicker, .ah-copy .sc, .facts .mono, .chain .mono, .metrics .mono, .route .mono, .ctl .mono, .callout .mono, .tl-row .tag, .foot .mono {
  font-family: var(--sans) !important; font-variant: normal; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ah-copy h1, .paper h2, .lab h2, .paper h3, .dossier h3 { font-family: var(--display); font-weight: 500; color: var(--ink); letter-spacing: -.015em; font-variation-settings: "opsz" 144; }
#dosTitle { font-family: var(--display); }
.ah-copy .dek { font-family: var(--serif); font-style: italic; color: var(--text); font-size: 21px; }
.paper p, .paper .small, .small, .lab .lede, .story, .tl-row .what, ul.surprise li, .dossier p, .ah-copy .clock { color: var(--text); }
.paper p { font-size: 18.5px; line-height: 1.65; }
.small { font-size: 15px; }
.facts b, .chain .big, .metrics b { font-family: var(--display); font-weight: 500; color: var(--ink); }
.facts div, .metrics div { background: #FFFFFF; }
.facts { background: rgba(15,36,99,.22); border-color: rgba(15,36,99,.22); }
.nav, .nav.light, .nav.solid { background: rgba(255,255,255,.94); color: var(--ink); font-family: var(--sans); font-weight: 600; }
.lab { background: var(--paper-2); }
.lab .lede, .lab .ctl p, .solve-note { color: var(--text) !important; }
.picker button, .presets button, .ah-ctrl button, .ah-ctrl a { font-family: var(--sans); font-weight: 500; font-size: 14px; }
.atl-tile { background: #FFFFFF; font-family: var(--serif); }
.atl-tile .s { font-weight: 600; }
.ah-plate, .lab-globe { background: #FFFFFF; }
.cite { font-family: var(--sans); font-size: 11px; }
.dc-comp { font-family: var(--display); font-weight: 500; }
.chart .axis text, .chart .lab, .paper .lab { font-family: var(--sans); fill: var(--text); }
.metrics small, .solve-note, .route .seg, .tri text { font-family: "Inter Tight", Arial, sans-serif !important; font-size: 12px; }
