/* =========================================================
   Pyrogen Environmental Limited — "The Technical Prospectus"
   Self-hosted fonts, no external requests.
   ========================================================= */

/* ---------- 1. FONTS ---------- */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/SchibstedGrotesk.woff2') format('woff2');
  font-weight: 400 900;
  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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2248, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/SchibstedGrotesk-Italic.woff2') format('woff2');
  font-weight: 400 900;
  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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2248, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/PublicSans.woff2') format('woff2');
  font-weight: 100 900;
  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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2248, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/PublicSans-Italic.woff2') format('woff2');
  font-weight: 100 900;
  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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2248, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Mono';
  src: url('fonts/RedHatMono.woff2') format('woff2');
  font-weight: 300 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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2248, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Mono';
  src: url('fonts/RedHatMono-Italic.woff2') format('woff2');
  font-weight: 300 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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2248, U+FEFF, U+FFFD;
}

/* ---------- 2. TOKENS ---------- */

:root {
  --navy: #274069;
  --navy-900: #16274A;
  --navy-950: #0E1A33;
  --steel: #367299;
  --steel-300: #8FB3CC;
  --paper: #F3F5F8;
  --paper-2: #FFFFFF;
  --ink: #14213A;
  --ink-2: #4E5B73;
  --line: #CFD8E3;
  --line-dark: rgba(143, 179, 204, 0.28);

  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.70);
  --white-80: rgba(255, 255, 255, 0.80);

  --scrim-hero: linear-gradient(180deg, rgba(14, 26, 51, 0.28) 0%, rgba(14, 26, 51, 0.62) 100%);
  --scrim-opener: linear-gradient(90deg, rgba(14, 26, 51, 0.72) 0%, rgba(14, 26, 51, 0.25) 60%, rgba(14, 26, 51, 0.05) 100%);

  --display: 'Schibsted Grotesk', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --mono: 'Red Hat Mono', ui-monospace, monospace;

  --gutter: 48px;
  --rail-w: 320px;
  --colmax: 1240px;
  --bar-h: 64px;
}

/* ---------- 3. RESET / BASE ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  align-items: start;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
hr { border: 0; margin: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; }

::selection { background: var(--steel); color: var(--white); }

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

.skip-link {
  position: fixed;
  top: -48px;
  left: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ---------- 4. SHARED TYPE ---------- */

.mono-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

.fig {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

.chlabel {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.chlabel::before {
  content: "";
  width: 40px;
  height: 1px;
  flex: 0 0 40px;
  background: var(--steel);
}
.chlabel--light { color: var(--steel-300); }
.chlabel--light::before { background: var(--steel-300); }

h2 {
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
h3.mt { margin-top: 40px; }

.lead {
  font-family: var(--body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
}

.statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.impact {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.rule-dark { border-top: 1px solid var(--line-dark); margin-top: 56px; }

/* ---------- 5. GRID ---------- */

.wrap {
  max-width: calc(var(--colmax) + var(--gutter) * 2);
  margin: 0 auto 0 0;
  padding: 0 var(--gutter);
  width: 100%;
}

.g12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.doc { min-width: 0; overflow-x: clip; }
main { display: block; }

section[id] { scroll-margin-top: 0; }

/* ---------- 6. RAIL (desktop) ---------- */

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  padding: 40px 36px;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

.rail::-webkit-scrollbar { display: none; }

.rail__brand { display: block; text-decoration: none; }
.rail__lockup { width: 168px; height: auto; }
.rail__mark { width: 48px; height: auto; display: none; }

.rail__legalname {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  margin-top: 14px;
  line-height: 1.4;
}

.rail__nav {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.rail__nav li { position: relative; }
.rail__nav a {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: baseline;
  gap: 6px;
  padding: 14px 0 14px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
}
.rail__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--steel);
  opacity: 0;
}
.rail__nav .idx {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}
.rail__nav .t {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.rail__nav a:hover .t { color: var(--steel); }
.rail__nav a.is-active .t { color: var(--navy); font-weight: 700; }
.rail__nav a.is-active::before { opacity: 1; }

.rail__foot { margin-top: auto; padding-top: 40px; }
.rail__foot .mono-label { margin-bottom: 10px; }
.rail__visit { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rail__tel, .rail__mail { margin-top: 12px; }
.rail__tel a, .rail__mail a {
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}
.rail__tel a:hover, .rail__mail a:hover { color: var(--steel); border-bottom-color: var(--steel); }
.rail__addr {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- 7. TOP BAR + OVERLAY (mobile) ---------- */

.topbar {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar-h);
  z-index: 60;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.topbar__brand { display: flex; align-items: center; text-decoration: none; }
.topbar__lockup { height: 28px; width: auto; }

.burger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
}
.burger__bar { display: block; width: 22px; height: 1px; background: var(--navy); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--navy-950);
  padding: 24px 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.overlay[hidden] { display: none; }
.nav-open, .nav-open body { overflow: hidden; }
.overlay__plaque {
  background: var(--paper-2);
  padding: 16px;
  width: 180px;
}
.overlay__plaque img { width: 100%; height: auto; }

.closer {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.closer__bar {
  grid-area: 1 / 1;
  width: 22px;
  height: 1px;
  background: var(--white);
}
.closer__bar:first-child { transform: rotate(45deg); }
.closer__bar:last-child { transform: rotate(-45deg); }

.overlay__nav { margin-top: 40px; }
.overlay__nav a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  min-height: 44px;
  text-decoration: none;
}
.overlay__nav .idx {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--steel-300);
  font-variant-numeric: tabular-nums;
}
.overlay__nav .t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
}
.overlay__meta { margin-top: auto; padding-top: 40px; color: var(--steel-300); font-size: 15px; line-height: 1.6; }
.overlay__meta p { margin-top: 8px; }
.overlay__meta a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.overlay__legal {
  margin-top: 24px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--steel-300);
}
.overlay__legal a { text-decoration: none; }

/* ---------- 8. HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  background: var(--navy-950);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform-origin: 50% 30%;
  max-width: none;
}
.hero__scrim { position: absolute; inset: 0; background: var(--scrim-hero); }
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero__label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-70);
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.hero__h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 26ch;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--white);
}
.hero__readout {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  line-height: 1.7;
  color: var(--white-70);
  text-align: right;
  flex: 0 1 260px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

@media (min-width: 1700px) {
  .hero__h1 { max-width: 30ch; }
}

/* The column cannot hold the headline at full measure and the 260px readout
   side by side, so the readout sits under the headline, still bottom-right. */
@media (min-width: 1100px) {
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero__readout { flex: 0 0 auto; align-self: flex-end; max-width: none; }
  .hero__readout > * { white-space: nowrap; }
}

/* ---------- 9. FIGURE STRIP ---------- */

.strip {
  background: var(--paper);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.2fr;
  gap: 24px;
}
.strip__grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.strip__grid figure:first-child img { object-position: 50% 40%; }
.strip__grid figcaption {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.figtext { font-weight: 500; font-size: 15px; color: var(--ink); }

/* ---------- 10. CHAPTER GROUNDS ---------- */

.ch { padding: 112px 0 96px; }
.ch--paper { background: var(--paper); color: var(--ink); }
.ch--dark { background: var(--navy-900); color: var(--white); }
.ch--darkest { background: var(--navy-950); color: var(--white); }
.ch--dark h2, .ch--darkest h2 { color: var(--white); }
.ch--dark h3, .ch--darkest h3 { color: var(--white); }
.ch--dark .lead, .ch--darkest .lead { color: var(--steel-300); }
.ch--paper h2 { color: var(--navy); }

.ch h2 { margin-bottom: 28px; }

/* ---------- 11. LEDGER ---------- */

.ledger { counter-reset: chap 0 led 0; }
.ledger > li {
  counter-increment: led;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ledger > li::before {
  content: counter(chap) "." counter(led);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}
.ledger .paren {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink-2);
  letter-spacing: 0;
}

/* counter-reset offsets give 1.1–1.8, 3.1–3.5, 4.1–4.5, 5.1–5.5, 6.1–6.6 */
.ledger--c1a { counter-reset: chap 1 led 0; }
.ledger--c1b { counter-reset: chap 1 led 4; }
.ledger--c3 { counter-reset: chap 3 led 0; }
.ledger--c4 { counter-reset: chap 4 led 0; }
.ledger--c5 { counter-reset: chap 5 led 0; }
.ledger--c6a { counter-reset: chap 6 led 0; }
.ledger--c6b { counter-reset: chap 6 led 3; }

/* smaller ledger rows used in the spec sheets */
.spec .ledger > li { font-size: 20px; }

/* dark grounds */
.ch--dark .ledger > li,
.ch--darkest .ledger > li { border-bottom-color: var(--line-dark); color: var(--white); }

/* definition ledger (chapter 03) */
.ledger--def > li {
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 6px;
  padding: 24px 0;
  align-items: start;
}
.ledger--def > li::before { grid-column: 1; grid-row: 1; }
.ledger--def .term {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
}
.ledger--def .desc {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--steel-300);
}
.ledger--def > li.is-result { border-top: 2px solid var(--steel); }
.ledger--def > li.is-result .desc { color: var(--white); font-weight: 500; }

/* definition ledger (chapter 07 contact) */
.dledger { border-top: 1px solid var(--line); margin-top: 32px; }
.dledger__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.dledger dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 4px;
}
.dledger dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dledger dd a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}
.dledger dd a:hover { color: var(--steel); border-bottom-color: var(--steel); }

/* ---------- 12. CHAPTER 01 ---------- */

.ch01__left { grid-column: 1 / span 5; }
.ch01__right { grid-column: 7 / span 6; }
/* row 1 = headings, row 2 = the two ledgers, so both start on one line */
.ch01__head, .ch01__aside { grid-row: 1; }
.ch01__lled, .ch01__rled { grid-row: 2; }
.ch01__aside { align-self: end; }
.ch01__aside h3 { margin-bottom: 24px; }
.ch01 .lead { margin-bottom: 24px; }

/* ---------- 13. OPENERS ---------- */

.opener {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--navy-950);
  margin: 0;
}
.opener--cyclonox, .opener--atom { min-height: 92vh; }
.opener__img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  max-width: none;
}
.opener--mission .opener__img { object-position: 50% 35%; }
.opener--cyclonox .opener__img { object-position: 50% 56%; }
.opener--atom .opener__img { object-position: 25% 50%; image-rendering: auto; }

/* CHAPTER 02 carries the longest text over the picture: deepen its scrim */
.opener--mission .opener__scrim {
  background: linear-gradient(90deg, rgba(14, 26, 51, 0.78) 0%, rgba(14, 26, 51, 0.42) 55%, rgba(14, 26, 51, 0.12) 100%);
}

/* CHAPTER 05 is mirrored so the rotor face on the left stays readable */
.opener--atom { min-height: 78vh; }
.opener--atom .opener__scrim {
  background: linear-gradient(270deg, rgba(14, 26, 51, 0.72) 0%, rgba(14, 26, 51, 0.25) 60%, rgba(14, 26, 51, 0.05) 100%);
}
.opener--atom .opener__inner { margin: 0 0 0 auto; text-align: right; }
.opener--atom .chlabel { flex-direction: row-reverse; justify-content: flex-start; }
.opener__scrim { position: absolute; inset: 0; background: var(--scrim-opener); }
.opener__inner {
  position: relative;
  z-index: 2;
  padding-bottom: 88px;
  padding-top: 88px;
}
.opener__inner h2 { color: var(--white); }
.opener--mission .opener__inner { max-width: min(60%, calc(var(--colmax) + var(--gutter) * 2)); }
.opener--mission .statement { color: var(--white); max-width: 22ch; margin-top: 24px; }

.plaque {
  position: absolute;
  left: auto;
  right: var(--gutter);
  bottom: 32px;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  background: var(--navy-950);
  padding: 12px 16px;
}
.opener--atom .plaque { left: var(--gutter); right: auto; }
.plaque .fig { color: var(--steel-300); }
.plaque__t { font-size: 14px; color: var(--white-80); }

/* ---------- 14. CHAPTER 03 / 06 ---------- */

.ch03__text { grid-column: 1 / span 7; }
.ch03__figs { grid-column: 9 / span 4; }
.ch06__figs { grid-column: 1 / span 4; }
.ch06__text { grid-column: 6 / span 7; }

.figstack { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.figstack figcaption { margin-top: 10px; }
.figstack .fig { color: var(--steel-300); }
.figstack img { width: 100%; object-fit: cover; }
.fig--260 img { height: 260px; }
.fig--200 img { height: 200px; }
.fig--300 img { height: 300px; }
.fig--150 img { height: 150px; }

.ch03 .lead, .ch06 .lead { margin-bottom: 8px; }
.ch03 .ledger { margin-top: 32px; }

.ch06__blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 8px;
}
.ch06__blocks p { color: var(--steel-300); }
.model {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.ch06 .model { color: var(--white); }
.ch06 .ledger > li { font-size: 19px; grid-template-columns: 40px 1fr; }

/* ---------- 15. SPEC SHEETS ---------- */

.spec { padding: 96px 0 112px; }
.spec__a { grid-column: 1 / span 6; }
.spec__b { grid-column: 8 / span 5; }
.spec__c { grid-column: 1 / span 5; }
.spec__d { grid-column: 7 / span 6; }
.spec__rowC { margin-top: 72px; }
.spec__a p, .spec__b p { font-size: 17px; line-height: 1.6; }
.spec h3 { color: var(--navy); }

/* performance band */
/* the white ground bleeds to the column edges, the type stays on the grid */
.perf {
  margin: 72px calc(var(--gutter) * -1) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px var(--gutter);
}
.perf__label { margin-bottom: 32px; }
/* stacked rows below 1100; three columns above */
.perf__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.perf__cell { padding: 24px 0; border-top: 1px solid var(--line); }
.perf__cell:first-child { padding-top: 0; border-top: 0; }
.perf__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .perf__grid { grid-template-columns: repeat(3, 1fr); }
  .perf__cell { padding: 0 28px; border-top: 0; border-left: 1px solid var(--line); }
  .perf__cell:first-child { padding-top: 0; padding-left: 0; border-left: 0; }
  .perf__cell:last-child { padding-right: 0; }
  .perf__num { font-size: clamp(22px, 1.85vw, 34px); white-space: nowrap; }
}
.perf__line {
  margin-top: 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- 16. CHAPTER 07 ---------- */

.ch07__text { grid-column: 1 / span 6; }
.ch07__fig { grid-column: 8 / span 5; }
.ch07__fig figure { height: 100%; }
.ch07__fig img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.ch07 h3 { color: var(--navy); }
.ch07 h2 { margin-bottom: 36px; }

/* ---------- 17. FOOTER ---------- */

.foot {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  padding: 40px 0;
  color: var(--steel-300);
}
.foot__grid {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 14px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.foot__mark { width: 28px; height: 28px; grid-column: 1; grid-row: 1 / span 2; }
.foot__legal { grid-column: 2; font-variant-numeric: tabular-nums; }
.foot__addr { grid-column: 2; grid-row: 2; }
.foot__links { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 10px; align-items: center; }
.foot__links a, .linkbtn {
  color: var(--steel-300);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  font: inherit;
  padding: 4px 0;
}
.foot__links a:hover, .linkbtn:hover { color: var(--white); border-bottom-color: var(--steel); }

/* ---------- 18. CONSENT BANNER ---------- */

.consent {
  position: fixed;
  left: auto;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 340px;
  max-width: calc(100% - 32px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 20px;
}
.consent[hidden] { display: none; }
/* While the banner is up, lift the hero content clear of it. */
.hero__inner { transition: padding-bottom 300ms cubic-bezier(.2,.7,.2,1); }
.consent-open .hero__inner { padding-bottom: 200px; }
@media (max-width: 759px) { .consent-open .hero__inner { padding-bottom: 260px; } }
.consent__body { font-size: 14px; line-height: 1.55; color: var(--ink); }
.consent__actions { display: flex; gap: 10px; margin-top: 16px; }
.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--navy);
}
.btn--solid { background: var(--navy); color: var(--white); }
.btn--solid:hover { background: var(--steel); border-color: var(--steel); }
.btn--ghost { color: var(--navy); }
.btn--ghost:hover { color: var(--steel); border-color: var(--steel); }
.consent__link { margin-top: 14px; font-size: 13px; }
.consent__link a { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- 19. LEGAL PAGES ---------- */

.legal { padding: 112px 0 96px; background: var(--paper); }
.legal__col { max-width: 720px; }
.legal h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 28px;
}
.legal h2 {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--navy);
  margin-top: 40px;
}
.legal p { font-size: 17px; line-height: 1.65; margin-top: 14px; }
.legal a { color: var(--navy); border-bottom: 1px solid var(--line); text-decoration: none; }
.legal a:hover { color: var(--steel); border-bottom-color: var(--steel); }
.legal .ledger { margin-top: 8px; }
.legal .ledger > li { font-size: 20px; }
.mono-inline {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.88em;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.legal .updated {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  margin-top: 48px;
}
.legal .storage {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.legal .storage__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.legal .storage dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 4px;
}
.legal .storage dd { margin: 0; font-size: 17px; line-height: 1.55; }

/* ---------- 20. RESPONSIVE: TABLET 760–1099 ---------- */

@media (max-width: 1099px) {
  :root { --gutter: 32px; --rail-w: 88px; }

  .rail { padding: 24px 0; align-items: center; }
  .rail__lockup { display: none; }
  .rail__mark { display: block; }
  .rail__legalname { display: none; }

  .rail__nav { margin-top: 32px; border-top: 0; padding-top: 0; width: 100%; }
  .rail__nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 12px 0;
    border-bottom: 0;
  }
  .rail__nav a::before { width: 100%; height: 2px; top: auto; bottom: 0; left: 0; }
  .rail__nav .t { display: none; }
  .rail__nav .idx { font-size: 12px; color: var(--ink-2); }
  .rail__nav a:hover .idx, .rail__nav a.is-active .idx { color: var(--steel); }

  .rail__foot { padding-top: 24px; display: flex; justify-content: center; }
  .rail__foot .mono-label,
  .rail__visit,
  .rail__mail,
  .rail__addr { display: none; }
  .rail__tel { margin-top: 0; }
  .rail__tel a { writing-mode: vertical-rl; border-bottom: 0; border-left: 1px solid var(--line); padding-left: 8px; font-size: 13px; letter-spacing: 0.04em; }

  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; }

  .ch01__left { grid-column: 1 / span 6; }
  .ch01__right { grid-column: 7 / span 6; }
  .ch03__text { grid-column: 1 / span 12; }
  .ch03__figs { grid-column: 1 / span 12; }
  .ch06__figs { grid-column: 1 / span 12; }
  .ch06__text { grid-column: 1 / span 12; }
  .ch07__text { grid-column: 1 / span 12; }
  .ch07__fig { grid-column: 1 / span 12; margin-top: 48px; }
  .ch07__fig img { height: 420px; }

  .ch03__figs, .ch06__figs { order: -1; margin-bottom: 40px; }
  .figstack { position: static; flex-direction: row; }
  .figstack figure { flex: 1 1 0; }
  .fig--260 img, .fig--200 img, .fig--300 img, .fig--150 img { height: 220px; }

  .opener--mission .opener__inner { max-width: 100%; }
}

/* ---------- 19b. SHORT VIEWPORTS: TIGHTEN THE RAIL ---------- */

@media (min-width: 1100px) and (max-height: 860px) {
  .rail { padding: 28px; }
  .rail__legalname { margin-top: 10px; }
  .rail__nav { margin-top: 24px; }
  .rail__nav a { padding: 10px 0 10px 14px; }
  .rail__foot { padding-top: 24px; }
  .rail__tel, .rail__mail { margin-top: 8px; }
  .rail__addr { margin-top: 10px; }
}

/* ---------- 20b. RESPONSIVE: STACK BELOW 900 ---------- */

@media (max-width: 899px) {
  .ch01__left { grid-column: 1 / span 12; }
  .ch01__right { grid-column: 1 / span 12; }
  .ch01__head { grid-row: 1; }
  .ch01__lled { grid-row: 2; }
  .ch01__aside { grid-row: 3; margin-top: 32px; align-self: start; }
  .ch01__rled { grid-row: 4; }

  .spec__a { grid-column: 1 / span 12; }
  .spec__b { grid-column: 1 / span 12; margin-top: 40px; }
  .spec__c { grid-column: 1 / span 12; }
  .spec__d { grid-column: 1 / span 12; margin-top: 56px; }
}

/* ---------- 21. RESPONSIVE: MOBILE < 760 ---------- */

@media (max-width: 759px) {
  :root { --gutter: 20px; }

  body { display: block; font-size: 16px; }
  .rail { display: none; }
  .topbar { display: flex; }
  .doc { padding-top: var(--bar-h); }
  section[id] { scroll-margin-top: var(--bar-h); }

  .hero { min-height: calc(100svh - var(--bar-h)); }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero__h1 { font-size: 38px; max-width: 100%; }
  .hero__readout { display: none; }

  .strip { padding: 40px 0; }
  .strip__grid { grid-template-columns: 1fr; gap: 32px; }
  .strip__grid img { height: 240px; }

  .ch { padding: 72px 0 64px; }
  .spec { padding: 64px 0 72px; }
  .g12 { grid-template-columns: 1fr; gap: 0; }
  .ch01__head, .ch01__aside, .ch01__lled, .ch01__rled,
  .ch03__text, .ch03__figs,
  .ch06__figs, .ch06__text,
  .spec__a, .spec__b, .spec__c, .spec__d,
  .ch07__text, .ch07__fig { grid-column: auto; }

  .ledger > li { font-size: 19px; grid-template-columns: 40px 1fr; padding: 16px 0; }
  .spec .ledger > li { font-size: 18px; }
  .ledger--def > li {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 8px;
  }
  .ledger--def > li::before { grid-column: 1; grid-row: 1; }
  .ledger--def .term { grid-column: 1; grid-row: 2; font-size: 20px; }
  .ledger--def .desc { grid-column: 1; grid-row: 3; font-size: 16px; }

  .ch06__blocks { grid-template-columns: 1fr; gap: 36px; }

  .figstack { flex-direction: row; gap: 16px; }
  .fig--260 img, .fig--200 img, .fig--300 img, .fig--150 img { height: 160px; }

  .opener, .opener--cyclonox, .opener--atom { min-height: 72svh; }
  .opener__img { top: 0; height: 100%; }
  .opener--cyclonox .opener__img { object-position: 60% 50%; }
  .opener--atom .opener__img { object-position: 40% 50%; }
  .opener__inner { padding-bottom: 56px; padding-top: 72px; }
  .plaque { position: static; align-self: flex-start; margin: 0 var(--gutter) 24px; padding: 12px 16px; }
  .opener--atom { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .opener--atom .opener__img { object-position: 30% 50%; }
  .opener--atom .opener__inner { margin: 0 auto 0 0; text-align: left; }
  .opener--atom .opener__scrim { background: var(--scrim-opener); }
  .opener--atom .chlabel { flex-direction: row; }

  .perf { padding: 32px var(--gutter); margin-top: 56px; }

  .dledger__row { grid-template-columns: 1fr; gap: 6px; }
  .ch07__fig img { height: 320px; }
  .ch07__fig { margin-top: 40px; }

  .foot { padding: 32px 0; }
  .foot__grid { grid-template-columns: 1fr; row-gap: 16px; }
  .foot__mark { grid-row: auto; }
  .foot__legal, .foot__addr, .foot__links { grid-column: auto; grid-row: auto; }
  .foot__links { flex-wrap: wrap; }

  .consent { left: 16px; right: 16px; bottom: 16px; width: auto; }

  .legal { padding: 72px 0 64px; }
  .legal .storage__row { grid-template-columns: 1fr; gap: 6px; }
}

@media (min-width: 760px) {
  .overlay { display: none; }
}

/* ---------- 22. MOTION ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .rail__nav a::before,
  .rail__nav .t,
  .rail__nav .idx,
  .foot__links a,
  .linkbtn,
  .dledger dd a,
  .rail__tel a,
  .rail__mail a,
  .btn,
  .legal a { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease; }

  @keyframes kb {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
  }
  .hero__img { animation: kb 28s linear forwards; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms cubic-bezier(.2, .7, .2, 1), transform 600ms cubic-bezier(.2, .7, .2, 1);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js [data-parallax] { will-change: transform; }
}
