@font-face {
  font-family: "Oswald";
  src: url("/assets/Oswald-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --ink: #0b0d0f;
  --panel: #11151a;
  --panel-2: #171c22;
  --paper: #f4f1e9;
  --muted: #9ba5ae;
  --line: #303740;
  --red: #ff3b30;
  --purple: #b98cff;
  --green: #5ee889;
  --cyan: #68d8ff;
  --max: 1480px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: Inter, Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
  color-scheme: dark;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input {
  font: inherit;
}

button,
.button {
  min-height: 48px;
}

button {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
blockquote {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

p {
  margin: 0;
}

.frame {
  width: min(calc(100% - 56px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 15, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 8px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.brand i {
  color: var(--red);
  font-style: normal;
}

.desktop-nav {
  display: flex;
  min-width: 0;
  align-self: stretch;
  align-items: stretch;
}

.desktop-nav a {
  display: flex;
  position: relative;
  padding: 0 13px;
  align-items: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--paper);
}

.desktop-nav a[aria-current="page"]::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  content: "";
  background: var(--red);
}

.nav-toggle {
  display: none;
  padding: 0 8px 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle b {
  display: grid;
  width: 28px;
  gap: 7px;
}

.nav-toggle b i {
  display: block;
  height: 2px;
  background: var(--paper);
  transition: transform 180ms ease-out;
}

.nav-toggle[aria-expanded="true"] b i:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] b i:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  right: 0;
  left: 0;
  height: calc(100vh - 74px);
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.mobile-nav-links {
  display: grid;
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}

.mobile-nav-links a {
  display: flex;
  min-height: 74px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-family: var(--display);
  font-size: 1.35rem;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-nav-links a[aria-current="page"] {
  color: var(--red);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #07090b;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: 55% center;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.9) 36%, rgba(7, 9, 11, 0.24) 68%, rgba(7, 9, 11, 0.48) 100%), linear-gradient(0deg, rgba(7, 9, 11, 0.76), transparent 40%);
}

.hero-grid {
  display: grid;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 9fr) minmax(240px, 3fr);
  gap: 4vw;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  max-width: 950px;
  padding: clamp(68px, 9vh, 118px) 0 80px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.red { color: var(--red); }
.eyebrow.purple { color: var(--purple); }
.eyebrow.green { color: var(--green); }
.eyebrow.cyan { color: var(--cyan); }

.hero h1 {
  max-width: 980px;
  font-size: clamp(4.8rem, 8.2vw, 9.4rem);
  line-height: 0.86;
  text-wrap: balance;
}

.hero-dek {
  max-width: 720px;
  margin-top: 34px;
  color: #c5cbd1;
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  margin-top: 42px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-width: 190px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  border-color: var(--red);
  background: var(--red);
  color: #090909;
}

.button-primary:hover {
  background: #ff625a;
}

.button-ghost {
  background: rgba(11, 13, 15, 0.7);
  color: var(--paper);
}

.button-ghost:hover {
  border-color: var(--paper);
}

.timing-rail {
  display: grid;
  align-content: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(11, 13, 15, 0.55);
}

.timing-rail > div {
  display: grid;
  min-height: 98px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
}

.timing-rail > div:first-child {
  border-top: 1px solid var(--line);
}

.timing-rail span,
.timing-rail em {
  font-size: 0.75rem;
  font-style: normal;
}

.timing-rail strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.timing-rail > div:nth-child(1) span { color: var(--purple); }
.timing-rail > div:nth-child(2) span { color: var(--green); }
.timing-rail > div:nth-child(3) span { color: var(--cyan); }
.timing-rail .pit { background: var(--red); color: var(--ink); }
.timing-rail .pit span { color: var(--ink); }

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.ticker-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ticker span {
  padding: 16px 18px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.ticker span:last-child {
  border-right: 1px solid var(--line);
}

.section {
  padding: clamp(80px, 10vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 58px;
}

.section-head h2,
.note-section h2,
.prose-narrow h2 {
  max-width: 1050px;
  font-size: clamp(3.5rem, 6.5vw, 7rem);
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
  gap: 60px;
  align-items: end;
}

.split-head > p {
  max-width: 620px;
  color: var(--muted);
}

.sector-console {
  display: grid;
  border: 1px solid var(--line);
  grid-template-columns: minmax(300px, 0.6fr) minmax(0, 1.4fr);
}

.sector-tabs {
  display: grid;
  border-right: 1px solid var(--line);
}

.sector-tabs button {
  display: grid;
  min-height: 128px;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  grid-template-columns: 48px 70px 1fr;
  gap: 18px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.sector-tabs button:last-child {
  border-bottom: 0;
}

.sector-tabs button:hover,
.sector-tabs button[aria-selected="true"] {
  background: var(--panel-2);
}

.sector-tabs button[aria-selected="true"] {
  box-shadow: inset 4px 0 var(--sector-color, var(--purple));
}

.sector-tabs span,
.sector-tabs em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
}

.sector-tabs strong {
  font-family: var(--display);
  font-size: 2.2rem;
}

.sector-tabs button:nth-child(1) { --sector-color: var(--purple); }
.sector-tabs button:nth-child(2) { --sector-color: var(--green); }
.sector-tabs button:nth-child(3) { --sector-color: var(--cyan); }

.sector-readout {
  display: grid;
  min-width: 0;
  padding: clamp(34px, 5vw, 74px);
  background: linear-gradient(135deg, var(--panel), var(--ink));
  align-content: center;
}

.sector-readout > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--purple);
  font-family: var(--mono);
}

.sector-readout > div:first-child span {
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 1;
}

.sector-readout > div:first-child em {
  align-self: center;
  font-size: 0.76rem;
  font-style: normal;
}

.sector-readout h3 {
  margin-top: 28px;
  font-size: clamp(3rem, 5vw, 5.8rem);
}

.sector-readout > p {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.sector-readout dl,
.strategy-output dl,
.circuit-grid dl {
  display: grid;
  margin: 34px 0 0;
  grid-template-columns: repeat(3, 1fr);
}

.sector-readout dl div,
.strategy-output dl div,
.circuit-grid dl div {
  min-width: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 1.1rem;
}

.editorial-section {
  background: var(--panel);
}

.story-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(12, 1fr);
}

.story {
  display: flex;
  min-height: 430px;
  padding: clamp(26px, 3.5vw, 52px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-column: span 3;
  flex-direction: column;
}

.story-lead { grid-column: span 6; }
.story-wide { min-height: 330px; grid-column: span 12; }

.story > span,
.story-grid a,
.concept-grid > article > span,
.tech-chapter span,
.timeline article span,
.strategy-ledger > article > span,
.circuit-grid > article > span,
.values-grid > article > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.story h3 {
  margin: 28px 0 24px;
  font-size: clamp(2.4rem, 3.8vw, 4.4rem);
}

.story p {
  max-width: 720px;
  color: var(--muted);
}

.story a {
  display: flex;
  margin-top: auto;
  padding-top: 30px;
  justify-content: space-between;
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
}

.story a b { color: var(--red); font-size: 1.5rem; }

.principle-band {
  padding: 0;
}

.principle-grid {
  display: grid;
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.principle-grid > div {
  min-height: 330px;
  padding: clamp(30px, 4vw, 58px);
  border-right: 1px solid var(--line);
}

.principle-grid span {
  color: var(--green);
  font-family: var(--mono);
}

.principle-grid h3 {
  margin: 34px 0 22px;
  font-size: clamp(2.3rem, 3.6vw, 4.2rem);
}

.principle-grid p {
  color: var(--muted);
}

.page-lead {
  padding: clamp(72px, 9vw, 138px) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, var(--ink), var(--panel));
}

.page-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.55fr);
  gap: 70px;
  align-items: end;
}

.page-lead h1 {
  max-width: 1040px;
  font-size: clamp(4.3rem, 7.8vw, 9rem);
}

.page-lead .lead {
  max-width: 620px;
  color: #c4cbd1;
  font-size: 1.16rem;
}

.session-grid,
.concept-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.session-grid article,
.concept-grid article {
  min-height: 560px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.session-grid span,
.concept-grid span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.session-grid h2,
.concept-grid h2 {
  margin: 40px 0 28px;
  font-size: clamp(2.7rem, 4vw, 4.6rem);
}

.session-grid p,
.concept-grid p {
  margin-top: 18px;
  color: var(--muted);
}

.checklist-section,
.simulator-section,
.note-section {
  background: var(--panel);
}

.checklist-layout,
.simulator-grid,
.method-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(42px, 8vw, 130px);
  align-items: start;
}

.checklist-layout h2,
.simulator-copy h2,
.method-grid h2 {
  font-size: clamp(3.6rem, 6vw, 6.8rem);
}

.checklist-layout > div:first-child > p:not(.eyebrow),
.simulator-copy > p:not(.eyebrow) {
  margin-top: 28px;
  color: var(--muted);
}

.progress-readout {
  padding: 16px 0;
  border-bottom: 2px solid var(--green);
  color: var(--green) !important;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.weekend-checklist {
  border-top: 1px solid var(--line);
}

.weekend-checklist button {
  display: grid;
  width: 100%;
  min-height: 88px;
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  grid-template-columns: 52px minmax(120px, 0.6fr) 1fr;
  gap: 20px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.weekend-checklist button:hover,
.weekend-checklist button[aria-pressed="true"] {
  background: var(--panel-2);
}

.weekend-checklist button[aria-pressed="true"] {
  box-shadow: inset 4px 0 var(--green);
}

.weekend-checklist button > span {
  color: var(--green);
  font-family: var(--mono);
}

.weekend-checklist button > strong {
  font-family: var(--display);
  font-size: 1.5rem;
}

.weekend-checklist button > em {
  color: var(--muted);
  font-style: normal;
}

.prose-narrow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.6fr);
  gap: 70px;
  align-items: end;
}

.prose-narrow .eyebrow { grid-column: 1 / -1; margin-bottom: -40px; }
.prose-narrow > p:last-child { color: var(--muted); }

.compound-controls {
  display: grid;
  margin: 42px 0 0;
  padding: 0;
  border: 1px solid var(--line);
}

.compound-controls legend {
  padding: 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.compound-controls label {
  display: grid;
  min-height: 74px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 24px 42px 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.compound-controls label:last-child { border-bottom: 0; }
.compound-controls input { width: 20px; height: 20px; accent-color: var(--red); }
.compound-controls em { color: var(--muted); font-size: 0.74rem; font-style: normal; }

.tire {
  display: block;
  width: 30px;
  height: 30px;
  border: 5px solid;
  border-radius: 50%;
}

.tire.soft { border-color: var(--red); }
.tire.medium { border-color: #ffd65a; }
.tire.hard { border-color: var(--paper); }

.switch-row {
  display: grid;
  position: relative;
  min-height: 82px;
  margin: 22px 0;
  padding: 14px 78px 14px 16px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.switch-row span { display: grid; }
.switch-row em { color: var(--muted); font-size: 0.75rem; font-style: normal; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > i { position: absolute; top: 22px; right: 16px; width: 48px; height: 26px; border: 1px solid var(--line); background: var(--ink); }
.switch-row > i::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ""; background: var(--muted); transition: transform 180ms ease-out; }
.switch-row input:checked + i { border-color: var(--green); }
.switch-row input:checked + i::after { background: var(--green); transform: translateX(21px); }
.switch-row:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }

.strategy-output {
  min-height: 590px;
  padding: clamp(32px, 5vw, 74px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #12171d, #080a0c);
}

.strategy-output > span { color: var(--purple); font-family: var(--mono); font-size: 0.75rem; }
.strategy-output h3 { margin: 38px 0 28px; font-size: clamp(3.3rem, 5.8vw, 6.6rem); }
.strategy-output > p { max-width: 740px; color: var(--muted); font-size: 1.1rem; }
.strategy-output dl { margin-top: 80px; }

.strategy-ledger {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
}

.strategy-ledger article {
  min-height: 340px;
  padding: clamp(28px, 4vw, 50px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strategy-ledger h2 { margin: 32px 0 22px; font-size: clamp(2.8rem, 4.5vw, 5rem); }
.strategy-ledger p { max-width: 650px; color: var(--muted); }

.filter-bar {
  display: flex;
  margin-bottom: 32px;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-buttons button,
.glossary-tools button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: var(--display);
  text-transform: uppercase;
}

.filter-buttons button:hover,
.filter-buttons button[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--ink); }
.filter-bar > p { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; white-space: nowrap; }

.circuit-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.circuit-grid > article {
  min-width: 0;
  min-height: 570px;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.circuit-grid h2 { margin: 32px 0 24px; font-size: clamp(2.5rem, 3.6vw, 4.2rem); }
.circuit-grid p { color: var(--muted); }
.circuit-grid dl { margin-top: 28px; grid-template-columns: repeat(2, 1fr); }

.track-shape {
  position: relative;
  width: 100%;
  height: 160px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(0deg, transparent 0 29px, rgba(48, 55, 64, 0.3) 30px), repeating-linear-gradient(90deg, transparent 0 29px, rgba(48, 55, 64, 0.3) 30px);
}

.track-shape::before {
  position: absolute;
  inset: 28% 14%;
  border: 5px solid var(--cyan);
  content: "";
  transform: skew(-18deg) rotate(-5deg);
}

.shape-fast::before { inset: 35% 8%; border-radius: 50%; transform: skew(-28deg); }
.shape-tech::before { inset: 18% 22%; border-color: var(--purple); transform: skew(14deg) rotate(24deg); }
.shape-heat::before { inset: 22% 16%; border-color: var(--red); border-radius: 45% 10%; transform: rotate(-12deg); }
.shape-altitude::before { inset: 30% 12%; border-color: var(--green); clip-path: polygon(0 50%, 25% 0, 50% 75%, 70% 25%, 100% 65%, 85% 100%, 45% 92%, 16% 80%); }
.shape-weather::before { inset: 22% 18%; border-color: var(--cyan); border-radius: 30% 55% 25% 60%; transform: rotate(12deg); }

.tech-stack { padding-bottom: 0; }
.tech-chapter {
  display: grid;
  min-height: 590px;
  padding: clamp(54px, 7vw, 104px) 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 8vw;
  align-items: center;
}
.tech-chapter h2 { margin: 34px 0 28px; font-size: clamp(3.6rem, 6vw, 7rem); }
.tech-chapter p { max-width: 700px; margin-top: 18px; color: var(--muted); }
.force-diagram { display: grid; position: relative; min-height: 330px; padding: 34px; border: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(48, 55, 64, 0.3) 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(48, 55, 64, 0.3) 40px); place-items: center; font-family: var(--mono); }
.force-diagram::after { width: 46%; height: 18%; border: 4px solid var(--paper); content: ""; transform: skew(-24deg); }
.force-diagram > * { position: absolute; }
.aero-diagram i { top: 28px; right: 20%; left: 20%; height: 2px; background: var(--cyan); box-shadow: 0 12px var(--cyan), 0 24px var(--cyan); }
.aero-diagram b { top: 70px; color: var(--cyan); }
.aero-diagram span { bottom: 80px; color: var(--purple); font-size: 4rem; }
.aero-diagram strong { bottom: 28px; }
.drag-diagram span { left: 10%; color: var(--cyan); font-size: 4rem; }.drag-diagram b { right: 12%; color: var(--red); font-size: 4rem; }.drag-diagram strong { bottom: 34px; }
.grip-diagram i { bottom: 72px; width: 24%; height: 20px; background: var(--paper); }.grip-diagram i:first-child { left: 18%; }.grip-diagram i:nth-child(2) { right: 18%; }.grip-diagram span { bottom: 30px; }.grip-diagram strong { top: 48px; color: var(--green); font-size: 4rem; }
.tyre-diagram { grid-template-columns: 1fr 1fr 1fr; }.tyre-diagram::after { display: none; }.tyre-diagram span { position: static; color: var(--cyan); }.tyre-diagram strong { position: static; color: var(--green); }.tyre-diagram b { position: static; color: var(--red); }.tyre-diagram i { position: static; width: 64px; height: 64px; border: 8px solid var(--paper); border-radius: 50%; }
.energy-diagram { grid-template-columns: 1fr auto 1fr auto 1fr; }.energy-diagram::after { display: none; }.energy-diagram > * { position: static; }.energy-diagram i { color: var(--green); font-size: 3rem; }.energy-diagram strong { padding: 24px; border: 2px solid var(--green); }

.history-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.5fr); gap: 90px; align-items: end; }
.history-intro blockquote { margin: 0; font-family: var(--display); font-size: clamp(3.4rem, 6vw, 7rem); font-weight: 580; line-height: 1; }
.history-intro p { color: var(--muted); }
.timeline-section { background: var(--panel); }
.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; min-height: 330px; padding: 46px 0; border-bottom: 1px solid var(--line); grid-template-columns: 180px minmax(270px, 0.7fr) minmax(0, 1fr); gap: 55px; align-items: start; }
.timeline time { color: var(--cyan); font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.timeline h2 { margin-top: 24px; font-size: clamp(2.8rem, 4.5vw, 5.2rem); }
.timeline article > p { max-width: 700px; color: var(--muted); }

.glossary-tools { display: grid; margin-bottom: 34px; grid-template-columns: 1fr auto; gap: 10px; }
.glossary-tools label { display: grid; gap: 10px; }
.glossary-tools label span { color: var(--green); font-family: var(--mono); font-size: 0.7rem; }
.glossary-tools input { width: 100%; min-height: 64px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--paper); font-family: var(--display); font-size: 1.4rem; }
.glossary-tools button { align-self: end; min-width: 140px; min-height: 64px; }
.glossary-intro { display: flex; margin-bottom: 48px; justify-content: space-between; gap: 30px; color: var(--muted); }
.glossary-intro > p:first-child { max-width: 800px; }
.glossary-intro > p:last-child { font-family: var(--mono); font-size: 0.74rem; white-space: nowrap; }
.glossary-list { border-top: 1px solid var(--line); }
.glossary-list details { border-bottom: 1px solid var(--line); }
.glossary-list summary { display: grid; min-height: 92px; padding: 20px 10px; grid-template-columns: 80px 1fr minmax(130px, 0.35fr); gap: 24px; align-items: center; cursor: pointer; list-style: none; }
.glossary-list summary::-webkit-details-marker { display: none; }
.glossary-list summary > span { color: var(--green); font-family: var(--mono); }
.glossary-list summary > strong { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 3.2rem); }
.glossary-list summary > em { color: var(--muted); font-style: normal; }
.glossary-list summary::after { content: "+"; color: var(--green); font-family: var(--mono); font-size: 1.7rem; }
.glossary-list summary { grid-template-columns: 70px 1fr minmax(120px, 0.3fr) 30px; }
.glossary-list details[open] summary::after { content: "−"; }
.glossary-list details > div { display: grid; padding: 0 40px 34px 94px; grid-template-columns: 1fr 1fr; gap: 40px; }
.glossary-list details > div p { color: var(--muted); }
.glossary-empty { padding: 80px 30px; border: 1px solid var(--line); text-align: center; }
.glossary-empty span { color: var(--red); font-family: var(--mono); }
.glossary-empty h2 { margin: 24px 0; font-size: clamp(3rem, 5vw, 5rem); }
.glossary-empty p { color: var(--muted); }

.about-manifesto { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr); gap: 90px; align-items: start; }
.about-manifesto blockquote { margin: 0; padding-left: 30px; border-left: 5px solid var(--red); font-family: var(--display); font-size: clamp(3rem, 5.5vw, 6.5rem); font-weight: 560; line-height: 1; }
.about-manifesto > div p { margin-bottom: 24px; color: var(--muted); }
.values-grid { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); }
.values-grid article { min-height: 360px; padding: clamp(28px, 4vw, 54px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-grid h2 { margin: 28px 0 20px; font-size: clamp(2.8rem, 4vw, 4.8rem); }
.values-grid p { max-width: 660px; color: var(--muted); }
.method-section { background: var(--panel); }
.method-grid ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.method-grid li { display: grid; min-height: 110px; padding: 18px 0; border-bottom: 1px solid var(--line); grid-template-columns: 70px 1fr; gap: 20px; align-items: center; }
.method-grid li > span { color: var(--cyan); font-family: var(--mono); }
.method-grid li strong { font-family: var(--display); font-size: 1.8rem; }
.method-grid li p { margin-top: 5px; color: var(--muted); }

.not-found { min-height: 740px; padding: clamp(80px, 10vw, 150px) 0; }
.not-found-grid { display: grid; grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1.1fr) minmax(250px, 0.42fr); gap: 50px; align-items: start; }
.error-number { color: var(--red); font-family: var(--display); font-size: clamp(7rem, 14vw, 14rem); font-weight: 650; line-height: 0.8; writing-mode: vertical-rl; }
.not-found h1 { font-size: clamp(4rem, 7vw, 8rem); }
.not-found-grid > div:nth-child(2) > p:not(.eyebrow) { max-width: 690px; margin-top: 28px; color: var(--muted); }
.not-found aside { display: grid; padding: 22px; border: 1px solid var(--line); font-family: var(--mono); gap: 14px; }
.not-found aside span { color: var(--red); }.not-found aside em { color: var(--green); font-style: normal; }.not-found aside p { color: var(--muted); font-family: var(--text); font-size: 0.85rem; }

.site-footer {
  min-height: 260px;
  padding: 56px 0 66px;
  background: var(--paper);
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(330px, 0.8fr) minmax(340px, 1.2fr);
  gap: clamp(38px, 6vw, 100px);
}

.brand-small { color: var(--ink); font-size: 2.2rem; }
.footer-thesis { max-width: 320px; margin-top: 20px; color: #4d555c; font-size: 0.86rem; }
.site-footer .mobile-nav-links { border-color: #b9bdba; }
.site-footer .mobile-nav-links a { min-height: 48px; padding: 8px 12px; border-color: #c7cbc8; font-size: 1rem; }
.footer-label { color: var(--red); font-family: var(--mono); font-size: 0.7rem; }
.legal-disclaimer { margin-top: 18px; font-size: 0.83rem; font-weight: 650; line-height: 1.55; }

@media (max-width: 1180px) {
  .desktop-nav a { padding-inline: 9px; font-size: 0.86rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .story { grid-column: span 6; }
  .story-lead, .story-wide { grid-column: span 12; }
  .circuit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { min-height: 74px; }
  .hero, .hero-grid { min-height: 850px; }
  .hero-grid { grid-template-columns: 1fr; align-content: end; }
  .hero-copy { min-height: 620px; padding-bottom: 38px; }
  .timing-rail { display: grid; border-top: 1px solid var(--line); border-right: 0; border-left: 0; grid-template-columns: repeat(4, 1fr); }
  .timing-rail > div { min-height: 90px; border-right: 1px solid var(--line); border-bottom: 0; grid-template-columns: 1fr; gap: 2px; }
  .timing-rail > div:first-child { border-top: 0; }
  .timing-rail strong { font-size: 0.82rem; }
  .split-head, .page-lead-grid, .prose-narrow, .history-intro, .about-manifesto { grid-template-columns: 1fr; gap: 34px; }
  .prose-narrow .eyebrow { margin-bottom: 0; }
  .sector-console { grid-template-columns: 1fr; }
  .sector-tabs { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
  .sector-tabs button { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 0; grid-template-columns: 1fr; gap: 3px; }
  .sector-tabs button[aria-selected="true"] { box-shadow: inset 0 4px var(--sector-color); }
  .session-grid, .concept-grid { grid-template-columns: 1fr; }
  .session-grid article, .concept-grid article { min-height: 0; }
  .checklist-layout, .simulator-grid, .method-grid { grid-template-columns: 1fr; }
  .tech-chapter { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 130px 1fr; }
  .timeline article > p { grid-column: 2; }
  .not-found-grid { grid-template-columns: 160px 1fr; }
  .not-found aside { grid-column: 2; }
  .error-number { grid-row: span 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .frame { width: min(calc(100% - 28px), var(--max)); }
  .brand { font-size: 1.8rem; }
  .nav-toggle { min-width: 108px; }
  .mobile-nav-links { grid-template-columns: 1fr; }
  .mobile-nav-links a { min-height: 58px; }
  .hero, .hero-grid { min-height: 770px; }
  .hero-media { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.88) 58%, rgba(7, 9, 11, 0.15) 100%); }
  .hero-copy { min-height: 590px; padding: 280px 0 30px; justify-content: flex-end; }
  .hero h1 { max-width: 520px; font-size: clamp(4rem, 18vw, 6rem); }
  .hero-dek { margin-top: 22px; font-size: 1rem; }
  .actions { width: 100%; margin-top: 28px; flex-direction: column; }
  .actions .button { width: 100%; }
  .timing-rail { overflow-x: auto; grid-template-columns: repeat(4, minmax(150px, 1fr)); }
  .ticker-row { grid-template-columns: repeat(2, 1fr); }
  .ticker span { border-bottom: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 38px; }
  .section-head h2, .note-section h2, .prose-narrow h2 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .sector-tabs { grid-template-columns: 1fr; }
  .sector-tabs button { min-height: 80px; border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 42px 55px 1fr; }
  .sector-readout { padding: 28px 20px; }
  .sector-readout > div:first-child { flex-direction: column; gap: 5px; }
  .sector-readout dl, .strategy-output dl { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story, .story-lead, .story-wide { min-height: 370px; grid-column: 1; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid > div { min-height: 260px; }
  .page-lead { padding: 70px 0; }
  .page-lead h1 { font-size: clamp(3.8rem, 16vw, 5.4rem); }
  .session-grid h2, .concept-grid h2 { font-size: 3rem; }
  .weekend-checklist button { grid-template-columns: 42px 1fr; gap: 12px; }
  .weekend-checklist button > em { grid-column: 2; }
  .compound-controls label { grid-template-columns: 24px 38px 1fr; }
  .compound-controls em { display: none; }
  .strategy-output { min-height: 0; padding: 28px 20px; }
  .strategy-output dl { margin-top: 40px; }
  .strategy-ledger, .values-grid { grid-template-columns: 1fr; }
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .filter-buttons { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
  .filter-buttons button:first-child { grid-column: 1 / -1; }
  .circuit-grid { grid-template-columns: 1fr; }
  .circuit-grid > article { min-height: 0; }
  .tech-chapter { min-height: 0; padding-block: 70px; }
  .force-diagram { min-height: 270px; padding: 16px; }
  .tyre-diagram, .energy-diagram { font-size: 0.68rem; }
  .timeline article { padding-left: 18px; border-left: 2px solid var(--cyan); grid-template-columns: 1fr; gap: 20px; }
  .timeline article > p { grid-column: 1; }
  .glossary-tools { grid-template-columns: 1fr; }
  .glossary-tools button { width: 100%; }
  .glossary-intro { align-items: flex-start; flex-direction: column; }
  .glossary-list summary { min-height: 100px; grid-template-columns: 38px 1fr 26px; gap: 12px; }
  .glossary-list summary > em { grid-column: 2; grid-row: 2; }
  .glossary-list summary::after { grid-column: 3; grid-row: 1 / 3; }
  .glossary-list details > div { padding: 0 16px 28px 50px; grid-template-columns: 1fr; gap: 12px; }
  .about-manifesto blockquote { padding-left: 18px; }
  .not-found { min-height: 650px; }
  .not-found-grid { grid-template-columns: 1fr; }
  .error-number { writing-mode: horizontal-tb; }
  .not-found aside { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: 1; }
  .site-footer .mobile-nav-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 390px) {
  .frame { width: min(calc(100% - 22px), var(--max)); }
  .brand { gap: 5px; font-size: 1.6rem; }
  .nav-toggle { min-width: 96px; padding-inline: 10px 7px; gap: 8px; }
  .hero h1 { font-size: clamp(3.75rem, 17.5vw, 4.4rem); }
  .ticker span { padding-inline: 10px; font-size: 0.62rem; }
  .filter-buttons { grid-template-columns: 1fr; }
  .filter-buttons button:first-child { grid-column: 1; }
  .energy-diagram { grid-template-columns: 1fr; gap: 10px; }
  .energy-diagram i { transform: rotate(90deg); }
  .site-footer .mobile-nav-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

