/* ============================================================
   Basel Ashraf — caustic optics
   Ground is ink. Surfaces are glass with a real green edge.
   Light is computed, warm, and splits into colour only at
   refraction fringes.
   ============================================================ */

:root {
  /* ground */
  --ink:        #070b10;
  --ink-deep:   #04070b;
  --ink-raise:  #0b1219;

  /* glass */
  --glass:      rgba(122, 190, 190, 0.045);
  --glass-2:    rgba(122, 190, 190, 0.075);
  --edge:       #4fd6b0;   /* the green you see in the edge of thick acrylic */
  --edge-soft:  rgba(79, 214, 176, 0.30);
  --edge-hair:  rgba(150, 200, 205, 0.16);

  /* light */
  --light:      #fff6e2;   /* concentrated caustic core */
  --amber:      #ffb45c;   /* dispersion, long wavelength */
  --magenta:    #ff7ab8;
  --cyan:       #6fe3ff;   /* dispersion, short wavelength */

  /* text, tinted from the ground's hue rather than grey */
  --fg:         #e9eff3;
  --fg-2:       #9fb2be;
  --fg-3:       #7c8e9b;

  --shell:      74rem;
  --measure:    68ch;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);

  --s1: 0.5rem;  --s2: 0.875rem; --s3: 1.375rem;
  --s4: 2.25rem; --s5: 3.5rem;   --s6: 5.5rem;  --s7: 8.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-variation-settings: 'wdth' 100, 'wght' 400;
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the whole page sits in a faint pool of light from above */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 246, 226, 0.055), transparent 60%),
    radial-gradient(90% 55% at 82% 8%, rgba(111, 227, 255, 0.035), transparent 62%);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
  position: relative;
  z-index: 1;
}

/* ---------- type ---------- */

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

.h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3.15rem);
  font-variation-settings: 'wdth' 112, 'wght' 620;
  letter-spacing: -0.032em;
  line-height: 1.06;
  max-width: 30ch;
}

.h3 {
  font-size: clamp(1.3rem, 1.05rem + 0.95vw, 1.85rem);
  font-variation-settings: 'wdth' 106, 'wght' 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.h4 {
  font-size: 1.0625rem;
  font-variation-settings: 'wdth' 100, 'wght' 660;
  letter-spacing: 0.005em;
}

p { margin: 0 0 var(--s3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);
  color: var(--fg-2);
  line-height: 1.56;
  max-width: 62ch;
}
.lede strong { color: var(--fg); font-variation-settings: 'wdth' 100, 'wght' 620; }

b, strong { font-variation-settings: 'wdth' 100, 'wght' 640; }

a { color: var(--fg); text-decoration-color: var(--edge-soft); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--edge); }

:focus-visible {
  outline: 2px solid var(--light);
  outline-offset: 3px;
  border-radius: 2px;
}

kbd {
  font: inherit;
  font-size: 0.86em;
  font-variation-settings: 'wdth' 88, 'wght' 560;
  padding: 0.08em 0.42em;
  border: 1px solid var(--edge-hair);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--glass-2);
}

.vh {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -110%);
  z-index: 50;
  background: var(--light); color: var(--ink-deep);
  padding: 0.7rem 1.2rem; border-radius: 0 0 6px 6px;
  font-variation-settings: 'wdth' 100, 'wght' 620;
  text-decoration: none;
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- glass plate ---------- */

.plate {
  position: relative;
  background:
    linear-gradient(176deg, var(--glass-2), rgba(122, 190, 190, 0.012) 42%, var(--glass));
  border-top: 1px solid var(--edge-hair);
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  isolation: isolate;
}
/* the lit top edge and the green core of a thick sheet */
.plate::before {
  content: '';
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge-soft) 22%, rgba(255,246,226,0.5) 50%, var(--edge-soft) 78%, transparent);
  z-index: 2;
}

/* ---------- hero ---------- */

.hero {
  min-height: min(92svh, 54rem);
  display: grid;
  align-items: end;
  padding-block: var(--s7) var(--s6);
  border-top: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-deep), var(--ink) 78%);
}

.hero__caustic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.92;
}

/* A graduated scrim, the way a photographer holds light off the subject.
   The caustic keeps its full range on the open right side; the reading
   column stays ink so the type never has to fight it. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(96deg, var(--ink) 3%, rgba(7, 11, 16, 0.86) 22%, rgba(7, 11, 16, 0.34) 46%, rgba(7, 11, 16, 0.04) 64%, transparent),
    linear-gradient(0deg, var(--ink) 1%, rgba(7, 11, 16, 0.72) 16%, transparent 46%);
}

/* refracted edge of the plate the light came through */
.hero__edge {
  position: absolute;
  inset-inline: 0; bottom: 0; height: 2px;
  z-index: 3;
  background: linear-gradient(90deg,
    transparent, var(--cyan) 12%, var(--light) 34%, var(--amber) 52%,
    var(--magenta) 66%, var(--light) 80%, transparent);
  opacity: 0.5;
  filter: blur(0.3px);
}

.hero__inner { z-index: 2; }

.hero__name {
  font-size: clamp(3.4rem, 1.1rem + 11.5vw, 9.5rem);
  font-variation-settings: 'wdth' 118, 'wght' 760;
  letter-spacing: -0.045em;
  line-height: 0.86;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--light);
  text-shadow:
    0 0 1px rgba(255, 246, 226, 0.5),
    0 2px 60px rgba(255, 200, 130, 0.16);
}
.hero__break { display: block; height: 0; }

.hero__claim {
  font-size: clamp(1.1rem, 0.98rem + 0.72vw, 1.5rem);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 46ch;
  margin-bottom: var(--s4);
}
.lit {
  color: var(--light);
  font-variation-settings: 'wdth' 100, 'wght' 660;
  font-variant-numeric: tabular-nums;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-bottom: var(--s4); max-width: none;
}

.hero__meta {
  font-size: 0.9375rem;
  color: var(--fg-3);
  max-width: none;
}
.hero__meta a { color: var(--fg-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--edge-hair);
  border-radius: 3px;
  background: var(--glass-2);
  color: var(--fg);
  font-size: 1rem;
  font-variation-settings: 'wdth' 100, 'wght' 580;
  text-decoration: none;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
}
.btn:hover { border-color: var(--edge); background: rgba(79, 214, 176, 0.10); }

.btn--lit {
  background: var(--light);
  border-color: var(--light);
  color: var(--ink-deep);
  font-variation-settings: 'wdth' 100, 'wght' 660;
}
.btn--lit:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink-deep);
  box-shadow: 0 6px 34px rgba(255, 224, 170, 0.28);
}

/* ---------- bands ---------- */

.band { padding-block: var(--s7); position: relative; z-index: 1; }
.band--loose { padding-block: var(--s7) var(--s6); }
.band--quiet { background: var(--ink-deep); border-top: 1px solid rgba(150,200,205,0.08); }
.band--bench { background: linear-gradient(180deg, var(--ink), var(--ink-raise) 55%, var(--ink)); }

.band__head { margin-bottom: var(--s5); }
.band__head .h2 { margin-bottom: var(--s3); }

/* ---------- benchmark, read as light ---------- */

.bench { margin: 0 0 var(--s6); }

.bench__cap {
  color: var(--fg-3);
  font-size: 0.9375rem;
  max-width: 54ch;
  margin-bottom: var(--s3);
}

.bench__legend { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s2); }
.key {
  font-size: 0.8125rem; color: var(--fg-2);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-variation-settings: 'wdth' 92, 'wght' 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.key::before {
  content: ''; width: 1.5rem; height: 3px; border-radius: 2px;
}
.key--ls::before  { background: var(--light); box-shadow: 0 0 12px rgba(255,246,226,0.75); }
.key--yg::before  { background: var(--cyan); opacity: 0.75; }
.key--dom::before { background: var(--magenta); opacity: 0.6; }

.bench__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.bench__table thead th {
  text-align: left;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-variation-settings: 'wdth' 92, 'wght' 600;
  padding: 0 0 var(--s2);
  border-bottom: 1px solid var(--edge-hair);
}
.bench__table tbody th {
  text-align: left;
  font-variation-settings: 'wdth' 100, 'wght' 560;
  color: var(--fg);
  padding: var(--s3) var(--s3) var(--s3) 0;
  vertical-align: top;
  white-space: nowrap;
}
.bench__table .sub {
  display: block; color: var(--fg-3); font-size: 0.8125rem;
  font-variation-settings: 'wdth' 100, 'wght' 400;
}
.bench__table tbody tr + tr th,
.bench__table tbody tr + tr td { border-top: 1px solid rgba(150,200,205,0.09); }

.num {
  padding: var(--s3) var(--s3) var(--s3) 0;
  vertical-align: top;
  color: var(--fg-2);
  width: 27%;
  font-size: 0.9375rem;
}
.num b { color: var(--light); font-size: 1.25rem; font-variation-settings: 'wdth' 100, 'wght' 680; }
.num--fail { color: var(--magenta); font-variation-settings: 'wdth' 100, 'wght' 560; }

/* the bar is light on a dark table, so it glows rather than fills */
.bar {
  display: block;
  width: var(--w);
  height: 4px;
  margin-bottom: 0.6rem;
  border-radius: 2px;
  min-width: 3px;
}
.bar--ls  { background: var(--light); box-shadow: 0 0 16px rgba(255, 246, 226, 0.55); }
.bar--yg  { background: rgba(111, 227, 255, 0.62); }
.bar--dom { background: rgba(255, 122, 184, 0.42); }

/* ---------- split + facts ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: var(--s4);
  border-top: 1px solid var(--edge-hair);
  margin-bottom: var(--s4);
}
.split__body .h3 { margin-bottom: var(--s2); }
.split__body p { color: var(--fg-2); }

.facts { margin: 0; display: grid; gap: 0; }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s2);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(150,200,205,0.09);
}
.facts dt {
  color: var(--fg-3); font-size: 0.8125rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  font-variation-settings: 'wdth' 92, 'wght' 600;
}
.facts dd {
  margin: 0; color: var(--light);
  font-size: 1.15rem;
  font-variation-settings: 'wdth' 100, 'wght' 660;
  font-variant-numeric: tabular-nums;
}

/* ---------- links ---------- */

.links { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); max-width: none; margin-top: var(--s3); }
.lnk {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none;
  color: var(--light);
  font-variation-settings: 'wdth' 100, 'wght' 580;
  border-bottom: 1px solid var(--edge-soft);
  padding-bottom: 0.14rem;
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease);
}
.lnk:hover { border-color: var(--light); }
.i { width: 0.95em; height: 0.95em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--b { fill: currentColor; stroke: none; width: 1.05em; height: 1.05em; }

/* ---------- products ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 4px;
  margin-top: var(--s5);
  transition: border-color 0.6s var(--ease);
}
.product:hover { border-top-color: var(--edge-soft); }
.product .h3 { margin-bottom: var(--s3); }
.product .h3 a { text-decoration: none; color: var(--light); }
.product .h3 a:hover { text-decoration: underline; text-decoration-color: var(--edge); }
.product__what { color: var(--fg); }
.product__body p { color: var(--fg-2); }
.product__body .product__what { color: var(--fg); }

.product__ethos {
  color: var(--edge);
  border-top: 1px solid var(--edge-hair);
  padding-top: var(--s2);
  font-size: 0.9375rem;
}

.readout { margin: 0; align-self: start; display: grid; gap: var(--s3); }
.readout > div { border-top: 1px solid var(--edge-hair); padding-top: var(--s2); }
.readout dt {
  color: var(--fg-3); font-size: 0.75rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  font-variation-settings: 'wdth' 92, 'wght' 600;
  margin-bottom: 0.15rem;
}
.readout dd {
  margin: 0;
  color: var(--light);
  font-size: clamp(1.8rem, 1.2rem + 1.7vw, 2.6rem);
  font-variation-settings: 'wdth' 108, 'wght' 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0 34px rgba(255, 224, 170, 0.2);
}

.footnote {
  margin-top: var(--s4);
  color: var(--fg-3);
  font-size: 0.875rem;
  max-width: 68ch;
}
.footnote a { color: var(--fg-2); }

/* ---------- features ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 4px;
  margin-bottom: var(--s4);
}
.feature .h3 { margin-bottom: var(--s2); }
.feature .h3 a { text-decoration: none; color: var(--light); }
.feature .h3 a:hover { text-decoration: underline; text-decoration-color: var(--edge); }
.feature p { color: var(--fg-2); }

/* the project this page's light comes from gets the dispersion edge */
.feature--origin::after {
  content: '';
  position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--light) 45%, var(--amber) 62%, var(--magenta) 78%, transparent);
  opacity: 0.55;
}

.tally {
  margin: 0; text-align: right; min-width: 9rem; max-width: none;
}
.tally b {
  display: block;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
  font-variation-settings: 'wdth' 110, 'wght' 720;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--light);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 38px rgba(255, 224, 170, 0.24);
}
.tally span {
  display: block; margin-top: 0.45rem;
  color: var(--fg-3); font-size: 0.8125rem; line-height: 1.4;
}

/* ---------- dense strip ---------- */

.h3--rule {
  margin-top: var(--s6);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--edge-hair);
}

.strip {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  column-gap: clamp(2rem, 4vw, 3.5rem);
}
.strip__item { padding: var(--s4) 0 var(--s3); border-bottom: 1px solid rgba(150,200,205,0.09); }
.strip__item h4 {
  font-size: 1.0625rem;
  font-variation-settings: 'wdth' 100, 'wght' 640;
  margin-bottom: 0.55rem;
  letter-spacing: -0.008em;
}
.strip__item h4 a { color: var(--light); text-decoration: none; border-bottom: 1px solid var(--edge-soft); }
.strip__item h4 a:hover { border-color: var(--edge); }
.strip__item p { color: var(--fg-2); font-size: 0.9375rem; margin-bottom: 0.6rem; }
.strip__stat {
  color: var(--fg-3); font-size: 0.8125rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  font-variation-settings: 'wdth' 92, 'wght' 560;
  font-variant-numeric: tabular-nums;
}

/* ---------- background ---------- */

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: var(--s5);
  align-items: start;
}

.tl { list-style: none; margin: 0; padding: 0; }
.tl li {
  padding: var(--s3) 0 var(--s3) var(--s4);
  border-left: 1px solid var(--edge-hair);
  position: relative;
}
.tl li::before {
  content: '';
  position: absolute; left: -3px; top: calc(var(--s3) + 0.62em);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--light);
  box-shadow: 0 0 12px rgba(255, 246, 226, 0.8);
}
.tl h3 {
  font-size: 1.0625rem;
  font-variation-settings: 'wdth' 100, 'wght' 640;
  margin-bottom: 0.3rem;
}
.tl__where { color: var(--fg-2); font-size: 0.9375rem; margin-bottom: 0.15rem; }
.tl__when  { color: var(--fg-3); font-size: 0.875rem; font-variant-numeric: tabular-nums; margin: 0; }

.kit .h4 { margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--edge-hair); }
.kit p { color: var(--fg-2); font-size: 0.9375rem; margin-bottom: var(--s2); }
.kit b {
  display: block; color: var(--fg-3); font-size: 0.75rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  font-variation-settings: 'wdth' 92, 'wght' 600;
  margin-bottom: 0.1rem;
}

/* ---------- footer ---------- */

.foot {
  padding-block: var(--s6) var(--s4);
  background: linear-gradient(180deg, var(--ink), var(--ink-deep));
}
.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, auto);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: var(--s5);
}
.foot__h {
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.5rem);
  font-variation-settings: 'wdth' 112, 'wght' 620;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--light);
  margin-bottom: var(--s3);
}
.foot__p { color: var(--fg-2); margin-bottom: var(--s4); }

.foot__nav { display: grid; gap: var(--s2); }
.foot__nav a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--fg-2); text-decoration: none;
  font-variation-settings: 'wdth' 100, 'wght' 540;
  transition: color 0.45s var(--ease);
}
.foot__nav a:hover { color: var(--light); }

.foot__fine {
  color: var(--fg-3); font-size: 0.8125rem;
  border-top: 1px solid rgba(150,200,205,0.09);
  padding-top: var(--s3);
  max-width: none;
}
.foot__fine a { color: var(--fg-2); }

/* ============================================================
   captures — the work photographed, framed as figures
   ============================================================ */

.shot {
  grid-column: 1 / -1;
  margin-top: var(--s4);
}

/* inside a plate the grid gap already does this spacing; doubling it
   leaves the figure stranded */
.plate .shot { margin-top: 0; }

.shot__frame {
  display: block;
  position: relative;
  border: 1px solid var(--edge-hair);
  border-radius: 3px;
  background: #04070a;
  overflow: hidden;
  line-height: 0;
  transition: border-color 0.5s var(--ease);
}

/* the plates carry a lit top edge; a capture gets the same one so it reads
   as part of the page rather than pasted onto it */
.shot__frame::after {
  content: '';
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 226, 0.26) 50%, transparent);
  pointer-events: none;
}

a.shot__frame:hover,
a.shot__frame:focus-visible { border-color: var(--edge-soft); }

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* a square, light-ground figure would shout next to the wide dark ones */
.shot--tight .shot__frame { max-width: 24rem; }

.shot figcaption {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  margin-top: var(--s2);
  color: var(--fg-3);
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 68ch;
}

.shot figcaption b {
  color: var(--fg);
  font-variation-settings: 'wdth' 100, 'wght' 660;
  font-variant-numeric: tabular-nums;
}

.shot figcaption code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--fg-2);
}

.shot__tag {
  flex: none;
  color: var(--edge);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variation-settings: 'wdth' 92, 'wght' 620;
  border: 1px solid var(--edge-hair);
  border-radius: 2px;
  padding: 0.16rem 0.4rem;
  white-space: nowrap;
}

/* ============================================================
   adaptation
   ============================================================ */

@media (max-width: 60rem) {
  .split, .product, .cols, .foot__inner { grid-template-columns: 1fr; }
  .readout {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s3);
  }
  .feature { grid-template-columns: 1fr; }
  .tally { text-align: left; }
  .tally span { max-width: 22ch; }
}

@media (max-width: 40rem) {
  :root { --s6: 4rem; --s7: 5rem; }

  .hero { min-height: auto; padding-block: 5.5rem 3.5rem; }
  .hero__name { letter-spacing: -0.038em; }
  .hero__break { display: inline; }
  .hero__claim { max-width: none; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* the table becomes stacked readouts rather than a squeezed grid */
  .bench__table thead { display: none; }
  .bench__table, .bench__table tbody, .bench__table tr { display: block; width: 100%; }
  .bench__table tbody th {
    display: block; padding: 0 0 var(--s2);
    border-top: 0 !important;
    font-variation-settings: 'wdth' 100, 'wght' 640;
  }
  .bench__table tbody tr {
    padding: var(--s3) 0;
    border-top: 1px solid rgba(150,200,205,0.09);
  }
  .bench__table tbody tr:first-child { border-top: 0; }
  .num {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    column-gap: var(--s2);
    row-gap: 0.35rem;
    width: auto; padding: 0.5rem 0;
    border-top: 0 !important;
  }
  .num::before {
    content: attr(data-engine);
    grid-column: 1; grid-row: 1;
    align-self: baseline;
    color: var(--fg-3); font-size: 0.75rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    font-variation-settings: 'wdth' 92, 'wght' 600;
  }
  .num .v  { grid-column: 2; grid-row: 1; }
  .num .bar { grid-column: 2; grid-row: 2; margin-bottom: 0; align-self: center; }
  .num b { font-size: 1.05rem; }

  .readout { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr; }
  .shot--tight .shot__frame { max-width: none; }
  .shot figcaption { flex-direction: column; gap: 0.5rem; }
  .shot__tag { align-self: start; }
  .foot__nav { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* light-mode users still get the plate; the scene is a dark room by design,
   so we hold the world and only lift contrast a little */
@media (prefers-contrast: more) {
  :root { --fg-2: #cfdae1; --fg-3: #b3c2cb; --edge-hair: rgba(180, 220, 225, 0.4); }
}

@media print {
  body { background: #fff; color: #000; }
  .hero__caustic, body::before, .hero__edge { display: none; }
  .plate { background: none; }
  a { color: #000; }
}
