/* Asian Preventive Oral Health Map — "atlas room"
   Dark atlas hero, paper reading surfaces, status rendered as form. */

:root {
  --paper: #F3F7F6;
  --paper-2: #E9F0EF;
  --card: #FFFFFF;
  --ink: #0B2229;
  --ink-2: #26434B;
  --mute: #5B7078;
  --rule: #D3E0E2;
  --rule-2: #BFD0D3;

  --deep: #06202A;
  --deep-2: #0A2C37;
  --deep-3: #0F3A47;
  --on-deep: #E8F2F4;
  --on-deep-mute: #9FBAC2;

  --teal: #148A9A;
  --teal-ink: #0E6B78;
  --teal-bright: #3BC9DA;
  --teal-wash: #E3F1F3;
  --teal-glow: rgba(59, 201, 218, .45);

  --amber: #B8690F;
  --amber-wash: #FBEFD9;
  --green: #2D7A3A;
  --green-wash: #E3F2E5;
  --gap: #7E9298;
  --gap-wash: #E8EEEF;

  --map-land: #143A45;
  --map-edge: #06202A;
  --map-planned: rgba(59, 201, 218, .16);

  --display: "Instrument Serif", "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(11, 34, 41, .06), 0 8px 24px -12px rgba(11, 34, 41, .18);
  --shadow-2: 0 2px 4px rgba(11, 34, 41, .06), 0 24px 48px -20px rgba(11, 34, 41, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1F27; --paper-2: #0D2630; --card: #10303A; --ink: #E7F0F2; --ink-2: #C6D9DE; --mute: #93ACB3;
    --rule: #1D3E48; --rule-2: #27505B; --teal: #3BC9DA; --teal-ink: #6AD6E3; --teal-wash: #123A45;
    --amber: #E6AB5C; --amber-wash: #3A2A10; --green: #7FD08B; --green-wash: #14321E; --gap: #8FA6AD; --gap-wash: #173640;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
    --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1F27; --paper-2: #0D2630; --card: #10303A; --ink: #E7F0F2; --ink-2: #C6D9DE; --mute: #93ACB3;
  --rule: #1D3E48; --rule-2: #27505B; --teal: #3BC9DA; --teal-ink: #6AD6E3; --teal-wash: #123A45;
  --amber: #E6AB5C; --amber-wash: #3A2A10; --green: #7FD08B; --green-wash: #14321E; --gap: #8FA6AD; --gap-wash: #173640;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-decoration: none; }
p a, li a, .prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(36px, 4.6vw, 58px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; max-width: 62ch; }
li { margin: .35em 0; }
strong { font-weight: 600; }
.mute { color: var(--mute); }
.small { font-size: 14.5px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--teal-ink); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .3s var(--ease), box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { font-family: var(--display); font-size: 22px; color: var(--on-deep); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; letter-spacing: -.005em; }
.wordmark-pin { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(59,201,218,.18), 0 0 18px var(--teal-glow); }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--on-deep-mute); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--on-deep); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--on-deep); background: rgba(255,255,255,.1); }
.nav .nav-cta { margin-left: 8px; background: var(--teal-bright); color: var(--deep); font-weight: 600; }
.nav .nav-cta:hover { background: #5FD6E4; color: var(--deep); }
.top.solid { background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--rule); }
.top.solid .wordmark { color: var(--ink); }
.top.solid .nav a { color: var(--mute); }
.top.solid .nav a:hover, .top.solid .nav a[aria-current="page"] { color: var(--ink); background: var(--teal-wash); }
.top.solid .nav .nav-cta { background: var(--teal); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; color: var(--on-deep); align-items: center; justify-content: center; flex-direction: column; }
.top.solid .menu-btn { color: var(--ink); }
.menu-btn span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 68px 0 auto 0; margin: 0; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-2); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a, .top .nav a, .top.solid .nav a { color: var(--ink); font-size: 18px; padding: 12px 14px; border-radius: 12px; }
  .nav .nav-cta, .top .nav .nav-cta, .top.solid .nav .nav-cta { margin: 10px 0 0; background: var(--teal); color: #fff; text-align: center; justify-content: center; }
  .nav a[aria-current="page"], .top.solid .nav a[aria-current="page"] { background: var(--teal-wash); color: var(--teal-ink); }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--deep); color: var(--on-deep); overflow: hidden; padding: calc(68px + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 88px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(159,186,194,.16) 1px, transparent 1.2px); background-size: 28px 28px; mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 100%); -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 100%); z-index: -1; }
.hero::after { content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -14vw; top: -18vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,201,218,.22), transparent 70%); filter: blur(20px); z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy .kicker { color: var(--teal-bright); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--teal-bright); }
.hero .lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--on-deep-mute); max-width: 50ch; margin: 26px 0 0; line-height: 1.6; }
.hero .motto { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); color: #fff; line-height: 1.25; margin: 30px 0 34px; max-width: 32ch; padding-left: 18px; border-left: 2px solid var(--teal-bright); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; min-height: 48px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px -10px rgba(20,138,154,.7); }
.btn-primary:hover { background: var(--teal-ink); color: #fff; }
.hero .btn-primary { background: var(--teal-bright); color: var(--deep); box-shadow: 0 10px 30px -10px var(--teal-glow); }
.hero .btn-primary:hover { background: #5FD6E4; color: var(--deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-wash); }
.hero .btn-ghost { color: var(--on-deep); border-color: rgba(255,255,255,.22); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

.atlas-wrap { position: relative; }
.atlas-frame { position: relative; border-radius: 24px; padding: clamp(10px, 2vw, 22px); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); }
.atlas { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%), linear-gradient(to right, transparent 0, #000 10%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%), linear-gradient(to right, transparent 0, #000 10%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.atlas-land path { fill: var(--map-land); stroke: var(--map-edge); stroke-width: .7; stroke-linejoin: round; transition: fill .3s; }
.atlas-land path[data-status="planned"] { fill: var(--map-planned); stroke: var(--teal-bright); stroke-width: .9; stroke-dasharray: 2.5 2.2; }
.atlas-land path[data-status="active"] { fill: var(--teal-bright); stroke: var(--deep); stroke-width: .8; filter: drop-shadow(0 0 10px var(--teal-glow)); }
.atlas-land path[data-status]:hover { fill: #7FE0EC; cursor: help; }
.atlas-label { font-family: var(--sans); font-size: 15.5px; font-weight: 600; fill: #fff; paint-order: stroke; stroke: var(--deep); stroke-width: 4px; stroke-linejoin: round; }
.atlas-label.planned { fill: var(--on-deep-mute); font-weight: 500; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--on-deep-mute); padding-inline: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 11px; border-radius: 3px; display: inline-block; background: var(--map-land); border: 1px solid rgba(255,255,255,.12); }
.legend i.active { background: var(--teal-bright); border-color: var(--teal-bright); box-shadow: 0 0 10px var(--teal-glow); }
.legend i.planned { background: var(--map-planned); border: 1px dashed var(--teal-bright); }
.atlas-status { font-size: 13.5px; color: var(--on-deep-mute); margin: 8px 6px 0; min-height: 1.5em; }
.atlas-status b { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hero .atlas-land path[data-status="active"] { animation: ink 1s var(--ease) both; }
  .hero .atlas-land path[data-iso="410"] { animation-delay: .5s; }
  .hero .atlas-land path[data-iso="458"] { animation-delay: .8s; }
  .hero .atlas-labels text { animation: rise .6s ease-out both; animation-delay: 1.1s; }
  @keyframes ink { from { fill: var(--map-planned); filter: none; } to { fill: var(--teal-bright); } }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
}

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 6vw, 72px); }
.stat { background: rgba(6,32,42,.7); padding: 22px 24px; backdrop-filter: blur(6px); }
.stat .num { font-family: var(--display); font-size: clamp(38px, 4vw, 54px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .5em; color: var(--on-deep-mute); margin-left: 4px; }
.stat .lbl { font-size: 14px; color: var(--on-deep-mute); margin-top: 8px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--mute); margin-top: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head.center .kicker::before { display: none; }

/* profile anatomy: two sample records */
.records { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
.record { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.record:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.record-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--rule); display: flex; gap: 16px; align-items: flex-start; }
.record-head .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-wash); color: var(--teal-ink); display: grid; place-items: center; flex: none; }
.record-head .ico svg { width: 22px; height: 22px; }
.record-head h3 { font-size: 26px; }
.record-head .sub { color: var(--mute); font-size: 14.5px; margin-top: 4px; }
.record-head .sub b { color: var(--ink); font-weight: 600; }
.record-meter { padding: 14px 26px 0; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--mute); }
.record-meter .meter { flex: 1; margin: 0; max-width: none; }
.indicators { list-style: none; padding: 10px 10px 14px; margin: 0; max-width: none; }
.indicators li { margin: 0; display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border-radius: 10px; font-size: 15px; transition: background .2s; }
.indicators li:hover { background: var(--paper-2); }
.indicators .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.indicators .ic svg { width: 13px; height: 13px; }
.indicators .ic.doc { background: var(--teal-wash); color: var(--teal-ink); }
.indicators .ic.part { background: var(--amber-wash); color: var(--amber); }
.indicators .ic.nyd { background: var(--gap-wash); color: var(--gap); }
.indicators .finding { color: var(--mute); font-size: 12.5px; white-space: nowrap; font-family: var(--mono); }
.indicators li.nyd { color: var(--mute); }
.record-foot { padding: 14px 26px 20px; border-top: 1px dashed var(--rule); font-size: 13px; color: var(--mute); }
.record-foot b { color: var(--ink); font-weight: 600; }

/* coverage */
.coverage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 3vw, 28px); }
.ccard { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.ccard::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, var(--teal-wash), transparent); pointer-events: none; }
.ccard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ccard h3 { font-size: clamp(30px, 3vw, 40px); }
.ccard .finding-line { color: var(--mute); font-size: 14.5px; margin: 0 0 20px; }
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gauge .big { font-family: var(--display); font-size: clamp(34px, 3.4vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.gauge .big small { font-size: .5em; color: var(--mute); }
.gauge .cap { font-size: 13.5px; color: var(--mute); margin-top: 4px; }
.meter { height: 8px; background: var(--gap-wash); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); border-radius: 99px; width: var(--w, 0%); transform-origin: left; }
.ccard .schools { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--ink-2); }
.chip.ghost { color: var(--mute); border-style: dashed; background: transparent; }
.planned-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); }
.pcard { border: 1px dashed var(--rule-2); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--mute); background: transparent; transition: border-color .2s, background .2s; }
.pcard:hover { border-color: var(--teal); background: var(--card); }
.pcard h3 { font-size: 24px; color: var(--ink); }
.pcard .cap { font-size: 13.5px; margin-top: 2px; }
.coverage-note { font-size: 14.5px; color: var(--mute); margin-top: 24px; max-width: 72ch; }

/* badges */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; vertical-align: middle; line-height: 1.4; }
.b-nyd { background: var(--gap-wash); color: var(--gap); }
.b-doc { background: var(--teal-wash); color: var(--teal-ink); }
.b-com { background: var(--amber-wash); color: var(--amber); }
.b-ver { background: var(--green-wash); color: var(--green); }

/* ladder */
.ladder-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ladder-wrap .section-head { position: sticky; top: 100px; margin: 0; }
.ladder { list-style: none; padding: 0; margin: 0; position: relative; counter-reset: rung; max-width: none; }
.ladder::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--rule); }
.ladder .line { position: absolute; left: 27px; top: 28px; width: 2px; height: calc(100% - 56px); background: linear-gradient(180deg, var(--gap), var(--teal), var(--amber), var(--green)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.ladder li { counter-increment: rung; display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; padding: 10px 0 34px; margin: 0; }
.ladder li:last-child { padding-bottom: 10px; }
.ladder li::before { content: counter(rung); width: 56px; height: 56px; border-radius: 50%; background: var(--card); border: 2px solid var(--rule-2); display: grid; place-items: center; font-family: var(--display); font-size: 26px; color: var(--mute); position: relative; z-index: 1; transition: border-color .3s, color .3s, box-shadow .3s; }
.ladder li.lit::before { border-color: var(--c); color: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent); }
.ladder li:nth-child(1) { --c: var(--gap); } .ladder li:nth-child(2) { --c: var(--teal); } .ladder li:nth-child(3) { --c: var(--amber); } .ladder li:nth-child(4) { --c: var(--green); }
.ladder .rung { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-1); }
.ladder .rung-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ladder .rung-head h3 { font-size: 24px; }
.ladder .rung p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: none; }
.ladder .rung .needs { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.callout { background: var(--card); border-left: 3px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin-top: 24px; box-shadow: var(--shadow-1); }
.callout p { margin: 0; max-width: none; }

/* three numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.numbers > div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.numbers .idx { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--teal); opacity: .35; position: absolute; right: 22px; top: 12px; }
.numbers .state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal-ink); background: var(--teal-wash); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.numbers .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.numbers h3 { margin-bottom: 10px; }
.numbers p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.numbers .waits { background-image: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--rule) 50%, transparent) 10px 11px); }
.numbers .waits .idx { color: var(--gap); }
.numbers .waits .state { color: var(--gap); background: var(--gap-wash); }
.numbers .waits h3, .numbers .waits p { color: var(--mute); }

/* quote band */
.band { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; padding-block: clamp(80px, 12vw, 160px); isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(159,186,194,.14) 1px, transparent 1.2px); background-size: 28px 28px; z-index: -1; }
.band .atlas-bg { position: absolute; right: -8%; top: 50%; width: 62%; max-width: 820px; transform: translateY(-50%); opacity: .35; z-index: -1; pointer-events: none; }
.band .atlas-bg .atlas { mask: none; -webkit-mask: none; }
.band .atlas-bg .atlas-land path { fill: var(--deep-3); stroke: var(--deep); }
.band .atlas-bg .atlas-land path[data-status="active"] { fill: var(--teal-bright); filter: none; }
.band .atlas-bg .atlas-land path[data-status="planned"] { fill: var(--map-planned); }
.band .atlas-bg .atlas-labels { display: none; }
.band blockquote { margin: 0; max-width: 20ch; font-family: var(--display); font-size: clamp(36px, 5.6vw, 76px); line-height: 1.05; color: #fff; }
.band blockquote em { font-style: italic; color: var(--teal-bright); }
.band .by { margin-top: 26px; color: var(--on-deep-mute); font-size: 15px; max-width: 40ch; }

/* invitation */
.invite { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.invite-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: none; }
.invite-list li { margin: 0; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.invite-list li:hover { transform: translateX(4px); box-shadow: var(--shadow-2); }
.invite-list .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-wash); color: var(--teal-ink); display: grid; place-items: center; }
.invite-list .ico svg { width: 22px; height: 22px; }
.invite-list b { display: block; font-weight: 600; font-size: 16.5px; margin-bottom: 2px; }
.invite-list span { color: var(--ink-2); font-size: 15px; }

/* ---------- inner pages ---------- */
.page-head { background: var(--deep); color: var(--on-deep); padding: calc(68px + clamp(48px, 7vw, 88px)) 0 clamp(44px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(159,186,194,.14) 1px, transparent 1.2px); background-size: 28px 28px; mask-image: linear-gradient(to right, transparent, #000 50%); -webkit-mask-image: linear-gradient(to right, transparent, #000 50%); z-index: -1; }
.page-head::after { content: ""; position: absolute; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; right: -10vw; top: -20vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,201,218,.2), transparent 70%); filter: blur(16px); z-index: -1; }
.page-head .kicker { color: var(--teal-bright); }
.page-head h1 { color: #fff; font-size: clamp(42px, 6vw, 80px); }
.page-head p { font-size: clamp(17px, 1.5vw, 20px); color: var(--on-deep-mute); margin: 20px 0 0; max-width: 56ch; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(30px, 3.4vw, 42px); margin: clamp(44px, 6vw, 64px) 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 30px 0 8px; }
.prose p, .prose ul { font-size: 17px; max-width: none; }
.prose li { margin: .5em 0; }
.prose .sld { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin: 14px 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.prose .sld .badge { margin-top: 4px; }
.prose .sld p { margin: 0; font-size: 15.5px; }
.provenance { border: 1px dashed var(--rule-2); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 13.5px; color: var(--mute); margin: 18px 0; background: var(--card); font-family: var(--mono); line-height: 1.7; }
.provenance b { color: var(--ink); font-weight: 600; }
.quote { font-family: var(--display); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); color: var(--teal-ink); line-height: 1.2; margin: 36px 0; padding-left: 20px; border-left: 2px solid var(--teal); max-width: 34ch; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 8px; }
.roles > div { border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; background: var(--card); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.roles > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.roles .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-wash); color: var(--teal-ink); display: grid; place-items: center; margin-bottom: 14px; }
.roles .ico svg { width: 20px; height: 20px; }
.roles h3 { margin: 0 0 6px; font-size: 22px; }
.roles p { margin: 0; font-size: 15px; color: var(--mute); }
.roles .path { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.contact-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0; max-width: 560px; box-shadow: var(--shadow-1); }
.contact-card p { margin: 0 0 6px; }
.contact-card .btn { margin-top: 12px; }
.principles { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; max-width: none; }
.principles li { margin: 0; padding: 18px 20px 18px 56px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm); position: relative; font-size: 16px; }
.principles li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-wash); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6B78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }

/* ---------- footer ---------- */
.foot { background: var(--deep); color: var(--on-deep-mute); font-size: 14.5px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding-block: clamp(44px, 6vw, 72px) 32px; }
.foot-col a { display: block; margin: 6px 0; color: var(--on-deep-mute); transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-name { font-family: var(--display); font-size: 24px; color: #fff; margin-bottom: 10px; }
.foot-note { max-width: 44ch; }
.foot-head { font-weight: 600; color: #fff; margin-bottom: 10px; }
.foot-line { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px 32px; font-size: 13px; }

/* 404 */
.notfound { padding-block: clamp(80px, 12vw, 140px); }

/* ---------- reveal (JS adds .js; without JS everything is visible) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js .revealed[data-reveal] { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .ladder-wrap { grid-template-columns: 1fr; }
  .ladder-wrap .section-head { position: static; margin-bottom: 28px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .atlas-wrap { max-width: 640px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .records { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; }
  .planned-row { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .invite { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .band .atlas-bg { width: 120%; right: -30%; opacity: .2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(68px + 32px); }
  .hero .motto { font-size: 21px; }
  .stat { padding: 16px 18px; }
  .stat .num { font-size: 34px; }
  .gauges { grid-template-columns: 1fr; }
  .indicators li { grid-template-columns: 26px 1fr; }
  .indicators .finding { grid-column: 2; white-space: normal; }
  .roles { grid-template-columns: 1fr; }
  .ladder li { grid-template-columns: 44px 1fr; gap: 0 14px; }
  .ladder li::before { width: 44px; height: 44px; font-size: 20px; }
  .ladder::before, .ladder .line { left: 21px; }
  .pcard { flex-direction: column; align-items: flex-start; }
  .wordmark { font-size: 19px; }
}

/* static render (reduced motion or ?static=1): final states, no animation */
.static *, .static *::before, .static *::after { animation: none !important; transition: none !important; }

/* ---------- figures: diagrams and charts ---------- */
.fig { margin: 0; }
.fig svg { width: 100%; height: auto; display: block; color: var(--ink); font-family: var(--sans); }
.fig figcaption { font-size: 14.5px; color: var(--mute); margin-top: 14px; max-width: 70ch; line-height: 1.55; }
.fig .t { font-size: 13.5px; fill: currentColor; }
.fig .t-on { font-size: 13.5px; fill: #fff; font-weight: 600; }
.fig .t-mute { fill: var(--mute); }
.fig .t-tiny { font-size: 11.5px; fill: currentColor; }
.fig .t-cap { font-size: 12.5px; fill: var(--ink-2); font-weight: 600; }
.fig .t-num { font-family: var(--display); font-size: 22px; fill: var(--teal); }
.fig .t-mono { font-family: var(--mono); font-size: 11.5px; fill: currentColor; }
.fig .t-link { font-size: 12.5px; fill: var(--teal-ink); text-decoration: underline; }
.fig .t-pill { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; fill: var(--teal-ink); }
.fig .t-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; fill: var(--teal-ink); }
.fig .t-badge-on { font-size: 11px; font-weight: 700; letter-spacing: .04em; fill: var(--ink); }
.fig .t-step { font-family: var(--display); font-size: 24px; fill: rgba(255,255,255,.75); }
.fig .box { fill: var(--card); stroke: var(--rule-2); stroke-width: 1.2; }
.fig .box-teal { fill: var(--teal-wash); stroke: var(--teal); }
.fig .box-wait { fill: transparent; stroke: var(--gap); stroke-dasharray: 4 3; }
.fig .box-gate { fill: var(--card); stroke: var(--gap); }
.fig .box-stale { fill: var(--gap-wash); stroke: var(--gap); }
.fig .out-doc { fill: var(--teal-wash); stroke: var(--teal); }
.fig .out-com { fill: var(--amber-wash); stroke: var(--amber); }
.fig .out-ver { fill: var(--green-wash); stroke: var(--green); }
.fig .badge-doc { fill: var(--teal-wash); }
.fig .arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.fig .arrow.strong { stroke: var(--green); stroke-width: 2.2; }
.fig .arrow.dashed { stroke-dasharray: 4 4; stroke: var(--gap); }
.fig marker path, .fig marker circle { fill: var(--ink-2); }
.fig .gate { stroke: var(--gap); stroke-width: 1.5; stroke-dasharray: 5 4; }
.fig .callout line { stroke: var(--teal); stroke-width: 1.4; }
.fig #an-dot circle { fill: var(--teal); }
.fig .doc { fill: var(--card); stroke: var(--teal-ink); stroke-width: 1.5; stroke-linejoin: round; }
.fig .doc-fold { fill: none; stroke: var(--teal-ink); stroke-width: 1.5; stroke-linejoin: round; }
.fig .ppl { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; }
.fig .stamp { fill: var(--green-wash); stroke: var(--green); stroke-width: 1.5; stroke-linejoin: round; }
.fig .stamp-check { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fig .flag { fill: none; stroke: var(--teal-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fig .lock { fill: none; stroke: var(--gap); stroke-width: 1.4; stroke-linejoin: round; }
.fig .step { stroke: none; }
.fig .step.s1 { fill: var(--gap); } .fig .step.s2 { fill: var(--teal); } .fig .step.s3 { fill: var(--amber); } .fig .step.s4 { fill: var(--green); }
.fig .ing .t-tiny { fill: #fff; }
.fig .ing .doc { fill: rgba(255,255,255,.15); stroke: #fff; } .fig .ing .doc-fold { stroke: #fff; }
.fig .ing .ppl { stroke: #fff; } .fig .ing .stamp { fill: rgba(255,255,255,.15); stroke: #fff; } .fig .ing .stamp-check { stroke: #fff; }
.fig .riser path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.fig-stairs .t-tiny.t-mute { fill: rgba(255,255,255,.7); }
.fig-cycle .box-stale { fill: var(--gap-wash); }
.fig-panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-1); }
.fig-panel .fig figcaption { margin-top: 10px; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 28px); }

/* matrix */
.matrix { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(5, minmax(56px, 1fr)); gap: 4px; font-size: 14px; }
.mx-head, .mx-row { display: contents; }
.mx-head span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: center; padding: 6px 2px 10px; align-self: end; line-height: 1.2; }
.mx-head .mx-corner { text-align: left; color: var(--mute); font-weight: 500; }
.mx-head .mx-planned { color: var(--mute); font-weight: 500; }
.mx-label { padding: 8px 10px 8px 0; color: var(--ink); display: flex; align-items: center; min-height: 40px; line-height: 1.3; border-top: 1px solid var(--rule); }
.c { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; font-style: normal; font-weight: 700; font-size: 15px; cursor: help; transition: transform .15s; }
.c:hover { transform: scale(1.06); }
.c.doc { background: var(--teal); color: #fff; }
.c.doc.no { background: var(--teal-wash); color: var(--teal-ink); box-shadow: inset 0 0 0 2px var(--teal); }
.c.part { background: var(--amber-wash); color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); }
.c.nyd { background: var(--gap-wash); color: var(--gap); }
.c.pl { background: transparent; border: 1.5px dashed var(--rule-2); }
.c.na { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--rule) 5px 6px); opacity: .6; }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--mute); }
.legend-row span { display: inline-flex; align-items: center; gap: 8px; }
.legend-row .c { height: 22px; width: 22px; font-size: 11px; border-radius: 5px; cursor: default; }
.legend-row .c:hover { transform: none; }
.legend-row .w { width: 16px; height: 16px; }

/* waffles */
.waffles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
.wf-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 16px; }
.wf-head .mono { color: var(--mute); font-size: 14px; }
.wf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 300px; }
.w { display: block; aspect-ratio: 1; border-radius: 6px; background: transparent; border: 1.5px dashed var(--rule-2); cursor: help; transition: transform .15s, background .2s; }
.w:hover { transform: scale(1.08); }
.w.on { background: var(--teal); border: none; box-shadow: 0 0 0 1px var(--teal); }
.w.draft { background: var(--teal-wash); border: 1.5px dashed var(--teal); }
.wf-cap { font-size: 13px; color: var(--mute); margin-top: 10px; }

/* bars */
.bars { display: grid; gap: 18px; }
.bar-name { font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.bar-group.planned .bar-name { color: var(--mute); font-weight: 500; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 12px; margin: 4px 0; font-size: 13.5px; }
.bar-lbl { color: var(--mute); }
.bar-track { height: 14px; background: var(--gap-wash); border-radius: 4px; overflow: hidden; }
.bar-track.dashed { background: transparent; border: 1.5px dashed var(--rule-2); }
.bar { display: block; height: 100%; width: var(--w, 0%); background: var(--teal); border-radius: 0 4px 4px 0; transform-origin: left; }
.bar-val { color: var(--ink-2); text-align: right; font-size: 13px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; max-width: none; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--rule); }
.timeline li { margin: 0; position: relative; padding-top: 30px; font-size: 14px; color: var(--mute); }
.timeline li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.tl-dot { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--rule-2); }
.timeline .done .tl-dot { background: var(--teal); border-color: var(--teal); }
.timeline .now .tl-dot { background: var(--card); border-color: var(--teal); box-shadow: 0 0 0 5px var(--teal-wash); }
.timeline .now b { color: var(--teal-ink); }
.timeline .wait .tl-dot { border-style: dashed; }

/* details for long prose */
details.more { border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--card); margin-top: 18px; }
details.more summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.more summary::after { content: "+"; font-size: 20px; color: var(--teal); }
details.more[open] summary::after { content: "–"; }
details.more > div { padding: 0 18px 16px; color: var(--ink-2); font-size: 15.5px; }
details.more p { max-width: none; }

@media (max-width: 760px) {
  .fig-pair { grid-template-columns: 1fr; }
  .waffles { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: minmax(130px, 1.4fr) repeat(5, minmax(34px, 1fr)); gap: 3px; font-size: 13px; }
  .mx-head span { font-size: 11px; }
  .c { height: 34px; font-size: 13px; border-radius: 6px; }
  .timeline { grid-template-columns: 1fr; gap: 10px; }
  .timeline::before { left: 7px; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding: 0 0 6px 30px; }
}
.stats-light { background: var(--rule); border-color: var(--rule); margin-top: 0; }
.stats-light .stat { background: var(--card); backdrop-filter: none; }
.stats-light .num { color: var(--ink); } .stats-light .num small, .stats-light .lbl { color: var(--mute); }
@media (max-width: 700px) {
  .fig-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fig svg { min-width: 620px; }
  .fig-cycle svg { min-width: 480px; }
  .fig figcaption { position: sticky; left: 0; }
}
