/* Arch Public case study pages. One stylesheet for every study.
   Tokens come from the Arch Public Design System and the case study house deck.
   Do not fork this file per study: change it here and rebuild every page. */

@font-face { font-family: "Mulish"; font-weight: 400; font-style: normal; font-display: swap; src: url("/case-studies-2/_b/04501768-5c3f-4610-a6b2-2056272d364d/assets/fonts/mulish-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 600; font-style: normal; font-display: swap; src: url("/case-studies-2/_b/04501768-5c3f-4610-a6b2-2056272d364d/assets/fonts/mulish-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-style: normal; font-display: swap; src: url("/case-studies-2/_b/04501768-5c3f-4610-a6b2-2056272d364d/assets/fonts/mulish-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 800; font-style: normal; font-display: swap; src: url("/case-studies-2/_b/04501768-5c3f-4610-a6b2-2056272d364d/assets/fonts/mulish-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 900; font-style: normal; font-display: swap; src: url("/case-studies-2/_b/04501768-5c3f-4610-a6b2-2056272d364d/assets/fonts/mulish-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/case-studies-2/_b/04501768-5c3f-4610-a6b2-2056272d364d/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("/case-studies-2/_b/04501768-5c3f-4610-a6b2-2056272d364d/assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0B1656;
  --navy-deep: #070F3D;
  --navy-raised: #1B2A6E;
  --navy-rule: #303F86;
  --blue: #244BD8;
  --blue-hover: #1B3AB7;
  --blue-50: #EEF2FF;
  --blue-100: #DBE3FE;
  --blue-200: #B4C2FC;
  --blue-300: #8499F6;
  --lavender: #F2F4FB;
  --rail: #DDE2F2;
  --dot: #8794C8;

  --ink: #0B1656;
  --body: #2F3548;
  --body-2: #4A5163;
  --muted: #6B7387;
  --hair: #E4E7EE;
  --rule: #CFD4DE;
  --paper: #FFFFFF;
  --paper-2: #F7F8FB;

  --on-navy: #FFFFFF;
  --on-navy-body: #C9CCDA;
  --on-navy-small: #989DB8;
  --on-navy-label: #8499F6;

  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 32px;
  --section-y: 112px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 22, 86, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 22, 86, 0.08);
  --nav-h: 64px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.navy :focus-visible, .site-nav :focus-visible, .site-footer :focus-visible { outline-color: var(--blue-200); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 800; color: var(--ink); }
.mono, .num { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--navy); padding: 8px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section + .section.white, .section.white + .section.white { border-top: 1px solid var(--hair); }
.navy { background: var(--navy); color: var(--on-navy-body); }
.navy h1, .navy h2, .navy h3, .navy strong { color: var(--on-navy); }
.navy a { color: var(--blue-200); }
.navy a:hover { color: #FFFFFF; }
.tint { background: var(--paper-2); }

/* ---------- Type ---------- */
.eyebrow { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; color: var(--blue); margin-bottom: 16px; }
.navy .eyebrow { color: var(--on-navy-label); }
.h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.subhead { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; color: var(--blue); margin-top: 14px; line-height: 1.4; }
.navy .subhead { color: var(--on-navy-label); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; }
.prose { max-width: 760px; display: grid; gap: 20px; }
.prose-wide { max-width: 900px; }
.section-head { display: grid; gap: 0; margin-bottom: 48px; max-width: 860px; }
.section-head .lead, .section-head .prose { margin-top: 20px; }
.small-print { font-size: 13.5px; line-height: 1.55; font-style: italic; color: var(--muted); margin-top: 48px; max-width: 900px; }
.navy .small-print { color: var(--on-navy-small); }
.note { font-size: 16px; color: var(--muted); }
.navy .note { color: var(--on-navy-small); }

/* ---------- Site nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 22, 86, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.site-nav .brand { display: inline-flex; align-items: center; flex: none; }
.site-nav .brand img { height: 28px; width: auto; }
.site-nav .nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link { color: rgba(255, 255, 255, 0.82); font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.nav-link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--blue-300); }

.toc { position: relative; }
.toc summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { transition: transform 200ms var(--ease); }
.toc[open] summary svg { transform: rotate(180deg); }
.toc-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 24px 64px -12px rgba(11, 22, 86, 0.28); padding: 8px; }
.toc-panel ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc-panel a { display: flex; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.35; }
.toc-panel a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.toc-panel a:hover, .toc-panel a[aria-current="true"] { background: var(--blue-50); color: var(--blue); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-sans); font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none; border-radius: 999px; padding: 15px 26px; border: 1px solid transparent; transition: transform 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease); cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn.btn-primary:hover { background: var(--blue-hover); color: #FFFFFF; box-shadow: var(--shadow-md); }
.btn.btn-light { background: #FFFFFF; color: var(--navy); }
.btn.btn-light:hover { background: var(--blue-50); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 104px; overflow: hidden; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; margin: 0 0 56px; padding: 0; list-style: none; color: var(--on-navy-small); }
.breadcrumb a { color: var(--on-navy-body); text-decoration: none; }
.breadcrumb a:hover { color: #FFFFFF; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--navy-rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 88px); font-weight: 900; line-height: 1.0; letter-spacing: -0.03em; color: #FFFFFF; }
.hero h1.long { font-size: clamp(36px, 4.8vw, 66px); line-height: 1.05; letter-spacing: -0.025em; }
.hero .subtitle { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--on-navy-body); margin-top: 28px; max-width: 760px; }
.hero .tagline { font-size: 17px; line-height: 1.6; font-style: italic; color: var(--on-navy-small); margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--navy-rule); max-width: 760px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.hero-meta li { font-size: 14px; font-weight: 600; color: var(--on-navy-body); border: 1px solid var(--navy-rule); border-radius: 999px; padding: 6px 14px; }
.hero-meta li.ticker { font-family: var(--font-mono); font-weight: 700; color: #FFFFFF; background: var(--navy-raised); border-color: var(--navy-raised); }
.hero-art { color: var(--dot); }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Results (why now) ---------- */
.results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.result-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.result-card h3 { font-size: 21px; font-weight: 800; line-height: 1.3; }
.result-card .meta { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.result-card .spacer { flex: 1; min-height: 24px; }
.result-card .label { font-size: 14px; font-weight: 700; color: var(--muted); }
.result-card .figure { font-family: var(--font-mono); font-weight: 700; font-size: clamp(44px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; color: var(--blue); margin: 4px 0 18px; }
.result-card dl { margin: 0; }
.result-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.result-card dt { color: var(--body-2); }
.result-card dd { margin: 0; font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.result-card.climax { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-md); }
.result-card.climax h3, .result-card.climax .figure, .result-card.climax dd { color: #FFFFFF; }
.result-card.climax .meta, .result-card.climax .label, .result-card.climax dt { color: var(--on-navy-body); }
.result-card.climax .row { border-color: var(--navy-rule); }
.results-foot { margin-top: 28px; font-size: 17px; color: var(--body-2); max-width: 860px; }

/* ---------- Subject ---------- */
.subject-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.key-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hair); }
.key-figures .label { font-size: 14px; color: var(--muted); line-height: 1.4; }
.key-figures .value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(32px, 3.4vw, 46px); color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 16px 190px minmax(0, 1fr); gap: 0 20px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dot); background: var(--paper); flex: none; }
.timeline .line { width: 2px; flex: 1; background: var(--rail); margin-top: 4px; }
.timeline li:last-child .line { display: none; }
.timeline li.key .dot { background: var(--blue); border-color: var(--blue); }
.timeline .date { font-family: var(--font-mono); font-weight: 700; font-size: 14.5px; color: var(--blue); padding-top: 2px; }
.timeline .event { font-size: 16.5px; line-height: 1.5; padding-bottom: 24px; color: var(--body); }
.timeline li.key .event { font-weight: 800; color: var(--ink); }
.callout { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; line-height: 1.45; color: var(--ink); max-width: 980px; }
.navy .callout { border-color: var(--navy-rule); color: #FFFFFF; }

/* ---------- Columns (dilemma, algorithm, why differ) ---------- */
.dilemma-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-bottom: 56px; }
.big-figure { text-align: right; }
.big-figure .value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(56px, 7vw, 104px); line-height: 1; color: #FFFFFF; letter-spacing: -0.04em; }
.big-figure .caption { font-size: 15px; color: var(--on-navy-body); margin-top: 12px; max-width: 360px; margin-left: auto; line-height: 1.45; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.column { border-top: 1px solid var(--navy-rule); padding-top: 24px; }
.white .column { border-top: 2px solid var(--navy); }
.column h3 { font-size: 21px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.column p { font-size: 17px; line-height: 1.6; }
.column p + p { margin-top: 12px; }
.navy .column .answer-label { color: var(--on-navy-label); font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 56px; }
.boxed { border: 1px solid var(--navy-rule); border-radius: 12px; padding: 28px 32px; font-size: 17px; line-height: 1.6; }
.statement { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.3; color: #FFFFFF; letter-spacing: -0.01em; }
.white .statement { color: var(--ink); }
.closing-lines { display: grid; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--navy-rule); max-width: 980px; }
.closing-lines p { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; line-height: 1.5; color: #FFFFFF; }

.recipe-note { margin-top: 48px; font-size: 18px; max-width: 900px; }
.recipe-note strong:first-child { color: var(--ink); }
.recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.recipe { background: var(--lavender); border-radius: var(--radius); padding: 26px 28px; }
.recipe .name { font-size: 14.5px; font-weight: 700; color: var(--blue); line-height: 1.4; }
.recipe .scope { font-family: var(--font-mono); font-weight: 700; font-size: 40px; color: var(--ink); letter-spacing: -0.03em; margin-top: 8px; }
.scale { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 10px 0 14px; font-size: 12.5px; color: var(--muted); }
.scale .track { position: relative; height: 2px; background: var(--rule); }
.scale .track span { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; margin-top: -7px; border-radius: 50%; background: var(--blue); }
.recipe p { font-size: 15.5px; line-height: 1.55; color: var(--body-2); }

/* ---------- Scenarios ---------- */
.scenario + .scenario { border-top: 1px solid var(--navy-rule); }
.scenario .scenario-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 980px; }
.scenario h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.scenario .window { font-size: 15px; font-family: var(--font-mono); font-weight: 500; color: var(--on-navy-body); line-height: 1.6; }
.scenario-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.scenario .context { display: grid; gap: 16px; font-size: 17px; line-height: 1.6; margin-bottom: 32px; }
.scenario .figure-label { font-size: 15px; font-weight: 700; color: var(--on-navy-label); }
.scenario .hero-figure { font-family: var(--font-mono); font-weight: 700; font-size: clamp(64px, 7.4vw, 108px); line-height: 1; color: #FFFFFF; letter-spacing: -0.045em; margin: 6px 0 18px; }
.benchmarks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 6px; font-size: 16px; }
.benchmarks strong { color: #FFFFFF; font-weight: 800; }
.stats { margin: 0; border-top: 1px solid var(--navy-rule); }
.stats .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 14px; border-bottom: 1px solid var(--navy-rule); font-size: 15.5px; }
.stats dt { color: var(--on-navy-body); }
.stats dd { margin: 0; font-family: var(--font-mono); font-weight: 700; color: #FFFFFF; text-align: right; }
.stats .row.highlight { background: var(--navy-raised); border-radius: 8px; border-bottom-color: transparent; }
.stats .row.highlight dt { color: #FFFFFF; font-weight: 800; }
.stats .row.highlight dd { color: var(--blue-200); }
.chart { margin: 0; }
.chart a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--navy-rule); background: #0D0F14; }
.chart img { width: 100%; height: auto; transition: transform 400ms var(--ease); }
.chart a:hover img { transform: scale(1.01); }
.chart figcaption { font-size: 15.5px; line-height: 1.6; color: var(--on-navy-body); margin-top: 12px; }
.chart .zoom-hint { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue-200); }
.read-this { margin-top: 28px; padding: 24px 28px; border-radius: 12px; background: var(--navy-raised); font-size: 18px; font-weight: 700; line-height: 1.5; color: #FFFFFF; }
.read-this .label { display: block; font-size: 13.5px; font-weight: 700; color: var(--blue-200); margin-bottom: 8px; }

/* ---------- Side by side ---------- */
.sbs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: end; margin-bottom: 40px; }
.sbs-head .note-strong { font-size: 18px; line-height: 1.55; color: var(--body-2); }
.sbs-head .note-strong strong { color: var(--blue); }
.table-wrap { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.sbs { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 760px; }
.sbs caption { text-align: left; }
.sbs th, .sbs td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.sbs thead th { background: var(--navy); color: #FFFFFF; font-weight: 800; font-size: 15px; }
.sbs tbody th { font-weight: 600; color: var(--body-2); width: 240px; position: sticky; left: 0; background: var(--paper); }
.sbs td { color: var(--ink); }
.sbs td.num { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.sbs tr.group-end th, .sbs tr.group-end td { border-bottom: 2px solid var(--rule); }
.sbs tr.strategy th { font-weight: 800; color: var(--ink); }
.sbs tr.strategy td { color: var(--blue); }
.sbs tr.realized th, .sbs tr.realized td { background: var(--blue-50); color: var(--blue); font-weight: 800; }
.sbs tbody tr:last-child th, .sbs tbody tr:last-child td { border-bottom: 0; }
.sbs-foot { margin-top: 20px; font-size: 16px; color: var(--muted); }
.sbs-commentary { margin-top: 40px; }

/* ---------- Lesson ---------- */
.lessons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.lessons li { display: grid; grid-template-columns: 88px minmax(0, 4fr) minmax(0, 6fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.lessons .n { font-family: var(--font-mono); font-weight: 700; font-size: 34px; color: var(--blue); line-height: 1; }
.lessons h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 800; line-height: 1.3; }
.lessons p { font-size: 17px; line-height: 1.6; color: var(--body-2); }
.lesson-close { margin-top: 48px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; line-height: 1.5; color: var(--ink); max-width: 980px; }
.lesson-close .accent { color: var(--blue); }

/* ---------- Path forward ---------- */
.forward-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 72px; align-items: start; }
.forward-lines { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.25; color: #FFFFFF; margin-top: 32px; letter-spacing: -0.01em; }
.forward-q { font-size: 20px; font-weight: 700; color: var(--on-navy-label); margin-top: 28px; line-height: 1.45; }
.compare-cards { display: grid; gap: 16px; }
.compare-card { border: 1px solid var(--navy-rule); border-radius: var(--radius); padding: 28px 32px; }
.compare-card .lead-in { font-size: 15px; line-height: 1.45; color: var(--on-navy-body); }
.compare-card .value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(48px, 5vw, 68px); color: #FFFFFF; letter-spacing: -0.04em; line-height: 1.05; margin-top: 8px; }
.compare-card.filled { background: var(--blue); border-color: var(--blue); }
.compare-card.filled .lead-in { color: var(--blue-100); }
.compare-card .realized { font-size: 17px; font-weight: 700; color: #FFFFFF; margin-top: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 40px; }
.cta-row .text-link { font-weight: 700; font-size: 16px; }

/* ---------- Related ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px 28px; text-decoration: none; color: var(--body); box-shadow: var(--shadow); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease), border-color 200ms var(--ease); }
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue-100); color: var(--body); }
.related-card .tick { align-self: flex-start; font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: 4px 10px; }
.related-card h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.related-card .stat { font-size: 15px; color: var(--body-2); }
.related-card .stat .num { color: var(--blue); }
.related-card .go { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 15px; color: var(--blue); }
.related-foot { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-small); padding: 64px 0 40px; font-size: 14px; line-height: 1.6; }
.site-footer .foot-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .foot-top img { height: 64px; width: auto; }
.site-footer h2 { font-size: 14px; font-weight: 700; color: var(--on-navy-body); margin-bottom: 8px; }
.site-footer .foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 24px; }
.site-footer a { color: var(--on-navy-body); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Case study home (site/index.html) ---------- */
.home .tick { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: 4px 10px; }
.home .site-nav .nav-link[aria-current="page"] { color: #FFFFFF; }
.home .site-nav .nav-link, .home .site-nav .btn { white-space: nowrap; }
/* Hero, ported from the live archpublic.com/case-studies page: light ground, node grid fading out from the top left, app screen on the right */
.home-hero { position: relative; isolation: isolate; padding: 96px 0 112px; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--hair); }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(36, 75, 216, 0.38) 1.4px, transparent 1.5px), linear-gradient(to right, rgba(36, 75, 216, 0.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(36, 75, 216, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0, #000 0%, transparent 72%); mask-image: radial-gradient(120% 90% at 20% 0, #000 0%, transparent 72%); }
.home-hero .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; }
.home-hero .breadcrumb { margin-bottom: 40px; color: var(--muted); }
.home-hero .breadcrumb a { color: var(--body-2); }
.home-hero .breadcrumb a:hover { color: var(--blue); }
.home-hero .breadcrumb li + li::before { color: var(--rule); }
.home-hero .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; color: var(--blue); margin-bottom: 0; }
.home-hero h1 { margin-top: 24px; font-size: clamp(40px, 4.6vw, 60px); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); max-width: 720px; }
.home-hero h1 .accent { color: var(--blue); }
.home-hero .lead { margin-top: 28px; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--body-2); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.btn.btn-grad, .btn.btn-grad-dark { color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.04em; padding: 17px 36px; font-size: 17px; box-shadow: 0 1px 2px rgba(11, 31, 58, 0.08), 0 10px 24px -14px rgba(11, 31, 58, 0.45); }
.btn.btn-grad { background: linear-gradient(135deg, #244BD8 0%, #3B5FE3 35%, #1632A4 70%, #0B1656 100%); }
.btn.btn-grad-dark { background: linear-gradient(135deg, #060C38 0%, #091450 35%, #0B1656 70%, #0E1B6A 100%); }
.btn.btn-grad:hover, .btn.btn-grad-dark:hover { color: #FFFFFF; filter: brightness(1.1); }

.hero-phone { position: relative; width: 286px; justify-self: center; transform: translateX(-16px); user-select: none; }
.hero-phone::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(24px) scale(0.95); border-radius: 48px; background: radial-gradient(closest-side, rgba(36, 75, 216, 0.22), transparent); filter: blur(40px); }
.hero-phone .phone { border: 1px solid rgba(11, 22, 86, 0.15); border-radius: 40px; background: var(--navy-deep); padding: 8px; box-shadow: 0 50px 90px -40px rgba(11, 31, 58, 0.65); }
.hero-phone .screen { overflow: hidden; border-radius: 32px; background: var(--paper); color: var(--ink); font-size: 11px; line-height: 1.3; }
.hero-phone p { margin: 0; }
.hero-phone .num { font-weight: 700; }
.hero-phone .status { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 4px; font-size: 10px; font-weight: 700; color: rgba(11, 22, 86, 0.7); }
.hero-phone .status .notch { width: 64px; height: 16px; border-radius: 999px; background: var(--navy-deep); }
.hero-phone .status span:last-child { width: 24px; }
.hero-phone .balance { padding: 12px 20px 0; }
.hero-phone .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--body-2); }
.hero-phone .balance .num { margin-top: 4px; font-size: 26px; line-height: 1; letter-spacing: -0.03em; color: var(--blue); }
.hero-phone .spark { display: block; width: calc(100% - 16px); height: 96px; margin: 12px 8px 0; }
.hero-phone .ranges { display: flex; justify-content: center; gap: 4px; padding: 10px 16px; border-top: 1px solid var(--hair); }
.hero-phone .ranges span { padding: 4px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--body-2); }
.hero-phone .ranges .on { border-color: var(--hair); color: var(--ink); }
.hero-phone .active { margin: 0 16px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--paper-2); }
.hero-phone .active p { display: flex; align-items: baseline; justify-content: space-between; }
.hero-phone .active .label { font-size: 9px; }
.hero-phone .bar { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--hair); }
.hero-phone .bar span { display: block; width: 62%; height: 100%; border-radius: 999px; background: linear-gradient(to right, #244BD8, #3B5FE3); }
.hero-phone .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 16px; }
.hero-phone .tile { padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px; background: var(--paper-2); }
.hero-phone .tile .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.hero-phone .tile .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.hero-phone .tile .num { font-size: 11px; }
.hero-phone .up { font-size: 10px; font-weight: 800; color: var(--blue); white-space: nowrap; }
.hero-phone .tile .cls { margin-top: 4px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--body-2); }
.hero-phone .float { position: absolute; padding: 12px 16px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 18px 40px -24px rgba(11, 31, 58, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hero-phone .float .kind { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; color: var(--blue); }
.hero-phone .float .what { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hero-phone .float .what .up { font-size: 11px; }
.hero-phone .float .what.up { font-size: 14px; color: var(--blue); }
.hero-phone .f-on { top: 12%; right: -130px; width: 190px; }
.hero-phone .f-google { top: 38%; right: -80px; width: 195px; padding: 10px 12px; }
.hero-phone .f-google .what { font-size: 13px; }
.hero-phone .f-tesla { top: 57%; left: -100px; width: 200px; }
.hero-phone .f-milestone { bottom: -3%; right: -60px; width: 175px; }

/* "Don't see your asset here?" band and the request form under the grid, ported from the live page */
.request-band { background: var(--navy); color: var(--on-navy-body); }
.request-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.request-band h2 { font-size: clamp(20px, 2vw, 24px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: #FFFFFF; }
.request-band p { margin-top: 8px; max-width: 576px; font-size: 15px; line-height: 1.6; color: var(--on-navy-body); }
.request-band .btn { padding: 13px 28px; font-size: 16px; }
.request-box { margin-top: 40px; padding: 32px; background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; }
.request-box h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.request-box > p { margin-top: 4px; font-size: 15px; color: var(--body-2); }
.request-box form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.request-box form[hidden], .request-box [hidden] { display: none; }
.request-box input { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 16px; font: 400 15px var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; -webkit-appearance: none; appearance: none; }
.request-box input::placeholder { color: var(--muted); }
.request-box input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.request-box form button { height: 44px; padding: 0 24px; font: 700 15px var(--font-sans); color: #FFFFFF; background: var(--blue); border: 0; border-radius: 8px; cursor: pointer; }
.request-box form button:hover { background: var(--blue-hover); }
.request-box form button:disabled { opacity: 0.6; cursor: default; }
.request-box .form-error { margin-top: 12px; font-size: 15px; font-weight: 600; color: #B42318; }
.request-box .form-done { margin-top: 20px; font-size: 15px; font-weight: 700; color: var(--blue); }
.request-box .form-done button { margin-left: 4px; padding: 0; font: inherit; color: inherit; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.home .h2 { font-size: clamp(28px, 3.2vw, 40px); }

.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-figs { display: flex; flex-direction: column; gap: 22px; background: var(--navy); color: var(--on-navy-body); padding: 44px; }
.featured-figs .tick { color: #FFFFFF; background: var(--navy-raised); font-size: 14px; padding: 4px 12px; }
.featured-figs .who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.featured-figs .label { font-size: 14px; font-weight: 700; color: var(--on-navy-label); }
.featured-figs .big { font-family: var(--font-mono); font-weight: 700; font-size: clamp(52px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; color: #FFFFFF; margin-top: 4px; }
.featured-figs .bench { display: flex; flex-wrap: wrap; gap: 16px 40px; padding-top: 18px; border-top: 1px solid var(--navy-rule); }
.featured-figs .bench .label { color: var(--on-navy-small); }
.featured-figs .bench .num { font-size: 28px; line-height: 1.15; color: #FFFFFF; margin-top: 2px; }
.featured-figs .window { margin-top: auto; font-size: 14px; line-height: 1.5; }
.featured-body { display: flex; flex-direction: column; gap: 16px; padding: 44px; }
.featured-body .product { font-size: 14px; font-weight: 700; color: var(--blue); }
.featured-body h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.featured-body h3 a { color: inherit; text-decoration: none; }
.featured-body h3 a:hover { color: var(--blue); }
.featured-body .sub { font-size: 17px; color: var(--body-2); }
.featured-body .meta { font-size: 14px; font-weight: 600; color: var(--muted); }
.featured-body .go { margin-top: auto; padding-top: 12px; }
.btn.btn-soft { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }
.btn.btn-soft:hover { background: var(--blue-100); color: var(--blue-hover); }

.study-key { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 0; font-size: 15px; line-height: 1.5; color: var(--body-2); }
.study-key dt { display: inline; font-weight: 800; color: var(--ink); }
.study-key dt.lead-term { color: var(--blue); }
.study-key dd { display: inline; margin: 0; }
.study-key-more { margin-top: 8px; font-size: 15px; font-weight: 700; }
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }
.finder[hidden], .sort[hidden], .no-match[hidden], .study-card[hidden] { display: none; }
.search { flex: 1 1 280px; min-width: 0; position: relative; }
.search svg { position: absolute; left: 14px; top: 13px; pointer-events: none; color: var(--muted); }
.search input { width: 100%; height: 44px; padding: 0 16px 0 42px; font: 400 16px var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; font: 700 15px var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.chip .count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.chip:hover { border-color: var(--blue-200); }
.chip[aria-pressed="true"] { color: #FFFFFF; background: var(--navy); border-color: var(--navy); }
.chip[aria-pressed="true"] .count { color: var(--blue-200); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 15px; font-weight: 600; color: var(--body-2); }
.results-bar .num { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { height: 44px; padding: 0 12px; font: 700 15px var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }

.study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.study-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease), border-color 200ms var(--ease); }
.study-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--blue-100); }
.study-card:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.study-card .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.study-card .company { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--body-2); }
.study-card h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.study-card h3 a { color: inherit; text-decoration: none; }
.study-card h3 a:focus-visible { outline: none; }
.study-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-figs { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; background: var(--paper-2); border-radius: 12px; padding: 14px 16px; }
.card-figs .label { display: block; font-size: 13px; font-weight: 700; color: var(--body-2); }
.card-figs .strategy { grid-column: 1 / -1; }
.card-figs .strategy .num { font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; color: var(--blue); }
.card-figs .num { display: block; font-size: 20px; line-height: 1.3; color: var(--ink); }
.card-figs .window { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 13px; line-height: 1.45; color: var(--body-2); }
.study-card .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.study-card .read { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; text-decoration: none; }
.no-match { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; background: var(--paper); border: 1px dashed var(--rule); border-radius: var(--radius); font-size: 17px; }
.no-match button { height: 44px; padding: 0 18px; font: 800 15px var(--font-sans); color: var(--blue); background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 999px; cursor: pointer; }
.home .small-print { margin-top: 40px; }

.read-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 56px; align-items: start; }
.start-panel { background: var(--navy); color: var(--on-navy-body); border-radius: var(--radius); padding: 36px; font-size: 16px; line-height: 1.55; }
.start-panel .label { font-size: 14px; font-weight: 700; color: var(--on-navy-label); }
.start-panel .big { font-family: var(--font-mono); font-weight: 700; font-size: clamp(44px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.04em; color: #FFFFFF; margin: 8px 0 14px; }
.terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.terms div { border-top: 2px solid var(--hair); padding-top: 14px; }
.terms div:first-child { border-top-color: var(--blue); }
.terms dt { font-size: 17px; font-weight: 800; color: var(--ink); }
.terms dd { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--body-2); }
.gap-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 40px; padding: 20px 24px; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 12px; font-size: 16px; line-height: 1.55; }
.gap-note strong { font-size: 14px; }
.gap-note p { flex: 1 1 480px; min-width: 0; }
.gap-note .num.blue { color: var(--blue); }
.gap-note .num { color: var(--ink); }

.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 40px 72px; align-items: start; }
.why-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 24px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.why-list .icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--navy-raised); color: var(--blue-200); }
.why-list strong { display: block; font-size: 17px; }
.cta-panel { border: 1px solid var(--navy-rule); border-radius: var(--radius); padding: 36px; font-size: 16px; line-height: 1.6; }
.cta-panel h3 { font-size: 24px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.cta-panel .cta-row { margin-top: 28px; }

@media (max-width: 1080px) {
  .home-hero .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-phone { transform: none; }
  .study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .featured, .read-grid { grid-template-columns: 1fr; }
  .featured-figs, .featured-body { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .study-grid, .terms { grid-template-columns: 1fr; }
  .home-hero { padding: 40px 0 64px; }
  .home-hero .hero-grid { gap: 48px; }
  .hero-phone { transform: scale(0.74); transform-origin: top center; margin-bottom: -165px; }
  .hero-phone .f-on { top: -4%; right: -72px; }
  .hero-phone .f-google { right: -52px; }
  .hero-phone .f-tesla { left: -56px; }
  .hero-phone .f-milestone { right: -40px; }
  .hero-ctas .btn { padding: 15px 28px; font-size: 15px; }
  .request-box { padding: 24px; }
  .start-panel, .cta-panel { padding: 24px; }
  .home .site-nav .nav-link { font-size: 14px; padding: 8px 6px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .subject-grid, .scenario-grid, .forward-grid { grid-template-columns: 1fr; gap: 48px; }
  .sbs-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 860px) {
  :root { --section-y: 72px; --gutter: 20px; }
  .results-grid, .columns, .recipes, .related-grid { grid-template-columns: 1fr; }
  .dilemma-head, .split { grid-template-columns: 1fr; gap: 28px; }
  .big-figure { text-align: left; }
  .big-figure .caption { margin-left: 0; }
  .lessons li { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; }
  .lessons li p { grid-column: 2; }
  .site-footer .foot-top { grid-template-columns: 1fr; gap: 24px; }
  .nav-link.hide-sm { display: none; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .hero { padding: 48px 0 72px; }
  .breadcrumb { margin-bottom: 36px; }
  .timeline li { grid-template-columns: 16px minmax(0, 1fr); }
  .timeline .date { grid-column: 2; }
  .timeline .event { grid-column: 2; padding-bottom: 20px; }
  .timeline .rail { grid-row: span 2; }
  .key-figures { grid-template-columns: 1fr 1fr; gap: 16px; }
  .site-nav .wrap { position: relative; }
  .toc { position: static; }
  .toc-panel { left: 12px; right: 12px; top: calc(100% + 4px); width: auto; max-height: calc(100vh - var(--nav-h) - 24px); overflow-y: auto; }
  .site-nav .wrap { gap: 8px; }
  .site-nav .brand img { height: 24px; }
  .btn-sm { padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print: pages still export cleanly to PDF ---------- */
@media print {
  @page { margin: 14mm; }
  html { scroll-behavior: auto; }
  body { font-size: 11pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-nav, .related, .cta-row, .skip-link, .zoom-hint { display: none !important; }
  .section { padding: 36px 0; break-inside: avoid-page; }
  .scenario, .result-card, .recipe, .compare-card, .lessons li, .timeline li { break-inside: avoid; }
  .hero { padding: 36px 0; }
}
