/* ==========================================================================
   dorotheebar.com — design system
   Identity: science · technology · space · digital government · human progress
   Palette: deep indigo / midnight violet-blue / warm off-white / cloud grey,
            lavender / periwinkle / silver / blue-grey, restrained apricot accent
   Type: Red Hat Display (headings) · Red Hat Text (body) · Red Hat Mono (labels)
   ========================================================================== */

:root {
  --indigo-950: #131234;
  --indigo-900: #1c1a4a;
  --indigo-800: #282863;
  --indigo-700: #383a82;
  --indigo-600: #4a4d9f;
  --indigo-500: #6366b8;
  --lavender-400: #a9a3d6;
  --lavender-300: #c3bee4;
  --lavender-200: #dcd8f0;
  --lavender-100: #eeecf8;
  --peri-300: #b9c4f0;
  --peri-200: #d3dbf7;
  --peri-100: #e9edfb;
  --silver: #c8cbd6;
  --bluegrey: #eef0f5;
  --cloud: #e8e8ee;
  --paper: #f8f6f2;
  --white: #fffefc;
  --apricot: #f2895c;
  --apricot-soft: #f8b996;
  --apricot-deep: #b0491f;

  --ink: var(--indigo-900);
  --ink-2: #48466f;
  --ink-3: #5f5d82;
  --rule: #d6d5e2;
  --rule-strong: #b3b1ca;
  --on-dark: #f3f1fb;
  --on-dark-2: #c9c5e6;
  --on-dark-rule: rgba(201, 197, 230, .22);

  --f-display: "Red Hat Display", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-text: "Red Hat Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-mono: "Red Hat Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: .78rem;
  --fs-sm: .89rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.2rem;
  --fs-lg: clamp(1.35rem, 1.1rem + .9vw, 1.7rem);
  --fs-xl: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  --fs-2xl: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem);

  --wrap: 1280px;
  --wrap-text: 720px;
  --gutter: clamp(1rem, .5rem + 2.4vw, 2.5rem);
  --header-h: 72px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 60px -36px rgba(28, 26, 74, .45);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: var(--fs-base);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--indigo-600); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--indigo-900); text-decoration-color: var(--apricot); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -.03em; }
h2 { font-size: var(--fs-2xl); letter-spacing: -.025em; }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: .2em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--indigo-900); color: var(--on-dark); padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: .75rem; color: var(--on-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--wrap-text) + 2 * var(--gutter)); }
.wrap--mid { max-width: calc(980px + 2 * var(--gutter)); }

/* ---------- labels ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 1.1rem;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 4px rgba(242, 137, 92, .18); flex: none; }
.kicker--plain::before { display: none; }
.on-dark .kicker, .kicker--light { color: var(--on-dark-2); }
.num { font-family: var(--f-mono); font-feature-settings: "tnum"; letter-spacing: .02em; }
.standfirst { font-family: var(--f-display); font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 60ch; font-weight: 400; }
.standfirst--lg { font-size: var(--fs-lg); line-height: 1.45; color: var(--ink); }
.lede { font-size: 1.16rem; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: .98rem; letter-spacing: .005em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--apricot); color: var(--indigo-950); }
.btn--accent:hover { background: #f59f78; color: var(--indigo-950); transform: translateY(-1px); }
.btn--ink { background: var(--indigo-900); color: var(--on-dark); }
.btn--ink:hover { background: var(--indigo-700); color: var(--white); }
.btn--line { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--indigo-900); color: var(--ink); }
.on-dark .btn--line { border-color: var(--on-dark-rule); color: var(--on-dark); }
.on-dark .btn--line:hover { border-color: var(--apricot); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem; font-family: var(--f-display); font-weight: 600;
  color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--apricot); padding-bottom: 2px;
}
.textlink::after { content: "→"; transition: transform .25s var(--ease); }
.textlink:hover::after { transform: translateX(4px); }
.on-dark .textlink { color: var(--on-dark); }

/* ==========================================================================
   Header (sticky)
   ========================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248, 246, 242, .96);
  border-bottom: 1px solid var(--rule);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .masthead { background: rgba(248, 246, 242, .84); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); }
}
.masthead.is-scrolled { box-shadow: 0 12px 30px -24px rgba(28, 26, 74, .5); }
.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: var(--header-h); }
.masthead__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--apricot); transform-origin: 0 50%; transform: scaleX(0); }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); flex: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__mark .orbit-path { fill: none; stroke: var(--lavender-400); stroke-width: 1.2; }
.brand__mark .orbit-core { fill: var(--indigo-900); }
.brand__mark .orbit-dot { fill: var(--apricot); }
.brand__mark text { font-family: var(--f-display); font-weight: 700; font-size: 13px; fill: var(--on-dark); letter-spacing: .02em; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: .25rem; white-space: nowrap; }

.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 .85rem;
  font-family: var(--f-display); font-size: .95rem; font-weight: 600; color: var(--ink);
  background: none; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.nav__trigger .idx { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); font-weight: 500; }
.nav__trigger .chev { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav__trigger:hover, .nav__trigger[aria-expanded="true"] { background: var(--lavender-100); }
.nav__trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__trigger.is-current { box-shadow: inset 0 -2px 0 var(--apricot); border-radius: 0; }
.nav__trigger.is-current:hover, .nav__trigger.is-current[aria-expanded="true"] { border-radius: 999px; box-shadow: none; }

.masthead__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.masthead__contact { min-height: 42px; padding: .5rem 1.05rem; font-size: .92rem; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1px solid var(--rule); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--indigo-900); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .6rem; height: 44px; padding: 0 1rem 0 .85rem;
  border-radius: 999px; border: 1px solid var(--indigo-900); background: var(--indigo-900); color: var(--on-dark);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; cursor: pointer;
}
.menu-btn__icon { position: relative; width: 18px; height: 12px; }
.menu-btn__icon span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
.menu-btn__icon span:nth-child(1) { top: 0; }
.menu-btn__icon span:nth-child(2) { top: 5px; }
.menu-btn__icon span:nth-child(3) { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* mega panels (desktop) */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--indigo-900); color: var(--on-dark);
  border-top: 1px solid var(--indigo-700);
  box-shadow: 0 40px 70px -40px rgba(19, 18, 52, .7);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mega[hidden] { display: none; }
.mega__inner { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 3rem; padding-block: 2.4rem 2.6rem; position: relative; }
.mega__intro .num { color: var(--apricot); font-size: .8rem; letter-spacing: .14em; }
.mega__intro h2 { color: var(--on-dark); font-size: 1.7rem; margin: .5rem 0 .7rem; }
.mega__intro p { color: var(--on-dark-2); font-size: .95rem; line-height: 1.6; margin: 0; }
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .35rem 1.5rem; align-content: start; }
.mega__links a {
  display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .4rem; padding: .8rem .75rem; border-radius: 10px;
  text-decoration: none; color: var(--on-dark); border: 1px solid transparent;
}
.mega__links a:hover { background: rgba(255, 255, 255, .06); border-color: var(--on-dark-rule); color: var(--white); }
.mega__links a[aria-current="page"] { border-color: var(--apricot); }
.mega__links .num { font-size: .72rem; color: var(--lavender-400); padding-top: .2rem; }
.mega__links .t { font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.mega__links .d { grid-column: 2; font-size: .83rem; color: var(--on-dark-2); line-height: 1.45; }

/* mobile sheet */
.sheet {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 190;
  background: var(--indigo-900); color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 1rem var(--gutter) 3rem;
}
.sheet[hidden] { display: none; }
.sheet__group { border-bottom: 1px solid var(--on-dark-rule); }
.sheet__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 60px; padding: .6rem 0; background: none; border: 0; color: var(--on-dark); cursor: pointer; text-align: left;
  font-family: var(--f-display); font-weight: 600; font-size: 1.2rem;
}
.sheet__toggle .num { font-size: .72rem; color: var(--apricot); margin-right: .7rem; }
.sheet__toggle svg { width: 14px; height: 14px; transition: transform .25s var(--ease); flex: none; }
.sheet__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sheet__links { list-style: none; margin: 0; padding: 0 0 1rem; }
.sheet__links[hidden] { display: none; }
.sheet__links a { display: flex; align-items: center; min-height: 46px; padding: .4rem .2rem .4rem 1rem; color: var(--on-dark-2); text-decoration: none; border-left: 2px solid var(--on-dark-rule); font-size: 1rem; }
.sheet__links a:hover, .sheet__links a:focus-visible { color: var(--white); border-left-color: var(--lavender-400); }
.sheet__links a[aria-current="page"] { color: var(--white); border-left-color: var(--apricot); font-weight: 600; }
.sheet__direct { display: flex; align-items: center; min-height: 60px; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--on-dark-rule); }
.sheet__direct[aria-current="page"] { color: var(--apricot-soft); }
.sheet__foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
body.sheet-open { overflow: hidden; }

/* ==========================================================================
   Decorative orbital system (subtle)
   ========================================================================== */
.orbits { position: absolute; pointer-events: none; aria-hidden: true; }
.orbits span {
  position: absolute; inset: 0; border: 1px solid var(--lavender-300); border-radius: 50%;
}
.orbits span:nth-child(1) { transform: rotate(-18deg) scaleY(.42); }
.orbits span:nth-child(2) { transform: rotate(24deg) scaleY(.6); inset: 8%; border-color: var(--peri-300); }
.orbits span:nth-child(3) { inset: 22%; border-style: dashed; border-color: var(--lavender-300); }
.orbits i {
  position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%;
  background: var(--apricot); offset-path: none;
}
.on-dark .orbits span { border-color: rgba(169, 163, 214, .28); }

svg.deco { position: absolute; pointer-events: none; overflow: visible; }
svg.deco .o { fill: none; stroke: var(--lavender-300); stroke-width: 1; vector-effect: non-scaling-stroke; }
svg.deco .o--dash { stroke-dasharray: 3 6; }
svg.deco .n { fill: var(--lavender-400); }
svg.deco .n--accent { fill: var(--apricot); }
.on-dark svg.deco .o { stroke: rgba(169, 163, 214, .32); }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.spin-rev { transform-box: fill-box; transform-origin: center; animation: spin 140s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.gridlines {
  background-image:
    linear-gradient(to right, rgba(56, 58, 130, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 58, 130, .06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.on-dark.gridlines, .gridlines.on-dark {
  background-image:
    linear-gradient(to right, rgba(201, 197, 230, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 197, 230, .06) 1px, transparent 1px);
}

/* ==========================================================================
   Bands / sections
   ========================================================================== */
.band { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); position: relative; }
.band--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.band--paper { background: var(--paper); }
.band--white { background: var(--white); }
.band--cloud { background: var(--bluegrey); }
.band--lav { background: var(--lavender-100); }
.band--peri { background: var(--peri-100); }
.band--ink, .on-dark { background: var(--indigo-900); color: var(--on-dark); }
.band--deep { background: var(--indigo-950); color: var(--on-dark); }
.band--ink h1, .band--ink h2, .band--ink h3, .band--ink h4,
.band--deep h1, .band--deep h2, .band--deep h3, .band--deep h4,
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.band--ink p, .band--deep p, .on-dark p { color: var(--on-dark-2); }
.band--ink a:not(.btn):not(.textlink), .band--deep a:not(.btn):not(.textlink), .on-dark a:not(.btn):not(.textlink) { color: var(--peri-200); }
.band--ink a:not(.btn):not(.textlink):hover, .band--deep a:not(.btn):not(.textlink):hover { color: var(--white); }
.band--ink .standfirst, .band--deep .standfirst { color: var(--on-dark-2); }
.band--ink strong, .band--deep strong { color: var(--on-dark); }
.band > .deco-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { margin: 0; max-width: 58ch; color: var(--ink-2); }
.band--ink .section-head p, .band--deep .section-head p { color: var(--on-dark-2); }
.section-head__no { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.band--ink .section-head__no, .band--deep .section-head__no { color: var(--lavender-400); }

/* ==========================================================================
   Breadcrumbs + page heroes
   ========================================================================== */
.crumbs { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .55rem; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; gap: .55rem; }
.crumbs li + li::before { content: "/"; color: var(--rule-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.on-dark .crumbs, .on-dark .crumbs [aria-current] { color: var(--on-dark-2); }
.on-dark .crumbs a { color: var(--on-dark-2); }

/* page hero: base */
.ph { position: relative; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.ph .crumbs { margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); }
.ph__code { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: .9rem; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; }
.ph__code b { font-weight: 500; color: var(--apricot-deep); }
.ph__code::after { content: ""; flex: 1 1 60px; max-width: 160px; height: 1px; background: var(--rule-strong); }
.ph h1 { max-width: 16ch; margin-bottom: .45em; }
.ph .standfirst { margin-bottom: 0; }
.on-dark .ph__code, .ph.on-dark .ph__code { color: var(--on-dark-2); }
.on-dark .ph__code b { color: var(--apricot); }

/* variant: split — text + figure */
.ph--split .ph__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
/* variant: spec — text + key-facts sheet */
.ph--spec .ph__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: end; }
/* variant: diagram */
.ph--diagram .ph__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.ph__diagram { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 1; }
.ph__diagram svg { width: 100%; height: 100%; }
/* variant: statement — centred large statement on dark */
.ph--statement { text-align: left; }
.ph--statement h1 { max-width: 18ch; }

/* key facts sheet */
.spec {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow); position: relative;
}
.spec::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 2px; background: linear-gradient(90deg, var(--apricot) 0 48px, transparent 48px); }
.spec__title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .9rem; }
.spec dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.spec dl > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .25rem 1rem; padding: .62rem 0; border-top: 1px solid var(--rule); }
.spec dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: var(--ink-3); padding-top: .15rem; }
.spec dd { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink); }

/* ==========================================================================
   Figures — never crop, natural proportions
   ========================================================================== */
figure { margin: 0; }
.fig { position: relative; margin: 0; }
.fig img {
  width: 100%; height: auto; object-fit: contain; object-position: center;
  border-radius: var(--radius-sm); background: var(--cloud);
}
.fig figcaption, .fig__cap {
  margin-top: .8rem; font-size: .84rem; line-height: 1.5; color: var(--ink-3);
  display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: baseline;
}
.fig figcaption::before { content: "FIG"; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; color: var(--apricot-deep); }
.on-dark .fig figcaption { color: var(--on-dark-2); }
.on-dark .fig figcaption::before { color: var(--apricot); }
.fig--natural { max-width: var(--nat, 100%); }
.fig--center { margin-inline: auto; }
.fig--right { margin-left: auto; }

/* asymmetric frame: offset tinted plate + orbit arc; the photo itself is never masked */
.frame { position: relative; isolation: isolate; padding: 0 0 1.2rem 1.2rem; }
.frame::before {
  content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 78%; height: 82%;
  background: var(--lavender-200); border-radius: var(--radius);
}
.frame::after {
  content: ""; position: absolute; z-index: -1; right: -6%; top: -8%; width: 58%; aspect-ratio: 1;
  border: 1px solid var(--lavender-300); border-radius: 50%;
}
.frame--peri::before { background: var(--peri-200); }
.frame--right { padding: 0 1.2rem 1.2rem 0; }
.frame--right::before { left: auto; right: 0; }
.frame--right::after { right: auto; left: -6%; }
.on-dark .frame::before { background: var(--indigo-800); }
.on-dark .frame::after { border-color: rgba(169, 163, 214, .3); }
.frame img { border-radius: var(--radius-sm); box-shadow: 0 30px 60px -40px rgba(19, 18, 52, .65); }
.frame .marker { position: absolute; z-index: 2; width: 12px; height: 12px; border-radius: 50%; background: var(--apricot); right: 14%; top: -6px; box-shadow: 0 0 0 6px rgba(242, 137, 92, .2); }

/* ==========================================================================
   Dossier layout: contents rail + reading column + marginalia
   ========================================================================== */
.dossier { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: clamp(2.5rem, 2rem + 3vw, 5rem); }
.toc { font-size: .9rem; }
.toc__title { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--rule); }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 2rem 1fr; padding: .42rem 0 .42rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); padding-top: .12rem; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--apricot); font-weight: 600; }

/* prose */
.prose { max-width: var(--wrap-text); }
.prose > * + h2 { margin-top: 3.2rem; }
.prose > * + h3 { margin-top: 2.2rem; }
.prose h2 { font-size: var(--fs-xl); max-width: 26ch; }
.prose h2 .no { display: block; font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; color: var(--ink-3); margin-bottom: .7rem; text-transform: uppercase; }
.prose h3 { font-size: 1.28rem; }
.prose p, .prose li { color: #2c2a55; }
.prose ul, .prose ol { margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--indigo-500); }
.prose blockquote { margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 3px solid var(--apricot); font-family: var(--f-display); font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.prose blockquote p { color: var(--ink); }
.prose blockquote footer, .prose blockquote cite { display: block; margin-top: .6rem; font-family: var(--f-text); font-style: normal; font-size: .85rem; color: var(--ink-3); }
.prose .fig { margin: 2.4rem 0; }
.prose table { width: 100%; }
.on-dark .prose p, .on-dark .prose li { color: var(--on-dark-2); }

.aside-note {
  border-top: 2px solid var(--indigo-900); padding-top: 1rem; font-size: .9rem; color: var(--ink-2);
}
.aside-note h3, .aside-note h4 { font-size: 1rem; margin-bottom: .5rem; }
.aside-note p:last-child { margin-bottom: 0; }

/* evidence labels */
.tag {
  display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .65rem .28rem .55rem; border-radius: 999px;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  border: 1px solid currentColor; vertical-align: middle; white-space: nowrap;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.tag--fact { color: #2f3a8f; background: var(--peri-100); }
.tag--statement { color: #5a3d96; background: var(--lavender-100); }
.tag--statement::before { border-radius: 1px; transform: rotate(45deg); }
.tag--position { color: #3b3f6e; background: var(--bluegrey); }
.tag--position::before { border-radius: 0; }
.tag--analysis { color: #45457a; background: transparent; border-style: dashed; }
.tag--analysis::before { background: transparent; border: 1.5px solid currentColor; }
.tag--criticism { color: #9a3d16; background: #fdeee6; }
.tag--criticism::before { border-radius: 0; width: 8px; height: 2px; }
.tag--assessment { color: #4f4a6b; background: var(--cloud); }
.tag--assessment::before { width: 0; height: 0; border-radius: 0; background: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .8rem; }
.on-dark .tag--fact, .on-dark .tag--statement, .on-dark .tag--position, .on-dark .tag--analysis, .on-dark .tag--assessment { color: var(--peri-200); background: rgba(255, 255, 255, .05); }
.on-dark .tag--criticism { color: var(--apricot-soft); background: rgba(242, 137, 92, .08); }

.legend { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; padding: 1rem 1.1rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius-sm); font-size: .85rem; color: var(--ink-2); }
.legend__label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-right: .3rem; color: var(--ink-3); }

/* evidence block: labelled paragraph group */
.ev { margin: 0 0 1.6rem; padding: 1.1rem 1.2rem 1rem; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--rule); }
.ev > :last-child { margin-bottom: 0; }
.ev--criticism { border-left: 3px solid var(--apricot); }
.ev--statement { border-left: 3px solid var(--lavender-400); }

/* ==========================================================================
   Statements, quotes, numbers
   ========================================================================== */
.statement { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -.02em; max-width: 30ch; margin: 0; }
.statement em { font-style: normal; color: var(--apricot-deep); }
.on-dark .statement em, .band--ink .statement em, .band--deep .statement em { color: var(--apricot-soft); }

.pull {
  margin: 2.5rem 0; padding: 1.8rem 0 1.4rem; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem;
}
.pull::before { content: "“"; font-family: var(--f-display); font-size: 4rem; line-height: .8; color: var(--apricot); }
.pull blockquote { margin: 0; padding: 0; border: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
.pull blockquote p { margin: 0 0 .4rem; color: var(--ink); }
.pull figcaption { grid-column: 2; font-size: .85rem; color: var(--ink-3); line-height: 1.5; }
.pull .tr { display: block; font-family: var(--f-text); font-size: .95rem; color: var(--ink-2); margin-top: .5rem; font-weight: 400; }
.on-dark .pull { border-color: var(--on-dark-rule); }
.on-dark .pull blockquote, .on-dark .pull blockquote p { color: var(--on-dark); }
.on-dark .pull figcaption, .on-dark .pull .tr { color: var(--on-dark-2); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); }
.figures > div { padding: 1.4rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--rule); position: relative; }
.figures .v { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.figures .v small { font-size: .45em; font-weight: 500; letter-spacing: 0; margin-left: .2em; color: var(--ink-2); }
.figures .l { margin-top: .6rem; font-size: .9rem; color: var(--ink-2); line-height: 1.45; max-width: 30ch; }
.figures .s { display: block; margin-top: .5rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--ink-3); }
.figures > div::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--apricot); }
.on-dark .figures, .band--ink .figures { border-color: var(--on-dark-rule); }
.on-dark .figures > div, .band--ink .figures > div { border-color: var(--on-dark-rule); }
.band--ink .figures .v, .on-dark .figures .v { color: var(--on-dark); }
.band--ink .figures .v small, .band--ink .figures .l, .on-dark .figures .l { color: var(--on-dark-2); }
.band--ink .figures .s, .on-dark .figures .s { color: var(--lavender-400); }

/* ==========================================================================
   Structures
   ========================================================================== */
/* split editorial */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.split--top { align-items: start; }

/* node chain: connected vertical process */
.nodes { list-style: none; margin: 0; padding: 0; position: relative; }
.nodes::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--lavender-400), var(--peri-300)); }
.nodes > li { position: relative; padding: 0 0 1.8rem 3rem; }
.nodes > li:last-child { padding-bottom: 0; }
.nodes > li::before { content: ""; position: absolute; left: 4px; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--indigo-600); }
.nodes > li.is-key::before { background: var(--apricot); border-color: var(--apricot); box-shadow: 0 0 0 5px rgba(242, 137, 92, .18); }
.nodes h3, .nodes h4 { margin: 0 0 .35rem; font-size: 1.15rem; }
.nodes p { margin: 0; color: var(--ink-2); }
.nodes .when { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--ink-3); display: block; margin-bottom: .25rem; }
.on-dark .nodes > li::before { background: var(--indigo-900); border-color: var(--lavender-400); }
.on-dark .nodes p { color: var(--on-dark-2); }
.on-dark .nodes .when { color: var(--lavender-400); }

/* matrix: ruled grid of concise entries (not cards) */
.matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule); }
.matrix > * { padding: 1.5rem 1.4rem 1.6rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0; }
.matrix h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.matrix p { font-size: .95rem; color: var(--ink-2); margin: 0 0 .6rem; }
.matrix p:last-child { margin-bottom: 0; }
.matrix .no { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: var(--apricot-deep); display: block; margin-bottom: .8rem; }
.on-dark .matrix, .band--ink .matrix { border-color: var(--on-dark-rule); }
.on-dark .matrix > *, .band--ink .matrix > * { border-color: var(--on-dark-rule); }
.band--ink .matrix p { color: var(--on-dark-2); }
.band--ink .matrix .no { color: var(--apricot); }

/* case study specimen sheet */
.case { border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--white); overflow: hidden; margin-bottom: 2.5rem; }
.case__head { padding: 1.6rem 1.6rem 1.3rem; background: var(--indigo-900); color: var(--on-dark); position: relative; overflow: hidden; }
.case__head h3 { color: var(--on-dark); margin: .3rem 0 .4rem; font-size: var(--fs-lg); max-width: 32ch; }
.case__head p { color: var(--on-dark-2); margin: 0; font-size: .95rem; max-width: 62ch; }
.case__head .num { color: var(--apricot); font-size: .74rem; letter-spacing: .14em; }
.case__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.case__cell { padding: 1.2rem 1.4rem 1.3rem; border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.case__cell h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.case__cell h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-500); }
.case__cell--crit h4::before { background: var(--apricot); }
.case__cell p { font-size: .94rem; color: #2c2a55; margin: 0 0 .5rem; }
.case__cell p:last-child { margin-bottom: 0; }

/* perspectives: supporters vs critics */
.persp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; margin: 1.5rem 0 2rem; }
.persp > div { background: var(--white); padding: 1.2rem 1.3rem; }
.persp h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); margin-bottom: .6rem; }
.persp p { font-size: .95rem; margin: 0 0 .5rem; }
.persp p:last-child { margin-bottom: 0; }

/* accordion (details) */
.acc { border-top: 1px solid var(--rule-strong); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 3rem 1fr 28px; gap: .8rem; align-items: center;
  padding: 1.15rem 0; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .no { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; color: var(--ink-3); letter-spacing: .1em; }
.acc summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 50%; font-family: var(--f-mono); font-weight: 400; transition: transform .25s var(--ease), background .25s; }
.acc details[open] summary::after { content: "−"; background: var(--apricot); border-color: var(--apricot); color: var(--indigo-950); }
.acc summary:hover { color: var(--indigo-600); }
.acc .acc__body { padding: 0 0 1.6rem 3.8rem; }
.acc .acc__body > :last-child { margin-bottom: 0; }

/* glossary */
.glossary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 1.5rem 0 2rem; border-top: 1px solid var(--rule-strong); }
.glossary > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font-family: var(--f-display); font-weight: 600; }
.glossary dd { margin: 0; color: var(--ink-2); font-size: .97rem; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--white); }
.table-wrap:focus-visible { outline-offset: 2px; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
table.data caption { text-align: left; padding: .9rem 1rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
table.data th, table.data td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
table.data thead th { font-family: var(--f-display); font-weight: 600; background: var(--bluegrey); font-size: .88rem; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th { border-bottom: 0; }
table.data td.num, table.data th.num { font-family: var(--f-mono); white-space: nowrap; }

/* callout */
.callout { padding: 1.4rem 1.5rem; border-radius: var(--radius-sm); background: var(--peri-100); border: 1px solid var(--peri-200); margin: 2rem 0; }
.callout > :last-child { margin-bottom: 0; }
.callout h3, .callout h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.callout--note { background: var(--lavender-100); border-color: var(--lavender-200); }
.callout--warn { background: #fdf1ea; border-color: #f6d5c3; }

/* ==========================================================================
   Chronology / timeline (vertical orbit spine)
   ========================================================================== */
.chrono { position: relative; list-style: none; margin: 0; padding: 0; }
.chrono::before { content: ""; position: absolute; top: 0; bottom: 0; left: 5.6rem; width: 1px; background: var(--rule-strong); }
.chrono > li { position: relative; display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: 0 2rem; padding: 0 0 2.4rem; }
.chrono > li[hidden] { display: none; }
.chrono__year { font-family: var(--f-mono); font-size: .95rem; font-weight: 500; color: var(--ink); padding-top: .1rem; text-align: right; padding-right: 1.2rem; }
.chrono__body { position: relative; padding-left: .2rem; }
.chrono__body::before { content: ""; position: absolute; left: -2.42rem; top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--indigo-600); }
.chrono > li.is-key .chrono__body::before { background: var(--apricot); border-color: var(--apricot); box-shadow: 0 0 0 5px rgba(242, 137, 92, .2); }
.chrono__era { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.chrono h3 { font-size: 1.2rem; margin: .2rem 0 .4rem; }
.chrono p { color: var(--ink-2); margin: 0 0 .5rem; font-size: .98rem; }
.chrono .more { font-size: .9rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; }
.chip {
  min-height: 40px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--white);
  font-family: var(--f-display); font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--indigo-900); }
.chip[aria-pressed="true"] { background: var(--indigo-900); color: var(--on-dark); border-color: var(--indigo-900); }

/* ==========================================================================
   Speeches archive
   ========================================================================== */
.archive-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 2rem; padding: 1.2rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.field label, .field .label { display: block; font-family: var(--f-display); font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .95rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--rule-strong); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1a4a' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo-600); box-shadow: 0 0 0 4px rgba(242, 137, 92, .28); }
.archive-count { font-family: var(--f-mono); font-size: .78rem; color: var(--ink-3); letter-spacing: .06em; margin: 0 0 1rem; }
.records { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.record { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.record[hidden] { display: none; }
.record__meta { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); letter-spacing: .04em; line-height: 1.6; }
.record__meta b { display: block; color: var(--ink); font-size: .9rem; font-weight: 500; }
.record h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.record p { margin: 0 0 .6rem; color: var(--ink-2); font-size: .97rem; }
.record q, .record blockquote { font-family: var(--f-display); color: var(--ink); }
.record blockquote { margin: .6rem 0 .8rem; padding-left: 1rem; border-left: 2px solid var(--apricot); font-size: 1.05rem; }
.record blockquote p { color: var(--ink); margin: 0; }
.record .tr { display: block; font-family: var(--f-text); color: var(--ink-2); font-size: .9rem; margin-top: .3rem; }
.empty-state { padding: 2rem 0; color: var(--ink-2); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-set { margin-bottom: 3.5rem; }
.gallery-set h2 { font-size: var(--fs-lg); display: flex; align-items: baseline; gap: .8rem; }
.gallery-set h2 .num { font-size: .75rem; color: var(--ink-3); font-weight: 500; }
.gallery { columns: 1; column-gap: 1.25rem; }
.gallery .shot { break-inside: avoid; margin: 0 0 1.25rem; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); }
.shot img { width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--cloud); transition: transform .5s var(--ease), box-shadow .3s; }
.shot button:hover img { box-shadow: 0 20px 40px -28px rgba(19, 18, 52, .6); }
.shot figcaption { font-size: .84rem; color: var(--ink-3); margin-top: .55rem; line-height: 1.45; }
.shot figcaption a { font-weight: 600; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 96vh; width: auto; }
.lightbox::backdrop { background: rgba(19, 18, 52, .9); }
.lightbox__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 3.2rem .5rem .5rem; }
.lightbox img { max-width: 100%; max-height: calc(96vh - 9rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox p { color: var(--on-dark); margin: 0; font-size: .92rem; text-align: center; max-width: 70ch; }
.lightbox__close { position: absolute; top: .4rem; right: .5rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ==========================================================================
   Related + sources (generated)
   ========================================================================== */
.related { background: var(--lavender-100); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--lavender-200); }
.related__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .75rem; }
.related__list a {
  display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; min-height: 64px;
  padding: .9rem 1.1rem; border-radius: 12px; background: var(--white); border: 1px solid var(--lavender-200);
  text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 600; line-height: 1.3;
  transition: border-color .2s, transform .25s var(--ease);
}
.related__list a:hover { border-color: var(--indigo-600); transform: translateY(-2px); color: var(--ink); }
.related__list .num { font-size: .7rem; color: var(--ink-3); font-weight: 500; }
.related__list a::after { content: "→"; color: var(--apricot-deep); }
.related h2 { font-size: var(--fs-lg); margin-bottom: .4rem; }
.related p { color: var(--ink-2); font-size: .95rem; margin: 0; }

.sources { padding-block: 2.8rem 3.2rem; background: var(--paper); border-top: 1px solid var(--rule); }
.sources__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem 3rem; }
.sources h2 { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); margin: 0; }
.sources ol { margin: 0; padding-left: 1.6rem; font-size: .88rem; color: var(--ink-2); columns: 1; column-gap: 2.5rem; }
.sources li { margin-bottom: .55rem; break-inside: avoid; padding-left: .3rem; }
.sources li::marker { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-3); }
.sources a { word-break: break-word; }
.sources .note { font-size: .82rem; color: var(--ink-3); margin: 0; max-width: 40ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--indigo-950); color: var(--on-dark-2); position: relative; overflow: hidden; padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--apricot-soft); text-decoration: underline; text-underline-offset: .25em; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--on-dark-rule); position: relative; }
.footer__brand .brand { color: var(--on-dark); }
.footer__brand .brand__sub { color: var(--on-dark-2); }
.footer__brand .brand__mark .orbit-core { fill: var(--apricot); }
.footer__brand .brand__mark text { fill: var(--indigo-950); }
.footer__brand .brand__mark .orbit-path { stroke: rgba(169, 163, 214, .5); }
.footer__brand p { margin: 1.2rem 0 0; max-width: 36ch; font-size: .95rem; line-height: 1.6; }
.footer h2 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender-400); font-weight: 500; margin: 0 0 1rem; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: .45rem; font-size: .92rem; }
.footer__nav a { color: var(--on-dark-2); }
.footer__nav a:hover { color: var(--white); }
.footer__contact address { font-style: normal; line-height: 1.9; font-size: .95rem; }
.footer__contact strong { color: var(--on-dark); font-family: var(--f-display); font-size: 1.05rem; }
.social { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--on-dark-rule); color: var(--on-dark); transition: background .25s, border-color .25s, color .25s; }
.social a:hover { background: var(--apricot); border-color: var(--apricot); color: var(--indigo-950); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-block: 1.5rem 1.8rem; font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__orbit { position: absolute; right: -180px; top: -200px; width: 560px; height: 560px; opacity: .55; }

/* ==========================================================================
   Reveal motion (content stays visible without JS)
   ========================================================================== */
.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .footer, .related, .sheet, .mega { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Natural-size cap: builder writes --nat (image's intrinsic width) on figures
   ========================================================================== */
figure[style*="--nat"] { max-width: calc(var(--nat) + var(--fpad, 0px)); }
.frame { --fpad: 1.2rem; }
figure.fig--center, .frame.fig--center { margin-inline: auto; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(3rem, 2rem + 3vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; position: relative; }
.hero__name { font-size: clamp(3rem, 1.6rem + 6.4vw, 6.6rem); line-height: .92; letter-spacing: -.045em; font-weight: 700; margin: 0 0 1.6rem; text-transform: uppercase; max-width: none; }
.hero__name span { display: block; }
.hero__name span + span { color: var(--indigo-600); }
.hero__role { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.25; letter-spacing: -.015em; margin: 0 0 1.4rem; max-width: 24ch; color: var(--ink); }
.hero__role b { font-weight: 700; }
.hero__intro { color: var(--ink-2); max-width: 54ch; margin-bottom: 1.6rem; }
.pillars { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pillars li { display: inline-flex; align-items: center; gap: .9rem; }
.pillars li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--apricot); }
.hero__visual { position: relative; display: grid; justify-items: center; padding: 1.5rem 0 0; }
.hero__orbits { position: absolute; left: 50%; top: 46%; width: 150%; max-width: 760px; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; }
.hero__visual .frame { z-index: 1; width: 100%; }
.hero__badge { position: relative; z-index: 2; margin-top: 1rem; display: flex; gap: .8rem; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: .55rem 1rem .55rem .6rem; font-size: .84rem; color: var(--ink-2); box-shadow: var(--shadow); max-width: 100%; }
.hero__badge .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo-900); display: grid; place-items: center; flex: none; }
.hero__badge .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); }
.hero__badge b { color: var(--ink); font-weight: 600; }

.status { border-top: 1px solid var(--rule); background: var(--white); }
.status .figures { border-top: 0; }
.status .figures > div { padding-left: 0; }

/* trajectory */
.traj { position: relative; }
.traj__path { display: none; }
.traj__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: tr; position: relative; }
.traj__list > li { position: relative; padding: 0 0 2rem 3.2rem; }
.traj__list > li::before { counter-increment: tr; content: counter(tr, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--lavender-400); display: grid; place-items: center; font-family: var(--f-mono); font-size: .72rem; color: var(--on-dark); background: var(--indigo-900); }
.traj__list > li::after { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: .3rem; width: 1px; background: var(--on-dark-rule); }
.traj__list > li:last-child::after { display: none; }
.traj__list > li.is-now::before { background: var(--apricot); border-color: var(--apricot); color: var(--indigo-950); }
.traj__era { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lavender-400); }
.traj__list h3 { font-size: 1.3rem; margin: .25rem 0 .5rem; }
.traj__list p { font-size: .95rem; margin: 0; }
.traj__note { margin-top: 2.5rem; padding: 1.2rem 1.4rem; border: 1px dashed var(--on-dark-rule); border-radius: var(--radius-sm); font-size: .95rem; max-width: 80ch; }

/* career meridian */
.meridian { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.meridian > li { position: relative; padding: 0 0 1.8rem 2.2rem; border-left: 1px solid var(--rule-strong); margin-left: .45rem; }
.meridian > li::before { content: ""; position: absolute; left: -6px; top: .5rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--indigo-600); }
.meridian > li.is-now::before { background: var(--apricot); border-color: var(--apricot); box-shadow: 0 0 0 5px rgba(242, 137, 92, .2); }
.meridian .yr { font-family: var(--f-mono); font-size: 1.05rem; font-weight: 500; color: var(--ink); display: block; }
.meridian h3 { font-size: 1.05rem; margin: .3rem 0 .35rem; line-height: 1.3; }
.meridian p { font-size: .9rem; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* portfolio triad */
.triad { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule-strong); }
.triad > section { padding: 2rem 0 2.2rem; border-bottom: 1px solid var(--rule); position: relative; }
.triad__word { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); letter-spacing: -.035em; line-height: 1; margin: 0 0 1rem; text-transform: uppercase; color: var(--ink); }
.triad__word .num { display: block; font-size: .78rem; letter-spacing: .14em; font-weight: 500; color: var(--apricot-deep); margin-bottom: .8rem; }
.triad p { color: var(--ink-2); font-size: .97rem; }
.triad ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.triad ul li { font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); color: var(--ink); }
.triad ul li a { color: inherit; text-decoration: none; }
.triad ul li a:hover { text-decoration: underline; }

/* explore star chart */
.chart { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--on-dark-rule); border: 1px solid var(--on-dark-rule); border-radius: var(--radius); overflow: hidden; }
.chart a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem; min-height: 150px; padding: 1.3rem 1.3rem 1.2rem; background: var(--indigo-950); color: var(--on-dark); text-decoration: none; transition: background .3s var(--ease); overflow: hidden; }
.chart a::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border: 1px solid rgba(169, 163, 214, .18); border-radius: 50%; transition: transform .6s var(--ease); }
.chart a::after { content: ""; position: absolute; right: 18px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--lavender-400); transition: background .3s; }
.chart a:hover { background: var(--indigo-800); color: var(--white); }
.chart a:hover::before { transform: scale(1.25); }
.chart a:hover::after { background: var(--apricot); }
.chart .num { font-size: .72rem; color: var(--lavender-400); letter-spacing: .12em; }
.chart .t { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.015em; }
.chart .d { display: block; font-family: var(--f-text); font-weight: 400; font-size: .85rem; color: var(--on-dark-2); margin-top: .3rem; }

/* space band image */
.space-band { background: var(--indigo-950); color: var(--on-dark); overflow: hidden; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem 1.4rem; }
.field .req { color: var(--apricot-deep); margin-left: .15rem; }
.field .hint { display: block; font-size: .84rem; color: var(--ink-3); margin-top: .35rem; }
.field .err { display: block; min-height: 0; font-size: .86rem; font-weight: 600; color: #a33a12; margin-top: .35rem; }
.field .err:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c4501f; background: #fffaf7; }
.field label.check, .check { display: grid; grid-template-columns: 24px 1fr; gap: .8rem; align-items: start; font-size: .94rem; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--indigo-900); }
.form-status { min-height: 1.4em; font-size: .94rem; margin: 0; }
.form-status.is-error { color: #a33a12; font-weight: 600; }
.form-done { padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--apricot); }
.form-done:focus { outline: none; }
.form-done h2 { font-size: var(--fs-lg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card { background: var(--indigo-900); color: var(--on-dark); border-radius: var(--radius); padding: 2rem; position: relative; overflow: hidden; }
.contact-card h2 { color: var(--on-dark); font-size: 1.6rem; }
.contact-card dl { margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-card dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender-400); }
.contact-card dd { margin: .2rem 0 0; font-size: 1.1rem; font-family: var(--f-display); font-weight: 600; }
.contact-card a { color: var(--on-dark); text-decoration-color: var(--apricot); }
.contact-card a:hover { color: var(--apricot-soft); }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3.5rem; }
  .hero__visual { padding-top: 0; }
  .triad { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .triad > section { padding: 2.2rem 2rem 2.4rem 0; border-bottom: 0; }
  .triad > section + section { padding-left: 2rem; border-left: 1px solid var(--rule); }
  .traj__list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; }
  .traj__list > li { padding: 3.6rem 0 0; }
  .traj__list > li::after { left: 2.4rem; right: -1.6rem; top: 1.1rem; bottom: auto; width: auto; height: 1px; }
  .meridian { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.2rem; border-top: 1px solid var(--rule-strong); padding-top: 0; }
  .meridian > li { border-left: 0; margin-left: 0; padding: 2rem 0 0; }
  .meridian > li::before { left: 0; top: -6px; }
}

/* ---------- overflow guards: decorative orbits may bleed, content never scrolls sideways ---------- */
main, .related, .sources, .footer { overflow-x: hidden; }
@supports (overflow: clip) { main, .related, .sources { overflow-x: clip; } }
.tag { max-width: 100%; }
@media (max-width: 420px) { .tag { white-space: normal; } }
