/* ==========================================================================
   LATEST LIGHT  ·  design system  ·  concept: "The Arrivals Register"
   Every photograph is a logged arrival of old light: where it left, how long
   it travelled, which telescope received it. See build/03-art-direction.md.

   FONTS (put in <head>, before this file):
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..700&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Martian+Mono:wdth,wght@75..112.5,300..600&display=swap">

   CLASS INDEX
   -- Foundations
   .wrap .wrap--narrow .wrap--text      page containers (gutter 20px / 32px / 64px)
   .section .section--tight .section--raised   vertical rhythm; raised = lighter ground
   .section__head .section__title .section__intro .section__note   section opener (title left, intro right)
   .grid .col-N (1..12) .split .split--flip .stack .stack--sm/--lg .cluster .spread
   .t-display .t-h1 .t-h2 .t-h3 .t-lede .t-body .t-small .t-label .t-num .t-fig .t-fig--sm
   .prose  .link  .rule  .visually-hidden  .skip-link
   .band-1 … .band-5     set --band (light-travel band colour) on any element
   -- Signature devices
   .plate .plate--bare .plate__img .plate__strip .plate__no .plate__title .plate__credit   framed photograph with fiducial corners
   .credit                 standalone credit line
   .ruler .ruler__scale .ruler__tick .ruler__mark .ruler__mark--on .ruler__cap     horizontal log ruler (set --pos: 0..100 per child)
   .mini-ruler             compact ruler for the detail view
   .ticks                  bare strip of measurement ticks
   .arrival .arrival__label .arrival__fig .arrival__unit .arrival__earth .arrival__meta   the "light left…" slip
   .spike .spike--sm/--lg  the diffraction-spike mark (inline SVG <use href="#ll-spike">)
   .stamp .stamp--sample .stamp--infrared .stamp--visible .stamp--radio .stamp--xray   catalogue stamps
   .starfield              absolutely placed <canvas> behind a section
   -- Chrome
   .site-header .wordmark .wordmark__mark .nav .nav__link .nav-toggle .nav-panel
   .site-footer .footer__top .footer__promise .footer__cols .footer__col .footer__legal
   .view .view__bar .view__back        shell for hash views (photo, lab, forum)
   -- Home sections
   .hero .hero__head .hero__title .hero__intro .hero__stage .hero__plate .hero__slip
   .hero__picker .picker__btn .hero__jump .counts .count .count__n .count__l
   .timeline .timeline__band .timeline__band-head .timeline__band-title .timeline__band-range
   .timeline__list .timeline__entry .timeline__thumb .timeline__node .timeline__body
   .timeline__when .timeline__name .timeline__earth .timeline__span
   .story .story--flip .story__media .story__text .story__title .story__standfirst .story__links
   .compare .compare__img .compare__img--top .compare__handle .compare__range .compare__tag
   .annot .annot__item .annot__key
   .shadows (.shadows__fig)     two-up black hole comparison
   .filmstrip .filmstrip__item .filmstrip__cap
   .filters .filters__group .filters__label .filters__row .filters__status .chip .chip--band .select
   .gallery .card .card__media .card__img .card__body .card__time .card__title .card__meta
   .lab .lab__head .lab__title .lab__stage .lab__canvas .lab__readouts .readout .readout__k .readout__v
   .lab__controls .control .control__label .control__value .range .lab__aha .lab__foot
   .lab-cards .lab-card .lab-card__preview .lab-card__body .lab-card__title .lab-card__promise .lab-card__photo
   .steps .step .step__fig .step__title     .glossary .glossary__term .glossary__def
   .credits .credit-row
   -- Photo detail
   .detail .detail__media .detail__text .detail__title .detail__block .detail__block-title
   .facts .detail__actions .detail__nav .detail__nav-btn .detail__counter
   -- Forum
   .forum .forum__side .forum__main .forum__stance .cat-list .cat
   .thread-list .thread-row .thread-row__cat .thread-row__title .thread-row__meta .thread-row__count
   .thread .post .post--reply .post__meta .post__author .post__body
   .compose .field .field__label .field__hint .field__count .input .textarea
   .notice .notice--warn .notice--error .notice--ok
   -- Controls
   .btn .btn--primary .btn--ghost .btn--quiet .btn--sm .btn--icon   .tag
   ========================================================================== */

:root{
  color-scheme: dark;

  /* Ground: the blue-black between the stars of the Carina and Pillars frames */
  --ink-0:#060a15;      /* deepest: page edge, lab stages */
  --ink-1:#0a1020;      /* page ground */
  --ink-2:#101830;      /* raised: slips, panels, fields */
  --ink-3:#18223f;      /* hover / pressed */
  --line:#27324f;       /* hairlines */
  --line-strong:#3d4a6e;

  /* Paper: the register's handwriting and print */
  --bone:#f1eadb;       /* primary text  (16.2:1 on ink-1) */
  --ash:#b3b9cb;        /* secondary text (9.6:1) */
  --graphite:#8790ab;   /* tertiary text, ticks (5.9:1) */

  /* Light: sampled from the photographs. Ordered like redshift, near = blue, far = red */
  --spike:#a9cbff;      /* Webb star spikes            band 1: light-minutes */
  --oxygen:#58cfc4;     /* Hubble Pillars teal glow    band 2: hundreds to thousands of years */
  --sulphur:#a5d86a;    /* Cassiopeia A green          band 3: tens to hundreds of thousands */
  --sodium:#f4ae3d;     /* Carina dust gold            band 4: millions */
  --hydrogen:#f0708a;   /* NGC 602 / Orion pink-red    band 5: billions */
  --ember:#ff8a4c;      /* black-hole ring orange      warnings, radio stamp */

  --accent:var(--sodium);       /* the one action colour */
  --accent-ink:#1a1204;
  --focus:#ffe08a;
  --band:var(--ash);

  --f-display:"Bodoni Moda","Didot","Bodoni 72","Bodoni MT","LM Roman 17","Latin Modern Roman",Georgia,"Times New Roman",serif;
  --f-text:"Instrument Sans","Helvetica Neue","Source Sans 3",Arial,sans-serif;
  --f-mono:"Martian Mono",ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;

  /* Type scale: 1.2 on small screens gliding to 1.333 on wide ones */
  --fs-00:.8125rem;                                 /* 13  plate numbers, ticks (was 12; raised in the clarity pass) */
  --fs-0:.875rem;                                   /* 14  labels, credits (was 13) */
  --fs-1:.9375rem;                                  /* 15  small text, controls */
  --fs-2:1.0625rem;                                 /* 17  body */
  --fs-3:clamp(1.1875rem,1.1rem + .4vw,1.375rem);   /* 19-22 lede */
  --fs-4:clamp(1.375rem,1.2rem + .8vw,1.75rem);     /* 22-28 h3 */
  --fs-5:clamp(1.75rem,1.4rem + 1.6vw,2.5rem);      /* 28-40 h2 */
  --fs-6:clamp(2.25rem,1.6rem + 3vw,3.75rem);       /* 36-60 h1 / figures */
  --fs-7:clamp(3rem,1.6rem + 6.4vw,6.75rem);        /* 48-108 display */

  /* Space: 4px base */
  --s-1:.25rem; --s-2:.5rem; --s-3:.75rem; --s-4:1rem; --s-5:1.5rem;
  --s-6:2rem; --s-7:3rem; --s-8:4rem; --s-9:6rem; --s-10:8rem;
  --gutter:20px;
  --max:1312px;
  --header-h:60px;

  --r-plate:2px;   /* glass plates and panels are nearly square-cornered */
  --r-ctl:8px;     /* things you press */
  --r-pill:999px;  /* chips only */

  /* ruler band boundaries in % (100 yr, 10,000 yr, 1 million yr, 1 billion yr) */
  --b1:12%; --b2:44%; --b3:58%; --b4:84%;

  --ease:cubic-bezier(.2,.7,.2,1);
  --t-fast:140ms; --t-med:260ms;

  /* film grain, inline so the CSP is happy */
  --grain: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' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width:700px){ :root{ --gutter:32px; --header-h:68px; } }
@media (min-width:1200px){ :root{ --gutter:64px; } }

/* ---------- Base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 16px); }
body{
  margin:0; background:var(--ink-1); color:var(--bone);
  font-family:var(--f-text); font-size:var(--fs-2); line-height:1.6;
  font-feature-settings:"kern","liga"; text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased; overflow-x:clip;
}
body::before{ /* grain over the whole register, never over interaction */
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:var(--grain); opacity:.05; mix-blend-mode:screen;
}
body > *{ position:relative; z-index:1; }
img,svg,canvas,video{ display:block; max-width:100%; }
img{ height:auto; }
h1,h2,h3,h4,p,figure,blockquote,dl,dd,ul,ol{ margin:0; }
ul[class],ol[class]{ list-style:none; padding:0; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; }
a{ color:inherit; }
::selection{ background:var(--sodium); color:var(--accent-ink); }
:focus{ outline:none; }
:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; border-radius:2px; }
[hidden]{ display:none !important; }

.visually-hidden{ position:absolute!important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip-link{ position:absolute; left:var(--gutter); top:-100px; z-index:100; background:var(--accent); color:var(--accent-ink); padding:.6rem 1rem; border-radius:var(--r-ctl); font-weight:600; text-decoration:none; }
.skip-link:focus{ top:10px; }

/* ---------- Layout ---------- */
.wrap{ width:100%; max-width:calc(var(--max) + 2*var(--gutter)); margin-inline:auto; padding-inline:var(--gutter); }
.wrap--narrow{ max-width:calc(1040px + 2*var(--gutter)); }
.wrap--text{ max-width:calc(680px + 2*var(--gutter)); }

.section{ padding-block:var(--s-8); position:relative; }
.section--tight{ padding-block:var(--s-7); }
.section--raised{ background:linear-gradient(180deg,var(--ink-0),var(--ink-1) 220px); border-top:1px solid var(--line); }
@media (min-width:900px){ .section{ padding-block:var(--s-10); } .section--tight{ padding-block:var(--s-8); } }

.section__head{ display:grid; gap:var(--s-4) var(--s-6); margin-bottom:var(--s-7); }
.section__title{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-6); line-height:1.02; letter-spacing:-.012em; text-wrap:balance; }
.section__intro{ color:var(--ash); font-size:var(--fs-3); line-height:1.5; max-width:34em; }
.section__note{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); color:var(--graphite); display:flex; align-items:center; gap:.6rem; }
.section__note::before{ content:""; width:28px; height:1px; background:var(--band, var(--graphite)); }
@media (min-width:900px){
  .section__head{ grid-template-columns:repeat(12,1fr); align-items:end; margin-bottom:var(--s-8); }
  .section__note{ grid-column:1 / -1; }
  .section__title{ grid-column:1 / span 7; }
  .section__intro{ grid-column:8 / -1; padding-bottom:.35em; }
}

.grid{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:var(--s-5); }
.grid > *{ grid-column:1 / -1; }
@media (min-width:900px){
  .grid{ gap:var(--s-6); }
  .col-1{grid-column:span 1}.col-2{grid-column:span 2}.col-3{grid-column:span 3}.col-4{grid-column:span 4}
  .col-5{grid-column:span 5}.col-6{grid-column:span 6}.col-7{grid-column:span 7}.col-8{grid-column:span 8}
  .col-9{grid-column:span 9}.col-10{grid-column:span 10}.col-11{grid-column:span 11}.col-12{grid-column:span 12}
}
.split{ display:grid; gap:var(--s-6); align-items:start; }
@media (min-width:900px){
  .split{ grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:var(--s-8); }
  .split--flip{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); }
  .split--flip > :first-child{ order:2; }
}
.stack > * + *{ margin-top:var(--s-4); }
.stack--sm > * + *{ margin-top:var(--s-2); }
.stack--lg > * + *{ margin-top:var(--s-6); }
.cluster{ display:flex; flex-wrap:wrap; gap:var(--s-3); align-items:center; }
.spread{ display:flex; flex-wrap:wrap; gap:var(--s-3) var(--s-5); align-items:baseline; justify-content:space-between; }
.rule{ border:0; height:1px; background:var(--line); margin:0; }

/* ---------- Type ---------- */
.t-display{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-7); line-height:.94; letter-spacing:-.022em; text-wrap:balance; }
.t-h1{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-6); line-height:1.02; letter-spacing:-.012em; text-wrap:balance; }
.t-h2{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-5); line-height:1.1; letter-spacing:-.008em; text-wrap:balance; }
.t-h3{ font-family:var(--f-text); font-weight:600; font-size:var(--fs-4); line-height:1.2; letter-spacing:-.01em; }
.t-lede{ font-size:var(--fs-3); line-height:1.5; color:var(--ash); }
.t-body{ font-size:var(--fs-2); line-height:1.6; }
.t-small{ font-size:var(--fs-1); line-height:1.5; color:var(--ash); }
.t-label{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); line-height:1.4; letter-spacing:.01em; color:var(--graphite); }
.t-num{ font-family:var(--f-mono); font-stretch:80%; font-variant-numeric:tabular-nums; }
.t-fig{ font-family:var(--f-display); font-weight:400; font-size:var(--fs-6); line-height:1; letter-spacing:-.02em; font-variant-numeric:lining-nums; color:var(--band,var(--bone)); }
.t-fig--sm{ font-size:var(--fs-5); }
.t-display em,.t-h1 em,.t-h2 em,.section__title em{ font-style:italic; font-weight:400; }

.prose{ max-width:38em; }
.prose > * + *{ margin-top:1em; }
.prose p{ color:var(--bone); }
.prose h3{ font-family:var(--f-text); font-weight:600; font-size:var(--fs-3); margin-top:1.8em; }
.link,.prose a{ color:var(--bone); text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:1px; text-underline-offset:.22em; transition:text-decoration-thickness var(--t-fast); }
.link:hover,.prose a:hover{ color:var(--accent); text-decoration-thickness:2px; }
.link[target="_blank"]::after,.prose a[target="_blank"]::after{ content:"\2197"; font-family:var(--f-mono); font-size:.78em; margin-left:.25em; color:var(--graphite); }

/* light-travel bands */
.band-1{ --band:var(--spike); } .band-2{ --band:var(--oxygen); } .band-3{ --band:var(--sulphur); }
.band-4{ --band:var(--sodium); } .band-5{ --band:var(--hydrogen); }

/* ==========================================================================
   SIGNATURE DEVICES
   ========================================================================== */

/* 1. PLATE: the frame every photograph sits in.
   Set style="--native:898px" so the plate never grows past the file's width. */
.plate{ position:relative; display:block; width:100%; max-width:var(--native,100%); padding:7px; background:var(--ink-0); border:1px solid var(--line); border-radius:var(--r-plate); }
.plate::before,.plate::after{ /* fiducial corners, top-left and bottom-right */
  content:""; position:absolute; width:18px; height:18px; pointer-events:none; z-index:2;
  border:0 solid var(--band,var(--bone)); transition:transform var(--t-med) var(--ease);
}
.plate::before{ top:-1px; left:-1px; border-top-width:2px; border-left-width:2px; }
.plate::after{ bottom:-1px; right:-1px; border-bottom-width:2px; border-right-width:2px; }
a.plate,button.plate{ text-decoration:none; color:inherit; text-align:left; cursor:pointer; }
a.plate:hover::before,button.plate:hover::before,.card:hover .plate::before{ transform:translate(-5px,-5px); }
a.plate:hover::after,button.plate:hover::after,.card:hover .plate::after{ transform:translate(5px,5px); }
.plate__img{ display:block; width:100%; height:auto; background:#000; }
.plate__strip{ display:flex; flex-wrap:wrap; align-items:baseline; gap:.2rem 1rem; padding:9px 3px 2px; font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); line-height:1.45; color:var(--graphite); }
.plate__no{ color:var(--band,var(--bone)); white-space:nowrap; }
.plate__title{ color:var(--bone); }
.plate__credit{ margin-left:auto; text-align:right; }
.plate__credit a,.credit a{ color:inherit; text-decoration:underline; text-decoration-color:var(--line-strong); text-underline-offset:.2em; }
.plate__credit a:hover,.credit a:hover{ color:var(--bone); text-decoration-color:var(--accent); }
.plate--strip-top{ display:flex; flex-direction:column-reverse; }
.plate--strip-top .plate__strip{ padding:2px 3px 9px; }
.plate--bare{ padding:0; border:0; background:none; }
.plate--bare::before,.plate--bare::after{ display:none; }
.credit{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); line-height:1.45; color:var(--graphite); }

/* 2. RULER: the logarithmic light-travel scale. Children take --pos:0..100. */
.ticks{ height:12px; background:
  repeating-linear-gradient(90deg,var(--line-strong) 0 1px,transparent 1px 40px) left bottom / 100% 12px no-repeat,
  repeating-linear-gradient(90deg,var(--line) 0 1px,transparent 1px 8px) left bottom / 100% 6px no-repeat; }
.ruler{ position:relative; padding-top:68px; padding-bottom:30px; }
.ruler__scale{ position:relative; height:14px; border-bottom:1px solid var(--line-strong); background:
  repeating-linear-gradient(90deg,var(--line) 0 1px,transparent 1px 8px) left bottom / 100% 6px no-repeat; }
.ruler__scale::before{ /* the five bands, near (blue) to far (red) */
  content:""; position:absolute; left:0; right:0; bottom:-4px; height:3px;
  background:linear-gradient(90deg,var(--spike) 0 var(--b1),var(--oxygen) var(--b1) var(--b2),var(--sulphur) var(--b2) var(--b3),var(--sodium) var(--b3) var(--b4),var(--hydrogen) var(--b4) 100%);
  opacity:.9;
}
.ruler__tick{ position:absolute; left:calc(var(--pos)*1%); bottom:-26px; transform:translateX(-50%); font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); white-space:nowrap; }
.ruler__tick::before{ content:""; position:absolute; left:50%; bottom:calc(100% + 8px); width:1px; height:14px; background:var(--line-strong); }
.ruler__tick:first-of-type{ transform:none; } .ruler__tick:first-of-type::before{ left:0; }
.ruler__tick:last-of-type{ transform:translateX(-100%); } .ruler__tick:last-of-type::before{ left:100%; }
.ruler__mark{ position:absolute; left:calc(var(--pos)*1%); bottom:100%; transform:translateX(-50%); display:grid; justify-items:center; gap:2px; padding:0; border:0; background:none; color:var(--band,var(--ash)); font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); white-space:nowrap; text-decoration:none; }
.ruler__mark::after{ content:""; width:1px; height:16px; background:currentColor; }
.ruler__mark--on{ color:var(--bone); }
.ruler__mark--on::after{ width:2px; height:22px; background:var(--band,var(--accent)); }
.ruler__cap{ position:absolute; left:0; top:0; font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); }
@media (max-width:699px){ .ruler__tick.is-minor{ display:none; } .ruler__mark:not(.ruler__mark--on) span{ display:none; } }

.mini-ruler{ position:relative; height:26px; border-bottom:1px solid var(--line-strong); background:
  repeating-linear-gradient(90deg,var(--line) 0 1px,transparent 1px 8px) left bottom / 100% 6px no-repeat; }
.mini-ruler::after{ content:""; position:absolute; left:calc(var(--pos)*1%); bottom:-1px; width:2px; height:26px; background:var(--band,var(--accent)); }
.mini-ruler::before{ content:""; position:absolute; left:calc(var(--pos)*1% - 5px); top:-3px; width:12px; height:12px; background:var(--band,var(--accent)); clip-path:polygon(50% 0,58% 42%,100% 50%,58% 58%,50% 100%,42% 58%,0 50%,42% 42%); }

/* 3. ARRIVAL SLIP: the sentence the whole site exists for. */
.arrival{ position:relative; background:var(--ink-2); border:1px solid var(--line); border-top:3px solid var(--band,var(--accent)); border-radius:var(--r-plate); padding:var(--s-5); display:grid; gap:var(--s-2); }
.arrival__label{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); color:var(--ash); }
.arrival__fig{ font-family:var(--f-display); font-weight:400; font-size:var(--fs-6); line-height:.98; letter-spacing:-.02em; color:var(--band,var(--bone)); font-variant-numeric:lining-nums; }
.arrival__unit{ font-style:italic; font-size:.62em; letter-spacing:-.005em; color:var(--bone); white-space:nowrap; }
.arrival__earth{ font-size:var(--fs-2); line-height:1.45; color:var(--bone); padding-top:var(--s-3); margin-top:var(--s-2); border-top:1px dashed var(--line-strong); }
.arrival__earth b{ font-weight:600; color:var(--ash); font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); display:block; margin-bottom:2px; }
.arrival__meta{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); }

/* 4. SPIKE: Webb's eight-pointed diffraction pattern, the site's only ornament.
   <svg class="spike" aria-hidden="true"><use href="#ll-spike"/></svg> */
.spike{ width:1.15em; height:1.15em; flex:none; fill:currentColor; color:var(--band,var(--spike)); overflow:visible; }
.spike--sm{ width:.8em; height:.8em; } .spike--lg{ width:3rem; height:3rem; }

/* 5. STAMP: catalogue marks. Facts about the plate, never decoration. */
.stamp{ display:inline-flex; align-items:center; gap:.4em; font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); font-weight:500; line-height:1; color:var(--stamp,var(--ash)); padding:.42em .6em .38em; border:1px solid currentColor; border-radius:3px; transform:rotate(-2deg); white-space:nowrap; background:rgb(6 10 21 / .72); }
.stamp--sample{ --stamp:var(--ember); border-style:dashed; }
.stamp--infrared{ --stamp:var(--hydrogen); }
.stamp--visible{ --stamp:var(--oxygen); }
.stamp--radio{ --stamp:var(--ember); }
.stamp--xray{ --stamp:var(--bone); border-style:dashed; }   /* X-ray: invisible light, like radio; bone so it never reads as a band colour */
.plate > .stamp{ position:absolute; top:16px; right:16px; z-index:3; }

.starfield{ position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:.9; }
.starfield ~ *{ position:relative; z-index:1; }

/* ==========================================================================
   CONTROLS
   ========================================================================== */
.btn{ --btn-bg:transparent; --btn-fg:var(--bone); --btn-bd:var(--line-strong);
  display:inline-flex; align-items:center; justify-content:center; gap:.55em; min-height:44px; padding:.55em 1.15em;
  font-family:var(--f-text); font-weight:600; font-size:var(--fs-1); line-height:1.2; text-decoration:none; text-align:center;
  color:var(--btn-fg); background:var(--btn-bg); border:1px solid var(--btn-bd); border-radius:var(--r-ctl);
  transition:background var(--t-fast),border-color var(--t-fast),color var(--t-fast),transform var(--t-fast); }
.btn:hover{ --btn-bd:var(--bone); --btn-bg:var(--ink-3); }
.btn:active{ transform:translateY(1px); }
.btn--primary{ --btn-bg:var(--accent); --btn-fg:var(--accent-ink); --btn-bd:var(--accent); }
.btn--primary:hover{ --btn-bg:#ffc566; --btn-bd:#ffc566; }
.btn--ghost{ --btn-bd:var(--line-strong); }
.btn--quiet{ --btn-bd:transparent; padding-inline:.5em; color:var(--ash); text-decoration:underline; text-decoration-color:var(--line-strong); text-underline-offset:.25em; }
.btn--quiet:hover{ --btn-bg:transparent; --btn-bd:transparent; color:var(--bone); text-decoration-color:var(--accent); }
.btn--sm{ min-height:36px; font-size:var(--fs-0); padding:.4em .85em; }
.btn--icon{ width:44px; padding:0; }
.btn[disabled],.btn[aria-disabled="true"]{ opacity:.45; cursor:not-allowed; }
.btn svg{ width:1.1em; height:1.1em; flex:none; }

.tag{ display:inline-flex; align-items:center; gap:.45em; font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--band,var(--ash)); white-space:nowrap; }
.tag::before{ content:""; width:7px; height:7px; background:currentColor; transform:rotate(45deg); flex:none; }

.chip{ display:inline-flex; align-items:center; gap:.5em; min-height:36px; padding:.3em .9em; white-space:nowrap;
  font-family:var(--f-text); font-size:var(--fs-1); font-weight:500; color:var(--ash); text-decoration:none;
  background:transparent; border:1px solid var(--line); border-radius:var(--r-pill);
  transition:border-color var(--t-fast),color var(--t-fast),background var(--t-fast); }
.chip:hover{ color:var(--bone); border-color:var(--line-strong); }
.chip[aria-pressed="true"],.chip[aria-current="true"],.chip.is-on{ color:var(--accent-ink); background:var(--bone); border-color:var(--bone); }
.chip--band::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--band); flex:none; }
.chip--band[aria-pressed="true"],.chip--band.is-on{ background:var(--band); border-color:var(--band); }
.chip--band[aria-pressed="true"]::before,.chip--band.is-on::before{ background:var(--accent-ink); }
.chip .t-num{ font-size:var(--fs-00); opacity:.7; }
@media (pointer:coarse){ .chip{ min-height:44px; } }

.select{ appearance:none; min-height:36px; padding:.3em 2.2em .3em .9em; font-size:var(--fs-1); font-weight:500; color:var(--bone); background:var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b3b9cb' stroke-width='1.5'/%3E%3C/svg%3E") right .8em center no-repeat; border:1px solid var(--line); border-radius:var(--r-ctl); }
.select:hover{ border-color:var(--line-strong); }

.field{ display:grid; gap:6px; }
.field__label{ font-weight:600; font-size:var(--fs-1); color:var(--bone); display:flex; justify-content:space-between; gap:1rem; align-items:baseline; }
.field__hint{ font-size:var(--fs-0); color:var(--graphite); }
.field__count{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); font-weight:400; color:var(--graphite); font-variant-numeric:tabular-nums; }
.input,.textarea{ width:100%; padding:.7em .85em; font-size:var(--fs-2); line-height:1.45; color:var(--bone); background:var(--ink-0); border:1px solid var(--line-strong); border-radius:var(--r-ctl); transition:border-color var(--t-fast),background var(--t-fast); }
.input{ min-height:46px; }
.textarea{ min-height:9.5em; resize:vertical; }
.input::placeholder,.textarea::placeholder{ color:var(--graphite); opacity:1; }
.input:hover,.textarea:hover{ border-color:var(--graphite); }
.input:focus-visible,.textarea:focus-visible{ outline:2px solid var(--focus); outline-offset:1px; border-color:var(--focus); background:var(--ink-1); }
.input[aria-invalid="true"],.textarea[aria-invalid="true"]{ border-color:var(--ember); }

.notice{ --n:var(--spike); display:grid; grid-template-columns:auto 1fr; gap:.2rem .8rem; align-items:start; padding:var(--s-4); background:var(--ink-2); border:1px solid var(--line); border-left:3px solid var(--n); border-radius:var(--r-plate); font-size:var(--fs-1); line-height:1.5; color:var(--bone); }
.notice::before{ content:""; width:10px; height:10px; margin-top:.4em; background:var(--n); transform:rotate(45deg); }
.notice strong{ display:block; font-weight:600; }
.notice > *{ grid-column:2; }
.notice--warn{ --n:var(--sodium); } .notice--error{ --n:var(--ember); } .notice--ok{ --n:var(--sulphur); }

/* range input, used by labs and the compare slider */
.range{ appearance:none; -webkit-appearance:none; width:100%; height:44px; background:transparent; cursor:pointer; margin:0; }
.range::-webkit-slider-runnable-track{ height:14px; border-bottom:1px solid var(--line-strong); background:repeating-linear-gradient(90deg,var(--line-strong) 0 1px,transparent 1px 10px) left bottom / 100% 7px no-repeat; }
.range::-moz-range-track{ height:14px; border-bottom:1px solid var(--line-strong); background:repeating-linear-gradient(90deg,var(--line-strong) 0 1px,transparent 1px 10px) left bottom / 100% 7px no-repeat; }
.range::-webkit-slider-thumb{ -webkit-appearance:none; width:14px; height:30px; margin-top:-12px; background:var(--accent); border:0; border-radius:2px; clip-path:polygon(0 0,100% 0,100% 68%,50% 100%,0 68%); }
.range::-moz-range-thumb{ width:14px; height:30px; background:var(--accent); border:0; border-radius:2px; clip-path:polygon(0 0,100% 0,100% 68%,50% 100%,0 68%); }
.range:focus-visible{ outline:2px solid var(--focus); outline-offset:2px; }

/* ==========================================================================
   CHROME
   ========================================================================== */
.site-header{ position:sticky; top:0; z-index:50; height:var(--header-h); background:rgb(10 16 32 / .86); -webkit-backdrop-filter:blur(14px) saturate(1.3); backdrop-filter:blur(14px) saturate(1.3); }
.site-header::after{ /* the header's lower edge is a ruler */
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:7px; pointer-events:none;
  background:repeating-linear-gradient(90deg,var(--line-strong) 0 1px,transparent 1px 40px) left bottom / 100% 7px no-repeat,
             repeating-linear-gradient(90deg,var(--line) 0 1px,transparent 1px 8px) left bottom / 100% 4px no-repeat,
             linear-gradient(var(--line),var(--line)) left bottom / 100% 1px no-repeat; }
.site-header > .wrap{ height:100%; display:flex; align-items:center; justify-content:space-between; gap:var(--s-5); }
.wordmark{ display:inline-flex; align-items:center; gap:.5rem; font-family:var(--f-display); font-weight:500; font-size:1.5rem; line-height:1; letter-spacing:-.015em; color:var(--bone); text-decoration:none; white-space:nowrap; }
.wordmark em{ font-style:italic; font-weight:400; }
.wordmark__mark{ width:30px; height:30px; color:var(--bone); flex:none; overflow:visible; }
.nav{ display:none; align-items:center; gap:var(--s-1); }
.nav__link{ position:relative; display:inline-flex; align-items:center; min-height:44px; padding:0 .8rem; font-size:var(--fs-1); font-weight:500; color:var(--ash); text-decoration:none; transition:color var(--t-fast); }
.nav__link:hover{ color:var(--bone); }
.nav__link[aria-current]{ color:var(--bone); }
.nav__link[aria-current]::after{ content:""; position:absolute; left:.8rem; right:.8rem; bottom:calc((var(--header-h) - 44px)/-2); height:3px; background:var(--accent); }
.nav__link--forum{ margin-left:var(--s-3); padding:0 1rem; min-height:38px; border:1px solid var(--line-strong); border-radius:var(--r-ctl); color:var(--bone); }
.nav__link--forum:hover{ border-color:var(--bone); }
.nav__link--forum[aria-current]::after{ display:none; }
.nav__link--forum[aria-current]{ border-color:var(--accent); }
.nav-toggle{ display:inline-flex; align-items:center; gap:.5rem; min-height:44px; padding:0 .9rem; font-size:var(--fs-1); font-weight:600; background:transparent; border:1px solid var(--line-strong); border-radius:var(--r-ctl); color:var(--bone); }
.nav-toggle::before{ content:""; width:16px; height:10px; border-block:2px solid currentColor; }
.nav-toggle[aria-expanded="true"]::before{ height:0; border-bottom:0; }
.nav-panel{ position:absolute; left:0; right:0; top:100%; background:var(--ink-0); border-bottom:1px solid var(--line-strong); padding:var(--s-3) var(--gutter) var(--s-6); display:grid; }
.nav-panel a{ display:flex; align-items:baseline; justify-content:space-between; min-height:56px; padding:.7rem 0; font-family:var(--f-display); font-size:1.75rem; line-height:1.1; color:var(--bone); text-decoration:none; border-bottom:1px solid var(--line); }
.nav-panel a span{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); }
.nav-panel a[aria-current]{ color:var(--accent); }
@media (min-width:960px){ .nav{ display:flex; } .nav-toggle,.nav-panel{ display:none; } }

.site-footer{ background:var(--ink-0); border-top:1px solid var(--line); padding-block:var(--s-8) var(--s-6); color:var(--ash); font-size:var(--fs-1); }
.footer__top{ display:grid; gap:var(--s-7); }
.footer__promise{ font-family:var(--f-display); font-weight:400; font-size:var(--fs-5); line-height:1.12; letter-spacing:-.01em; color:var(--bone); max-width:14em; text-wrap:balance; }
.footer__cols{ display:grid; grid-template-columns:1fr 1fr; gap:var(--s-6) var(--s-5); }
.footer__col h2{ font-family:var(--f-mono); font-stretch:80%; font-weight:400; font-size:var(--fs-0); color:var(--graphite); margin-bottom:var(--s-3); }
.footer__col ul{ list-style:none; padding:0; display:grid; gap:2px; }
.footer__col a{ display:inline-block; padding:.3rem 0; color:var(--bone); text-decoration:none; }
.footer__col a:hover{ color:var(--accent); }
.footer__legal{ margin-top:var(--s-8); padding-top:var(--s-4); border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:.4rem var(--s-6); justify-content:space-between; font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); line-height:1.6; color:var(--graphite); }
.footer__legal a{ color:var(--ash); }
@media (min-width:900px){ .footer__top{ grid-template-columns:5fr 7fr; } .footer__cols{ grid-template-columns:repeat(3,1fr); } }

.view{ padding-block:var(--s-5) var(--s-9); min-height:70vh; }
.view__bar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s-3); padding-bottom:var(--s-4); margin-bottom:var(--s-6); border-bottom:1px solid var(--line); }
.view__back{ display:inline-flex; align-items:center; gap:.5em; min-height:44px; font-weight:600; font-size:var(--fs-1); color:var(--bone); text-decoration:none; background:none; border:0; padding:0; }
.view__back::before{ content:"\2190"; font-family:var(--f-mono); color:var(--accent); transition:transform var(--t-fast); }
.view__back:hover::before{ transform:translateX(-3px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{ position:relative; padding-block:var(--s-6) var(--s-7); overflow:clip; }
.hero__head{ display:grid; gap:var(--s-4); margin-bottom:var(--s-6); }
.hero__title{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-7); line-height:.92; letter-spacing:-.024em; text-wrap:balance; }
.hero__title em{ font-style:italic; font-weight:400; }
.hero__intro{ color:var(--ash); font-size:var(--fs-3); line-height:1.5; max-width:32em; }
.hero__stage{ position:relative; display:grid; gap:var(--s-4); }
.hero__plate .plate__img{ aspect-ratio:5/4; object-fit:cover; object-position:var(--focus,72% 50%); }
.hero__slip{ position:relative; z-index:3; margin:-56px 10px 0; box-shadow:0 24px 60px -20px rgb(0 0 0 / .8); }
.hero__picker{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--s-2); }
.picker__btn{ position:relative; display:grid; gap:6px; padding:0 0 8px; background:none; border:0; border-bottom:2px solid var(--line); text-align:left; color:var(--graphite); font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); line-height:1.3; transition:color var(--t-fast),border-color var(--t-fast); }
.picker__btn img{ width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:1px; filter:saturate(.7) brightness(.75); transition:filter var(--t-med); }
.picker__btn:hover{ color:var(--bone); } .picker__btn:hover img{ filter:none; }
.picker__btn[aria-pressed="true"]{ color:var(--bone); border-bottom-color:var(--band,var(--accent)); }
.picker__btn[aria-pressed="true"] img{ filter:none; }
.hero__jump{ display:flex; flex-wrap:wrap; gap:var(--s-3); margin-top:var(--s-5); }
.counts{ display:grid; grid-template-columns:repeat(2,1fr); gap:var(--s-4) var(--s-5); margin-top:var(--s-7); padding-top:var(--s-5); border-top:1px solid var(--line); }
.count{ display:grid; gap:2px; }
.count__n{ font-family:var(--f-display); font-size:var(--fs-5); line-height:1; letter-spacing:-.02em; color:var(--bone); font-variant-numeric:lining-nums; }
.count__l{ font-size:var(--fs-0); line-height:1.35; color:var(--ash); max-width:16em; }
@media (min-width:700px){
  .hero__plate .plate__img{ aspect-ratio:2/1; }
  .counts{ grid-template-columns:repeat(4,1fr); }
  .hero__slip{ margin:-80px 0 0 24px; max-width:440px; }
}
@media (min-width:1000px){
  .hero{ padding-block:var(--s-8) var(--s-8); }
  .hero__head{ grid-template-columns:repeat(12,1fr); align-items:end; gap:var(--s-6); margin-bottom:var(--s-7); }
  .hero__title{ grid-column:1 / span 8; }
  .hero__intro{ grid-column:9 / -1; padding-bottom:.5em; }
  .hero__stage{ grid-template-columns:repeat(12,1fr); gap:var(--s-5) var(--s-6); }
  .hero__plate{ grid-column:1 / -1; max-width:none; }
  .hero__plate .plate__img{ aspect-ratio:auto; max-height:497px; object-fit:cover; }
  .hero__slip{ grid-column:1 / span 5; margin:-150px 0 0 40px; max-width:none; }
  .hero__picker{ grid-column:7 / -1; align-self:start; gap:var(--s-4); }
  .hero__jump{ grid-column:7 / -1; margin-top:0; align-self:end; }
}

/* ==========================================================================
   TIMELINE: one vertical log ruler, every photo on its tick
   ========================================================================== */
.timeline{ --rail:26px; position:relative; }
.timeline::before{ /* the rail */
  content:""; position:absolute; top:0; bottom:0; left:calc(var(--rail)/2); width:1px; background:var(--line-strong); }
.timeline::after{ /* minor ticks along the rail */
  content:""; position:absolute; top:0; bottom:0; left:calc(var(--rail)/2); width:7px;
  background:repeating-linear-gradient(180deg,var(--line-strong) 0 1px,transparent 1px 12px); }
.timeline__band{ position:relative; padding-left:calc(var(--rail) + var(--s-4)); padding-bottom:var(--s-7); }
.timeline__band-head{ position:relative; display:grid; gap:4px; padding-block:var(--s-3) var(--s-5); }
.timeline__band-head::before{ /* band marker on the rail */
  content:""; position:absolute; left:calc(-1*var(--s-4) - var(--rail)/2 - 6px); top:1.5em; width:13px; height:13px; background:var(--band); transform:rotate(45deg); box-shadow:0 0 0 5px var(--ink-1); }
.timeline__band-title{ font-family:var(--f-display); font-weight:400; font-style:italic; font-size:var(--fs-5); line-height:1.05; color:var(--band); letter-spacing:-.01em; }
.timeline__band-range{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); color:var(--ash); }
.timeline__list{ display:grid; gap:var(--s-5); }
.timeline__entry{ position:relative; display:grid; grid-template-columns:84px minmax(0,1fr); gap:var(--s-4); align-items:start; color:inherit; text-decoration:none; }
.timeline__node{ position:absolute; left:calc(-1*var(--s-4) - var(--rail)/2); top:18px; width:calc(var(--s-4) + var(--rail)/2 - 4px); height:1px; background:var(--band); }
.timeline__node::before{ content:""; position:absolute; left:-3px; top:-3px; width:7px; height:7px; border-radius:50%; background:var(--band); }
.timeline__thumb{ display:block; width:84px; aspect-ratio:1; object-fit:cover; border-radius:var(--r-plate); border:1px solid var(--line); background:#000; transition:border-color var(--t-fast),transform var(--t-med) var(--ease); }
.timeline__entry:hover .timeline__thumb{ border-color:var(--band); }
.timeline__body{ display:grid; gap:2px; min-width:0; }
.timeline__when{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); color:var(--band); }
.timeline__name{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-4); line-height:1.12; letter-spacing:-.008em; color:var(--bone); }
.timeline__entry:hover .timeline__name{ text-decoration:underline; text-decoration-color:var(--band); text-decoration-thickness:1px; text-underline-offset:.18em; }
.timeline__earth{ font-size:var(--fs-1); line-height:1.45; color:var(--ash); }
.timeline__span{ position:relative; margin-top:var(--s-5); padding:var(--s-4); border:1px dashed var(--band); border-radius:var(--r-plate); display:grid; gap:var(--s-3); }
.timeline__span img{ width:100%; height:auto; border-radius:1px; }
@media (min-width:1000px){
  .timeline{ --rail:120px; }
  .timeline::before{ left:50%; } .timeline::after{ left:50%; }
  .timeline__band{ padding-left:0; padding-bottom:var(--s-8); }
  .timeline__band-head{ width:calc(50% - var(--rail)/2); text-align:right; padding-block:0 var(--s-7); }
  .timeline__band-head::before{ left:auto; right:calc(-1*var(--rail)/2 - 7px); top:.9em; }
  .timeline__list{ grid-template-columns:1fr 1fr; column-gap:var(--rail); row-gap:0; }
  .timeline__entry{ grid-template-columns:132px minmax(0,1fr); gap:var(--s-5); padding-bottom:var(--s-4); }
  .timeline__thumb{ width:132px; }
  .timeline__entry:nth-child(odd){ grid-column:1; grid-template-columns:minmax(0,1fr) 132px; text-align:right; }
  .timeline__entry:nth-child(odd) .timeline__thumb{ order:2; }
  .timeline__entry:nth-child(even){ grid-column:2; margin-top:var(--s-8); }
  .timeline__node{ top:28px; width:calc(var(--rail)/2 - 10px); }
  .timeline__entry:nth-child(odd) .timeline__node{ left:auto; right:calc(-1*var(--rail)/2); }
  .timeline__entry:nth-child(odd) .timeline__node::before{ left:auto; right:-3px; }
  .timeline__entry:nth-child(even) .timeline__node{ left:calc(-1*var(--rail)/2); }
  .timeline__span{ width:calc(50% - var(--rail)/2); margin-left:auto; }
}

/* ==========================================================================
   STORIES
   ========================================================================== */
.story{ display:grid; gap:var(--s-5); padding-block:var(--s-7); border-top:1px solid var(--line); grid-template-areas:"head" "media" "body"; }
.story:first-of-type{ border-top:0; padding-top:0; }
.story__head{ grid-area:head; display:grid; gap:var(--s-4); align-content:end; }
.story__media{ grid-area:media; min-width:0; display:grid; justify-items:center; align-content:center; gap:var(--s-4); }
.story__body{ grid-area:body; display:grid; gap:var(--s-5); align-content:start; }
.story__title{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-6); line-height:1; letter-spacing:-.015em; text-wrap:balance; }
.story__title em{ font-style:italic; font-weight:400; }
.story__standfirst{ font-size:var(--fs-3); line-height:1.45; color:var(--ash); }
.story__links{ display:flex; flex-wrap:wrap; gap:var(--s-3); }
@media (min-width:1000px){
  .story{ grid-template-columns:minmax(0,7fr) minmax(0,5fr); grid-template-rows:1fr auto 1fr; grid-template-areas:"media ." "media head" "media body"; column-gap:var(--s-9); row-gap:var(--s-5); padding-block:var(--s-9); }
  .story--flip{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); grid-template-areas:". media" "head media" "body media"; }
  .story__media{ grid-row:1 / -1; }
}

/* before/after. The frame is --ar wide/high. Each image sits in a layer and is
   placed in frame percentages so two different crops can be registered:
   --w width, --l left, --t top, --rot rotation, --ox/--oy rotation origin.
   Defaults fill the frame. .compare--notch cuts a corner where one image has no data. */
.compare{ --split:50%; position:relative; width:100%; max-width:var(--max-w,540px); aspect-ratio:var(--ar,1); background:#000; border-radius:var(--r-plate); overflow:hidden; touch-action:pan-y; user-select:none; isolation:isolate; }
.compare--notch{ clip-path:polygon(0 0,var(--notch-x,66%) 0,100% var(--notch-y,28%),100% 100%,0 100%); }
.compare__layer{ position:absolute; inset:0; overflow:hidden; }
.compare__layer--top{ clip-path:inset(0 calc(100% - var(--split)) 0 0); }
.compare__img{ position:absolute; left:var(--l,0%); top:var(--t,0%); width:var(--w,100%); max-width:none; height:auto; transform:rotate(var(--rot,0deg)); transform-origin:var(--ox,50%) var(--oy,50%); }
.compare__handle{ position:absolute; top:0; bottom:0; left:var(--split); width:2px; margin-left:-1px; background:var(--bone); z-index:2; pointer-events:none; }
.compare__handle::before{ content:""; position:absolute; top:58%; left:50%; width:44px; height:44px; margin:-22px 0 0 -22px; border-radius:50%; background:var(--bone); box-shadow:0 0 0 6px rgb(6 10 21 / .5); }
.compare__handle::after{ content:"\2194"; position:absolute; top:58%; left:50%; transform:translate(-50%,-52%); font-family:var(--f-mono); font-size:18px; color:var(--accent-ink); }
.compare__range{ position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:ew-resize; z-index:3; }
.compare:has(.compare__range:focus-visible) .compare__handle::before{ box-shadow:0 0 0 3px var(--ink-0),0 0 0 6px var(--focus); }
.compare__tag{ position:absolute; bottom:14px; z-index:2; pointer-events:none; }
.compare__tag--a{ left:14px; } .compare__tag--b{ right:14px; }

.annot{ display:grid; gap:0; counter-reset:annot; border-top:1px solid var(--line); }
.annot__item{ display:grid; grid-template-columns:2.2rem 1fr; gap:var(--s-3); padding:var(--s-3) 0; border-bottom:1px solid var(--line); font-size:var(--fs-1); line-height:1.45; color:var(--bone); }
.annot__key{ counter-increment:annot; font-family:var(--f-display); font-style:italic; font-size:1.5rem; line-height:1; color:var(--accent); }
.annot__key::before{ content:counter(annot, lower-alpha); }

.shadows{ display:grid; grid-template-columns:1fr 1fr; gap:var(--s-4); align-items:end; width:100%; }
.shadows__fig{ display:grid; gap:var(--s-2); }
.shadows__fig img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:50%; border:1px solid var(--line); }
.shadows__fig figcaption{ text-align:center; }

.filmstrip{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(150px,1fr); gap:var(--s-3); overflow-x:auto; padding:10px 0 var(--s-4); scroll-snap-type:x proximity; scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent;
  border-block:1px solid var(--line); background:
   repeating-linear-gradient(90deg,var(--ink-3) 0 10px,transparent 10px 22px) left top / 100% 5px no-repeat; }
.filmstrip__item{ scroll-snap-align:start; display:grid; gap:var(--s-2); text-decoration:none; color:inherit; padding-top:8px; }
.filmstrip__item img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:1px; }
.filmstrip__cap{ display:grid; gap:1px; font-size:var(--fs-1); line-height:1.3; }
.filmstrip__cap b{ font-family:var(--f-mono); font-stretch:80%; font-weight:400; font-size:var(--fs-00); color:var(--band,var(--graphite)); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.filters{ display:grid; gap:var(--s-4); padding-block:var(--s-4); border-block:1px solid var(--line); margin-bottom:var(--s-6); }
.filters__group{ display:grid; gap:var(--s-2); min-width:0; }
.filters__label{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); color:var(--graphite); }
.filters__row{ display:flex; gap:var(--s-2); overflow-x:auto; padding:3px var(--gutter) 6px 3px; margin:-3px calc(-1*var(--gutter)) -6px -3px; scrollbar-width:none; }
.filters__row::-webkit-scrollbar{ display:none; }
.filters__status{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--s-3); font-size:var(--fs-1); color:var(--ash); }
.filters__status b{ font-family:var(--f-display); font-weight:500; font-size:1.5rem; color:var(--bone); margin-right:.2em; }
@media (min-width:900px){
  .filters{ grid-template-columns:8.5rem minmax(0,1fr); gap:var(--s-3) var(--s-5); align-items:center; }
  .filters__group{ display:contents; }
  .filters__row{ flex-wrap:wrap; overflow:visible; margin:0; padding:0; }
  .filters__status{ grid-column:1 / -1; padding-top:var(--s-3); border-top:1px dashed var(--line); }
}

/* justified rows: every card keeps its photo's ratio. Set style="--ar:1.43" (width/height). */
.gallery{ --row:132px; display:flex; flex-wrap:wrap; gap:var(--s-6) var(--s-3); }
.gallery::after{ content:""; flex:1000 1 0; }
.card{ flex:var(--ar,1) 1 calc(var(--ar,1) * var(--row)); max-width:calc(var(--ar,1) * var(--row) * 1.7); min-width:0; display:grid; gap:var(--s-3); align-content:start; color:inherit; text-decoration:none; background:none; border:0; padding:0; text-align:left; }
.card__media{ padding:0; border-color:var(--line-strong); }
.card__img{ display:block; width:100%; aspect-ratio:var(--ar,1); object-fit:cover; background:#000; transition:filter var(--t-med); filter:brightness(.92); }
.card:hover .card__img,.card:focus-visible .card__img{ filter:brightness(1.06); }
.card__body{ display:grid; gap:1px; padding-inline:2px; min-width:0; }
.card__time{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--band,var(--ash)); display:flex; align-items:flex-start; gap:.5em; }
.card__time::before{ content:""; width:6px; height:6px; margin-top:.42em; background:currentColor; transform:rotate(45deg); flex:none; }
.card__title{ font-family:var(--f-display); font-weight:500; font-size:1.25rem; line-height:1.15; letter-spacing:-.005em; color:var(--bone); overflow-wrap:anywhere; }
.card:hover .card__title{ text-decoration:underline; text-decoration-color:var(--band,var(--accent)); text-decoration-thickness:1px; text-underline-offset:.18em; }
.card__meta{ font-size:var(--fs-0); color:var(--graphite); line-height:1.35; }
@media (min-width:700px){ .gallery{ --row:190px; gap:var(--s-7) var(--s-5); } .card__title{ font-size:1.4rem; } }
@media (max-width:699px){
  .gallery{ display:grid; grid-template-columns:1fr 1fr; grid-auto-flow:dense; gap:var(--s-5) var(--s-3); }
  .gallery::after{ display:none; }
  .card{ max-width:none; }
  .card--wide{ grid-column:1 / -1; }
  .card .stamp{ top:8px; right:8px; }
}
@media (min-width:1200px){ .gallery{ --row:230px; } }

/* ==========================================================================
   LABS
   ========================================================================== */
.lab{ position:relative; background:var(--ink-0); border:1px solid var(--line-strong); border-radius:var(--r-plate); display:grid; }
.lab__head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:var(--s-2) var(--s-5); padding:var(--s-4) var(--s-4) var(--s-3); border-bottom:1px solid var(--line); }
.lab__title{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-5); line-height:1.05; letter-spacing:-.01em; }
.lab__stage{ position:relative; aspect-ratio:4/3; background:
   linear-gradient(var(--line) 0 0) left 50% / 100% 1px no-repeat,
   linear-gradient(var(--line) 0 0) 50% top / 1px 100% no-repeat,
   radial-gradient(circle at 50% 50%,#0d1630,var(--ink-0) 70%); overflow:hidden; }
.lab__stage::after{ /* tick frame around the stage */
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
   repeating-linear-gradient(90deg,var(--line-strong) 0 1px,transparent 1px 16px) left top / 100% 6px no-repeat,
   repeating-linear-gradient(90deg,var(--line-strong) 0 1px,transparent 1px 16px) left bottom / 100% 6px no-repeat,
   repeating-linear-gradient(180deg,var(--line-strong) 0 1px,transparent 1px 16px) left top / 6px 100% no-repeat,
   repeating-linear-gradient(180deg,var(--line-strong) 0 1px,transparent 1px 16px) right top / 6px 100% no-repeat; }
.lab__canvas{ position:absolute; inset:0; width:100%; height:100%; }
.lab__readouts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr)); border-top:1px solid var(--line); }
.readout{ padding:var(--s-3); border-right:1px solid var(--line); display:grid; gap:2px; min-width:0; }
.readout:last-child{ border-right:0; }
.readout__k{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); }
.readout__v{ font-family:var(--f-display); font-size:1.6rem; line-height:1.05; color:var(--band,var(--bone)); font-variant-numeric:lining-nums tabular-nums; }
.readout__v small{ font-family:var(--f-text); font-size:var(--fs-0); color:var(--ash); margin-left:.2em; }
.lab__controls{ display:grid; gap:var(--s-4); padding:var(--s-4); border-top:1px solid var(--line); align-content:start; background:var(--ink-1); }
.control{ display:grid; gap:0; }
.control__label{ display:flex; justify-content:space-between; align-items:baseline; gap:var(--s-3); font-size:var(--fs-1); font-weight:600; }
.control__value{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); font-weight:400; color:var(--accent); font-variant-numeric:tabular-nums; }
.lab__aha{ font-family:var(--f-display); font-style:italic; font-size:var(--fs-4); line-height:1.25; color:var(--bone); padding-left:var(--s-4); border-left:2px solid var(--accent); }
.lab__foot{ display:flex; flex-wrap:wrap; gap:var(--s-3); align-items:center; justify-content:space-between; padding:var(--s-3) var(--s-4); border-top:1px solid var(--line); font-size:var(--fs-0); color:var(--graphite); }
@media (min-width:1000px){
  .lab{ grid-template-columns:minmax(0,1fr) 340px; }
  .lab__head,.lab__foot{ grid-column:1 / -1; padding-inline:var(--s-5); }
  .lab__stage{ grid-column:1; aspect-ratio:16/9; min-height:100%; }
  .lab__readouts{ grid-column:1; }
  .lab__controls{ grid-column:2; grid-row:2 / span 2; border-top:0; border-left:1px solid var(--line); padding:var(--s-5); }
}

.lab-cards{ display:grid; gap:var(--s-5); }
.lab-card{ position:relative; display:grid; grid-template-rows:auto 1fr; background:var(--ink-0); border:1px solid var(--line); border-radius:var(--r-plate); color:inherit; text-decoration:none; transition:border-color var(--t-fast); }
.lab-card:hover{ border-color:var(--accent); }
.lab-card__preview{ position:relative; aspect-ratio:16/9; overflow:hidden; border-bottom:1px solid var(--line); background:radial-gradient(circle at 50% 60%,#0f1a38,var(--ink-0) 75%); }
.lab-card__preview svg,.lab-card__preview canvas{ width:100%; height:100%; }
.lab-card__body{ display:grid; gap:var(--s-2); padding:var(--s-4); align-content:start; }
.lab-card__title{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-4); line-height:1.1; }
.lab-card__promise{ font-size:var(--fs-1); color:var(--ash); line-height:1.45; }
.lab-card__photo{ display:flex; align-items:center; gap:var(--s-3); margin-top:var(--s-3); padding-top:var(--s-3); border-top:1px dashed var(--line); font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); }
.lab-card__photo img{ width:40px; height:40px; object-fit:cover; border-radius:1px; }
@media (min-width:700px){ .lab-cards{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1200px){ .lab-cards{ grid-template-columns:repeat(4,1fr); } }

/* How telescopes see */
.steps{ display:grid; gap:var(--s-6); counter-reset:step; }
.step{ display:grid; gap:var(--s-3); align-content:start; counter-increment:step; padding-top:var(--s-4); border-top:1px solid var(--line-strong); position:relative; }
.step::before{ content:counter(step); position:absolute; top:-.62em; left:0; padding-right:.5rem; background:var(--ink-1); font-family:var(--f-display); font-style:italic; font-size:1.5rem; line-height:1; color:var(--accent); }
.section--raised .step::before{ background:var(--ink-0); }
.step__fig{ aspect-ratio:4/3; background:var(--ink-0); border:1px solid var(--line); border-radius:var(--r-plate); }
.step__fig svg{ width:100%; height:100%; }
.step__title{ font-family:var(--f-text); font-weight:600; font-size:var(--fs-3); line-height:1.2; }
.step p{ font-size:var(--fs-1); color:var(--ash); line-height:1.5; }
@media (min-width:700px){ .steps{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px){ .steps{ grid-template-columns:repeat(4,1fr); gap:var(--s-5); } }

.glossary{ display:grid; gap:0; border-top:1px solid var(--line); }
.glossary > div{ display:grid; gap:2px var(--s-5); padding:var(--s-3) 0; border-bottom:1px solid var(--line); }
.glossary__term{ font-family:var(--f-display); font-style:italic; font-size:1.3rem; line-height:1.2; color:var(--bone); }
.glossary__def{ font-size:var(--fs-1); color:var(--ash); line-height:1.5; }
@media (min-width:700px){ .glossary{ grid-template-columns:1fr 1fr; column-gap:var(--s-7); } .glossary > div{ grid-template-columns:9rem 1fr; align-items:baseline; } }

.credits{ display:grid; gap:0; border-top:1px solid var(--line); }
.credit-row{ display:grid; grid-template-columns:48px minmax(0,1fr); gap:var(--s-3); align-items:center; padding:var(--s-2) 0; border-bottom:1px solid var(--line); font-size:var(--fs-0); line-height:1.4; color:var(--ash); }
.credit-row img{ width:48px; height:48px; object-fit:cover; border-radius:1px; }
.credit-row b{ display:block; font-weight:600; color:var(--bone); font-size:var(--fs-1); }
@media (min-width:800px){ .credits{ grid-template-columns:1fr 1fr; column-gap:var(--s-7); } }

/* ==========================================================================
   PHOTO DETAIL
   ========================================================================== */
.detail{ display:grid; gap:var(--s-6); }
.detail__media{ min-width:0; display:grid; gap:var(--s-4); justify-items:center; align-content:start; }
.detail__text{ display:grid; gap:var(--s-5); align-content:start; min-width:0; }
.detail__title{ font-family:var(--f-display); font-weight:500; font-size:var(--fs-6); line-height:1; letter-spacing:-.015em; text-wrap:balance; }
.detail__block{ display:grid; gap:var(--s-2); }
.detail__block-title{ font-family:var(--f-text); font-weight:600; font-size:var(--fs-1); color:var(--band,var(--accent)); display:flex; align-items:center; gap:.6rem; }
.detail__block-title::after{ content:""; flex:1; height:1px; background:var(--line); }
.detail__block p{ color:var(--bone); max-width:36em; }
.facts{ display:grid; grid-template-columns:minmax(7.5rem,auto) 1fr; border-top:1px solid var(--line); font-size:var(--fs-1); line-height:1.4; }
.facts dt{ padding:.6rem 1rem .6rem 0; border-bottom:1px solid var(--line); font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); color:var(--graphite); }
.facts dd{ padding:.6rem 0; border-bottom:1px solid var(--line); color:var(--bone); }
.detail__actions{ display:flex; flex-wrap:wrap; gap:var(--s-3); }
.detail__nav{ display:grid; grid-template-columns:1fr auto 1fr; gap:var(--s-3); align-items:center; padding-top:var(--s-5); margin-top:var(--s-6); border-top:1px solid var(--line); }
.detail__nav-btn{ display:grid; gap:2px; min-height:56px; padding:.5rem 0; background:none; border:0; text-align:left; color:var(--bone); text-decoration:none; min-width:0; }
.detail__nav-btn:last-child{ text-align:right; }
.detail__nav-btn span{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); }
.detail__nav-btn b{ font-family:var(--f-display); font-weight:500; font-size:1.25rem; line-height:1.15; overflow-wrap:anywhere; }
.detail__nav-btn:hover b{ color:var(--accent); }
.detail__counter{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-0); color:var(--ash); font-variant-numeric:tabular-nums; white-space:nowrap; }
@media (min-width:1000px){
  .detail{ grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:var(--s-8); }
  .detail__media{ position:sticky; top:calc(var(--header-h) + 24px); }
  .detail__nav{ grid-column:1 / -1; margin-top:0; }
}

/* ==========================================================================
   FORUM
   ========================================================================== */
.forum{ display:grid; gap:var(--s-6); }
.forum__side{ display:grid; gap:var(--s-4); align-content:start; min-width:0; }
.forum__main{ display:grid; gap:var(--s-5); align-content:start; min-width:0; }
.forum__stance{ font-family:var(--f-display); font-style:italic; font-size:var(--fs-4); line-height:1.25; color:var(--bone); }
.cat-list{ display:flex; gap:var(--s-2); overflow-x:auto; padding:3px; margin:-3px; scrollbar-width:none; }
.cat-list::-webkit-scrollbar{ display:none; }
.cat{ --cat:var(--ash); }
.cat--observing{ --cat:var(--spike); } .cat--astrophotography{ --cat:var(--hydrogen); } .cat--questions{ --cat:var(--sodium); } .cat--gear{ --cat:var(--oxygen); }
@media (min-width:1000px){
  .forum{ grid-template-columns:280px minmax(0,1fr); gap:var(--s-8); }
  .forum__side{ position:sticky; top:calc(var(--header-h) + 24px); }
  .cat-list{ display:grid; gap:0; overflow:visible; border-top:1px solid var(--line); margin:0; padding:0; }
  .cat-list .chip{ justify-content:space-between; min-height:46px; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:.3em .2em; background:none; color:var(--ash); }
  .cat-list .chip::before{ display:none; }
  .cat-list .chip[aria-pressed="true"],.cat-list .chip.is-on{ color:var(--bone); background:none; box-shadow:inset 3px 0 0 var(--accent); padding-left:.9em; }
}

.thread-list{ border-top:1px solid var(--line-strong); }
.thread-row{ position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px var(--s-4); padding:var(--s-4) 0 var(--s-4) var(--s-4); border-bottom:1px solid var(--line); color:inherit; text-decoration:none; transition:background var(--t-fast); }
.thread-row::before{ content:""; position:absolute; left:0; top:var(--s-4); bottom:var(--s-4); width:3px; background:var(--cat,var(--ash)); }
.thread-row:hover{ background:linear-gradient(90deg,var(--ink-2),transparent); }
.thread-row__cat{ grid-column:1; display:flex; flex-wrap:wrap; align-items:center; gap:var(--s-3); font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--cat,var(--ash)); }
.thread-row__title{ grid-column:1; font-family:var(--f-display); font-weight:500; font-size:var(--fs-4); line-height:1.15; letter-spacing:-.006em; color:var(--bone); overflow-wrap:anywhere; }
.thread-row:hover .thread-row__title{ text-decoration:underline; text-decoration-color:var(--cat,var(--accent)); text-decoration-thickness:1px; text-underline-offset:.18em; }
.thread-row__meta{ grid-column:1; font-size:var(--fs-0); color:var(--graphite); }
.thread-row__count{ grid-column:2; grid-row:1 / span 3; align-self:center; display:grid; justify-items:end; font-family:var(--f-display); font-size:var(--fs-5); line-height:1; color:var(--bone); font-variant-numeric:lining-nums; padding-right:var(--s-2); }
.thread-row__count small{ font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); }

.thread{ display:grid; gap:var(--s-5); max-width:760px; }
.post{ position:relative; display:grid; gap:var(--s-3); padding:var(--s-5); background:var(--ink-2); border:1px solid var(--line); border-top:3px solid var(--cat,var(--accent)); border-radius:var(--r-plate); }
.post--reply{ background:none; border:0; border-left:1px solid var(--line-strong); border-radius:0; padding:0 0 0 var(--s-5); margin-left:var(--s-3); }
.post__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:.3rem var(--s-3); font-family:var(--f-mono); font-stretch:80%; font-size:var(--fs-00); color:var(--graphite); }
.post__author{ font-family:var(--f-text); font-weight:600; font-size:var(--fs-1); color:var(--bone); }
.post__body{ white-space:pre-wrap; overflow-wrap:anywhere; max-width:40em; color:var(--bone); }

.compose{ display:grid; gap:var(--s-4); padding:var(--s-5); background:var(--ink-2); border:1px solid var(--line); border-radius:var(--r-plate); max-width:760px; }
.compose > .t-h3{ margin-bottom:var(--s-1); }
.compose__actions{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--s-3); justify-content:space-between; }
@media (max-width:520px){ .compose,.post{ padding:var(--s-4); } }

/* ---------- Motion ---------- */
@keyframes ll-arrive{ from{ clip-path:inset(0 100% 0 0); } to{ clip-path:inset(0 0 0 0); } }
@keyframes ll-twinkle{ 50%{ opacity:.55; transform:scale(.86) rotate(8deg); } }
.is-arriving{ animation:ll-arrive 700ms var(--ease) both; }       /* hero slip figure when the photo is switched */
.wordmark__star{ transform-box:fill-box; transform-origin:50% 50%; animation:ll-twinkle 7s ease-in-out infinite; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation:none !important; transition-duration:.01ms !important; }
}
