/* ---------- tokens ---------- */
:root {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321; --raise: #2a2a28;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8f8d87;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255,255,255,.10);
  --accent: #3987e5; --accent-ink: #86b6ef; --accent-wash: rgba(57,135,229,.14);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.35);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --side: 248px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f4f4f1; --surface: #fcfcfb; --surface-2: #f0efec; --raise: #e9e8e3;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #6f6d68;
  --grid: #e1e0d9; --axis: #c3c2b7; --border: rgba(11,11,11,.12);
  --accent: #2a78d6; --accent-ink: #1c5cab; --accent-wash: rgba(42,120,214,.10);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  --shadow: 0 1px 2px rgba(11,11,11,.05), 0 8px 24px rgba(11,11,11,.06);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 500px at 70% -10%, var(--accent-wash), transparent 70%);
  background-repeat: no-repeat;
}
h1, h2, h3, p, figure, ul { margin: 0; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.02em; font-weight: 650; max-width: 19ch; text-wrap: balance; }
h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.01em; font-weight: 650; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.sub { color: var(--ink-2); max-width: 72ch; }
.fine { font-size: 13px; color: var(--muted); max-width: 90ch; }
.note { font-size: 14px; color: var(--ink-2); }

/* ---------- shell ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 22px 16px;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 26px; z-index: 20;
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.brand strong { display: block; font-size: 15px; line-height: 1.2; }
.brand small { color: var(--muted); font-size: 12px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px 0; flex: none; }
.brand-mark i { width: 5px; border-radius: 2px; background: var(--s1); }
.brand-mark i:nth-child(1) { height: 40%; } .brand-mark i:nth-child(2) { height: 70%; } .brand-mark i:nth-child(3) { height: 100%; background: var(--s3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; gap: 12px; align-items: baseline; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a span { font: 500 11px var(--mono); color: var(--muted); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { background: var(--accent-wash); color: var(--ink); }
.nav a.is-active span { color: var(--accent-ink); }
.side-foot { margin-top: auto; font-size: 12px; color: var(--muted); line-height: 1.7; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); margin-right: 4px; }

.main { margin-left: var(--side); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--page) 84%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.lens { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.lens-label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; max-width: 100%; }
.seg.wrap { flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); line-height: 1.25; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--border), 0 1px 3px rgba(0,0,0,.25); font-weight: 600; }
.icon-btn { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; color: var(--ink-2); flex: none; }
.icon-btn:hover { color: var(--ink); }

main { padding: 0 clamp(16px, 4vw, 48px); max-width: 1240px; }
section { padding: 64px 0 8px; display: grid; gap: 20px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 4px; }
.foot { padding: 48px clamp(16px, 4vw, 48px) 40px; color: var(--muted); font-size: 13px; }

/* ---------- hero ---------- */
.hero { padding-top: 56px; gap: 22px; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 68ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.context { font-size: 14px; color: var(--muted); max-width: 80ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 550; transition: transform .15s, background .15s; }
.btn:hover { background: var(--raise); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }

/* ---------- cards, tiles ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.tiles.mini { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.tiles.mini .tile { background: var(--surface-2); box-shadow: none; }
.tile-k { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile-v { font-size: 34px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; white-space: nowrap; }
.tile-v small { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 5px; }
.tile-d { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.chip { display: inline-block; justify-self: start; font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-wash); padding: 3px 8px; border-radius: 6px; }
.work { display: grid; gap: 10px; align-content: start; transition: transform .18s, border-color .18s; }
.work:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.work p { color: var(--ink-2); font-size: 14.5px; }
.more { color: var(--ink-2); font-size: 14.5px; }

/* ---------- role fit ---------- */
.fit { display: grid; grid-template-columns: minmax(240px, 5fr) 7fr; gap: 0; padding: 0; overflow: hidden; }
.fit-list { display: flex; flex-direction: column; padding: 10px; gap: 2px; border-right: 1px solid var(--border); background: var(--surface-2); }
.fit-list button { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 11px 12px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.fit-list button:hover { color: var(--ink); background: var(--raise); }
.fit-list button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--border); }
.fit-list .n { font: 500 11px var(--mono); color: var(--muted); background: var(--page); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.fit-list button[aria-selected="true"] .n { color: var(--accent-ink); }
.fit-detail { padding: 24px; display: grid; gap: 14px; align-content: start; }
.fit-detail .ask { color: var(--ink-2); font-size: 14.5px; border-left: 2px solid var(--accent); padding-left: 12px; }
.ev { display: grid; gap: 10px; list-style: none; padding: 0; }
.ev li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; animation: rise .3s both; }
.ev li:nth-child(2) { animation-delay: .04s; } .ev li:nth-child(3) { animation-delay: .08s; } .ev li:nth-child(4) { animation-delay: .12s; } .ev li:nth-child(5) { animation-delay: .16s; }
.ev .where { font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); width: 84px; padding-top: 3px; }
.ev p { font-size: 14.5px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- coverage model ---------- */
.model { display: grid; gap: 16px; }
.model-head { display: grid; gap: 6px; }
.model-head p { color: var(--ink-2); font-size: 14.5px; max-width: 72ch; }
.tier-frame { display: block; width: 100%; height: 600px; border: 0; background: transparent; }

/* ---------- charts ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.slider { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.slider output { font-family: var(--mono); color: var(--ink); margin-left: 4px; }
.slider input { accent-color: var(--accent); width: 150px; }
.lab, .dash { display: grid; gap: 18px; }
.lab-video { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 28px; align-items: center; }
.lab-video-text { display: grid; gap: 10px; justify-items: start; }
.lab-video-text h3 { font-size: 21px; }
.lab-video-text p { color: var(--ink-2); font-size: 15px; }
.video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .lab-video { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.stat b { display: block; font-size: 28px; font-weight: 650; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.s1 { background: var(--s1); } .sw.s2 { background: var(--s2); } .sw.s3 { background: var(--s3); }
.lg-line { width: 18px; height: 2px; background: var(--s1); }
.lg-dash { width: 18px; height: 0; border-top: 2px dashed var(--muted); }
.lg-true, .lg-false, .lg-miss { width: 11px; height: 11px; border-radius: 50%; }
.lg-true { background: var(--good); }
.lg-false { border: 2px solid var(--warning); }
.lg-miss { background: var(--critical); border-radius: 2px; transform: rotate(45deg) scale(.85); }
.chart { width: 100%; height: 300px; position: relative; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { font: 11px var(--sans); fill: var(--muted); font-variant-numeric: tabular-nums; }

.dash-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.dash-head > div:first-child { display: grid; gap: 10px; }
.dash-head p { color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.dash-head h3 { font-size: 21px; }
.dash-links { display: grid; gap: 8px; justify-items: stretch; max-width: 240px; }
.dash-links small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.panel { background: var(--surface-2); border-radius: 12px; padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel figcaption { display: grid; gap: 2px; }
.panel figcaption b { font-size: 15px; }
.panel figcaption span { font-size: 13px; color: var(--ink-2); }

.hbars, .gbars, .meters { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 92px 1fr 86px; gap: 10px; align-items: center; font-size: 13.5px; cursor: default; }
.hbar .lab-t { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.hbar .ico { font-size: 11px; width: 12px; text-align: center; }
.track { height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--grid) 70%, transparent); overflow: hidden; }
.fill { height: 100%; border-radius: 0 4px 4px 0; width: 0; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.hbar .val small { color: var(--muted); margin-left: 4px; }
.hbar:hover .track, .grow:hover .track { outline: 1px solid var(--axis); }
.r-Low { background: var(--good); } .r-Moderate { background: var(--warning); } .r-High { background: var(--serious); } .r-Extreme { background: var(--critical); }

.hist { display: flex; align-items: flex-end; gap: 2px; height: 170px; border-bottom: 1px solid var(--axis); }
.hist .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.hist .col i { display: block; width: 100%; max-width: 44px; background: var(--s1); border-radius: 4px 4px 0 0; height: 0; transition: height .6s cubic-bezier(.2,.7,.2,1); }
.hist .col:hover i { filter: brightness(1.2); }
.hist .col span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hist-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -8px; }

.grow { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; font-size: 13.5px; }
.grow .pair { display: grid; gap: 2px; }
.grow .line { display: grid; grid-template-columns: 1fr 48px; gap: 8px; align-items: center; }
.grow .track { height: 9px; }
.grow .fill.c { background: var(--s1); } .grow .fill.l { background: var(--s2); }
.grow .v { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.meter { display: grid; gap: 6px; font-size: 13.5px; }
.meter .top { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.meter .top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.meter .fill { background: var(--s1); }
.meter .track { height: 9px; }

.tbl summary { cursor: pointer; font-size: 13.5px; color: var(--accent-ink); }
.tbl table { border-collapse: collapse; margin-top: 12px; font-size: 13.5px; width: 100%; max-width: 640px; }
.tbl th, .tbl td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--grid); font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--ink-2); font-weight: 600; }
.tbl div { overflow-x: auto; }

/* ---------- atlas ---------- */
.atlas-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 14px 20px; align-items: start; }
.steps { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.steps button { flex: 1 1 110px; display: grid; gap: 2px; text-align: left; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.steps button span { font: 500 11px var(--mono); color: var(--muted); }
.steps button:hover { background: var(--raise); }
.steps button.is-on { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.steps button.is-on span { color: var(--accent-ink); }
.step-panel { display: grid; gap: 8px; align-content: start; padding: 6px 2px; }
.step-panel h4 { margin: 0; font-size: 19px; }
.step-panel p { color: var(--ink-2); font-size: 15px; }
.atlas img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); display: block; }

/* ---------- timeline ---------- */
.tl { display: grid; gap: 8px; margin-top: 14px; }
.tl-row { display: grid; grid-template-columns: 190px 1fr; gap: 12px; align-items: center; font-size: 13.5px; }
.tl-row .name { color: var(--ink-2); line-height: 1.3; }
.tl-track { position: relative; height: 22px; background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px); background-size: calc(100% / 6.2) 100%; }
.tl-seg { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; border: 0; padding: 0; box-shadow: 0 0 0 1px var(--surface); min-width: 4px; }
.tl-seg:hover, .tl-seg:focus-visible { filter: brightness(1.2); }
.tl-seg.k1 { background: var(--s1); } .tl-seg.k2 { background: var(--s2); } .tl-seg.k3 { background: var(--s3); }
.tl-axis { position: relative; height: 18px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-axis span { position: absolute; transform: translateX(-50%); }

/* ---------- skills, lists, form ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13.5px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); transition: opacity .2s, transform .2s; }
.tag.dim { opacity: .22; }
.list { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 14px; }
.list li { display: grid; gap: 2px; font-size: 14.5px; }
.list li span { color: var(--ink-2); font-size: 13.5px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.form input:not([type=checkbox]), .form textarea { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; width: 100%; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.form legend { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.form .ck { display: inline-flex; grid-template-columns: none; align-items: center; gap: 8px; color: var(--ink); }
.form .ck input { accent-color: var(--accent); width: 16px; height: 16px; }
.form .btn { justify-self: start; border: 0; }
.contact-side { display: grid; gap: 14px; align-content: start; justify-items: start; }
.contact-side p { color: var(--ink-2); }
.links { margin-top: 4px; }

/* ---------- tooltip ---------- */
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--raise); color: var(--ink); border: 1px solid var(--border); border-radius: 9px; padding: 8px 11px; font-size: 13px; line-height: 1.45; max-width: 280px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.tip b { display: block; }
.tip span { color: var(--ink-2); }

/* ---------- motion: load, scroll reveal, hover ---------- */
@keyframes rise2 { from { opacity: 0; transform: translateY(22px); } }
@keyframes growx { from { transform: scaleX(0); opacity: 0; } }
@keyframes growy { from { transform: scaleY(0); } }
@keyframes pop { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.35); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes sheen { to { transform: translateX(520%) skewX(-20deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* on load */
.hero > * { animation: rise2 .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero > :nth-child(2), .hero > :nth-child(3) { animation-delay: .08s; }
.hero > :nth-child(4), .hero > :nth-child(5) { animation-delay: .18s; }
.hero > .cta { animation-delay: .28s; }
.hero > .context { animation-delay: .36s; }
.hero > .tiles { animation: none; }
.hero .tile { animation: rise2 .6s cubic-bezier(.2,.7,.2,1) backwards; }
.hero .tile:nth-child(1) { animation-delay: .42s; } .hero .tile:nth-child(2) { animation-delay: .49s; }
.hero .tile:nth-child(3) { animation-delay: .56s; } .hero .tile:nth-child(4) { animation-delay: .63s; }
.hero .tile:nth-child(5) { animation-delay: .70s; } .hero .tile:nth-child(6) { animation-delay: .77s; }
.side .nav a { animation: fadein .5s backwards; }
.side .nav a:nth-child(2) { animation-delay: .05s; } .side .nav a:nth-child(3) { animation-delay: .1s; }
.side .nav a:nth-child(4) { animation-delay: .15s; } .side .nav a:nth-child(5) { animation-delay: .2s; }
.side .nav a:nth-child(6) { animation-delay: .25s; } .side .nav a:nth-child(7) { animation-delay: .3s; }
.side .nav a:nth-child(8) { animation-delay: .35s; }
.brand-mark i { transform-origin: bottom; animation: growy .6s cubic-bezier(.2,.9,.3,1.4) backwards; }
.brand-mark i:nth-child(2) { animation-delay: .12s; } .brand-mark i:nth-child(3) { animation-delay: .24s; }
.brand:hover .brand-mark i { animation-name: none; }
.brand-mark i { transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.brand:hover .brand-mark i { transform: scaleY(1.25); }
.brand:hover .brand-mark i:nth-child(2) { transition-delay: .06s; } .brand:hover .brand-mark i:nth-child(3) { transition-delay: .12s; }
.dot { box-shadow: 0 0 0 0 var(--good); animation: pulse 2.4s infinite; }
span[data-lens-text]:not([hidden]) { animation: fadein .5s; }

/* hero photo */
.hero > .hero-top { animation: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 290px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero-text > * { animation: rise2 .7s cubic-bezier(.2,.7,.2,1) backwards; }
.hero-text > :nth-child(2), .hero-text > :nth-child(3) { animation-delay: .08s; }
.hero-text > :nth-child(4), .hero-text > :nth-child(5) { animation-delay: .18s; }
.hero-text > .cta { animation-delay: .28s; }
.hero-text > .context { animation-delay: .36s; }
.hero-photo { position: relative; aspect-ratio: 62 / 100; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow), 0 30px 60px -30px var(--accent); animation: rise2 .9s cubic-bezier(.2,.7,.2,1) .25s backwards; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hero-photo:hover img { transform: scale(1.04); }
.hero-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 16px 14px; display: grid; gap: 1px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); }
.hero-photo figcaption b { font-size: 15px; }
.hero-photo figcaption span { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
@media (max-width: 900px) {
  .hero > .hero-top { grid-template-columns: 1fr; }
  .hero-photo { order: -1; width: min(210px, 55%); }
}

/* scroll reveal (classes are added by app.js) */
.rv { opacity: 0; }
.rv.in { opacity: 1; animation: rise2 .65s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--d, 0s); }
.chart:not(.seen) svg { visibility: hidden; }
.chart.draw .ln { animation: draw 1.8s ease-out forwards; }
.chart.draw .mk { transform-box: fill-box; transform-origin: center; animation: pop .45s backwards; animation-delay: 1.5s; }
.chart.draw .mkd { animation: fadein .45s backwards; animation-delay: 1.5s; }
.tl:not(.in) .tl-seg { opacity: 0; }
.tl.in .tl-seg { transform-origin: left; animation: growx .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--r, 0) * 90ms + var(--s, 0) * 120ms); }

/* hover */
.tile, .panel, .stat, .work { background-repeat: no-repeat; transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s; }
.tile:hover, .work:hover, .panel:hover, .stat:hover { background-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--accent-wash), transparent 70%); }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.tile-v span { display: inline-block; transition: transform .25s cubic-bezier(.2,.9,.3,1.4), color .2s; transform-origin: left bottom; }
.tile:hover .tile-v span { transform: scale(1.1); color: var(--accent-ink); }
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow), 0 18px 40px -18px var(--accent); }
.work .chip { transition: transform .25s; }
.work:hover .chip { transform: translateX(4px); }
.work h3 { transition: color .2s; }
.work:hover h3 { color: var(--accent-ink); }
.stat b { transition: transform .25s cubic-bezier(.2,.9,.3,1.4); transform-origin: left bottom; }
.stat:hover b { transform: scale(1.08); }
.nav a { transition: transform .18s, background .18s, color .18s; }
.nav a:hover { transform: translateX(4px); }
.btn { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
.btn.primary:hover::after { animation: sheen .7s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px var(--accent); }
.btn:active { transform: translateY(0) scale(.98); }
.icon-btn svg { transition: transform .4s cubic-bezier(.2,.9,.3,1.4); }
.icon-btn:hover svg { transform: rotate(-35deg) scale(1.15); }
.seg button { transition: background .2s, color .2s, box-shadow .2s; }
.fit-list button { transition: background .18s, color .18s, transform .18s; }
.fit-list button:hover { transform: translateX(3px); }
.fit-list .n { transition: transform .2s, color .2s; }
.fit-list button:hover .n { transform: scale(1.08); color: var(--accent-ink); }
.ev li { transition: transform .2s, border-color .2s; }
.ev li:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.steps button { transition: transform .2s, background .2s, border-color .2s; }
.steps button:hover { transform: translateY(-3px); }
.step-panel > * { animation: rise .35s both; }
.hbar, .grow { transition: transform .2s; }
.hbar:hover, .grow:hover { transform: translateX(4px); }
.fill { transition: width .6s cubic-bezier(.2,.7,.2,1), filter .2s; }
.hbar:hover .fill, .grow:hover .fill, .meter:hover .fill { filter: brightness(1.2) saturate(1.15); }
.hist .col i { transform-origin: bottom; transition: height .6s cubic-bezier(.2,.7,.2,1), transform .2s cubic-bezier(.2,.9,.3,1.4), filter .2s; }
.hist .col:hover i { transform: scaleY(1.05) scaleX(1.06); }
.hist .col span { transition: color .2s, transform .2s; }
.hist .col:hover span { color: var(--ink); transform: translateY(-3px); }
.tl-seg { transition: transform .18s cubic-bezier(.2,.9,.3,1.4), filter .18s; }
.tl-seg:hover, .tl-seg:focus-visible { transform: scaleY(1.3); }
.tl-row .name { transition: color .2s; }
.tl-row:hover .name { color: var(--ink); }
.tag { cursor: default; }
.tag:not(.dim):hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-wash); }
.atlas img { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.atlas img:hover { transform: scale(1.02); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); }
.list.links a { display: inline-block; transition: transform .18s; }
.list.links a:hover { transform: translateX(4px); }

/* ---------- leadership photos ---------- */
.lead-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lead-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s; }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.lead-photo:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow), 0 18px 40px -18px var(--accent); }
.lead-photo:hover img { transform: scale(1.04); }
.lead-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 16px 14px; display: grid; gap: 1px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); }
.lead-photo figcaption b { font-size: 15px; }
.lead-photo figcaption span { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
@media (max-width: 640px) { .lead-photos { grid-template-columns: 1fr; } .lead-photo { aspect-ratio: 4 / 3; } }

/* ---------- FireSmart banner ---------- */
.fs-banner { --fs-tree: #199e70; --fs-char: #5c5b57; --fs-flame: #fab219; --fs-fire: #d95926; --fs-hit: #6a2b28; display: grid; gap: 14px; }
:root[data-theme="light"] .fs-banner { --fs-tree: #1baf7a; --fs-char: #a3a29b; --fs-fire: #eb6834; --fs-hit: #eeb5ae; }
.fs-why { display: flex; gap: 16px; align-items: start; justify-content: space-between; }
.fs-why p { color: var(--ink-2); font-size: 15px; max-width: 86ch; }
.fs-why b { color: var(--ink); }
.fs-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fs-panel { background: var(--surface-2); border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.fs-panel figcaption { display: grid; gap: 2px; }
.fs-panel figcaption b { font-size: 15px; }
.fs-panel figcaption span { font-size: 13px; color: var(--ink-2); }
.fs-panel svg { display: block; width: 100%; height: auto; }
.fs-verdict { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.fs-verdict::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.fs-bad .fs-verdict::before { background: var(--critical); }
.fs-ok .fs-verdict::before { background: var(--good); }
.fs-key { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; font-size: 13px; color: var(--ink-2); }
.fs-key b { display: block; font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }

.fs-use { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; }
.fs-use h4 { margin: 0; font-size: 17px; font-weight: 600; }
.fs-use p { color: var(--ink-2); font-size: 15px; max-width: 86ch; }
.fs-use p b { color: var(--ink); }
.fs-use ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fs-use li { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.fs-use li b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.fs-total { background: var(--surface-2); border-radius: 12px; padding: 20px 22px; display: grid; gap: 16px; }
.fs-total-v { font-size: clamp(36px, 5vw, 54px); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 2px; }
.fs-total-sub { font-size: 14px; color: var(--ink-2); }
.fs-total-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.fs-total-bar i { flex: var(--w) 1 0; min-width: 5px; background: var(--c); }
.fs-total-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fs-part { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.fs-part svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); fill: none; stroke: var(--c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fs-part b { display: block; font-size: 18px; color: var(--ink); line-height: 1.3; }
.fs-part span { font-size: 13px; color: var(--ink-2); line-height: 1.4; display: block; }
.fs-total { background-repeat: no-repeat; }
.fs-total:hover { background-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--accent-wash), transparent 70%); }
.fs-total-bar { height: 14px; cursor: default; }
.fs-total-bar i { transition: opacity .2s, filter .2s; }
.fs-total-bar i.hot { filter: brightness(1.2) saturate(1.15); }
.fs-total.has-hot .fs-total-bar i:not(.hot) { opacity: .35; }
.fs-part { cursor: default; border-radius: 10px; transition: transform .2s; }
.fs-part.hot { transform: translateX(4px); }
.fs-part svg { transition: border-color .2s, transform .25s cubic-bezier(.2,.9,.3,1.4); }
.fs-part.hot svg { border-color: var(--c); transform: scale(1.08); }
.fs-part b { transition: color .2s; }
.fs-part.hot b { color: var(--accent-ink); }
.fs-total.in .fs-total-bar { transform-origin: left; animation: growx 1.1s cubic-bezier(.2,.7,.2,1) backwards; }
.fs-total.in .fs-part { animation: rise2 .55s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(.5s + var(--n) * .14s); }
.fs-total.in .fs-part svg { animation: pop .5s backwards; animation-delay: calc(.7s + var(--n) * .14s); }
@media (max-width: 900px) { .fs-use ul { grid-template-columns: 1fr; } .fs-total-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .fs-total-parts { grid-template-columns: 1fr; } }

.fs-ring { fill: none; stroke: var(--accent-ink); stroke-width: 1.5; }
.fs-ring.r30 { stroke-opacity: .55; }
.fs-ring.r10 { fill: var(--accent-wash); stroke-opacity: .8; }
.fs-ring.r1 { stroke: var(--warning); }
.fs-lbl { font: 500 14px var(--mono); fill: var(--muted); }
.fs-can { fill: var(--fs-tree); }
.fs-trunk { fill: rgba(0,0,0,.35); }
.fs-glow, .fs-hglow { fill: url(#fsGlow); opacity: 0; transform-box: fill-box; transform-origin: center; }
.fs-tree.wild .fs-can { fill: var(--fs-fire); }
.fs-tree.wild .fs-glow { opacity: .85; }
.fs-tree.burn .fs-can { fill: var(--fs-char); }
.fs-ember { fill: var(--warning); opacity: 0; }
.fs-hbody { fill: var(--raise); stroke: var(--ink-2); stroke-width: 2; }
.fs-roof { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-opacity: .7; }
.fs-bad .fs-hbody { fill: var(--fs-hit); stroke: var(--critical); stroke-width: 3; }
.fs-bad .fs-hglow { opacity: .9; }
.fs-ok .fs-hbody { stroke: var(--good); stroke-width: 3; }

/* the loop: base styles above are the final frame, .run (added by app.js) plays up to it */
@keyframes fsClock { from { opacity: 1; } to { opacity: 1; } }
@keyframes fsDraw { from { stroke-dashoffset: 1; } }
@keyframes fsEmber { 0% { opacity: 0; transform: translate(0, 0); } 12%, 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes fsBurn { 0% { fill: var(--fs-tree); } 12% { fill: var(--fs-flame); } 55% { fill: var(--fs-fire); } 100% { fill: var(--fs-char); } }
@keyframes fsFlame { 0% { opacity: 0; transform: scale(.4); } 12% { opacity: 1; transform: scale(1); } 30% { opacity: .7; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.05); } 72% { opacity: .65; transform: scale(.92); } 100% { opacity: 0; transform: scale(.8); } }
@keyframes fsFlicker { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
@keyframes fsHit { from { fill: var(--raise); stroke: var(--ink-2); stroke-width: 2; } }
@keyframes fsSafe { from { stroke: var(--ink-2); stroke-width: 2; } }
.fs-banner.run { animation: fsClock 13s linear; }
.fs-banner.run .fs-ring { stroke-dasharray: 1; animation: fsDraw 1.1s ease-out both; }
.fs-banner.run .fs-ring.r10 { animation-delay: .35s; }
.fs-banner.run .fs-ring.r30 { animation-delay: .7s; }
.fs-banner.run .fs-lbl { animation: fadein .5s 1.4s both; }
.fs-banner.run .fs-tree.wild .fs-glow { animation: fsFlicker .9s ease-in-out infinite alternate; }
.fs-banner.run .fs-tree.wild:nth-of-type(odd) .fs-glow { animation-duration: 1.2s; }
.fs-banner.run .fs-ember { animation: fsEmber 1.5s ease-in var(--t) both; }
.fs-banner.run .fs-tree.burn .fs-can { animation: fsBurn 5s linear var(--t) both; }
.fs-banner.run .fs-tree.burn .fs-glow { animation: fsFlame 5s linear var(--t) both; }
.fs-banner.run .fs-bad .fs-hbody { animation: fsHit .8s ease-out 7.6s both; }
.fs-banner.run .fs-bad .fs-hglow { animation: fadein .8s 7.6s backwards, fsFlicker 1s ease-in-out 8.4s infinite alternate; }
.fs-banner.run .fs-ok .fs-hbody { animation: fsSafe .8s ease-out 7.6s both; }
.fs-banner.run .fs-verdict { animation: fadein .6s 8.2s both; }
.fs-banner.paused, .fs-banner.paused *, .fs-banner.off, .fs-banner.off * { animation-play-state: paused !important; }
@media (max-width: 900px) { .fs-panels { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .fs-key { grid-template-columns: 1fr; } .fs-panel { padding: 12px; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .side { position: sticky; inset: auto; top: 0; width: auto; flex-direction: row; align-items: center; gap: 14px; padding: 8px 16px; border-right: 0; border-bottom: 1px solid var(--border); overflow: hidden; }
  .side-foot, .brand small { display: none; }
  .brand-mark { width: 30px; height: 30px; padding: 6px 0; }
  .brand strong { white-space: nowrap; font-size: 14px; }
  .nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 10px; font-size: 13.5px; }
  .nav a span { display: none; }
  .main { margin-left: 0; }
  .topbar { position: static; }
  html { scroll-padding-top: 60px; }
  .fit { grid-template-columns: 1fr; }
  .fit-list { border-right: 0; border-bottom: 1px solid var(--border); }
  .g2, .atlas-body { grid-template-columns: 1fr; }
  .dash-head { grid-template-columns: 1fr; }
  .dash-links { max-width: none; grid-auto-flow: row; justify-items: start; }
}
@media (max-width: 640px) {
  section { padding-top: 48px; }
  .card { padding: 16px; }
  .tiles, .tiles.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-v { font-size: 28px; }
  .g3 { grid-template-columns: 1fr; }
  .lens-label, .icon-btn span { display: none; }
  .seg button { padding: 7px 9px; font-size: 12.5px; }
  .stat b { font-size: 22px; }
  .tl-row { grid-template-columns: 1fr; gap: 3px; }
  .tl-axis-row .name { display: none; }
  .hbar { grid-template-columns: 84px 1fr 74px; }
  .chart { height: 240px; }
  .ev li { grid-template-columns: 1fr; gap: 4px; }
  .ev .where { width: auto; }
  .fit-detail { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .side, .topbar, .tip { display: none; }
  .main { margin: 0; }
}

/* ---------- Ingestion Protocol game banner ---------- */
.nav a.nav-game, .btn.btn-game { color: #38bdf8; }
.btn.btn-game { border-color: #38bdf8; }
:root[data-theme="light"] .nav a.nav-game, :root[data-theme="light"] .btn.btn-game { color: #0369a1; }
:root[data-theme="light"] .btn.btn-game { border-color: #0369a1; }

/* ---------- education ---------- */
.edu { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.edu li { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); transition: transform .18s, border-color .18s; }
.edu li:hover { transform: translateX(3px); border-color: var(--accent); }
.edu-logo { flex: none; width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; background: var(--accent-wash); color: var(--accent-ink); border: 1px solid var(--border); font: 700 15px var(--mono); letter-spacing: .04em; }
.edu-logo.alt { background: var(--page); color: var(--ink-2); }
.edu-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.edu-body { display: grid; gap: 4px; min-width: 0; }
.edu-meta { margin: 0; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.edu-body b { font-weight: 600; line-height: 1.35; }
.edu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .edu li:hover { transform: none; } }

.hashtag { color: var(--accent-ink); font-weight: 550; white-space: nowrap; }
.game-ad-card { background: #080c14; border: 2px solid #1e293b; border-radius: 14px; position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.12); transition: all 0.25s ease; text-decoration: none; color: #e2e8f0; margin-top: 8px; }
:root[data-theme="light"] .game-ad-card { background: #0d131f; border-color: #334155; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 0 20px rgba(56, 189, 248, 0.15); }
.game-ad-card:hover { border-color: #38bdf8; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 32px rgba(56, 189, 248, 0.3); transform: translateY(-2px); }
.game-ad-card:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.game-ad-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.16; pointer-events: none; }
.game-ad-scanlines { position: absolute; inset: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%); background-size: 100% 3px; pointer-events: none; z-index: 2; }
.game-ad-toolbar { position: relative; z-index: 5; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.game-ad-badge { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: #38bdf8; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); padding: 3px 8px; border-radius: 4px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.game-ad-dot { width: 6px; height: 6px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 8px #00ff88; animation: adPulse 1.2s infinite; }
@keyframes adPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.game-ad-sound-btn { background: rgba(15, 23, 42, 0.85); border: 1px solid #334155; color: #94a3b8; font-family: var(--mono); font-size: 11.5px; padding: 5px 12px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s ease; backdrop-filter: blur(4px); z-index: 10; }
.game-ad-sound-btn:hover { background: rgba(56, 189, 248, 0.2); border-color: #38bdf8; color: #fff; }
.game-ad-sound-btn.active { color: #00ff88; border-color: #00ff88; background: rgba(0, 255, 136, 0.12); box-shadow: 0 0 10px rgba(0, 255, 136, 0.25); }
.game-ad-body { position: relative; z-index: 4; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.game-ad-info { max-width: 620px; }
.game-ad-title { font-family: var(--mono); font-size: 24px; font-weight: 800; letter-spacing: 0.05em; color: #ffffff; margin-bottom: 6px; text-shadow: 0 0 12px rgba(56, 189, 248, 0.4); }
.game-ad-tagline { font-family: var(--mono); font-size: 13px; color: #ffaa00; margin-bottom: 10px; min-height: 20px; display: flex; align-items: center; transition: opacity 0.2s; }
.game-ad-desc { font-size: 14.5px; line-height: 1.5; color: #94a3b8; margin: 0; }
.game-ad-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.game-ad-play-btn { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: #ffffff; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.05em; padding: 12px 24px; border-radius: 8px; border: 1px solid #38bdf8; box-shadow: 0 0 18px rgba(14, 165, 233, 0.35); display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; white-space: nowrap; }
.game-ad-card:hover .game-ad-play-btn { background: #38bdf8; box-shadow: 0 0 28px rgba(56, 189, 248, 0.6); transform: scale(1.04); }
.game-ad-hint { font-family: var(--mono); font-size: 11px; color: #64748b; }
@media (max-width: 820px) {
  .game-ad-body { flex-direction: column; align-items: flex-start; padding: 20px; }
  .game-ad-title { font-size: 20px; }
  .game-ad-action { align-items: flex-start; width: 100%; }
  .game-ad-play-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .game-ad-dot { animation: none; } .game-ad-card:hover, .game-ad-card:hover .game-ad-play-btn { transform: none; } }

/* ---------- infrastructure site additions ---------- */
.role-pill { font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; }
.hy { display: grid; gap: 16px; }
.hy-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 14px 24px; align-items: center; }
.hy-svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.hy-zone { stroke: var(--border); stroke-width: 1; }
.hy-zone.cloud { fill: var(--accent-wash); }
.hy-zone.net { fill: var(--surface-2); stroke-dasharray: 4 4; }
.hy-zone.priv { fill: color-mix(in srgb, var(--s3) 10%, transparent); }
.hy-zt { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--muted); }
.hy-fw { fill: var(--s2); opacity: .75; }
.hy-fwt { font: 500 11px var(--mono); fill: var(--muted); }
.hy-node rect { fill: var(--surface); stroke: var(--axis); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.hy-node text { fill: var(--ink); font-size: 14px; font-weight: 600; }
.hy-node text.hy-sm { fill: var(--ink-2); font-size: 12px; font-weight: 400; }
.hy-tunnel { stroke: var(--accent-wash); stroke-width: 18; stroke-linecap: round; fill: none; transition: stroke .3s; }
.hy-tunnel-core, .hy-link { stroke: var(--axis); stroke-width: 2; fill: none; stroke-dasharray: 6 5; transition: stroke .3s; }
.hy-arrowhead { fill: var(--axis); }
.hy-lbl { font: 500 11px var(--mono); fill: var(--muted); transition: fill .3s; }
.hy-pkt { fill: var(--warning); opacity: 0; offset-rotate: 0deg; }

.hy-svg[data-step="0"] .n-agent rect,
.hy-svg[data-step="2"] .n-sat rect, .hy-svg[data-step="2"] .n-lake rect,
.hy-svg[data-step="3"] .n-wx rect, .hy-svg[data-step="3"] .n-lake rect { stroke: var(--accent); fill: var(--accent-wash); }
.hy-svg[data-step="1"] .hy-tunnel, .hy-svg[data-step="3"] .hy-tunnel { stroke: color-mix(in srgb, var(--accent) 30%, transparent); }
.hy-svg[data-step="1"] .hy-tunnel-core, .hy-svg[data-step="3"] .hy-tunnel-core,
.hy-svg[data-step="3"] .hy-link { stroke: var(--accent); animation: hyDash 1s linear infinite; }
.hy-svg[data-step="1"] .hy-lbl, .hy-svg[data-step="3"] .hy-lbl { fill: var(--accent-ink); }
.hy-svg[data-step="1"] .hy-fw { opacity: 1; }
.hy-svg[data-step="4"] .hy-node rect { stroke: var(--good); }
.hy-svg[data-step="4"] .hy-tunnel-core, .hy-svg[data-step="4"] .hy-link { stroke: var(--good); }
.hy-svg[data-step="1"] .hy-pkt { offset-path: path("M500 213 H216"); animation: hyMove 1.8s ease-in-out infinite; }
.hy-svg[data-step="3"] .hy-pkt { offset-path: path("M125 152 V213 H600 V156"); animation: hyMove 2.6s ease-in-out infinite; }
@keyframes hyMove { 0% { offset-distance: 0%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes hyDash { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .hy-svg .hy-pkt { display: none; } .hy-svg * { animation: none !important; } }
@media (max-width: 1100px) { .hy-body { grid-template-columns: 1fr; } }
