:root {
  --paper: #f4f1ea;
  --paper-2: #ebe7de;
  --ink: #151515;
  --muted: #67645e;
  --faint: #a9a49a;
  --line: #d4cfc4;
  --accent: #c45f3b;
  --accent-soft: #ead2c7;
  --blue: #386f84;
  --blue-soft: #cbdde4;
  --green: #4f785f;
  --yellow: #d8a83e;
  --white: #fffdf8;
  --max: 1280px;
  --header-h: 72px;
  --shadow: 0 20px 60px rgba(31, 27, 20, 0.08);
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #171817;
  --paper-2: #222320;
  --ink: #f0eee7;
  --muted: #b7b2a7;
  --faint: #7f7b73;
  --line: #353631;
  --accent: #e37b55;
  --accent-soft: #573326;
  --blue: #77acc1;
  --blue-soft: #263f49;
  --green: #88b394;
  --yellow: #e3bd63;
  --white: #1d1e1c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select { color: inherit; }
img, svg, canvas { max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
  padding: 0 32px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: fit-content; }
.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.05em;
}
.wordmark-name { font-weight: 670; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { font-size: 13px; text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }

.eyebrow, .section-number, .paper-kicker, .figure-label, .mini-label, .toc-label {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot { width: 8px; height: 8px; display: inline-block; background: var(--green); border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 15%, transparent); }

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, .94fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding-block: 76px 86px;
}
.hero-copy h1 {
  max-width: 860px;
  margin: 20px 0 26px;
  font-size: clamp(58px, 7.1vw, 112px);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 760;
}
.hero-copy h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.hero-deck {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2vw, 31px);
  line-height: 1.38;
  color: var(--muted);
}
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 36px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.large { min-height: 62px; padding: 0 24px; font-size: 15px; }
.text-link { font-size: 13px; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 3px; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 68px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-facts dt { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.hero-facts dd { margin: 7px 0 0; font-size: 12px; line-height: 1.4; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; min-height: 480px; border-left: 1px solid var(--line); }
.hero-visual canvas { display: block; width: 100%; height: 100%; }
.visual-key { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 16px; font: 10px/1 ui-monospace, monospace; color: var(--muted); }
.visual-key span { display: inline-flex; align-items: center; gap: 6px; }
.key-dot { width: 5px; height: 5px; background: var(--muted); border-radius: 50%; }
.key-line { width: 16px; height: 2px; background: var(--blue); }
.key-node { width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }

.thesis-strip { display: grid; grid-template-columns: 80px 1fr; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 34px; }
.thesis { max-width: 960px; margin: 0; font-family: Georgia, serif; font-size: clamp(24px, 3vw, 44px); line-height: 1.25; color: var(--muted); }
.thesis strong { color: var(--ink); font-weight: 500; }

.work, .evidence, .experience, .about, .contact { padding-block: 122px; }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 54px; }
.section-heading.compact { margin-bottom: 36px; }
.section-heading h2, .about h2, .contact h2 {
  max-width: 900px;
  margin: 11px 0 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
}
.research-index { border-top: 1px solid var(--ink); }
.research-row {
  display: grid;
  grid-template-columns: 58px minmax(260px, 1.25fr) minmax(160px, .65fr) 220px 24px;
  gap: 22px;
  align-items: center;
  min-height: 128px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding .22s ease, background .22s ease;
}
.research-row:hover { padding-inline: 16px; background: var(--paper-2); }
.research-no { font: 11px ui-monospace, monospace; color: var(--faint); }
.research-title { font-size: clamp(19px, 2vw, 29px); letter-spacing: -.025em; font-weight: 650; }
.research-domain { font: 11px ui-monospace, monospace; color: var(--muted); text-transform: uppercase; line-height: 1.5; }
.research-arrow { justify-self: end; }
.research-spark { height: 62px; width: 100%; overflow: visible; }
.spark-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.spark-line { stroke: var(--accent); stroke-width: 2; fill: none; }
.spark-secondary { stroke: var(--blue); opacity: .55; }
.spark-point { fill: var(--accent); }
.circuit-wire { stroke: var(--muted); stroke-width: 1; fill: none; }
.circuit-gate { stroke: var(--accent); stroke-width: 1.5; fill: var(--paper); }
.circuit-node { fill: var(--blue); }

.evidence { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-value { margin: 0 0 48px; font-size: clamp(34px, 3.8vw, 58px); line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.metric-value sup { font-size: .45em; }
.metric-label { margin: 0; font-size: 14px; font-weight: 700; }
.metric-note { margin: 10px 0 0; font-family: Georgia, serif; font-size: 15px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-year { font: 11px ui-monospace, monospace; color: var(--faint); }
.timeline-content { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(180px, .6fr) minmax(280px, 1.4fr); gap: 30px; align-items: baseline; }
.timeline-content h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.timeline-content p { margin: 0; font-size: 14px; color: var(--muted); }
.timeline-place { font-family: ui-monospace, monospace; font-size: 11px !important; text-transform: uppercase; }

.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 10vw, 150px); }
.about-copy { max-width: 720px; font-family: Georgia, serif; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.55; color: var(--muted); }
.about-copy p:first-child { margin-top: 0; color: var(--ink); }
.about-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-family: ui-sans-serif, sans-serif; font-size: 13px; font-weight: 700; }
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact h2 { margin: 18px auto 40px; max-width: 980px; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); font: 11px ui-monospace, monospace; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }

/* Research atlas */
.paper-hero { padding-top: 96px; padding-bottom: 70px; border-bottom: 1px solid var(--ink); }
.paper-kicker { display: flex; justify-content: space-between; }
.paper-hero h1 { max-width: 1120px; margin: 44px 0 28px; font-size: clamp(62px, 9vw, 138px); line-height: .86; letter-spacing: -.078em; }
.paper-abstract { max-width: 900px; margin: 0; font-family: Georgia, serif; font-size: clamp(24px, 3vw, 40px); line-height: 1.35; color: var(--muted); }
.paper-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); }
.paper-meta div { display: grid; gap: 5px; }
.paper-meta span { font: 10px ui-monospace, monospace; text-transform: uppercase; color: var(--faint); letter-spacing: .08em; }
.paper-meta strong { font-size: 13px; }
.figure-disclaimer { max-width: 780px; margin: 34px 0 0; padding: 14px 16px; border-left: 3px solid var(--yellow); background: color-mix(in srgb, var(--yellow) 10%, transparent); font-size: 13px; color: var(--muted); }
.paper-layout { display: grid; grid-template-columns: 230px minmax(0, 900px); gap: clamp(52px, 8vw, 128px); justify-content: center; }
.paper-toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; padding-top: 92px; display: grid; gap: 5px; }
.toc-label { margin-bottom: 12px; }
.toc-link { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 8px 0; color: var(--muted); font-size: 12px; text-decoration: none; border-bottom: 1px solid transparent; }
.toc-link span { font-family: ui-monospace, monospace; color: var(--faint); }
.toc-link:hover, .toc-link.is-active { color: var(--ink); border-bottom-color: var(--line); }
.paper-content { min-width: 0; }
.paper-section { padding: 96px 0 108px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 26px); }
.paper-section h2 { margin: 10px 0 30px; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.055em; }
.paper-section > h3 { margin-top: 58px; font-size: 24px; letter-spacing: -.03em; }
.paper-section > p { max-width: 760px; font-family: Georgia, serif; font-size: 19px; line-height: 1.68; color: var(--muted); }
.paper-section > p.lead { font-size: clamp(24px, 3vw, 34px); line-height: 1.45; color: var(--ink); }
.concept-figure { margin: 52px 0 0; }
.concept-flow { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr; align-items: stretch; }
.concept-node { min-height: 160px; padding: 22px; border: 1px solid var(--line); display: grid; align-content: space-between; background: var(--white); }
.concept-node.highlighted { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--white)); }
.concept-node span { font: 10px ui-monospace, monospace; color: var(--faint); }
.concept-node strong { font-size: 24px; }
.concept-node small { color: var(--muted); }
.concept-arrow { display: grid; place-items: center; color: var(--faint); }
figcaption { margin-top: 12px; font-family: Georgia, serif; font-size: 13px; color: var(--muted); }

.interactive-figure { margin: 56px 0; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.figure-header { display: flex; justify-content: space-between; gap: 30px; align-items: start; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.figure-header h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.02em; }
.figure-status { display: flex; align-items: center; gap: 7px; font: 10px ui-monospace, monospace; text-transform: uppercase; color: var(--muted); }
.figure-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.figure-controls { display: flex; gap: 24px; align-items: end; padding: 18px 26px; border-bottom: 1px solid var(--line); background: var(--paper); }
.figure-controls label { display: grid; gap: 8px; font: 10px ui-monospace, monospace; text-transform: uppercase; color: var(--muted); }
.figure-controls select { min-width: 200px; padding: 8px 30px 8px 9px; border: 1px solid var(--line); border-radius: 0; background: var(--white); font-size: 12px; text-transform: none; }
.figure-controls input[type="range"] { width: 180px; accent-color: var(--accent); }
.mini-button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 11px; }
.mini-button:hover { border-color: var(--ink); }
.chart-wrap { position: relative; padding: 20px 18px 0; }
.data-chart { width: 100%; height: auto; overflow: visible; }
.chart-tooltip { position: absolute; z-index: 4; display: none; pointer-events: none; padding: 7px 9px; background: var(--ink); color: var(--paper); font: 10px ui-monospace, monospace; white-space: nowrap; }
.pipeline { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr; align-items: center; gap: 0; padding: 18px 26px 24px; }
.pipeline > div { min-height: 90px; padding: 14px; border: 1px solid var(--line); display: grid; align-content: space-between; }
.pipeline > i { text-align: center; color: var(--faint); font-style: normal; }
.pipeline span { font: 9px ui-monospace, monospace; color: var(--faint); }
.pipeline strong { font-size: 13px; }
.pipeline small { font-size: 10px; color: var(--muted); }
.pipeline-output { border-color: var(--accent) !important; }
.figure-insight { margin: 0; padding: 17px 26px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--blue) 7%, var(--white)); font-family: Georgia, serif; font-size: 14px; color: var(--muted); }
.result-band { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.result-band div { min-height: 125px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: space-between; }
.result-band strong { font-size: 25px; letter-spacing: -.04em; }
.result-band span { font: 10px ui-monospace, monospace; text-transform: uppercase; color: var(--muted); }
.result-band sup { font-size: .5em; }

.qvr-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qvr-panel { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qvr-panel:last-child { border-right: 0; }
.compact-chart, .circuit-chart { width: 100%; height: auto; }
.rewind-result { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center; padding: 28px; }
.score-ring { --score: 18; width: 128px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--accent) calc(var(--score) * 1%), var(--paper-2) 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--white); }
.score-ring span, .score-ring small { position: relative; z-index: 1; }
.score-ring span { font-size: 30px; font-weight: 750; letter-spacing: -.05em; }
.score-ring small { font: 9px ui-monospace, monospace; color: var(--muted); }
.rewind-result h4 { margin: 7px 0; font-size: 22px; }
.rewind-result p:last-child { margin: 0; font-family: Georgia, serif; color: var(--muted); }

.systems-controls { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.system-tab { min-height: 48px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 11px; }
.system-tab:last-child { border-right: 0; }
.system-tab:hover, .system-tab.is-active { background: var(--ink); color: var(--paper); }
.systems-canvas { min-height: 440px; padding: 30px; }
.system-diagram { min-height: 370px; display: grid; align-content: center; }
.system-diagram-grid { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; gap: 0; align-items: center; }
.system-block { min-height: 170px; padding: 22px; border: 1px solid var(--line); display: grid; align-content: space-between; position: relative; }
.system-block.accent { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--white)); }
.system-block.blue { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--white)); }
.system-block span { font: 10px ui-monospace, monospace; color: var(--faint); }
.system-block strong { font-size: 21px; }
.system-block p { margin: 0; font-family: Georgia, serif; font-size: 14px; color: var(--muted); }
.system-connector { text-align: center; color: var(--faint); font-size: 28px; }
.system-note { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-family: Georgia, serif; color: var(--muted); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principles-grid article { min-height: 240px; padding: 24px; background: var(--paper); }
.principles-grid span { font: 10px ui-monospace, monospace; color: var(--faint); }
.principles-grid h3 { margin: 36px 0 12px; font-size: 19px; letter-spacing: -.02em; }
.principles-grid p { margin: 0; font-family: Georgia, serif; color: var(--muted); }
.closing-section blockquote { margin: 48px 0; padding: 0 0 0 28px; border-left: 4px solid var(--accent); font-family: Georgia, serif; font-size: clamp(32px, 5vw, 60px); line-height: 1.2; color: var(--ink); }
.paper-cta { display: flex; gap: 24px; align-items: center; margin-top: 42px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; border-left: 0; border-top: 1px solid var(--line); }
  .research-row { grid-template-columns: 52px 1fr 170px 150px 24px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-content { grid-template-columns: 1fr 1fr; }
  .timeline-content p:last-child { grid-column: 1 / -1; }
  .paper-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 50px; }
  .paper-meta { grid-template-columns: 1fr 1fr; }
  .paper-meta div:last-child { grid-column: 1 / -1; }
  .result-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
  :root { --header-h: 62px; }
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .site-header { grid-template-columns: 1fr auto; padding: 0 16px; backdrop-filter: none; }
  .wordmark-name { display: none; }
  .site-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper); border-top: 1px solid var(--line); }
  .site-nav a { min-height: 56px; display: grid; place-items: center; padding: 0 4px; font-size: 10px; text-align: center; }
  body { padding-bottom: 56px; }
  .theme-toggle { grid-column: 2; }
  .hero { min-height: auto; padding-block: 56px 68px; gap: 46px; grid-template-columns: minmax(0, 1fr); }
  .hero-copy { min-width: 0; }
  .hero-copy h1 { font-size: clamp(50px, 14vw, 64px); max-width: 100%; }
  .hero-deck { font-size: 21px; max-width: 100%; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-facts { grid-template-columns: 1fr; gap: 15px; }
  .hero-facts div { display: grid; grid-template-columns: 70px 1fr; }
  .hero-facts dd { margin: 0; }
  .hero-visual { min-height: 0; width: 100%; aspect-ratio: 1 / 1; }
  .visual-key { left: 8px; right: auto; }
  .thesis-strip { grid-template-columns: 1fr; gap: 14px; }
  .work, .evidence, .experience, .about, .contact { padding-block: 82px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2, .about h2, .contact h2 { font-size: 48px; }
  .research-row { grid-template-columns: 38px 1fr 20px; gap: 12px; min-height: 112px; }
  .research-domain { grid-column: 2; }
  .research-spark { display: none; }
  .research-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { min-height: 200px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .timeline-content { grid-template-columns: 1fr; gap: 8px; }
  .timeline-content p:last-child { grid-column: auto; margin-top: 8px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-copy { font-size: 21px; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 28px; }

  .paper-hero { padding-top: 58px; }
  .paper-kicker { flex-direction: column; gap: 8px; }
  .paper-hero h1 { font-size: clamp(64px, 21vw, 100px); margin-top: 30px; }
  .paper-abstract { font-size: 23px; }
  .paper-meta { grid-template-columns: 1fr; gap: 16px; }
  .paper-meta div:last-child { grid-column: auto; }
  .paper-layout { display: block; }
  .paper-toc { position: sticky; top: var(--header-h); z-index: 20; margin-inline: -16px; padding: 10px 16px; display: flex; overflow-x: auto; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .toc-label { display: none; }
  .toc-link { flex: 0 0 auto; display: inline-flex; padding: 8px 12px; border-bottom: 0; }
  .paper-section { padding-block: 72px; }
  .paper-section h2 { font-size: 48px; }
  .paper-section > p { font-size: 18px; }
  .concept-flow { grid-template-columns: 1fr; gap: 10px; }
  .concept-arrow { transform: rotate(90deg); min-height: 24px; }
  .figure-header { flex-direction: column; }
  .figure-controls { flex-direction: column; align-items: stretch; }
  .figure-controls select, .figure-controls input[type="range"] { width: 100%; min-width: 0; }
  .pipeline { grid-template-columns: 1fr; gap: 8px; }
  .pipeline > i { transform: rotate(90deg); }
  .result-band { grid-template-columns: 1fr; }
  .qvr-grid { grid-template-columns: 1fr; }
  .qvr-panel { border-right: 0; }
  .rewind-result { grid-template-columns: 1fr; }
  .systems-controls { grid-template-columns: 1fr; }
  .system-tab { border-right: 0; border-bottom: 1px solid var(--line); }
  .system-diagram-grid { grid-template-columns: 1fr; gap: 8px; }
  .system-connector { transform: rotate(90deg); }
  .principles-grid { grid-template-columns: 1fr; }
  .paper-cta { align-items: flex-start; flex-direction: column; }
}

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

@media print {
  .site-header, .theme-toggle, .site-nav, .paper-toc, .figure-controls, .site-footer { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  body::before { display: none; }
  .shell { width: 100%; }
  .paper-layout { display: block; }
  .interactive-figure { box-shadow: none; break-inside: avoid; }
}

/* General homepage */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .55fr);
  gap: clamp(54px, 9vw, 140px);
  align-items: center;
  padding-block: clamp(72px, 9vw, 132px) clamp(76px, 9vw, 124px);
}
.home-hero-copy { min-width: 0; }
.home-hero-copy h1 {
  max-width: 940px;
  margin: 22px 0 30px;
  font-size: clamp(62px, 8.2vw, 132px);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 760;
}
.rotating-phrase {
  display: block;
  min-height: 1.04em;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.065em;
  transition: opacity .22s ease, transform .22s ease;
}
.rotating-phrase.is-changing { opacity: 0; transform: translateY(9px); }
.home-page .hero-deck { max-width: 760px; }
.home-page .hero-facts { max-width: 820px; }

.ivy-note {
  position: relative;
  align-self: stretch;
  min-height: 580px;
  display: grid;
  grid-template-rows: 1fr auto;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ivy-photo-slot {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--paper));
}
.photo-slot img,
.cat-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
}
.photo-slot.has-photo img,
[data-photo-slot].has-photo .cat-image img { opacity: 1; }
.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--accent);
  transition: opacity .25s ease;
}
.has-photo > .photo-fallback,
.has-photo .photo-fallback { opacity: 0; pointer-events: none; }
.photo-fallback i { font-size: clamp(82px, 11vw, 156px); font-weight: 300; }
.photo-fallback span {
  font: 10px ui-monospace, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ivy-photo-slot::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  pointer-events: none;
}
.ivy-note-copy { padding: 26px 28px 30px; border-top: 1px solid var(--line); }
.ivy-name { margin: 7px 0 0; font: 42px/1 Georgia, serif; letter-spacing: -.04em; }
.ivy-caption { margin: 9px 0 0; font-size: 13px; color: var(--muted); }
.ivy-coordinates {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 9px ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-statement {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  padding-block: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-statement .thesis { max-width: 1050px; }
.directions, .cats { padding-block: 122px; }
.direction-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.direction-card {
  min-height: 300px;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.direction-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.direction-card:hover .direction-domain,
.direction-card:hover .direction-no,
.direction-card:hover .direction-link { color: color-mix(in srgb, var(--paper) 68%, transparent); }
.direction-no,
.direction-domain,
.direction-link { font: 10px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.direction-card h3 { max-width: 520px; margin: 13px 0 0; font: 28px/1.2 Georgia, serif; letter-spacing: -.025em; }
.direction-link { align-self: end; justify-self: start; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.cats { border-top: 1px solid var(--line); }
.cats-intro {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, .65fr);
  justify-content: space-between;
  gap: clamp(40px, 10vw, 150px);
  align-items: end;
  margin-bottom: 54px;
}
.cats-intro h2 { margin: 11px 0 0; font-size: clamp(52px, 7vw, 104px); line-height: .92; letter-spacing: -.07em; }
.cats-intro > p { max-width: 580px; margin: 0; font: clamp(18px, 2vw, 26px)/1.5 Georgia, serif; color: var(--muted); }
.cat-gallery {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: 300px 360px;
  gap: 18px;
}
.cat-gallery-item { min-width: 0; margin: 0; display: grid; grid-template-rows: 1fr auto; }
.cat-gallery-item-tall { grid-row: 1 / span 2; }
.cat-gallery-item-wide { grid-column: 2; }
.cat-image { position: relative; min-height: 0; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.cat-image .photo-fallback { background: color-mix(in srgb, var(--blue-soft) 26%, var(--paper)); }
.cat-gallery-item:nth-child(2) .photo-fallback { background: color-mix(in srgb, var(--accent-soft) 30%, var(--paper)); }
.cat-gallery-item:nth-child(3) .photo-fallback { background: color-mix(in srgb, var(--green) 9%, var(--paper)); }
.cat-image .photo-fallback i { font-size: clamp(72px, 8vw, 118px); }
.cat-gallery-item figcaption {
  margin: 0;
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 2px;
  font-family: ui-sans-serif, sans-serif;
  color: var(--ink);
}
.cat-gallery-item figcaption span { font: 9px ui-monospace, monospace; color: var(--faint); }
.cat-gallery-item figcaption strong { font-size: 13px; }

@media (max-width: 1050px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) 310px; gap: 50px; }
  .home-hero-copy h1 { font-size: clamp(62px, 9vw, 100px); }
  .ivy-note { min-height: 520px; }
  .ivy-photo-slot { min-height: 380px; }
}

@media (max-width: 780px) {
  .site-nav { grid-template-columns: repeat(5, 1fr); }
  .site-nav a { font-size: 9px; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; padding-block: 58px 76px; gap: 58px; }
  .home-hero-copy h1 { font-size: clamp(54px, 15vw, 72px); margin-bottom: 24px; }
  .rotating-phrase { min-height: 2.02em; }
  .ivy-note { min-height: 470px; border-left: 0; border-top: 1px solid var(--line); }
  .ivy-photo-slot { min-height: 340px; }
  .home-statement { grid-template-columns: 1fr; gap: 14px; }
  .directions, .cats { padding-block: 82px; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card { min-height: 250px; }
  .direction-card h3 { font-size: 25px; }
  .cats-intro { grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .cats-intro h2 { font-size: 64px; }
  .cat-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 420px); }
  .cat-gallery-item-tall,
  .cat-gallery-item-wide { grid-column: auto; grid-row: auto; }
}
.photo-fallback .cat-letter {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -52%);
  font: 400 clamp(170px, 24vw, 310px)/1 Georgia, serif;
  letter-spacing: -.08em;
  color: color-mix(in srgb, var(--accent) 13%, transparent);
}
.photo-fallback i,
.photo-fallback span { position: relative; z-index: 1; }
.cat-image .photo-fallback .cat-letter { font-size: clamp(130px, 17vw, 230px); }

/* Homepage refinement: edge-integrated Ivy image + compact resume ledger */
.home-page .home-hero {
  position: relative;
  display: block;
  min-height: calc(100vh - var(--header-h));
  padding-block: clamp(76px, 9vw, 132px) clamp(86px, 10vw, 144px);
  padding-right: min(35vw, 540px);
  overflow: hidden;
  isolation: isolate;
}
.home-page .home-hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
}
.home-page .home-hero-copy h1 { max-width: 960px; }
.hero-cat {
  position: absolute;
  z-index: 1;
  right: clamp(-110px, -5vw, -34px);
  bottom: -4px;
  width: min(42vw, 620px);
  height: min(76vh, 760px);
  margin: 0;
  pointer-events: none;
}
.hero-cat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: saturate(.82) contrast(1.04);
  -webkit-mask-image: radial-gradient(ellipse 86% 92% at 58% 64%, #000 44%, rgba(0,0,0,.96) 66%, transparent 88%);
  mask-image: radial-gradient(ellipse 86% 92% at 58% 64%, #000 44%, rgba(0,0,0,.96) 66%, transparent 88%);
}
.hero-cat figcaption {
  position: absolute;
  right: 58px;
  bottom: 24px;
  max-width: 180px;
  font: 9px/1.4 ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: right;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}
[data-theme="dark"] .hero-cat img { filter: saturate(.72) brightness(.78) contrast(1.12); }

.resume-ledger {
  padding-block: 112px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.resume-ledger-heading {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(340px, .72fr);
  gap: clamp(44px, 10vw, 150px);
  justify-content: space-between;
  align-items: end;
  margin-bottom: 72px;
}
.resume-ledger-heading h2 {
  margin: 11px 0 0;
  font-size: clamp(52px, 7vw, 96px);
  line-height: .94;
  letter-spacing: -.07em;
}
.resume-ledger-heading > p {
  max-width: 610px;
  margin: 0;
  font: clamp(18px, 1.8vw, 24px)/1.55 Georgia, serif;
  color: var(--muted);
}
.resume-ledger-heading a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ledger-group {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 54px;
}
.ledger-group > h3 {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  margin: 0;
  font: 11px ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.ledger-list li {
  display: grid;
  grid-template-columns: 88px minmax(250px, .8fr) minmax(300px, 1.15fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: baseline;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}
.ledger-list time {
  font: 10px ui-monospace, monospace;
  letter-spacing: .04em;
  color: var(--faint);
}
.ledger-role h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.ledger-role p {
  margin: 6px 0 0;
  font: 10px/1.45 ui-monospace, monospace;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger-list > li > p {
  margin: 0;
  max-width: 700px;
  font: 16px/1.55 Georgia, serif;
  color: var(--muted);
}
.ledger-group-previous { margin-top: 76px; }
.ledger-education {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 34px;
  align-items: baseline;
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}
.ledger-kicker {
  font: 10px ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.ledger-education p { margin: 0; font: 16px/1.55 Georgia, serif; color: var(--muted); }
.ledger-education strong { color: var(--ink); font-weight: 600; }

/* Real-photo Ivy & Lady gallery */
.cat-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 430px 330px;
  gap: 18px;
}
.cat-gallery-item { min-width: 0; min-height: 0; }
.cat-gallery-item-featured { grid-column: 1 / 9; grid-row: 1; }
.cat-gallery-item-personal { grid-column: 9 / 13; grid-row: 1; }
.cat-gallery-item-lady { grid-column: 1 / 5; grid-row: 2; }
.cat-gallery-item-ivy { grid-column: 5 / 13; grid-row: 2; }
.cat-image { height: 100%; }
.cat-image img {
  transform: scale(1.001);
  transition: opacity .25s ease, transform .45s ease, filter .45s ease;
}
.cat-gallery-item:hover .cat-image img { transform: scale(1.025); filter: saturate(.94); }
.cat-gallery-item-featured .cat-image img { object-position: 50% 47%; }
.cat-gallery-item-personal .cat-image img { object-position: 52% 49%; }
.cat-gallery-item-lady .cat-image img { object-position: 50% 44%; }
.cat-gallery-item-ivy .cat-image img { object-position: 50% 55%; }

@media (max-width: 1120px) {
  .home-page .home-hero { padding-right: 330px; }
  .hero-cat { width: 430px; height: 650px; right: -70px; }
  .home-page .home-hero-copy h1 { font-size: clamp(68px, 9vw, 104px); }
  .ledger-list li { grid-template-columns: 76px minmax(220px, .85fr) minmax(260px, 1fr); }
}

@media (max-width: 850px) {
  .home-page .home-hero {
    min-height: 860px;
    padding-right: 0;
    padding-bottom: 330px;
  }
  .home-page .home-hero-copy { width: 100%; }
  .hero-cat {
    width: min(490px, 98vw);
    height: 360px;
    right: -36px;
    bottom: -10px;
  }
  .hero-cat img {
    object-position: 50% 59%;
    -webkit-mask-image: radial-gradient(ellipse 88% 96% at 60% 64%, #000 43%, rgba(0,0,0,.96) 67%, transparent 90%);
    mask-image: radial-gradient(ellipse 88% 96% at 60% 64%, #000 43%, rgba(0,0,0,.96) 67%, transparent 90%);
  }
  .hero-cat figcaption { right: 34px; bottom: 18px; }
  .resume-ledger-heading { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .ledger-group { grid-template-columns: 1fr; gap: 18px; }
  .ledger-group > h3 { position: static; }
  .ledger-list li { grid-template-columns: 70px minmax(0, 1fr); gap: 18px 24px; }
  .ledger-list > li > p { grid-column: 2; }
  .ledger-education { grid-template-columns: 1fr; gap: 13px; }
  .cat-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 390px 330px 330px; }
  .cat-gallery-item-featured { grid-column: 1 / 3; grid-row: 1; }
  .cat-gallery-item-personal { grid-column: 1; grid-row: 2; }
  .cat-gallery-item-lady { grid-column: 2; grid-row: 2; }
  .cat-gallery-item-ivy { grid-column: 1 / 3; grid-row: 3; }
}

@media (max-width: 560px) {
  .home-page .home-hero { min-height: 800px; padding-bottom: 285px; }
  .home-page .home-hero-copy h1 { font-size: clamp(51px, 14.7vw, 70px); }
  .hero-cat { width: 360px; height: 300px; right: -44px; }
  .hero-cat figcaption { display: none; }
  .resume-ledger { padding-block: 80px; }
  .resume-ledger-heading { margin-bottom: 50px; }
  .resume-ledger-heading h2 { font-size: 58px; }
  .ledger-group { margin-top: 44px; }
  .ledger-group-previous { margin-top: 62px; }
  .ledger-list li { grid-template-columns: 1fr; gap: 7px; padding: 24px 0 26px; }
  .ledger-list > li > p { grid-column: auto; margin-top: 8px; }
  .ledger-role p { margin-top: 5px; }
  .ledger-education { margin-top: 56px; }
  .cat-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(4, 360px); gap: 14px; }
  .cat-gallery-item-featured,
  .cat-gallery-item-personal,
  .cat-gallery-item-lady,
  .cat-gallery-item-ivy { grid-column: 1; grid-row: auto; }
}

/* v5: grounded sleeping photo in the hero corner */
.home-page .home-hero {
  padding-block: clamp(64px, 6vw, 88px) 64px;
  padding-right: clamp(300px, 31vw, 470px);
  overflow: visible;
}
.hero-cat {
  right: calc((100vw - 100%) / -2);
  bottom: 0;
  width: clamp(280px, 29vw, 440px);
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  opacity: 1;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 18px 0 0 0;
  background: var(--paper-2);
  box-shadow: -16px -12px 34px rgba(32, 27, 20, .07);
}
.hero-cat img,
[data-theme="dark"] .hero-cat img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  opacity: 1;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
}
[data-theme="dark"] .hero-cat {
  opacity: 1;
  box-shadow: -16px -12px 34px rgba(0, 0, 0, .24);
}

@media (max-width: 1120px) {
  .home-page .home-hero { padding-right: clamp(260px, 34vw, 390px); }
  .hero-cat { width: clamp(250px, 32vw, 370px); }
}

@media (max-width: 850px) {
  .home-page .home-hero {
    min-height: 840px;
    padding-right: 0;
    padding-bottom: clamp(250px, 58vw, 340px);
  }
  .hero-cat {
    right: calc((100vw - 100%) / -2);
    bottom: 0;
    width: min(78vw, 390px);
    aspect-ratio: 4 / 3;
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .home-page .home-hero {
    min-height: 780px;
    padding-right: 0;
    padding-bottom: 270px;
  }
  .hero-cat {
    right: calc((100vw - 100%) / -2);
    bottom: 0;
    width: min(86vw, 350px);
    aspect-ratio: 4 / 3;
    opacity: 1;
    border-radius: 14px 0 0 0;
  }
}


/* v6: exact transparent Ivy portrait, grounded to the viewport corner */
.home-page .home-hero {
  padding-right: clamp(170px, 20vw, 285px);
  overflow: visible;
}

.hero-cat {
  position: absolute;
  z-index: 1;
  right: calc((100vw - 100%) / -2);
  bottom: 0;
  width: clamp(150px, 16vw, 245px);
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  overflow: visible;
  opacity: .92;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.hero-cat img,
[data-theme="dark"] .hero-cat img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  opacity: 1;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
}

[data-theme="dark"] .hero-cat {
  opacity: .82;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 850px) {
  .home-page .home-hero {
    min-height: 760px;
    padding-right: 0;
    padding-bottom: 190px;
  }
  .hero-cat {
    right: calc((100vw - 100%) / -2);
    bottom: 0;
    width: clamp(135px, 32vw, 190px);
  }
}

@media (max-width: 560px) {
  .home-page .home-hero {
    min-height: 720px;
    padding-bottom: 170px;
  }
  .hero-cat {
    right: calc((100vw - 100%) / -2);
    bottom: 0;
    width: min(42vw, 168px);
  }
}

/* Copyright and legal page */

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.legal-page {
  max-width: 820px;
  min-height: 70vh;
  padding-top: clamp(7rem, 12vw, 11rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.legal-page > h1 {
  max-width: 760px;
  margin: 0.5rem 0 2rem;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-introduction {
  max-width: 650px;
  margin-bottom: 4rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
}

.legal-page section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.legal-page section:last-child {
  border-bottom: 1px solid var(--line);
}

.legal-page section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.legal-page section p {
  max-width: 680px;
  margin: 0 0 1rem;
  line-height: 1.75;
}

@media (max-width: 700px) {
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
}
