/* ============================================================================
   Mandate Intelligence — Data Journey
   Brand-true tokens (lifted from packages/design/src/tokens.css), extended into
   an editorial-brutalist keynote. White-dominant paper, one confident green,
   hard edges, Fraunces display + Plus Jakarta body + JetBrains Mono data.
   ============================================================================ */
:root {
  /* ink */
  --ink: #14171a;
  --ink-soft: #4a5158;
  --ink-faint: #8a9299;
  --ink-quiet: #c2c8cc;
  /* paper */
  --paper: #ffffff;
  --paper-2: #f4f6f4;
  --paper-3: #ebeeec;
  /* lines */
  --line: #d9deda;
  --line-soft: #ebeeec;
  --line-bold: #14171a;
  /* the green */
  --green: #1f7a4d;
  --green-ink: #0f4d30;
  --green-wash: #e8f2ec;
  /* status */
  --amber: #b07b16;
  --amber-wash: #f4ecdc;
  --danger: #b3402a;
  --danger-wash: #f3e1dc;
  /* dark act */
  --night: #0c0f0d;
  --night-2: #11150f;
  --night-line: #243026;
  --night-ink: #e7ece6;
  --night-faint: #6f7d72;
  --green-glow: #3fbf7f;

  --tracking: 0.08em;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain + faint grid atmosphere */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
}

::selection { background: var(--green); color: #fff; }

/* ── scroll progress rail ─────────────────────────────────────────────────── */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--green); z-index: 100; transition: width 0.1s linear;
}

/* ── side stage tracker ───────────────────────────────────────────────────── */
#tracker {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 14px;
  mix-blend-mode: difference;
}
#tracker a {
  width: 9px; height: 9px; border: 1.5px solid #888; background: transparent;
  display: block; text-decoration: none; transition: all 0.3s var(--ease);
  position: relative;
}
#tracker a.on { background: var(--green-glow); border-color: var(--green-glow); transform: scale(1.25); }
#tracker a span {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: #999;
  white-space: nowrap; opacity: 0; transition: opacity 0.2s; text-transform: uppercase;
}
#tracker a:hover span { opacity: 1; }
@media (max-width: 1100px) { #tracker { display: none; } }

/* ── layout ───────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }
.act { padding: clamp(80px, 11vh, 150px) 0; border-top: 1px solid var(--line); }

.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: var(--tracking);
  text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--green); display: inline-block; }
.kicker .num { color: var(--ink-faint); }

h2.act-title {
  font-family: var(--serif); font-weight: 600; line-height: 1.02;
  font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.015em; max-width: 16ch;
}
.act-sub { font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-soft); max-width: 56ch; margin-top: 20px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }

/* ════════════════════════════════════════════════════════════════════════════
   COVER
   ════════════════════════════════════════════════════════════════════════════ */
#cover {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; padding: 80px 0 60px;
}
#cover .wrap { width: 100%; }
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 8vh; }
.brand .mark {
  width: 38px; height: 38px; background: var(--green); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 18px;
}
.brand .word { font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.brand .tag { font-family: var(--mono); font-size: 10px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--ink-faint); margin-left: auto; }

#cover h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.025em; line-height: 0.98;
  font-size: clamp(48px, 9vw, 124px);
}
#cover h1 .em { font-style: italic; color: var(--green); font-weight: 400; }
#cover .lede { font-size: clamp(18px, 2.1vw, 26px); color: var(--ink-soft); max-width: 40ch; margin-top: 34px; line-height: 1.35; }
.cover-meta { margin-top: 7vh; display: flex; gap: 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--ink-faint); text-transform: uppercase; }
.cover-meta b { color: var(--green); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--ink-faint); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue .bar { width: 1px; height: 38px; background: linear-gradient(var(--ink-faint), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* big stat band on cover */
.statband { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 6vh; border: 1px solid var(--line-bold); }
.statband .s { padding: 20px 18px; border-right: 1px solid var(--line); }
.statband .s:last-child { border-right: 0; }
.statband .n { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.statband .n.code { font-family: var(--mono); font-size: clamp(15px, 1.5vw, 19px); color: var(--green-ink); }
.statband .l { font-size: 13px; font-weight: 600; margin-top: 9px; }
.statband .sb { font-size: 11px; color: var(--ink-faint); margin-top: 3px; line-height: 1.35; }
@media (max-width: 820px) { .statband { grid-template-columns: repeat(2, 1fr); } .statband .s:nth-child(2n){ border-right: 0; } }

/* ════════════════════════════════════════════════════════════════════════════
   THE RIVER (animated end-to-end map)
   ════════════════════════════════════════════════════════════════════════════ */
#river { background: var(--paper-2); }
.river-frame { border: 1px solid var(--line-bold); background: var(--paper); margin-top: 40px; padding: 30px 20px; overflow: hidden; }
.river-svg { width: 100%; height: auto; display: block; }
.river-legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--ink-soft); text-transform: uppercase; }
.river-legend i { width: 10px; height: 10px; display: inline-block; margin-right: 7px; vertical-align: middle; }

/* ════════════════════════════════════════════════════════════════════════════
   SOURCES CATALOG
   ════════════════════════════════════════════════════════════════════════════ */
.legend-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 38px 0 30px; }
.legend-card { border: 1px solid var(--line); border-left: 3px solid; padding: 16px 16px 14px; background: var(--paper); }
.legend-card .lc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.legend-card .lc-t { font-weight: 700; font-size: 14px; }
.legend-card .lc-n { font-family: var(--mono); font-size: 20px; font-weight: 700; }
.legend-card .lc-d { font-size: 12px; color: var(--ink-soft); margin-top: 7px; line-height: 1.4; }
.s-live    { border-left-color: var(--green); }
.s-live .lc-n, .s-live .lc-t { color: var(--green-ink); }
.s-reference { border-left-color: var(--ink); }
.s-bronze  { border-left-color: var(--amber); }
.s-bronze .lc-n { color: var(--amber); }
.s-blocked { border-left-color: var(--danger); }
.s-blocked .lc-n { color: var(--danger); }

.src-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.src {
  border: 1px solid var(--line); background: var(--paper); padding: 14px 15px 13px;
  position: relative; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  border-top: 2px solid var(--line-bold);
}
.src:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--paper-3); border-color: var(--ink); }
.src .dot { position: absolute; top: 13px; right: 14px; width: 8px; height: 8px; }
.src.s-live .dot { background: var(--green); }
.src.s-reference .dot { background: var(--ink); }
.src.s-bronze .dot { background: var(--amber); }
.src.s-blocked .dot { background: var(--danger); }
.src .name { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; padding-right: 18px; }
.src .repr { font-size: 12px; color: var(--ink-soft); margin-top: 5px; line-height: 1.4; }
.src .meta { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); margin-top: 11px; display: flex; flex-direction: column; gap: 3px; text-transform: uppercase; letter-spacing: 0.02em; }
.src .meta .file { color: var(--green); text-transform: none; letter-spacing: 0; }
.src .note { font-size: 11.5px; color: var(--ink-soft); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); line-height: 1.4; }
@media (max-width: 900px) { .src-grid, .legend-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .src-grid, .legend-row { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════════
   GENERIC LAYER BLOCKS
   ════════════════════════════════════════════════════════════════════════════ */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; gap: 30px; } }

.factlist { list-style: none; margin-top: 30px; }
.factlist li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
.factlist li:last-child { border-bottom: 1px solid var(--line); }
.factlist .ft { font-weight: 700; font-size: 14px; }
.factlist .fb { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 600px) { .factlist li { grid-template-columns: 1fr; gap: 5px; } }

.codechip { font-family: var(--mono); font-size: 12px; background: var(--ink); color: var(--green-glow); padding: 3px 8px; display: inline-block; }

/* ════════════════════════════════════════════════════════════════════════════
   DARK ACT — the pipeline
   ════════════════════════════════════════════════════════════════════════════ */
.night { background: var(--night); color: var(--night-ink); border-top: 1px solid var(--night-line); position: relative; }
.night::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 0%, rgba(63,191,127,0.10), transparent 70%);
}
.night .wrap { z-index: 2; }
.night .kicker { color: var(--green-glow); }
.night .kicker::before { background: var(--green-glow); }
.night h2.act-title { color: #fff; }
.night .act-sub { color: var(--night-faint); }
.night .codechip { background: #000; }

.bus-meta { font-family: var(--mono); font-size: 11px; color: var(--night-faint); border: 1px solid var(--night-line); padding: 12px 16px; margin-top: 34px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.bus-meta b { color: var(--green-glow); font-weight: 400; }

.stages { margin-top: 34px; display: flex; flex-direction: column; }
.stage {
  display: grid; grid-template-columns: 64px 200px 1fr auto; gap: 22px; align-items: center;
  padding: 20px 18px; border: 1px solid var(--night-line); border-bottom: 0; background: var(--night-2);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.stage:last-child { border-bottom: 1px solid var(--night-line); }
.stage:hover { background: #161c17; transform: translateX(6px); }
.stage .sn { font-family: var(--mono); font-size: 26px; color: var(--green-glow); font-weight: 700; }
.stage .sname { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; }
.stage .sfile { font-family: var(--mono); font-size: 10px; color: var(--night-faint); margin-top: 4px; }
.stage .swhat { font-size: 13.5px; color: #b9c4bc; line-height: 1.5; }
.stage .tier { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; text-align: right; white-space: nowrap; }
.stage .tier .ar { color: var(--night-faint); }
.badge-llm { display: inline-block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; margin-top: 7px; }
.badge-llm.on { background: var(--danger); color: #fff; }
.badge-llm.mixed { background: var(--amber); color: #1a1206; }
.badge-llm.off { border: 1px solid var(--night-line); color: var(--night-faint); }
@media (max-width: 820px) { .stage { grid-template-columns: 44px 1fr; gap: 12px; } .stage .tier { grid-column: 2; text-align: left; } .stage .swhat { grid-column: 1 / -1; } }

.resilience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.res { border: 1px solid var(--night-line); padding: 18px; background: var(--night-2); }
.res h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-glow); margin-bottom: 9px; }
.res p { font-size: 13px; color: #aab6ad; line-height: 1.5; }
@media (max-width: 820px) { .resilience { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════════
   SILVER / GOLD / API / PRODUCT tables
   ════════════════════════════════════════════════════════════════════════════ */
.hero-object { border: 2px solid var(--line-bold); padding: 30px; background: var(--paper); position: relative; }
.hero-object .ho-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green); }
.hero-object .ho-name { font-family: var(--mono); font-size: clamp(26px, 4vw, 40px); font-weight: 700; color: var(--ink); margin: 8px 0 14px; }
.hero-object .ho-quote { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); }

.tbl { width: 100%; border-collapse: collapse; margin-top: 26px; }
.tbl td { padding: 15px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: 13.5px; }
.tbl tr:last-child td { border-bottom: 1px solid var(--line); }
.tbl .t-name { font-family: var(--mono); font-weight: 700; color: var(--green-ink); white-space: nowrap; width: 1%; }
.tbl .t-desc { color: var(--ink-soft); line-height: 1.5; }
.tbl tr:hover td { background: var(--green-wash); }

.mart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.mart { border: 1px solid var(--line); border-top: 2px solid var(--green); padding: 20px; background: var(--paper); }
.mart h4 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.mart .grain { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin: 7px 0 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.mart .answers { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.mart .answers::before { content: "“"; color: var(--green); font-family: var(--serif); }
.mart .answers::after { content: "”"; color: var(--green); font-family: var(--serif); }
.mart .file { font-family: var(--mono); font-size: 10px; color: var(--green); margin-top: 12px; }
@media (max-width: 760px) { .mart-grid { grid-template-columns: 1fr; } }

.callout { border: 1px solid var(--line-bold); background: var(--paper-2); padding: 22px 24px; margin-top: 30px; font-size: 15px; line-height: 1.6; }
.callout b { color: var(--green-ink); }

/* endpoint table */
.ep { width: 100%; border-collapse: collapse; margin-top: 28px; font-family: var(--mono); font-size: 12.5px; }
.ep th { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-bold); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.ep td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ep .m { color: var(--green-ink); font-weight: 700; }
.ep .tbls { color: var(--ink-soft); }
.ep tr:hover td { background: var(--paper-2); }
.ep .arrow { color: var(--ink-quiet); }

.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.screen { border: 1px solid var(--line); padding: 16px; background: var(--paper); }
.screen .sr-name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.screen .sr-route { font-family: var(--mono); font-size: 11px; color: var(--green); margin: 4px 0 9px; }
.screen .sr-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 800px) { .screen-grid { grid-template-columns: 1fr 1fr; } }

.lifecycle { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; align-items: center; }
.lifecycle .st { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 12px; border: 1px solid var(--line-bold); }
.lifecycle .st.search { background: var(--paper-2); color: var(--ink-soft); }
.lifecycle .st.longlist { background: var(--green-wash); color: var(--green-ink); }
.lifecycle .st.shortlist { background: var(--green); color: #fff; }
.lifecycle .st.awarded { background: var(--green-ink); color: #fff; }
.lifecycle .st.terminated { background: var(--danger-wash); color: var(--danger); }
.lifecycle .st.paused { background: var(--paper-3); color: var(--ink-faint); }
.lifecycle .arrow { color: var(--ink-quiet); }

/* ════════════════════════════════════════════════════════════════════════════
   HERO JOURNEYS
   ════════════════════════════════════════════════════════════════════════════ */
#journeys { background: var(--paper-2); }
.j-list { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.journey {
  border: 1px solid var(--line-bold); background: var(--paper);
  display: grid; grid-template-columns: 1fr; overflow: hidden;
}
.journey .j-head { padding: 26px 28px 22px; border-bottom: 1px solid var(--line); position: relative; }
.journey .j-num { position: absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 54px; font-weight: 600; color: var(--paper-3); line-height: 1; }
.journey .j-health { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 9px; display: inline-block; margin-bottom: 14px; }
.j-health.works { background: var(--green); color: #fff; }
.j-health.partial { background: var(--amber); color: #1a1206; }
.j-health.gated { background: var(--danger); color: #fff; }
.journey .j-title { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.015em; max-width: 22ch; }
.journey .j-lede { font-size: 15px; color: var(--ink-soft); margin-top: 10px; max-width: 60ch; line-height: 1.5; }

.j-flow { display: flex; overflow-x: auto; padding: 24px 28px; gap: 0; background: var(--paper); scrollbar-width: thin; }
.j-step { min-width: 200px; flex: 1; padding: 0 20px; border-left: 1px solid var(--line); position: relative; }
.j-step:first-child { border-left: 0; padding-left: 0; }
.j-step .js-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 8px; }
.j-step .js-k::before { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.j-step .js-b { font-size: 13px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }
.j-verdict { padding: 20px 28px; background: var(--ink); color: #cdd6cf; font-size: 13.5px; line-height: 1.6; display: flex; gap: 14px; align-items: flex-start; }
.j-verdict .vk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-glow); white-space: nowrap; padding-top: 2px; }

/* ════════════════════════════════════════════════════════════════════════════
   FLAGS
   ════════════════════════════════════════════════════════════════════════════ */
.flag-grid { display: flex; flex-direction: column; gap: 0; margin-top: 40px; border-top: 1px solid var(--line-bold); }
.flag { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 26px; padding: 28px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.flag .sev { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 0; justify-self: center; }
.flag .sev.high { color: var(--danger); }
.flag .sev.medium { color: var(--amber); }
.flag .sev.low { color: var(--ink-faint); }
.flag .f-main h4 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.flag .f-main p { font-size: 14px; color: var(--ink-soft); margin-top: 11px; line-height: 1.55; }
.flag .f-fix { background: var(--green-wash); border-left: 3px solid var(--green); padding: 16px 18px; }
.flag .f-fix .fl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 8px; }
.flag .f-fix p { font-size: 13.5px; color: var(--green-ink); line-height: 1.5; }
@media (max-width: 800px) { .flag { grid-template-columns: 1fr; gap: 14px; } .flag .sev { writing-mode: horizontal-tb; transform: none; justify-self: start; } }

/* ════════════════════════════════════════════════════════════════════════════
   CLOSE
   ════════════════════════════════════════════════════════════════════════════ */
#close { background: var(--green-ink); color: #eaf3ed; border-top: 0; }
#close::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(63,191,127,0.18), transparent 70%); pointer-events: none; }
#close .kicker { color: var(--green-glow); }
#close .kicker::before { background: var(--green-glow); }
#close h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5.5vw, 62px); line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch; }
#close .works { list-style: none; margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#close .works li { display: flex; gap: 13px; font-size: 15px; line-height: 1.5; color: #d3e6da; }
#close .works li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; background: var(--green-glow); margin-top: 7px; }
#close .caveat { margin-top: 40px; border: 1px solid rgba(63,191,127,0.35); padding: 24px 26px; font-size: 15px; line-height: 1.6; color: #cfe5d7; }
#close .caveat b { color: #fff; }
@media (max-width: 700px) { #close .works { grid-template-columns: 1fr; } }

footer { padding: 40px 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.03em; border-top: 1px solid var(--line); background: var(--paper); }
footer b { color: var(--green); }

/* ── reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
