/* ============================================================
   IAIA — Institut für angewandte KI-Ethik
   Design system: "Lagebericht" — command-post ink × dossier paper
   ============================================================ */

:root {
  /* palette */
  --ink:        #0A0D13;   /* Einsatzraum — near-black navy */
  --ink-2:      #0F131B;   /* raised surface */
  --ink-3:      #141926;   /* card / panel */
  --paper:      #E9E4D6;   /* dossier paper */
  --paper-2:    #DDD7C5;   /* paper shadow/edge */
  --un:         #7CB3DE;   /* UN-Blau — accent */
  --un-bright:  #ACD2F0;   /* phosphor highlight */
  --signal:     #D95238;   /* used sparingly: alerts, "verboten" */
  --text:       #C7CBD5;   /* body on ink */
  --text-hi:    #F1F2F6;   /* headings on ink */
  --text-dim:   #7E8592;   /* muted on ink */
  --text-ink:   #1C2027;   /* body on paper */
  --text-ink-dim:#5A5E66;  /* muted on paper */
  --line:       rgba(255, 255, 255, .08);
  --line-hi:    rgba(255, 255, 255, .16);
  --line-paper: rgba(22, 26, 34, .16);

  /* type */
  --f-display: "Newsreader", Georgia, serif;
  --f-body:    "IBM Plex Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* motion */
  --ease:      cubic-bezier(.32, .72, 0, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);

  /* layout */
  --maxw: 1320px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 1.5rem;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--un); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 380;
  color: var(--text-hi);
  letter-spacing: -.015em;
}

/* film grain — fixed, never on scrolling containers */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- layout utilities ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(6rem, 12vw, 10rem); position: relative; }

/* mono eyebrow — the classification tag, used as structural device */
.tag {
  font-family: var(--f-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--un);
  display: inline-flex;
  align-items: center;
  gap: .75em;
}
.tag::before { content: "["; color: var(--text-dim); }
.tag::after  { content: "]"; color: var(--text-dim); }
.tag--paper { color: #33628C; }
.tag--paper::before, .tag--paper::after { color: var(--text-ink-dim); }

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 56rem; }
.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  margin-top: 1.5rem;
}
.section-head p { margin-top: 1.5rem; max-width: 44rem; color: var(--text-dim); }

/* hairline rule with mono label — encodes the Lagebericht structure */
.rule {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- buttons — nested "button-in-button" architecture ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  padding: .5rem .5rem .5rem 1.5rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }

.btn__icon {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  transition: transform .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease);
}
.btn:hover .btn__icon { transform: translate(2px, -2px) scale(1.06); }

.btn--primary { background: var(--un); color: var(--ink); }
.btn--primary .btn__icon { background: rgba(10, 13, 19, .14); color: var(--ink); }
.btn--primary:hover { background: var(--un-bright); }

.btn--ghost {
  border: 1px solid var(--line-hi);
  color: var(--text);
}
.btn--ghost .btn__icon { background: rgba(255, 255, 255, .07); color: var(--un); }
.btn--ghost:hover { border-color: var(--un); color: var(--text-hi); }

.btn--paper { border: 1px solid var(--line-paper); color: var(--text-ink); }
.btn--paper .btn__icon { background: rgba(22, 26, 34, .08); color: #33628C; }
.btn--paper:hover { border-color: #33628C; }

/* text arrow link */
.alink {
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .06em;
  color: var(--un);
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  transition: color .4s var(--ease);
}
.alink::after { content: "→"; transition: transform .4s var(--ease); }
.alink:hover { color: var(--un-bright); }
.alink:hover::after { transform: translateX(4px); }

/* ============================================================
   NAV — floating glass pill
   ============================================================ */
.nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 2.5rem), var(--maxw));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .5rem .5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 13, 19, .55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .5s var(--ease), background-color .5s var(--ease);
}
.nav.is-scrolled { border-color: var(--line-hi); background: rgba(10, 13, 19, .82); }

.nav__brand {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .18em;
  color: var(--text-hi);
  display: flex;
  align-items: center;
  gap: .75rem;
  white-space: nowrap;
}
.nav__brand .dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--un);
  box-shadow: 0 0 12px rgba(124, 179, 222, .8);
  animation: pulse 3.2s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .4s var(--ease);
  position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text-hi); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.375rem;
  height: 1px;
  background: var(--un);
}

/* hamburger */
.nav__burger {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
}
.nav__burger span {
  position: absolute;
  left: 50%;
  width: 1rem;
  height: 1.5px;
  background: var(--text-hi);
  transition: transform .5s var(--ease), top .5s var(--ease);
  transform: translateX(-50%);
}
.nav__burger span:nth-child(1) { top: calc(50% - 4px); }
.nav__burger span:nth-child(2) { top: calc(50% + 3px); }
.nav__burger.is-open span:nth-child(1) { top: 50%; transform: translateX(-50%) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 50%; transform: translateX(-50%) rotate(-45deg); }

/* mobile overlay menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 13, 19, .88);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu a {
  font-family: var(--f-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--text-hi);
  padding-block: .35em;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease), color .4s var(--ease);
}
.menu a:hover { color: var(--un); }
.menu a .idx { font-family: var(--f-mono); font-size: .75rem; color: var(--text-dim); letter-spacing: .2em; }
.menu.is-open a { opacity: 1; transform: translateY(0); }
.menu.is-open a:nth-child(1) { transition-delay: .08s; }
.menu.is-open a:nth-child(2) { transition-delay: .14s; }
.menu.is-open a:nth-child(3) { transition-delay: .20s; }
.menu.is-open a:nth-child(4) { transition-delay: .26s; }
.menu.is-open a:nth-child(5) { transition-delay: .32s; }
.menu.is-open a:nth-child(6) { transition-delay: .38s; }
.menu.is-open a:nth-child(7) { transition-delay: .44s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
}

/* topographic command-map background */
.hero__map {
  position: absolute;
  inset: -10%;
  z-index: 0;
  opacity: .5;
  animation: drift 60s linear infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

/* slow scan line */
.hero__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(124, 179, 222, .045) 48%, rgba(124, 179, 222, .09) 50%, rgba(124, 179, 222, .045) 52%, transparent);
  background-size: 100% 300%;
  animation: scan 14s linear infinite;
}
@keyframes scan {
  from { background-position: 0 -150%; }
  to   { background-position: 0 150%; }
}

.hero__inner { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 6.75rem);
  line-height: 1.02;
  max-width: 18ch;
  margin-top: 2rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--un);
}

/* line-mask load reveal */
.mask { display: block; overflow: hidden; }
.mask > span {
  display: block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.mask:nth-child(2) > span { animation-delay: .12s; }
.mask:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__sub {
  max-width: 44rem;
  margin-top: 2.25rem;
  font-size: 1.125rem;
  color: var(--text-dim);
}
.hero__sub strong { color: var(--text); font-weight: 500; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.75rem; }

/* live situation log — the status line */
.sitrep {
  margin-top: clamp(3rem, 7vh, 5.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.sitrep__item { display: flex; align-items: center; gap: .625rem; white-space: nowrap; }
.sitrep__label { color: var(--un); letter-spacing: .2em; text-transform: uppercase; font-size: .625rem; }
.sitrep__log { overflow: hidden; flex: 1; min-width: 16rem; }
.sitrep__log span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: logswap 8s var(--ease) infinite;
}
@keyframes logswap {
  0%, 42%  { opacity: 1; transform: translateY(0); }
  50%, 92% { opacity: 0; transform: translateY(-.4em); }
  100%     { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TICKER — doctrine marquee
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1rem;
}
.ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: marquee 36s linear infinite;
}
.ticker__track b { color: var(--un); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   TÄTIGKEITSFELDER — asymmetric stacked panels
   ============================================================ */
.fields { display: grid; gap: 1.25rem; }
.field {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 5rem) minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  transition: border-color .6s var(--ease), transform .6s var(--ease);
}
.field:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.field__no {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--un);
  padding-top: .6em;
}
.field h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  margin-bottom: 1rem;
}
.field p { max-width: 52rem; color: var(--text-dim); }
.field .alink { margin-top: 1.75rem; }
.field__glyph {
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .25em;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  text-transform: uppercase;
  padding-top: .5rem;
}

/* ============================================================
   ANALYSEN — dossier document cards (paper on ink)
   ============================================================ */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.doc-card {
  position: relative;
  background: var(--paper);
  color: var(--text-ink);
  border-radius: .375rem;
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 26rem;
  box-shadow: 0 1px 0 var(--paper-2), 0 24px 48px -24px rgba(0, 0, 0, .55);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.doc-card:hover {
  transform: translateY(-6px) rotate(-.4deg);
  box-shadow: 0 1px 0 var(--paper-2), 0 36px 64px -24px rgba(0, 0, 0, .65);
}
/* punched holes — dossier detail */
.doc-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: .375rem;
  border-radius: 999px;
  background: var(--ink);
  opacity: .12;
}
.doc-card__meta {
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-ink-dim);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-paper);
  padding-bottom: .875rem;
  margin-bottom: 1.5rem;
  margin-top: .75rem;
}
.doc-card__cat { color: #33628C; }
.doc-card h3 {
  color: var(--text-ink);
  font-size: 1.625rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.doc-card p {
  font-size: .9375rem;
  color: var(--text-ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card__foot {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--text-ink-dim);
}
.doc-card__foot .go { color: #33628C; transition: transform .4s var(--ease); }
.doc-card:hover .doc-card__foot .go { transform: translateX(4px); }

/* ============================================================
   REDACTION — declassification motif
   ============================================================ */
.redact-section { text-align: left; }
.redact-quote {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 4.2vw, 3.5rem);
  line-height: 1.25;
  color: var(--text-hi);
  max-width: 30ch;
}
.redacted {
  position: relative;
  color: transparent;
  background: #000;
  border-radius: 2px;
  padding-inline: .1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: color 1s var(--ease), background-color 1s var(--ease);
  cursor: crosshair;
}
.redacted.lifted, .redacted:hover {
  color: var(--un-bright);
  background: rgba(124, 179, 222, .12);
}
.redact-hint {
  margin-top: 2.5rem;
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.redact-hint::before { content: ""; width: 2rem; height: 1px; background: var(--un); }

/* ============================================================
   NEWSLETTER — paper form panel
   ============================================================ */
.nl {
  background: var(--paper);
  color: var(--text-ink);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.nl::after {
  content: "IAIA/" attr(data-count);
  position: absolute;
  right: -1rem;
  bottom: -3.5rem;
  font-family: var(--f-mono);
  font-size: 9rem;
  font-weight: 500;
  letter-spacing: -.04em;
  color: rgba(22, 26, 34, .05);
  pointer-events: none;
}
.nl h2 { color: var(--text-ink); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; margin-top: 1.25rem; }
.nl p { color: var(--text-ink-dim); margin-top: 1.25rem; max-width: 34rem; }
.nl__form { display: flex; flex-direction: column; gap: .875rem; }
.nl__row { display: flex; gap: .625rem; }
.nl input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--line-paper);
  border-radius: 999px;
  padding: 1rem 1.5rem;
  font-family: var(--f-mono);
  font-size: .875rem;
  color: var(--text-ink);
  transition: border-color .4s var(--ease);
}
.nl input[type="email"]:focus { outline: none; border-color: #33628C; }
.nl input::placeholder { color: var(--text-ink-dim); }
.nl .btn--submit {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 1rem 1.75rem;
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  transition: transform .5s var(--ease), background-color .5s var(--ease);
  white-space: nowrap;
}
.nl .btn--submit:hover { background: #1E2530; }
.nl .btn--submit:active { transform: scale(.97); }
.nl__fine { font-family: var(--f-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-ink-dim); }
.nl__ok {
  display: none;
  font-family: var(--f-mono);
  font-size: .875rem;
  color: #33628C;
  border: 1px dashed #33628C;
  border-radius: .375rem;
  padding: 1.25rem 1.5rem;
}
.nl.is-done .nl__form { display: none; }
.nl.is-done .nl__ok { display: block; }

/* ============================================================
   FOUNDER — service record (Personalakte)
   ============================================================ */
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.founder h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.08; margin-top: 1.5rem; }
.founder p { margin-top: 1.5rem; color: var(--text-dim); }
.founder .btn { margin-top: 2.5rem; }

.record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 2rem;
  font-family: var(--f-mono);
}
.record__head {
  display: flex;
  justify-content: space-between;
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: .5rem;
}
.record__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding-block: .875rem;
  border-bottom: 1px solid var(--line);
  font-size: .8125rem;
}
.record__row:last-child { border-bottom: 0; }
.record__row dt { color: var(--text-dim); letter-spacing: .12em; text-transform: uppercase; font-size: .6875rem; padding-top: .15em; }
.record__row dd { color: var(--text-hi); }
.record__row dd.blue { color: var(--un); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
.footer__brand { font-family: var(--f-mono); letter-spacing: .18em; color: var(--text-hi); font-size: 1rem; margin-bottom: 1rem; }
.footer__brand + p { font-size: .875rem; color: var(--text-dim); max-width: 22rem; }
.footer h4 {
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer ul { list-style: none; display: grid; gap: .75rem; }
.footer ul a { font-size: .875rem; color: var(--text-dim); transition: color .4s var(--ease); }
.footer ul a:hover { color: var(--un); }
.footer__base {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  color: var(--text-dim);
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero { padding-top: clamp(11rem, 20vh, 15rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.04;
  margin-top: 1.75rem;
  max-width: 20ch;
}
.page-hero .lede {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  color: var(--text-dim);
  max-width: 46rem;
}

/* ============================================================
   DOCUMENT (article) — full dossier reading experience
   ============================================================ */
.doc-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 99;
  background: transparent;
}
.doc-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--un);
  transform-origin: left;
  transform: scaleX(0);
}

.doc {
  background: var(--paper);
  color: var(--text-ink);
  border-radius: .5rem;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  box-shadow: 0 2px 0 var(--paper-2), 0 40px 80px -40px rgba(0, 0, 0, .6);
  position: relative;
}
.doc__klass {
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-ink-dim);
  text-align: center;
  display: block;
  margin-bottom: 3rem;
}
.doc__head { border-bottom: 2px solid var(--text-ink); padding-bottom: 2rem; margin-bottom: 3rem; }
.doc__meta {
  font-family: var(--f-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #33628C;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.doc h1 {
  color: var(--text-ink);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
}
.doc__byline {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--text-ink-dim);
  margin-top: 1.5rem;
}
.doc h2 {
  color: var(--text-ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.doc h2 .h-no {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .15em;
  color: #33628C;
  white-space: nowrap;
}
.doc p { margin-bottom: 1.5rem; color: var(--text-ink); font-size: 1.0625rem; }
.doc p strong, .doc li strong { color: #101318; }
.doc ul, .doc ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.doc li { margin-bottom: .75rem; }
.doc blockquote, .doc__note {
  border-left: 2px solid #33628C;
  padding: .25rem 0 .25rem 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  color: var(--text-ink-dim);
}
.doc__sig {
  margin-top: 4rem;
  border-top: 1px solid var(--line-paper);
  padding-top: 2rem;
  font-family: var(--f-mono);
  font-size: .75rem;
  line-height: 1.8;
  color: var(--text-ink-dim);
}
.doc__sig b {
  display: block;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .625rem;
  color: #33628C;
  margin-bottom: .75rem;
}
.doc__klass--end { margin-top: 3rem; margin-bottom: 0; }

/* ============================================================
   REVEAL — scroll interpolation (transform + opacity only)
   ============================================================ */
.rv {
  opacity: 0;
  transform: translateY(2.5rem);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: var(--rv-delay, 0s);
}
.rv.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .docs { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: block; }
  .field { grid-template-columns: 1fr; gap: 1rem; }
  .field__glyph { display: none; }
  .docs { grid-template-columns: 1fr; }
  .nl { grid-template-columns: 1fr; }
  .nl__row { flex-direction: column; }
  .founder { grid-template-columns: 1fr; }
  .record__row { grid-template-columns: 1fr; gap: .25rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; filter: none; }
  .mask > span { transform: none; }
}
