/* =========================================================================
   2040 — THE MODEL · the2040model.com
   Register: declassified literary dossier. Ink + bone, one signal red,
   quiet steel. Serif display, humanist body, mono only for the file system.
   ========================================================================= */

:root {
  /* Ink surfaces (cool near-black) */
  --ink:    #0B0C0F;
  --ink-1:  #101217;
  --ink-2:  #14171D;
  --ink-3:  #1A1E25;

  /* Document ink (warm off-white) */
  --bone:       #E8E4D8;
  --bone-dim:   rgba(232, 228, 216, 0.62);
  --bone-faint: rgba(232, 228, 216, 0.48);
  --bone-ghost: rgba(232, 228, 216, 0.22);

  /* Accents */
  --signal:     #C9443C;   /* CONFIDENTIAL red — the one dramatic accent */
  --signal-dim: rgba(201, 68, 60, 0.5);
  --steel:      #8FB4BC;   /* quiet functional accent: links, file marks   */
  --steel-bright: #B6D4DA;

  /* Lines */
  --line:    rgba(232, 228, 216, 0.13);
  --line-2:  rgba(232, 228, 216, 0.07);
  --line-steel: rgba(143, 180, 188, 0.28);

  /* Type */
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1100px;
  --measure: 68ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quint */

  --z-sticky: 40;
  --z-modal-backdrop: 60;
  --z-modal: 70;
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--bone);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--signal); color: var(--bone); }

/* keyboard focus — visible on the dark surface */
:focus-visible { outline: 2px solid var(--steel-bright); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--steel-bright); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* atmosphere: a single faint vignette. no dot-grid, no scanlines. */
.field { position: fixed; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(120% 90% at 50% -10%, #0e1016 0%, var(--ink) 55%),
  radial-gradient(100% 70% at 50% 110%, rgba(201,68,60,0.04), transparent 60%);
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); }

/* ============================================================ TOP BAR === */
.topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: var(--z-sticky);
  height: 62px; background: rgba(11, 12, 15, 0.78);
  backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.topbar__in { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand__word { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; color: var(--bone); }
.brand__sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.34em; color: var(--bone-faint); text-transform: uppercase; }

.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__cta { display: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--bone); padding: 9px 15px; transition: background .2s; }
.topbar__cta:hover { background: var(--steel-bright); }
@media (min-width: 720px) { .topbar__cta { display: inline-flex; } }

.compliance { display: flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--bone-faint); }
.compliance__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--steel); opacity: 0.9; }
.compliance__label { text-transform: uppercase; }
#score { color: var(--steel); font-weight: 500; transition: color .6s ease; }
#score.low { color: var(--signal); }

.scanbar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--steel); opacity: 0.55; transition: width .12s linear; }

/* ============================================================ LAYOUT ==== */
main { padding-top: 62px; }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 11vw, 132px) 28px; border-top: 1px solid var(--line-2); }
.section--wide { max-width: 1200px; }

/* file header — the dossier's folio system (deliberate brand voice) */
.file-hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint);
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 6vw, 64px); }
.file-hd__ref { color: var(--steel); }
.file-hd b { color: var(--bone-dim); font-weight: 500; }

h2.head { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.018em; color: var(--bone); text-wrap: balance; }
.head em { font-style: italic; color: var(--steel-bright); }
.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--bone-dim); max-width: 60ch; text-wrap: pretty; }
.prose { max-width: var(--measure); color: var(--bone-dim); font-size: 18px; line-height: 1.7; }
.prose p + p { margin-top: 22px; }
.accent { color: var(--steel-bright); font-style: italic; }
.rule { height: 1px; background: var(--line); border: 0; margin: clamp(48px,7vw,72px) 0; }

/* reveal — progressive enhancement only. Content is visible by default;
   the hidden initial state applies ONLY when JS is active (html.js). */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }

/* ----------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  padding: 15px 26px; border: 1px solid var(--bone-ghost); color: var(--bone); transition: all .25s var(--ease); }
.btn--primary { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--primary:hover { background: var(--steel-bright); border-color: var(--steel-bright); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(232,228,216,0.04); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.link { color: var(--steel-bright); border-bottom: 1px solid var(--line-steel); padding-bottom: 1px; transition: border-color .2s; font-style: italic; }
.link:hover { border-bottom-color: var(--steel-bright); }
.mlink { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--steel); transition: color .2s; }
.mlink:hover { color: var(--steel-bright); }

/* ----------------------------------------------------- observation notice */
/* restrained margin stamp: top hairline + small label. no glowing box. */
.notice { margin-top: clamp(56px, 8vw, 88px); padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; max-width: 60ch; }
.notice__mark { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); grid-row: 1; }
.notice__title { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); grid-column: 2; }
.notice__body { grid-column: 2; font-size: 14px; line-height: 1.55; color: var(--bone-faint); }
.notice--alert .notice__mark, .notice--alert .notice__title { color: var(--signal); }

.mono-note { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-faint); }

/* ============================================================ HERO ====== */
.hero { position: relative; min-height: calc(100vh - 62px); display: flex; align-items: center; overflow: hidden; padding: clamp(80px,12vw,120px) 28px; border-top: 0; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(0.5); opacity: 0.42; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,12,15,0.55), rgba(11,12,15,0.35) 30%, var(--ink) 92%),
  radial-gradient(75% 75% at 30% 45%, transparent 35%, var(--ink) 95%); }
.hero__in { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__ref { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 28px; }
.hero__ref::before { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--line-steel); vertical-align: middle; margin-right: 14px; }
.hero__year { font-family: var(--f-display); font-weight: 300; font-size: clamp(72px, 13vw, 132px); line-height: 0.9; letter-spacing: -0.03em; color: var(--bone); }
.hero__year span { color: var(--signal); }
.hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.02em; color: var(--bone); margin-top: 28px; max-width: 18ch; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--steel-bright); }
.hero__sub { font-size: clamp(16px, 2vw, 19px); color: var(--bone-dim); margin-top: 24px; max-width: 46ch; }
.hero__sub b { color: var(--bone); font-weight: 600; }
.hero .notice { max-width: 52ch; }

/* ====================================================== RETROACTIVE ===== */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px,5vw,56px); }
.split > * { min-width: 0; }
@media (min-width: 920px) { .split--photo { grid-template-columns: 0.82fr 1.18fr; align-items: center; } }

/* duotone plate */
.plate { position: relative; overflow: hidden; background: var(--ink-1); border: 1px solid var(--line); }
.plate img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(0.86); transition: filter .6s var(--ease), transform 8s var(--ease); }
.plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,12,15,0.7)); mix-blend-mode: multiply; pointer-events: none; }
.plate:hover img { filter: grayscale(0.82) contrast(1.12) brightness(0.98); transform: scale(1.025); }
.plate--16x11 img { aspect-ratio: 16/11; }
.plate__tag { position: absolute; bottom: 14px; left: 16px; z-index: 2; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--bone); background: rgba(11,12,15,0.7); border: 1px solid var(--signal-dim); padding: 5px 9px; }
.plate__tag::before { content: "● "; color: var(--signal); }
.crop { position: absolute; z-index: 2; width: 14px; height: 14px; border: 1px solid var(--bone-ghost); }
.crop.tl{top:10px;left:10px;border-right:0;border-bottom:0}.crop.tr{top:10px;right:10px;border-left:0;border-bottom:0}
.crop.bl{bottom:10px;left:10px;border-right:0;border-top:0}.crop.br{bottom:10px;right:10px;border-left:0;border-top:0}
.cap { font-family: var(--f-mono); font-size: 12px; line-height: 1.6; color: var(--bone-faint); margin-top: 16px; max-width: 46ch; }

/* receipt — a printed ledger slip */
.receipt { position: relative; min-width: 0; background: var(--ink-1); border: 1px solid var(--line); padding: clamp(22px,3vw,34px); font-family: var(--f-mono); font-size: clamp(13px,3.4vw,14px); overflow: hidden; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--steel-bright); opacity: 0; z-index: 4; }
.scanline.run { animation: scan 1.15s var(--ease) forwards; }
@keyframes scan { 0%{top:0;opacity:0} 14%{opacity:.85} 86%{opacity:.85} 100%{top:100%;opacity:0} }
.receipt__meta { color: var(--bone-faint); line-height: 1.7; margin-bottom: 20px; }
/* real hairline instead of a long non-wrapping dash string (mobile-safe) */
.receipt__sep { height: 1px; background: var(--line); margin: 15px 0; font-size: 0; line-height: 0; color: transparent; overflow: hidden; }
.receipt__row { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--bone-dim); }
.receipt__row .struck { text-decoration: line-through; color: var(--bone-faint); transition: all .3s; }
.receipt__adj { display: flex; justify-content: space-between; color: var(--signal); opacity: 0; max-height: 0; overflow: hidden; transition: opacity .4s, max-height .4s, margin .4s; }
.receipt__adj.show { opacity: 1; max-height: 40px; margin-bottom: 9px; }
.receipt__total { display: flex; justify-content: space-between; font-size: 16px; color: var(--bone); font-weight: 700; }
.receipt__banner { display: grid; grid-template-columns: auto 1fr; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--signal-dim); color: var(--signal); font-size: 11px; letter-spacing: 0.04em; line-height: 1.5; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .4s, max-height .4s; }
.receipt__banner.show { opacity: 1; max-height: 120px; }

.pull { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; max-width: var(--measure); }
.pull p { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(19px,2.4vw,24px); line-height: 1.4; color: var(--bone); text-wrap: pretty; }
.btn-row { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 560px) { .btn-row--inline { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* numbered file points — earned sequence, kept quiet */
.points { display: grid; gap: 30px; max-width: var(--measure); }
.points p { position: relative; padding-left: 46px; font-size: 18px; line-height: 1.7; color: var(--bone-dim); }
.points p b { color: var(--bone); font-weight: 600; }
.points p span { position: absolute; left: 0; top: 4px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--steel); }

.fund { display: grid; gap: 16px; max-width: var(--measure); }
.fund li { display: grid; grid-template-columns: auto 1fr; gap: 18px; font-size: 18px; color: var(--bone-dim); }
.fund .n { font-family: var(--f-mono); font-size: 12px; color: var(--steel); margin-top: 5px; }

/* panel (forms) */
.panel { background: var(--ink-1); border: 1px solid var(--line); padding: clamp(26px,4vw,40px); }
.panel h4 { font-family: var(--f-display); font-weight: 400; font-size: 25px; color: var(--bone); margin-bottom: 24px; }
.field-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 620px) { .field-row { flex-direction: row; } }
input[type=email] { flex: 1; background: var(--ink); border: 1px solid var(--line); color: var(--bone); font-family: var(--f-mono); font-size: 14px; padding: 15px 16px; transition: border-color .2s; }
input[type=email]::placeholder { color: var(--bone-faint); }
input[type=email]:focus { outline: none; border-color: var(--steel); }
.fine { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--bone-faint); margin-top: 14px; }

/* ======================================================== TIMELINE ====== */
.timeline { position: relative; margin-left: 7px; padding-left: 30px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.tnode { position: relative; border-bottom: 1px solid var(--line-2); }
.tnode:last-child { border-bottom: 0; }
.tnode__btn { width: 100%; text-align: left; display: block; padding: 22px 0; }
.tnode__dot { position: absolute; left: -37px; top: 28px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 1px solid var(--steel); transition: background .2s; }
.tnode:hover .tnode__dot, .tnode.open .tnode__dot { background: var(--steel); }
.tnode.open .tnode__dot { background: var(--signal); border-color: var(--signal); }
.tnode__year { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--steel); margin-bottom: 8px; }
.tnode__h { font-family: var(--f-display); font-weight: 400; font-size: clamp(19px,2.4vw,24px); line-height: 1.2; color: var(--bone); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; transition: color .2s; }
.tnode:hover .tnode__h { color: var(--steel-bright); }
.tnode__chev { font-family: var(--f-mono); font-size: 16px; color: var(--bone-faint); flex: none; transition: transform .3s var(--ease); }
.tnode.open .tnode__chev { transform: rotate(45deg); color: var(--signal); }
.tnode__body { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .4s, margin .45s var(--ease); }
.tnode.open .tnode__body { max-height: 720px; opacity: 1; margin-bottom: 24px; }
.tnode__body p { color: var(--bone-dim); font-size: 16px; line-height: 1.65; max-width: var(--measure); margin-bottom: 14px; }
.tnode__proto { font-family: var(--f-mono); font-size: 12px; line-height: 1.55; color: var(--bone-faint); letter-spacing: 0.02em; padding-left: 16px; border-left: 1px solid var(--line); }
.tnode__img { margin: 18px 0; max-width: 540px; }
.tnode__img .plate img { aspect-ratio: 16/8; }

/* section photo banner */
.banner { position: relative; overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(40px,6vw,60px); }
.banner img { width: 100%; height: clamp(180px,30vw,320px); object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.6); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,0.2), var(--ink)); }
.banner__cap { position: absolute; bottom: 16px; left: 18px; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }

/* ======================================================== CHAPTERS ====== */
.chapters { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .chapters { grid-template-columns: 1fr 1fr; } }
.chapter { display: flex; flex-direction: column; justify-content: space-between; padding: 30px clamp(20px,3vw,32px); border-bottom: 1px solid var(--line); transition: background .25s; position: relative; }
@media (min-width: 760px) { .chapter:nth-child(odd) { border-right: 1px solid var(--line); } }
.chapter:hover { background: var(--ink-1); }
.chapter__id { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--steel); margin-bottom: 14px; display: flex; justify-content: space-between; }
.chapter__id span:last-child { color: var(--bone-faint); }
.chapter__t { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.18; color: var(--bone); margin-bottom: 14px; text-wrap: balance; }
.chapter__q { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--bone-dim); font-size: 15px; line-height: 1.5; }
.chapter__crit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; line-height: 1.6; color: var(--bone-faint); letter-spacing: 0.01em; }
.chapter__crit b { color: var(--steel); font-weight: 500; display: block; margin-top: 7px; }
.chapter__arrow { margin-top: 22px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); display: inline-flex; gap: 7px; transition: gap .2s; }
.chapter:hover .chapter__arrow { gap: 12px; }
.chapter.locked { opacity: 0.5; }
.chapter.locked:hover { background: none; }
.chapter.locked .chapter__t { color: var(--bone-dim); }
.locked__tag { margin-top: 22px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--bone-faint); display: inline-flex; gap: 8px; align-items: center; }

/* ======================================================== REVIEWS ======= */
.reviews { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); }
@media (min-width: 900px) { .reviews { grid-template-columns: 0.78fr 1.22fr; } }
.rev-list { display: flex; flex-direction: column; max-height: 620px; overflow-y: auto; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .rev-list { border-bottom: 0; border-right: 1px solid var(--line); } }
.rev-tab { width: 100%; text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line-2); transition: background .2s; position: relative; }
.rev-tab:hover { background: var(--ink-1); }
.rev-tab.active { background: var(--ink-1); }
.rev-tab.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--signal); }
.rev-tab__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rev-tab__name { font-family: var(--f-display); font-size: 17px; color: var(--bone-dim); transition: color .2s; }
.rev-tab.active .rev-tab__name { color: var(--bone); }
.rev-tab__id { font-family: var(--f-mono); font-size: 10px; color: var(--bone-faint); letter-spacing: 0.08em; }
.rev-tab__handle { font-family: var(--f-mono); font-size: 11px; color: var(--bone-faint); margin-top: 4px; }

.rev-panel { position: relative; padding: clamp(26px,4vw,44px); display: flex; flex-direction: column; min-height: 440px; }
.rev-panel__stamp { position: absolute; top: 20px; right: 22px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-ghost); }
.rev-panel__head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 22px; padding-right: 80px; }
.rev-panel__meta { font-family: var(--f-mono); font-size: 12px; color: var(--bone-faint); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.rev-panel__meta b { font-family: var(--f-body); font-weight: 600; font-size: 14px; color: var(--bone); }
.rev-panel__meta a { color: var(--steel); }
.rev-panel__meta a:hover { color: var(--steel-bright); }
.rev-panel__meta i { color: var(--bone-faint); }
.rev-panel__headline { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: clamp(21px,2.8vw,28px); line-height: 1.22; color: var(--bone); margin-top: 14px; text-wrap: balance; }
.rev-panel__body { display: grid; gap: 16px; color: var(--bone-dim); font-size: 15.5px; line-height: 1.68; max-height: 320px; overflow-y: auto; padding-right: 12px; }
.rev-panel__body p:first-letter { } /* reserved */
.rev-panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--bone-faint); letter-spacing: 0.06em; }
.rev-panel__foot a { color: var(--steel); }
.rev-panel.swap { animation: revswap .4s var(--ease); }
@keyframes revswap { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ======================================================== AUTHOR ======== */
.author { display: grid; grid-template-columns: 1fr; gap: clamp(32px,5vw,52px); align-items: start; }
@media (min-width: 880px) { .author { grid-template-columns: 340px 1fr; } }
.dossier-photo { position: relative; overflow: hidden; border: 1px solid var(--line); }
.dossier-photo img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04) brightness(0.95); }
.dossier { background: var(--ink-1); border: 1px solid var(--line); border-top: 0; padding: 24px; font-family: var(--f-mono); }
.dossier__hd { padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); }
.dossier dl { display: grid; gap: 0; }
.dossier .row { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.dossier .row:last-child { border-bottom: 0; padding-bottom: 0; }
.dossier dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 5px; }
.dossier dd { font-size: 13px; color: var(--steel-bright); }
.author__body { display: grid; gap: 22px; max-width: var(--measure); }
.author__body p { font-size: 18px; line-height: 1.7; color: var(--bone-dim); }
.author__body p:first-child { font-size: 20px; color: var(--bone); }

/* ======================================================== FOOTER ======== */
footer { border-top: 1px solid var(--line); background: var(--ink); padding: 40px 28px; }
.footer__in { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; align-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--bone-faint); letter-spacing: 0.04em; text-align: center; }
.footer__in a { color: var(--steel); }
.footer__in a:hover { color: var(--steel-bright); }
.footer__sep { color: var(--bone-ghost); }

/* ======================================================== MODAL ========= */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(11,12,15,0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.open { display: flex; } .modal.visible { opacity: 1; }
.modal__card { background: var(--ink-2); border: 1px solid var(--line); max-width: 520px; width: 100%; padding: clamp(28px,5vw,44px); transform: translateY(10px) scale(.985); transition: transform .35s var(--ease); }
.modal.visible .modal__card { transform: none; }
.modal__ref { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); margin-bottom: 18px; }
.modal__card h3 { font-family: var(--f-display); font-weight: 400; font-size: 27px; line-height: 1.15; color: var(--bone); margin-bottom: 14px; }
.modal__card p { color: var(--bone-dim); margin-bottom: 28px; font-size: 16px; }
.modal__actions { display: grid; gap: 16px; }
.modal__stay { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--bone-faint); justify-self: center; }
.modal__stay:hover { color: var(--bone); }

.hidden { display: none !important; }

/* ===================================================== INTERLUDE (full-bleed) */
.interlude { position: relative; min-height: clamp(360px, 62vh, 600px); display: flex; align-items: flex-end; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.interlude__img { position: absolute; inset: 0; }
.interlude__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(0.6); transform: scale(1.06); transition: transform 12s var(--ease); }
.interlude.in .interlude__img img { transform: scale(1); }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,12,15,0.55) 0%, rgba(11,12,15,0.15) 38%, rgba(11,12,15,0.85) 88%, var(--ink) 100%); }
.interlude__in { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px clamp(36px, 6vw, 60px); }
.interlude__ref { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.interlude__ref::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-steel); vertical-align: middle; margin-right: 12px; }
.interlude__line { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 3.8vw, 44px); line-height: 1.16; color: var(--bone); max-width: 20ch; text-wrap: balance; }
.interlude__line em { font-style: italic; color: var(--steel-bright); }

/* ===================================================== HEURISTICS module */
.heur { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); }
@media (min-width: 820px) { .heur { grid-template-columns: 330px 1fr; } }
.heur__tabs { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .heur__tabs { border-bottom: 0; border-right: 1px solid var(--line); } }
.heur__tab { position: relative; text-align: left; padding: 22px 24px; border-bottom: 1px solid var(--line-2); display: flex; gap: 16px; align-items: baseline; transition: background .2s; min-width: 0; }
.heur__tab:last-child { border-bottom: 0; }
.heur__tab:hover { background: var(--ink-1); }
.heur__tab.active { background: var(--ink-1); }
.heur__tab.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--signal); }
.heur__n { font-family: var(--f-mono); font-size: 12px; color: var(--steel); flex: none; }
.heur__name { font-family: var(--f-display); font-size: 19px; line-height: 1.2; color: var(--bone-dim); transition: color .2s; }
.heur__tab.active .heur__name { color: var(--bone); }
.heur__panel { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; min-height: 360px; }
.heur__panel.swap { animation: revswap .4s var(--ease); }
.heur__hook { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(20px, 2.8vw, 29px); line-height: 1.3; color: var(--bone); margin-bottom: 22px; text-wrap: pretty; }
.heur__mech { color: var(--bone-dim); font-size: 16.5px; line-height: 1.7; max-width: 60ch; }
.heur__proto { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; line-height: 1.6; color: var(--bone-faint); letter-spacing: 0.02em; }
.heur__proto b { color: var(--steel); font-weight: 500; }

/* ===================================================== TIMELINE control chart + node meta */
.tl-chart { border: 1px solid var(--line); background: var(--ink-1); padding: 20px 22px 10px; margin-bottom: clamp(40px, 6vw, 56px); }
.tl-chart__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 6px; }
.tl-chart__hd b { color: var(--steel); font-weight: 500; }
.tl-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.tl-area { fill: rgba(143,180,188,0.10); stroke: none; }
.tl-line { fill: none; stroke: var(--steel); stroke-width: 1.5; }
.tl-pt { cursor: pointer; }
.tl-pt circle { fill: var(--ink); stroke: var(--steel); stroke-width: 1.5; transition: r .2s, fill .2s, stroke .2s; }
.tl-pt:hover circle, .tl-pt.active circle { fill: var(--signal); stroke: var(--signal); r: 5; }
.tl-pt__yr { font-family: var(--f-mono); font-size: 9px; fill: var(--bone-faint); text-anchor: middle; }
.tl-pt:hover .tl-pt__yr, .tl-pt.active .tl-pt__yr { fill: var(--bone); }
.tl-pt__val { font-family: var(--f-mono); font-size: 9px; fill: var(--steel-bright); text-anchor: middle; opacity: 0; transition: opacity .2s; }
.tl-pt:hover .tl-pt__val, .tl-pt.active .tl-pt__val { opacity: 1; }

.tnode__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; flex-wrap: wrap; }
.tnode__tag { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); border: 1px solid var(--line); padding: 3px 8px; }
.tnode.open .tnode__tag { color: var(--steel); border-color: var(--line-steel); }
.tnode__ctl { flex: 1; min-width: 80px; max-width: 170px; height: 2px; background: var(--line); position: relative; }
.tnode__ctl i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--steel); transition: background .25s; }
.tnode.open .tnode__ctl i { background: var(--signal); }
.tnode__ctlv { font-family: var(--f-mono); font-size: 10px; color: var(--bone-faint); }

/* ===================================================== HERO CTA + closing band */
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--bone-faint); margin-top: 18px; }
.hero__meta b { color: var(--steel); font-weight: 500; }
.hero__meta span { color: var(--bone-ghost); margin: 0 8px; }

.endcta { text-align: center; }
.endcta .head { margin: 0 auto 16px; max-width: 18ch; }
.endcta .lead { margin: 0 auto 32px; }
.endcta .btn-row { justify-content: center; }
.endcta__meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-faint); margin-top: 24px; }

/* overflow safety: let grid/flex children shrink below content size */
.author > *, .reviews > *, .timeline, .points p, .fund li, .file-hd > * { min-width: 0; }
input[type=email] { min-width: 0; }
.receipt__row span, .receipt__total span, .receipt__adj span { overflow-wrap: anywhere; }
img, .plate, .banner { max-width: 100%; }

@media (max-width: 560px) {
  .section { padding: 64px 20px; }
  .receipt { font-size: 12.5px; }
  .file-hd { gap: 4px 16px; }
  .rev-panel__head { padding-right: 0; }
  .rev-panel__stamp { display: none; }
}
