/* betelgeuse.com
   Colour comes from Orion itself: the night it hangs in, Betelgeuse's own
   3,600 K orange, and the blue-white of Rigel across the Belt.
   Type: Archivo (one variable family; width encodes role, and the wordmark's
   weight tracks the star's brightness) with STIX Two Text, the face of the
   physics journals, for reading. */

@font-face{font-family:"Archivo";src:url(/assets/fonts/archivo-var.woff2) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
@font-face{font-family:"STIX Two Text";src:url(/assets/fonts/stix-two-text.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"STIX Two Text";src:url(/assets/fonts/stix-two-text-italic.woff2) format("woff2");font-weight:400 700;font-style:italic;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"STIX Two Text";src:url(/assets/fonts/stix-two-text-greek.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap;unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}

:root{
  --sky:#070a17;
  --sky-2:#0d1226;
  --line:rgba(168,195,255,.15);
  --line-2:rgba(168,195,255,.34);
  --ink:#efe8dc;
  --ink-2:#aab0c6;
  --ink-3:#7c829b;
  --star:#ff9a4a;
  --ember:#e2562a;
  --rigel:#a8c3ff;
  --sans:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --serif:"STIX Two Text","Iowan Old Style",Georgia,serif;
  --gutter:clamp(1.25rem,4.2vw,3.75rem);
  --star-wght:600;
}

*,*::before,*::after{box-sizing:border-box}
html{background:var(--sky);color:var(--ink);-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:1.5rem}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;font-family:var(--serif);font-size:clamp(1.0625rem,.99rem + .3vw,1.1875rem);line-height:1.62;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
::selection{background:var(--star);color:var(--sky)}
a{color:var(--rigel);text-decoration-thickness:.06em;text-underline-offset:.18em}
a:hover{color:var(--ink)}
:focus-visible{outline:2px solid var(--rigel);outline-offset:3px;border-radius:2px}
p{margin:0 0 1em}
b,strong{font-weight:620}
sup{font-size:.7em;line-height:0}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:var(--gutter);top:-4rem;background:var(--ink);color:var(--sky);padding:.5rem .9rem;font-family:var(--sans);font-size:.875rem;z-index:20}
.skip:focus{top:.75rem}

h1,h2,h3{font-family:var(--sans);margin:0;text-wrap:balance}
h2{font-size:clamp(2rem,1.15rem + 3.5vw,3.9rem);font-weight:640;font-stretch:118%;line-height:1.02;letter-spacing:-.018em;max-width:15ch;margin-bottom:.55em}
h3{font-size:1.0625rem;font-weight:640;font-stretch:104%;line-height:1.25;margin-bottom:.45em}
.standfirst{font-size:1.28em;line-height:1.42;max-width:34em}
.standfirst.narrow{max-width:30em}
.sub,.src,figcaption,dt{font-family:var(--sans);font-size:.8125rem;line-height:1.45;font-stretch:97%;color:var(--ink-2)}
.src{margin-top:1.2em;max-width:60em}
.src.wide{margin-top:2.2rem}

.wrap{width:min(100% - 2*var(--gutter),82rem);margin-inline:auto}
.band{padding-block:clamp(4.5rem,9vw,8.5rem);border-top:1px solid var(--line)}

/* ---------- hero ---------- */
.hero{position:relative;min-height:100vh;min-height:100svh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;overflow:hidden;isolation:isolate}
.hero-star{position:absolute;inset:0;width:100%;height:100%;z-index:-1;display:block}
.star-fallback{background:radial-gradient(circle at 72% 40%,#ffb060 0,#f0702a 14%,#a52a12 24%,#3a0d0a 29%,transparent 36%)}
.nav{display:flex;align-items:baseline;justify-content:space-between;gap:2rem;padding:1.35rem var(--gutter);font-family:var(--sans);font-size:.875rem}
.nav a{color:var(--ink);text-decoration:none}
.nav a:hover{text-decoration:underline}
.nav-home{font-weight:680;font-stretch:112%;letter-spacing:.005em}
.nav ul{display:flex;gap:clamp(.9rem,2vw,1.9rem);list-style:none;margin:0;padding:0;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.nav ul::-webkit-scrollbar{display:none}
.nav li a{opacity:.82}
.nav li a:hover{opacity:1}
.hero-body{align-self:end;padding:0 var(--gutter) clamp(1.5rem,4vh,3rem)}
.wordmark{font-size:clamp(3.3rem,13.6vw,14.5rem);font-weight:var(--star-wght);font-stretch:125%;line-height:.84;letter-spacing:-.04em;margin:0 0 .16em -.055em;max-width:none;transition:font-weight .6s ease}
.hero-lede{font-size:clamp(1.15rem,1rem + .75vw,1.55rem);line-height:1.36;max-width:27em;margin-bottom:clamp(1.5rem,4vh,2.75rem)}
.readout{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 clamp(1rem,2.5vw,2.5rem);margin:0;border-top:1px solid var(--line-2);max-width:68rem}
.readout>div{padding-top:.8rem}
.readout dd{margin:0;font-family:var(--sans);font-size:1.0625rem;line-height:1.3;font-variant-numeric:tabular-nums}
.readout dd b{font-weight:680;font-stretch:112%;font-size:1.5em;letter-spacing:-.01em;color:var(--star)}
.readout dd.sub{font-size:.8125rem;margin-top:.15rem}
.hero-note{font-family:var(--sans);font-size:.75rem;color:var(--ink-3);margin:1.4rem 0 0}

/* ---------- shared pieces ---------- */
.lead-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;row-gap:2.5rem;align-items:start}
.lead-grid>:first-child{grid-column:1/span 7}
.lead-grid>.facts{grid-column:9/span 4;margin-top:.6rem}
.lead-grid p{max-width:36em}
.facts{margin:0}
.facts>div{border-top:1px solid var(--line);padding:.8rem 0 .9rem}
.facts dd{margin:0;font-family:var(--sans);font-size:1.0625rem;line-height:1.3;font-variant-numeric:tabular-nums}
.facts dd b{font-weight:660;font-stretch:110%;font-size:1.45em;letter-spacing:-.01em}
.facts dd.sub{font-size:.8125rem;margin-top:.2rem}
.facts-inline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 1.5rem;margin:1.6rem 0 1rem}
.facts-inline dd{font-size:1.5rem;font-weight:640;font-stretch:108%}

.seg{display:inline-flex;flex-wrap:wrap;border:1px solid var(--line-2);border-radius:3px;overflow:hidden}
.seg button,.chips button,.btn{font:inherit;font-family:var(--sans);font-size:.8125rem;font-weight:520;color:var(--ink);background:transparent;border:0;padding:.5rem .85rem;cursor:pointer;line-height:1.2}
.seg button+button{border-left:1px solid var(--line-2)}
.seg button:hover,.chips button:hover,.btn:hover{background:rgba(168,195,255,.1)}
.seg button[aria-pressed="true"],.chips button[aria-pressed="true"],.btn[aria-pressed="true"]{background:var(--ink);color:var(--sky)}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.chips button,.btn{border:1px solid var(--line-2);border-radius:3px}
.btn{min-width:4.5rem}
button.link{font:inherit;font-family:var(--sans);font-size:.8125rem;color:var(--rigel);background:none;border:0;padding:0;text-decoration:underline;text-underline-offset:.18em;cursor:pointer}
button.link:hover{color:var(--ink)}

.notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem 2.5rem;margin-top:clamp(2.5rem,5vw,4rem)}
.notes-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.notes>div{border-top:1px solid var(--line);padding-top:1rem}
.notes p{font-size:.95em;line-height:1.55;color:var(--ink-2);margin:0}

/* ---------- charts ---------- */
.chart,.scale{margin:clamp(2.5rem,5vw,4rem) 0 0}
.chart-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.legend{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;list-style:none;margin:0;padding:0;font-family:var(--sans);font-size:.8125rem;color:var(--ink-2)}
.legend .k{display:inline-block;width:.6rem;height:.6rem;border-radius:50%;margin-right:.45rem;vertical-align:-.02em;background:var(--star)}
.legend .k-vis{background:transparent;box-shadow:inset 0 0 0 1.5px var(--star)}
.chart-plot{position:relative;min-height:320px}
.chart-plot svg,.scale-plot svg,.replay-plot svg,.sn svg,.orion svg,#orbit-plot svg{display:block;width:100%;height:auto;overflow:visible}
svg text{font-family:var(--sans);font-size:12px;fill:var(--ink-2);font-variant-numeric:tabular-nums}
svg .ax{stroke:var(--line);stroke-width:1;fill:none}
svg .ax-strong{stroke:var(--line-2);stroke-width:1;fill:none}
svg .series{stroke:var(--star);stroke-width:1.6;fill:none;stroke-linejoin:round;stroke-linecap:round}
svg .dot{fill:var(--star)}
svg .dot-vis{fill:var(--sky);stroke:var(--star);stroke-width:1.2}
svg .base{stroke:var(--ink-3);stroke-width:1;stroke-dasharray:2 5;fill:none}
svg .sun-gap{fill:rgba(168,195,255,.05)}
svg .note-line{stroke:var(--ink-2);stroke-width:1;fill:none}
svg text.note{fill:var(--ink);font-weight:560}
svg text.strong{fill:var(--ink);font-weight:600}
svg .cross{stroke:var(--rigel);stroke-width:1;fill:none}
svg .now-ring{fill:none;stroke:var(--ink);stroke-width:1.5}
.tip{position:absolute;pointer-events:none;background:var(--sky-2);border:1px solid var(--line-2);border-radius:3px;padding:.5rem .7rem;font-family:var(--sans);font-size:.8125rem;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums;z-index:3}
.tip b{font-size:1.15em;font-weight:660;color:var(--star)}
figcaption{margin-top:1rem;max-width:62em}

/* ---------- size ---------- */
.scale-plot{max-width:68rem}
.scale-ctl{margin-top:1.6rem;max-width:44rem;font-family:var(--sans);font-size:.9375rem}
.scale-ctl label{display:block;margin-bottom:.6rem}
.scale-ctl output{font-weight:660;font-variant-numeric:tabular-nums}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:1.75rem;background:transparent;margin:0;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:2px;background:var(--line-2)}
input[type=range]::-moz-range-track{height:2px;background:var(--line-2)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:1.15rem;height:1.15rem;border-radius:50%;background:var(--star);border:3px solid var(--sky);box-shadow:0 0 0 1px var(--star);margin-top:calc(-.575rem + 1px)}
input[type=range]::-moz-range-thumb{width:.8rem;height:.8rem;border-radius:50%;background:var(--star);border:3px solid var(--sky);box-shadow:0 0 0 1px var(--star)}
svg .orbit{fill:none;stroke:var(--line-2);stroke-width:1}
svg .orbit-in{stroke:rgba(7,10,23,.55)}
svg .limit{fill:none;stroke:var(--ink-3);stroke-width:1;stroke-dasharray:2 5}
svg .planet{fill:var(--rigel)}
svg .planet-in{fill:var(--sky)}

/* ---------- open questions ---------- */
.status-key{display:flex;flex-wrap:wrap;gap:.5rem 1.75rem;margin:2rem 0 0;padding:0;list-style:none}
.ledger{margin-top:clamp(2rem,4vw,3rem);border-bottom:1px solid var(--line)}
.case{border-top:1px solid var(--line)}
.case summary{display:grid;grid-template-columns:minmax(0,1fr) auto 1.5rem;align-items:baseline;gap:.5rem 2rem;padding:1.35rem 0;cursor:pointer;list-style:none}
.case summary::-webkit-details-marker{display:none}
.case summary::after{content:"+";font-family:var(--sans);font-size:1.4rem;font-weight:300;line-height:1;color:var(--ink-2);text-align:right}
.case[open] summary::after{content:"\2212"}
.case summary:hover .case-title{color:var(--star)}
.case-title{font-family:var(--sans);font-size:clamp(1.2rem,1rem + .9vw,1.7rem);font-weight:600;font-stretch:108%;line-height:1.15;letter-spacing:-.008em}
/* The dial shows how settled a question is: empty ring = open, full disc = explained. */
.status{font-family:var(--sans);font-size:.8125rem;font-weight:520;color:var(--ink-2);white-space:nowrap}
.status::before{content:"";display:inline-block;width:.72rem;height:.72rem;border-radius:50%;margin-right:.5rem;vertical-align:-.06em;box-shadow:inset 0 0 0 1.5px var(--star);background:conic-gradient(var(--star) var(--fill,0%),transparent 0)}
.s-open{--fill:0%}
.s-disputed{--fill:50%}
.s-pending,.s-settling{--fill:75%}
.s-explained{--fill:100%}
.case-body{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;row-gap:2rem;padding:.25rem 0 2.5rem}
.case-body .prose{grid-column:1/span 7;max-width:38em}
.case-body .orbit{grid-column:9/span 4;margin:0}
.case-body p:last-child{margin-bottom:0}
svg .o-star{fill:var(--ember)}
svg .o-path{fill:none;stroke:var(--line-2);stroke-width:1;stroke-dasharray:3 4}
svg .o-hidden{fill:rgba(168,195,255,.06)}
svg .o-mark{fill:var(--sky);stroke:var(--ink-2);stroke-width:1.2}
svg .o-now{fill:var(--rigel)}

/* ---------- great dimming ---------- */
.replay{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;row-gap:2rem;align-items:center;margin-top:clamp(2rem,4vw,3rem)}
.replay-star{grid-column:1/span 5;position:relative;aspect-ratio:1}
.replay-star canvas{width:100%;height:100%;display:block}
.replay-star .star-fallback{border-radius:50%;background:radial-gradient(circle,#f0702a 0,#a52a12 55%,#3a0d0a 68%,transparent 72%)}
.replay-compass{position:absolute;right:0;bottom:0;width:4rem;height:4rem;overflow:visible}
.replay-side{grid-column:7/span 6}
.replay-date{font-family:var(--sans);font-size:1.0625rem;font-weight:560;margin:0;color:var(--ink-2);font-variant-numeric:tabular-nums}
.replay-mag{margin:.1rem 0 .3rem;font-family:var(--sans);line-height:1}
.replay-mag .num{font-size:clamp(3.5rem,2rem + 6.5vw,7.5rem);font-weight:var(--replay-wght,300);font-stretch:125%;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--star)}
.replay-mag .unit{font-size:.9375rem;color:var(--ink-2);white-space:nowrap}
.replay-cap{min-height:3.3em;max-width:30em;margin-bottom:1rem}
.replay-ctl{display:flex;align-items:center;gap:1rem;margin-top:.75rem}
.replay-ctl input{flex:1}
svg .playhead{stroke:var(--ink);stroke-width:1}

/* ---------- supernova ---------- */
.sn{max-width:62rem}
svg .ref{stroke:var(--line-2);stroke-width:1;stroke-dasharray:2 5}
svg .sn-line{stroke:var(--star);stroke-width:2.2;fill:none;stroke-linejoin:round}
.sequence{list-style:none;margin:clamp(2.5rem,5vw,4rem) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 2.5rem}
.sequence li{border-top:1px solid var(--line);padding:1rem 0 1.4rem}
.sequence .when{display:block;font-family:var(--sans);font-size:1.0625rem;font-weight:640;font-stretch:104%;color:var(--star);margin-bottom:.35rem}
.sequence p{font-size:.95em;line-height:1.55;color:var(--ink-2);margin:0}

/* ---------- sky ---------- */
.sky-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;row-gap:3rem;align-items:start}
.sky-grid>:first-child{grid-column:1/span 6}
.sky-grid>.orion{grid-column:8/span 5;margin:0}
.sky-place{font-family:var(--sans);font-size:.8125rem;color:var(--ink-2)}
.steps{padding-left:1.3em;margin:2rem 0 1.5rem;max-width:34em}
.steps li{margin-bottom:.7em;padding-left:.3em}
.steps li::marker{font-family:var(--sans);font-weight:640;color:var(--star)}
.orion .seg{margin-bottom:1rem}
svg .o-line{stroke:var(--line-2);stroke-width:1;fill:none}
svg .o-star-b{fill:#cfdcff}
svg .o-star-w{fill:#fff3df}
svg .o-betel{fill:var(--star)}
svg .o-neb{fill:rgba(255,154,74,.18);stroke:none}

/* ---------- news ---------- */
.news-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;row-gap:3.5rem;align-items:start}
.news-grid>:first-child{grid-column:1/span 7}
.news-grid>.papers{grid-column:9/span 4}
.brief-from{margin:1.6rem 0 .35rem}
.brief-date{font-family:var(--sans);font-size:.875rem;color:var(--ink-2);margin:0 0 .5rem}
.brief-headline{font-family:var(--sans);font-size:clamp(1.35rem,1.1rem + 1vw,1.85rem);font-weight:620;font-stretch:106%;line-height:1.18;letter-spacing:-.008em;margin:0 0 .7rem;max-width:26em}
.brief-status{max-width:36em}
.items{list-style:none;margin:2.25rem 0 0;padding:0}
.item{border-top:1px solid var(--line);padding:1.35rem 0 1.5rem}
.item-meta{display:flex;flex-wrap:wrap;gap:.2rem 1.25rem;font-family:var(--sans);font-size:.8125rem;color:var(--ink-2);margin:0 0 .45rem}
.item-meta .kind{color:var(--star);font-weight:600}
.item h3,.item h4{font-family:var(--sans);font-size:1.25rem;font-weight:620;font-stretch:104%;line-height:1.22;margin:0 0 .5rem;max-width:30em}
.item p{max-width:37em;margin-bottom:.6em}
.item .why{color:var(--ink-2);font-size:.95em}
.item .why b{font-family:var(--sans);font-size:.86em;font-weight:620;color:var(--ink)}
.item .links{font-family:var(--sans);font-size:.8125rem;color:var(--ink-2);margin:0}
.more{font-family:var(--sans);font-size:.9375rem;margin-top:1.75rem}
.empty{color:var(--ink-2);max-width:34em}
.papers{border-top:1px solid var(--line-2);padding-top:1.1rem}
.papers h3{font-size:1.25rem}
.papers ol{list-style:none;margin:1.25rem 0 0;padding:0}
.papers li{border-top:1px solid var(--line);padding:.8rem 0 .9rem}
.papers li a{display:block;font-family:var(--sans);font-size:.9375rem;font-weight:520;line-height:1.32;color:var(--ink);text-decoration:none}
.papers li a:hover{color:var(--rigel);text-decoration:underline}
.papers li span{display:block;font-family:var(--sans);font-size:.78rem;color:var(--ink-3);margin-top:.25rem;font-variant-numeric:tabular-nums}

/* ---------- the star on paper ---------- */
.file-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;row-gap:3rem;margin-top:clamp(1.5rem,3vw,2.5rem)}
.file-grid>:first-child{grid-column:1/span 7}
.file-grid>:last-child{grid-column:9/span 4}
.file-grid h3{font-size:1.25rem;margin-top:2.2rem}
.file-grid h3:first-child{margin-top:0}
.vitals{width:100%;border-collapse:collapse}
.vitals th,.vitals td{text-align:left;vertical-align:baseline;padding:.72rem 0;border-top:1px solid var(--line)}
.vitals th{font-family:var(--sans);font-size:.8125rem;font-weight:520;color:var(--ink-2);width:11.5rem;padding-right:1rem}
.vitals tr:last-child th,.vitals tr:last-child td{border-bottom:1px solid var(--line)}
.timeline{list-style:none;margin:1rem 0 0;padding:0}
.timeline li{display:grid;grid-template-columns:3.4rem minmax(0,1fr);gap:.75rem;border-top:1px solid var(--line);padding:.6rem 0}
.timeline time{font-family:var(--sans);font-weight:640;font-size:.9375rem;color:var(--star);font-variant-numeric:tabular-nums;padding-top:.12em}
.timeline p{margin:0;font-size:.95em;line-height:1.5}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--line-2);padding:3.5rem 0 4rem;font-family:var(--sans);font-size:.875rem;line-height:1.55;color:var(--ink-2)}
.foot-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;row-gap:2rem}
.foot-grid>:first-child{grid-column:1/span 6}
.foot-grid>:last-child{grid-column:9/span 4}
.foot p{margin:0 0 .7em;max-width:46em}
.foot-name{font-weight:680;font-stretch:112%;color:var(--ink);font-size:1rem}
.foot .link{font-size:inherit}

/* ---------- news archive ---------- */
.page-head{padding:0 0 clamp(2.5rem,6vw,5rem)}
.page-head .nav{padding-inline:0}
.page-head h1{font-size:clamp(2.4rem,1.2rem + 5.5vw,5.5rem);font-weight:var(--star-wght);font-stretch:122%;line-height:.95;letter-spacing:-.03em;margin:clamp(2.5rem,8vw,6rem) 0 .35em}
.briefing{border-top:1px solid var(--line-2);padding:clamp(2.5rem,5vw,4rem) 0}
.briefing-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem}
.briefing-grid>*{grid-column:1/span 8}

/* ---------- share / embed ---------- */
.actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0 .4rem}
a.btn{display:inline-block;color:var(--ink);text-decoration:none}
.page-head .promise{margin-top:.9em;color:var(--ink-2)}
.embed-sec{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1.5rem;row-gap:1.5rem;border-top:1px solid var(--line-2);padding:clamp(2.25rem,5vw,3.75rem) 0}
.embed-text{grid-column:1/span 4}
.embed-demo{grid-column:5/span 8;min-width:0}
.embed-sec h2{font-size:clamp(1.5rem,1.2rem + 1.3vw,2.1rem);font-stretch:112%;line-height:1.1;max-width:none;margin-bottom:.5em}
.embed-text p{color:var(--ink-2);font-size:.97em;line-height:1.55;max-width:26em}
.embed-demo iframe{display:block;border:0;border-radius:14px;max-width:640px}
.embed-demo .demo-side{margin-top:2.25rem}
.demo-card{display:block;max-width:100%;height:auto}
.demo-badges{display:flex;flex-wrap:wrap;gap:.6rem;margin:0}
.demo-badges img{display:block;height:20px;width:auto}
.embed-demo.prose p{max-width:38em}
.code{margin-top:1.1rem;border:1px solid var(--line-2);border-radius:4px;background:var(--sky-2);max-width:52rem}
.code-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.3rem .35rem .3rem .85rem;border-bottom:1px solid var(--line);font-family:var(--sans);font-size:.8125rem;color:var(--ink-2)}
.code-bar .btn{border:0;padding:.4rem .7rem;color:var(--rigel)}
.code pre{margin:0;padding:.85rem;overflow-x:auto;font:.8125rem/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}

/* ---------- red night-vision mode: keep only the red channel ---------- */
html.night body::after{content:"";position:fixed;inset:0;background:#f00;mix-blend-mode:multiply;pointer-events:none;z-index:99}

/* ---------- smaller screens ---------- */
@media (max-width:62rem){
  .embed-text,.embed-demo,.lead-grid>:first-child,.lead-grid>.facts,.case-body .prose,.case-body .orbit,.replay-star,.replay-side,.sky-grid>:first-child,.sky-grid>.orion,.news-grid>:first-child,.news-grid>.papers,.file-grid>:first-child,.file-grid>:last-child,.foot-grid>:first-child,.foot-grid>:last-child,.briefing-grid>*{grid-column:1/-1}
  .lead-grid>.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.5rem}
  .case-body .orbit{max-width:22rem}
  .replay-star{max-width:26rem}
  .notes,.notes-4,.sequence{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sky-grid>.orion{max-width:30rem}
  .readout{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:.9rem}
}
@media (max-width:38rem){
  .nav{flex-direction:column;align-items:stretch;gap:.6rem}
  .nav ul{margin-inline:calc(-1*var(--gutter));padding-inline:var(--gutter)}
  .notes,.notes-4,.sequence,.lead-grid>.facts{grid-template-columns:minmax(0,1fr)}
  .case summary{grid-template-columns:minmax(0,1fr) 1.5rem}
  .case summary .status{grid-column:1;grid-row:2;white-space:normal}
  .case summary::after{grid-row:1;grid-column:2}
  .vitals th{width:7.2rem}
  .chart-bar{flex-direction:column;align-items:flex-start}
  .readout dd b{font-size:1.3em}
  .hero-note{display:none}
}
