/* Inside MIP · Five Q field guide
   Brand tokens follow the fiveq.com showcase layer (ws-fiveq-emdash/src/styles/fiveq-showcase.css). */

@font-face { font-family: "Space Grotesk"; src: url("fonts/spacegrotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy-950: #021e2c;
  --navy-900: #032d41;
  --navy-800: #004666;
  --navy-700: #0b5677;
  --teal-600: #2e7b96;
  --teal-400: #7abec9;
  --teal-100: #dceef3;
  --ice-100: #eef5f8;
  --ice-50: #f7fbfc;
  --amber: #f4a800;
  --amber-soft: #ffe7a8;
  --orange: #c2530b;
  --coral: #d9542e;
  --warm: #fffaf2;
  --ink: #0a2534;
  --muted: #4d6676;
  --line: #d3e2e9;
  --ok: #1f7a55;
  --no: #b3401a;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(2, 30, 44, .06), 0 12px 32px -12px rgba(2, 30, 44, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html.motion-paused { scroll-behavior: auto; }
body { margin: 0; font: 400 16px/1.6 var(--body); color: var(--ink); background: var(--ice-50); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; }
:where(a, button, input, summary, [tabindex]):focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--amber); color: var(--navy-950); font-weight: 700; transform: translateY(-160%); transition: transform .15s; }
.skip:focus { transform: none; }

/* Small inline icons injected by JS */
.btn-icon { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; }
.btn-icon svg { width: 100%; height: 100%; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(2, 30, 44, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(122, 190, 201, .14); color: #fff; }
.topbar-inner { width: min(1240px, calc(100% - 48px)); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 84px; height: 34px; fill: #fff; }
.brand-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); }
.brand-title { font: 600 15px/1 var(--display); letter-spacing: -.01em; }
.qnav { display: flex; gap: 4px; margin-left: auto; }
.qnav a { display: flex; align-items: baseline; gap: 7px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 14px; color: rgba(255, 255, 255, .78); transition: background .2s, color .2s; }
.qnav a b { font: 700 11px/1 var(--display); color: var(--teal-400); letter-spacing: .04em; }
.qnav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.qnav a.on { background: rgba(244, 168, 0, .14); color: #fff; }
.qnav a.on b { color: var(--amber); }
.motion-toggle { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .85); font-size: 13px; }
.motion-toggle:hover { border-color: rgba(255, 255, 255, .4); }
.motion-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(244, 168, 0, .2); }
.motion-toggle[aria-pressed="true"] .motion-icon { background: transparent; border: 1.5px solid rgba(255, 255, 255, .6); box-shadow: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--navy-950); box-shadow: 0 8px 24px -10px rgba(244, 168, 0, .7); }
.btn-amber:hover { background: #ffb81a; }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 4px; font-size: 13px; font-weight: 600; color: var(--teal-600); }
.link-btn:hover { color: var(--navy-800); }
.round { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; }
.round:hover:not(:disabled) { border-color: var(--amber); color: var(--amber); }
.round:disabled { opacity: .3; cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 78% 30%, rgba(46, 123, 150, .38), transparent 70%), radial-gradient(600px 400px at 5% 100%, rgba(0, 70, 102, .6), transparent 70%), var(--navy-950); color: #fff; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(122, 190, 201, .16) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 40%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-400); }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(244, 168, 0, .6); animation: beacon 2.4s infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(244, 168, 0, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(244, 168, 0, 0); } }
.hero h1 { margin-top: 22px; font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; }
.hl { position: relative; color: var(--amber); white-space: nowrap; }
.lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.6; color: rgba(255, 255, 255, .78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { position: relative; }
#qring { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
#qring .ring-track { fill: none; stroke: rgba(122, 190, 201, .22); stroke-width: 2; }
#qring .ring-glow { fill: none; stroke: url(#ringGrad); stroke-width: 14; stroke-linecap: round; opacity: .9; }
#qring .tail { fill: none; stroke: var(--amber); stroke-width: 14; stroke-linecap: round; }
#qring .station circle.halo { fill: rgba(244, 168, 0, 0); transition: fill .4s; }
#qring .station circle.pt { fill: var(--navy-950); stroke: var(--teal-400); stroke-width: 2.5; transition: fill .3s, stroke .3s; }
#qring .station text { font: 600 15px var(--display); fill: rgba(255, 255, 255, .86); }
#qring .station text.sub { font: 400 12px var(--body); fill: rgba(255, 255, 255, .5); }
#qring .station.lit circle.pt { fill: var(--amber); stroke: var(--amber); }
#qring .station.lit circle.halo { fill: rgba(244, 168, 0, .22); }
#qring .core-title { font: 700 76px var(--display); fill: #fff; letter-spacing: -.04em; }
#qring .core-sub { font: 500 12px var(--display); fill: var(--teal-400); letter-spacing: .2em; }
#qring .packet { fill: var(--amber); filter: drop-shadow(0 0 8px rgba(244, 168, 0, .9)); }
#qring .end-dot { fill: var(--amber); }

.qcards { position: relative; list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.qcards a { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; height: 100%; min-height: 150px; padding: 18px 18px 16px; border-radius: 18px; text-decoration: none; background: rgba(255, 255, 255, .04); border: 1px solid rgba(122, 190, 201, .18); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.qcards a:hover { background: rgba(255, 255, 255, .08); border-color: var(--amber); transform: translateY(-3px); }
.qnum { font: 700 13px/1 var(--display); color: var(--amber); letter-spacing: .05em; }
.qtext { font: 600 1.12rem/1.2 var(--display); letter-spacing: -.015em; }
.qmeta { font-size: 12.5px; color: rgba(255, 255, 255, .55); }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; }
.sec-ice { background: var(--ice-50); }
.sec-navy { background: radial-gradient(800px 500px at 90% 0%, rgba(46, 123, 150, .25), transparent 70%), var(--navy-900); color: #fff; }
.sec-warm { background: var(--warm); }
.sec-teal { background: linear-gradient(180deg, var(--ice-100), var(--teal-100)); }
.sec-white { background: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.qlabel { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); }
.qlabel span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-900); color: var(--amber); font-size: 14px; letter-spacing: .02em; }
.sec-navy .qlabel { color: var(--teal-400); }
.sec-navy .qlabel span { background: var(--amber); color: var(--navy-950); }
.sec h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 600; }
.sec-sub { margin-top: 14px; max-width: 40rem; font-size: 1.08rem; color: var(--muted); }
.sec-navy .sec-sub { color: rgba(255, 255, 255, .7); }
.tag-sim { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; font: 600 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; border: 1px solid rgba(122, 190, 201, .35); color: var(--teal-400); }
.tag-dark { border-color: var(--line); color: var(--muted); background: rgba(255, 255, 255, .6); }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex-shrink: 0; }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background: var(--navy-900); color: #fff; }
.seg .count { padding: 2px 7px; border-radius: 999px; font-size: 11px; background: var(--ice-100); color: var(--navy-800); }
.seg button[aria-pressed="true"] .count { background: var(--amber); color: var(--navy-950); }

/* ---------- Q1 Explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: stretch; }
.explorer .inspector { height: 0; min-height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(122, 190, 201, .3) transparent; }
.map-card { min-width: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.map-bar { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.map-title { display: inline-flex; align-items: center; gap: 10px; font: 600 14px var(--display); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.legend { display: flex; gap: 16px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw-content { background: var(--teal-600); }
.sw-design { background: var(--orange); }
.sw-hosting { background: var(--navy-800); }
.scroll-hint { display: none; }
.map-scroll { flex: 1; display: grid; place-items: center; padding: 14px 16px 16px; background-image: radial-gradient(#d7e6ec 1px, transparent 1px); background-size: 22px 22px; }
.map { width: 100%; height: auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.picker { display: none; }

/* Map: SVG elements */
.map .wire { fill: none; stroke: #a9c2cc; stroke-width: 2; transition: stroke .3s, opacity .3s, stroke-width .3s; }
.map .flow { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
.map .hit { fill: none; stroke: transparent; stroke-width: 22; cursor: pointer; }
.map .edge.active .wire { stroke: var(--navy-800); stroke-width: 2.5; }
.map .edge.active .flow { opacity: 0; }
.map .edge.dim { opacity: .22; }
.map .edge:hover .wire, .map .edge:focus-visible .wire { stroke: var(--navy-800); }
.map .edge:focus-visible { outline: none; }
.map .edge:focus-visible .wire { stroke-width: 4; stroke: var(--amber); }
@keyframes flow { to { stroke-dashoffset: -28; } }
.map .elabel { opacity: 0; pointer-events: none; transition: opacity .2s; }
.map .elabel.show { opacity: 1; }
.map .elabel rect { fill: var(--navy-900); stroke: var(--amber); stroke-width: 1.5; }
.map .elabel text { font: 600 12.5px var(--body); fill: #fff; }
.map .edge.hot .wire { stroke: var(--amber); stroke-width: 3; }
.map .edge.hot .arrowhead { fill: var(--amber); }
.map .arrowhead { fill: #a9c2cc; }
.map .edge.active .arrowhead { fill: var(--navy-800); }

.map .node { cursor: pointer; transition: opacity .35s; }
.map [tabindex]:focus { outline: none; }
.map .node .card { fill: #fff; stroke: #cfdde4; stroke-width: 1.5; transition: stroke .25s, stroke-width .25s; filter: drop-shadow(0 6px 10px rgba(2, 30, 44, .07)); }
.map .node:hover .card { stroke: var(--teal-600); }
.map .node .tile { transition: transform .3s var(--ease); }
.map .node.content .tile { fill: var(--teal-600); }
.map .node.design .tile { fill: var(--orange); }
.map .node.hosting .tile { fill: var(--navy-800); }
.map .node .ico { stroke: #fff; }
.map .node .name { font: 600 15.5px var(--display); fill: var(--ink); letter-spacing: -.01em; }
.map .node .sub { font: 400 11.5px var(--body); fill: #557081; }
.map .node.sel .card, .map .node.focus .card, .map .node:focus-visible .card { stroke: var(--amber); stroke-width: 3; }
.map .node.sel .card { filter: drop-shadow(0 10px 22px rgba(244, 168, 0, .35)); }
.map .node.dim { opacity: .28; }
.map .node-inner { transform-box: fill-box; transform-origin: center; }
.map .node-inner.enter { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.map .ghost { cursor: pointer; }
.map .ghost rect { fill: rgba(255, 255, 255, .5); stroke: #b9cdd6; stroke-width: 1.5; stroke-dasharray: 5 6; }
.map .ghost text { font: 500 14px var(--display); fill: #8aa3b0; }
.map .ghost .plus { stroke-linecap: round; }
.map .ghost .plus { stroke: #8aa3b0; stroke-width: 2; }
.map .ghost:hover rect, .map .ghost:focus-visible rect { stroke: var(--teal-600); }
.map .ghost:hover text, .map .ghost:focus-visible text { fill: var(--teal-600); }
.map .ghost:focus-visible { outline: none; }
.map .packet { fill: var(--amber); }

/* Dark variant (Q2 mini map) */
.map-dark .wire { stroke: rgba(122, 190, 201, .28); }
.map-dark .arrowhead { fill: rgba(122, 190, 201, .4); }
.map-dark .edge.active .wire { stroke: var(--amber); }
.map-dark .edge.active .arrowhead { fill: var(--amber); }
.map-dark .edge.active .flow { stroke: #fff; }
.map-dark .edge.dim { opacity: .35; }
.map-dark .node { cursor: default; }
.map-dark .node .card { fill: #07384f; stroke: rgba(122, 190, 201, .22); filter: none; }
.map-dark .node:hover .card { stroke: rgba(122, 190, 201, .22); }
.map-dark .node .name { fill: #fff; font-size: 17px; }
.map-dark .node .sub { fill: rgba(220, 238, 243, .55); }
.map-dark .node.dim { opacity: .3; }
.map-dark .node.focus .card { stroke: var(--amber); stroke-width: 3.5; fill: #0a4560; filter: drop-shadow(0 0 18px rgba(244, 168, 0, .35)); }
.map-dark .packet { fill: #fff; }

/* Inspector */
.inspector { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: var(--r); background: var(--navy-900); color: #fff; box-shadow: var(--shadow); overflow: hidden; }
.inspector::after { content: ""; position: absolute; right: -90px; top: -90px; width: 220px; height: 220px; border-radius: 50%; border: 18px solid rgba(122, 190, 201, .08); pointer-events: none; }
.ins-head { position: relative; min-height: 132px; }
.ins-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
.ins-icon svg { width: 24px; height: 24px; stroke: #fff; }
.ins-icon.content { background: var(--teal-600); }
.ins-icon.design { background: var(--orange); }
.ins-icon.hosting { background: var(--navy-700); box-shadow: inset 0 0 0 1px rgba(122, 190, 201, .3); }
.ins-icon.intro { background: var(--amber); }
.ins-icon.intro svg { stroke: var(--navy-950); }
.ins-kicker { font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-400); }
.ins-head h3 { margin-top: 8px; font-size: 1.9rem; font-weight: 600; }
.ins-sub { margin-top: 6px; color: rgba(255, 255, 255, .6); font-size: 14.5px; }
.ins-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.ins-route b { font-weight: 600; color: #fff; }
.ins-route i { color: var(--amber); font-style: normal; }
.depth { display: flex; gap: 4px; margin: 18px 0 18px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.depth[hidden] { display: none; }
.depth button { flex: 1; padding: 8px 6px; border: 0; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .6); transition: background .2s, color .2s; }
.depth button[aria-selected="true"] { background: #fff; color: var(--navy-900); }
.depth button:hover:not([aria-selected="true"]) { color: #fff; }
.ins-body h4 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
.ins-body p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .82); }
.ins-body .note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(244, 168, 0, .1); border-left: 3px solid var(--amber); font-size: 14px; color: #fff; }
.ins-body.swap { animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.ins-links { margin-top: auto; padding-top: 22px; }
.ins-links-label { margin-bottom: 8px; font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.conn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 2px; border: 0; border-top: 1px solid rgba(255, 255, 255, .09); background: none; text-align: left; font-size: 14px; color: #fff; }
.conn:hover { color: var(--amber); }
.conn .dir { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; background: rgba(122, 190, 201, .14); color: var(--teal-400); }
.conn .dir svg { width: 14px; height: 14px; }
.conn span.what { color: rgba(255, 255, 255, .5); font-size: 12.5px; margin-left: auto; text-align: right; }
.conn:hover span.what { color: rgba(244, 168, 0, .8); }

.takeaway { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.takeaway strong { color: var(--ink); }
.takeaway-mark { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--amber); color: var(--navy-950); font: 700 16px var(--display); }

/* ---------- Q2 Stories ---------- */
.story-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.story-tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 14px; border: 1px solid rgba(122, 190, 201, .22); background: rgba(255, 255, 255, .03); color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 15px; transition: background .2s, border-color .2s, color .2s; }
.story-tabs button .ti { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(122, 190, 201, .14); color: var(--teal-400); transition: background .2s, color .2s; }
.story-tabs button .ti svg { width: 17px; height: 17px; }
.story-tabs button:hover { border-color: rgba(122, 190, 201, .5); color: #fff; }
.story-tabs button[aria-selected="true"] { background: #fff; color: var(--navy-900); border-color: #fff; }
.story-tabs button[aria-selected="true"] .ti { background: var(--amber); color: var(--navy-950); }
.story-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; }
.story-steps { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); background: rgba(2, 30, 44, .5); border: 1px solid rgba(122, 190, 201, .16); }
.story-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font: 600 12px/1 var(--display); letter-spacing: .14em; color: rgba(255, 255, 255, .55); }
.status-chip { padding: 6px 10px; border-radius: 999px; background: rgba(244, 168, 0, .14); color: var(--amber); }
.step-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; counter-reset: step; }
.step-btn { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; width: 100%; padding: 12px 14px 12px 12px; border: 1px solid transparent; border-radius: 14px; background: none; text-align: left; color: rgba(255, 255, 255, .6); transition: background .25s, border-color .25s, color .25s; }
.step-btn:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(122, 190, 201, .35); font: 600 13px var(--display); transition: background .25s, border-color .25s, color .25s; }
.step-t { align-self: center; font: 600 15.5px/1.3 var(--display); letter-spacing: -.01em; }
.step-d { grid-column: 2; display: none; margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); }
.step-chips { grid-column: 2; display: none; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.step-chips span { padding: 4px 9px; border-radius: 999px; background: rgba(122, 190, 201, .14); color: var(--teal-100); font-size: 12px; font-weight: 600; }
.step-list li.done .step-n { background: rgba(122, 190, 201, .18); border-color: transparent; color: var(--teal-400); }
.step-list li.now .step-btn { background: rgba(255, 255, 255, .06); border-color: rgba(244, 168, 0, .45); color: #fff; }
.step-list li.now .step-n { background: var(--amber); border-color: var(--amber); color: var(--navy-950); }
.step-list li.now .step-d { display: block; animation: fadeUp .35s var(--ease); }
.step-list li.now .step-chips { display: flex; }
.player { display: flex; align-items: center; gap: 10px; padding-top: 6px; }
.player .btn-amber { min-width: 150px; justify-content: center; }
.timer { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.timer i { display: block; width: 0; height: 100%; background: var(--amber); }
body.playing .timer i { animation: timer 7s linear forwards; }
@keyframes timer { to { width: 100%; } }
.player-note { margin-top: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.story-visual { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.mini-card { border-radius: var(--r); background: var(--navy-950); border: 1px solid rgba(122, 190, 201, .16); overflow: hidden; }
.mini-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(122, 190, 201, .12); font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.mini-parts { color: var(--amber); letter-spacing: .08em; text-align: right; }
#minimap { padding: 10px 14px 12px; }
.stage { display: flex; flex-direction: column; border-radius: var(--r); background: var(--warm); color: var(--ink); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.stage-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: #f1ebe0; border-bottom: 1px solid #e7dfd0; font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #8a7b66; }
.stage-bar .dots { display: flex; gap: 6px; }
.stage-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #dccfb9; }
.stage-bar .dots i:first-child { background: var(--coral); }
.stage-bar .dots i:nth-child(2) { background: var(--amber); }
.scene { flex: 1; padding: 24px 26px 26px; min-height: 290px; }
.scene.swap > * { animation: fadeUp .4s var(--ease) both; }
.scene.swap > *:nth-child(2) { animation-delay: .05s; }
.scene.swap > *:nth-child(3) { animation-delay: .1s; }
.scene.swap > *:nth-child(4) { animation-delay: .15s; }
.scene.swap > *:nth-child(5) { animation-delay: .2s; }
.scene.swap > *:nth-child(6) { animation-delay: .25s; }
.s-label { font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); }
.s-head { margin: 10px 0 14px; font: 600 1.6rem/1.12 var(--display); letter-spacing: -.025em; }
.s-quote { margin: 14px 0 18px; padding: 18px 20px; border-radius: 18px 18px 18px 4px; background: var(--navy-900); color: #fff; font: 500 1.35rem/1.3 var(--display); letter-spacing: -.015em; }
.s-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; padding: 11px 14px; border-radius: 12px; background: #fff; border: 1px solid #ece4d6; font-size: 14.5px; }
.s-row .r { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--ice-100); color: var(--navy-800); font-size: 12px; font-weight: 600; }
.s-row .r.ok { background: #e1f3ea; color: var(--ok); }
.s-row code { color: var(--navy-800); }
.s-text { margin-top: 14px; font-size: 13.5px; color: #6f6455; }
.s-badge { display: inline-block; padding: 6px 11px; border-radius: 999px; background: #fff1cc; color: #7a5300; font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.s-badge.ok { background: #dff2e8; color: var(--ok); }
.s-page { position: relative; margin-top: 14px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #ece4d6; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; }
.s-page .eyebrow { font: 600 10px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); }
.s-page .h { margin: 8px 0 12px; font: 600 1.45rem/1.05 var(--display); letter-spacing: -.03em; }
.s-page .pic { aspect-ratio: 4/3; border-radius: 12px; background: radial-gradient(circle at 70% 30%, var(--amber) 0 14%, transparent 15%), linear-gradient(160deg, var(--teal-400), var(--navy-800)); }
.s-page .cta { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--navy-900); color: #fff; font-size: 12.5px; font-weight: 600; }
.s-page.draft { border-style: dashed; border-color: #d8c49a; }
.s-page.draft::after { content: "Draft · only editors see this"; position: absolute; right: 12px; top: -11px; padding: 3px 9px; border-radius: 999px; background: var(--warm); border: 1px dashed #d8c49a; font-size: 11px; color: #7a5300; }
.s-code { overflow-wrap: anywhere; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--navy-950); color: var(--teal-100); font: 13px/1.5 var(--mono); }

/* ---------- Q3 Access ---------- */
.access { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.keys-art { position: relative; height: 190px; margin-bottom: 28px; max-width: 360px; }
.ring { position: absolute; top: 0; width: 190px; height: 190px; border-radius: 50%; display: flex; padding-top: 70px; justify-content: center; font: 600 12px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.ring span { max-width: 80px; }
.r-account { left: 0; background: rgba(46, 123, 150, .14); border: 2px solid var(--teal-600); color: var(--teal-600); justify-content: flex-start; padding-left: 26px; }
.r-conn { left: 130px; background: rgba(194, 83, 11, .1); border: 2px solid var(--orange); color: var(--orange); justify-content: flex-end; padding-right: 22px; }
.overlap-label { position: absolute; left: 130px; top: 82px; width: 60px; text-align: center; font: 700 12px/1.15 var(--display); color: var(--navy-900); }
.access-copy h3 { font-size: 1.6rem; font-weight: 600; }
.access-copy > p { margin-top: 14px; font-size: 16px; color: var(--muted); }
.callout { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #efe4cf; border-left: 4px solid var(--amber); font-size: 15px !important; }
.callout strong { color: var(--ink); }
.more { margin-top: 18px; border-top: 1px solid #efe4cf; padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--navy-800); }
.more p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.access-demo { padding: 24px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); border: 1px solid #efe4cf; }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.demo-title { font: 600 1.25rem var(--display); }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.control-label { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.control-label em { font-style: normal; font-weight: 500; color: #8aa0ad; }
.control-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--warm); border: 1px dashed #e4d3b0; }
.control-wide .control-label { margin: 0; }
.control-wide .seg-light { flex: 0 0 180px; background: #fff; }
.gate > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.gate-note { font-size: 11.5px; font-weight: 600; color: var(--orange); }
.gate-note.off { color: var(--no); }
.seg-light { display: flex; background: var(--ice-100); box-shadow: none; }
.seg-light button { flex: 1; justify-content: center; padding: 9px 10px; font-size: 13.5px; }
.gate-head, .gate { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr 1fr 1.05fr; align-items: center; gap: 10px; }
.gate-head { padding: 0 14px 8px; font: 600 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #8aa0ad; }
.gates { display: grid; gap: 6px; }
.gate { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: left; font-size: 14.5px; font-weight: 500; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.gate:hover { border-color: var(--teal-600); }
.gate[aria-pressed="true"] { border-color: var(--navy-900); background: var(--ice-50); box-shadow: inset 3px 0 0 var(--amber); }
.pill { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px 4px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: background .3s, color .3s; }
.pill i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.pill i svg { width: 11px; height: 11px; stroke-width: 3; }
.pill.yes { background: #e3f3ea; color: var(--ok); }
.pill.yes i { background: var(--ok); color: #fff; }
.pill.no { background: #fbe9e2; color: var(--no); }
.pill.no i { background: var(--no); color: #fff; }
.pill.skip { background: var(--ice-100); color: #8aa0ad; }
.pill.skip i { background: #b9cad3; color: #fff; }
.pill.big { padding: 6px 12px 6px 7px; font-size: 13px; }
.pill.big.yes { background: var(--ok); color: #fff; }
.pill.big.yes i { background: #fff; color: var(--ok); }
.pill.big.no { background: var(--no); color: #fff; }
.pill.big.no i { background: #fff; color: var(--no); }
.gate.flash .pill { animation: pulse .5s var(--ease); }
@keyframes pulse { 50% { transform: scale(1.08); } }
.access-result { margin-top: 16px; min-height: 64px; padding: 14px 16px; border-radius: 14px; background: var(--ice-100); font-size: 14.5px; line-height: 1.55; }
.access-result.allowed { background: #e3f3ea; color: #12543a; }
.access-result.denied { background: #fbe9e2; color: #7d2c10; }
.access-result b { display: block; margin-bottom: 2px; font-family: var(--display); font-size: 15.5px; }
.fine { display: block; margin-top: 12px; font-size: 12.5px; color: #7f95a2; }

/* ---------- Q4 Editor translation ---------- */
.translate { display: grid; grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr); align-items: stretch; }
.pane { min-width: 0; padding: 20px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.pane-code { background: var(--navy-950); color: #fff; }
.pane-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); }
.pane-label em { font-style: normal; color: #8aa0ad; letter-spacing: .06em; text-transform: none; font-weight: 500; }
.pane-code .pane-label { color: var(--teal-400); }
.pane-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--navy-900); color: var(--amber); font-size: 12px; letter-spacing: 0; }
.pane-code .pane-num { background: var(--amber); color: var(--navy-950); }
.bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.bridge span { width: 2px; flex: 1; max-height: 120px; background: repeating-linear-gradient(180deg, var(--teal-600) 0 4px, transparent 4px 10px); }
.bridge b { padding: 6px 8px; border-radius: 999px; background: var(--navy-900); color: var(--amber); font: 700 10px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-align: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.page-mock { display: grid; gap: 8px; }
.sect { position: relative; display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 14px; background: none; text-align: left; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.sect::after { content: attr(data-name); position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; background: var(--navy-900); color: #fff; font: 600 10.5px/1.2 var(--display); letter-spacing: .06em; opacity: 0; transition: opacity .2s; }
.sect:hover, .sect.on { border-color: var(--amber); }
.sect:hover::after, .sect.on::after { opacity: 1; }
.m-hero { padding: 26px 22px; background: linear-gradient(105deg, var(--navy-950) 45%, rgba(2, 30, 44, .2)), linear-gradient(135deg, var(--teal-400), var(--navy-800)); color: #fff; }
.m-lines.light i { background: rgba(255, 255, 255, .22); }
.m-lines.light { max-width: 60%; }
.m-hero small { font: 600 10px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-400); }
.m-hero strong { display: block; margin: 8px 0 12px; font: 600 1.7rem/1 var(--display); letter-spacing: -.03em; }
.m-btn { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--amber); color: var(--navy-950); font-size: 12px; font-weight: 700; }
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; padding: 16px; background: var(--ice-50); }
.m-split strong { display: block; font: 600 1.05rem/1.15 var(--display); }
.m-lines { display: grid; gap: 5px; margin-top: 8px; }
.m-lines i { height: 6px; border-radius: 3px; background: #d4e2e8; }
.m-lines i:nth-child(2) { width: 85%; }
.m-lines i:nth-child(3) { width: 60%; }
.m-img { aspect-ratio: 16/10; border-radius: 10px; background: radial-gradient(circle at 30% 70%, #fff6 0 18%, transparent 19%), linear-gradient(135deg, var(--orange), var(--amber)); }
.m-form { padding: 16px; background: var(--warm); }
.m-form strong { display: block; font: 600 1.05rem var(--display); }
.m-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 10px; }
.m-fields i { height: 28px; border-radius: 8px; background: #fff; border: 1px solid #e7dccb; }
.m-fields b { padding: 0 12px; display: grid; place-items: center; border-radius: 8px; background: var(--navy-900); color: #fff; font-size: 11.5px; }
.code { margin: 0; font: 13px/1.62 var(--mono); white-space: pre; overflow-x: auto; color: #b7cfd9; }
.code .blk { display: block; margin: 0 -10px; padding: 2px 10px; border-radius: 8px; transition: background .25s; }
.code .blk.on { background: rgba(122, 190, 201, .13); box-shadow: inset 3px 0 0 var(--amber); color: #fff; }
.code .k { color: var(--teal-400); }
.code .s { color: var(--amber-soft); }
.code .t { color: var(--amber); font-weight: 600; }
.code .c { color: #5f8091; font-style: italic; }
.hint-line { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
.teach { margin-top: 34px; }
.teach-rail { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: t; }
.teach-rail li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.teach-rail li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 26px; width: 8px; height: 2px; background: var(--teal-600); }
.teach-rail b { font: 700 12px var(--display); color: var(--orange); }
.teach-rail span { font: 600 15px/1.3 var(--display); letter-spacing: -.01em; }
.teach-rail code { margin-top: auto; align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--ice-100); color: var(--navy-800); font-size: 11.5px; }
.teach-rail li:last-child { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.teach-rail li:last-child b { color: var(--amber); }
.teach-rail li:last-child code { background: var(--amber); color: var(--navy-950); }

/* ---------- Q5 Glossary ---------- */
.search { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); height: 50px; padding: 0 18px; border-radius: 999px; background: var(--ice-100); border: 1.5px solid transparent; color: var(--muted); transition: border-color .2s, background .2s; flex-shrink: 0; }
.search:focus-within { border-color: var(--navy-800); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.glossary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.term { display: flex; flex-direction: column; padding: 20px 20px 16px; border-radius: 18px; background: var(--ice-50); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.term:hover { border-color: var(--teal-400); }
.term h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
.term p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.term .deep { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink); }
.term .deep[hidden] { display: none; }
.term button { align-self: flex-start; margin-top: 12px; padding: 4px 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--teal-600); }
.term button:hover { color: var(--orange); }
.term mark { background: var(--amber-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.term.open { background: #fff; border-color: var(--teal-600); }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.sources { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 18px; }
.sources summary { cursor: pointer; font: 600 15px var(--display); color: var(--navy-800); }
.sources div { margin-top: 12px; max-width: 52rem; font-size: 14.5px; color: var(--muted); }
.sources div p, .sources ul { margin-top: 10px; }
.sources a { color: var(--teal-600); }

/* ---------- Plus: roles and worries ---------- */
.sec-deep { background: radial-gradient(700px 420px at 10% 0%, rgba(46, 123, 150, .28), transparent 70%), var(--navy-950); color: #fff; }
.sec-deep .qlabel { color: var(--teal-400); }
.sec-deep .qlabel span { background: var(--amber); color: var(--navy-950); font-size: 20px; }
.sec-deep .sec-sub { color: rgba(255, 255, 255, .7); }
.sub-title { margin: 0 0 16px; font-size: 1.35rem; font-weight: 600; }
.roles + .sub-title { margin-top: 64px; }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.role { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(122, 190, 201, .18); }
.role.r-fq { border-color: rgba(244, 168, 0, .55); background: rgba(244, 168, 0, .06); }
.role-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.role-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 14px; color: #fff; }
.role-icon svg { width: 22px; height: 22px; }
.r-you .role-icon { background: var(--teal-600); }
.r-ai .role-icon { background: var(--amber); color: var(--navy-950); }
.r-fq .role-icon { background: #fff; }
.r-fq .role-icon .role-mark { width: 28px; height: 30px; fill: var(--navy-900); }
.r-cf .role-icon { background: var(--navy-700); box-shadow: inset 0 0 0 1px rgba(122, 190, 201, .3); }
.role h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; }
.role-head p { margin-top: 3px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.role-list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.role-list i { position: relative; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; }
.role-list i.ok { background: rgba(122, 190, 201, .2); }
.role-list i.ok::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 4px; height: 8px; border: solid var(--teal-400); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.role-list i.no { background: rgba(255, 255, 255, .07); }
.role-list i.no::before, .role-list i.no::after { content: ""; position: absolute; left: 8px; top: 4px; width: 2px; height: 10px; border-radius: 1px; background: rgba(255, 255, 255, .45); transform: rotate(45deg); }
.role-list i.no::after { transform: rotate(-45deg); }
.role-not { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(122, 190, 201, .2); }
.role-list:first-of-type { margin-bottom: 16px; }
.role-not li { color: rgba(255, 255, 255, .5); }
.worries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.worry { border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(122, 190, 201, .18); transition: background .2s, border-color .2s; }
.worry:hover { border-color: rgba(122, 190, 201, .4); }
.worry[open] { background: rgba(255, 255, 255, .07); border-color: rgba(244, 168, 0, .5); }
.worry summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 600 1.05rem/1.3 var(--display); letter-spacing: -.01em; }
.worry summary::-webkit-details-marker { display: none; }
.worry-plus { position: relative; flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(244, 168, 0, .15); transition: transform .25s var(--ease); }
.worry-plus::before, .worry-plus::after { content: ""; position: absolute; left: 7px; top: 11px; width: 10px; height: 2px; border-radius: 1px; background: var(--amber); }
.worry-plus::after { transform: rotate(90deg); }
.worry[open] .worry-plus { transform: rotate(45deg); }
.worry p { padding: 0 20px 18px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.inline-link { display: inline; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--amber); }
.inline-link:hover { text-decoration: underline; }
.plus-line { position: relative; margin-top: 18px; }
.plus-line a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; text-decoration: none; color: rgba(255, 255, 255, .72); }
.plus-line a b { font: 700 16px var(--display); color: var(--amber); }
.plus-line a:hover { color: #fff; }
.s-page .bad { color: var(--no); text-decoration: underline wavy var(--no); text-underline-offset: 4px; }
.s-page .good { color: var(--ok); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .6); padding: 34px 0; font-size: 13.5px; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-logo { width: 96px; height: 39px; fill: #fff; }
.footer-inner a { margin-left: auto; color: var(--amber); text-decoration: none; font-weight: 600; }
.noscript { padding: 20px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .qnav a span { display: none; }
  .explorer { grid-template-columns: 1fr; }
  .explorer .inspector { height: auto; min-height: 0; overflow: hidden; }
  .ins-head { min-height: 0; }
  .story-body { grid-template-columns: minmax(0, 1fr); }
  .story-steps { position: static; }
  .story-visual { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .qcards { grid-template-columns: repeat(3, 1fr); }
  .teach-rail { grid-template-columns: repeat(3, 1fr); }
  .teach-rail li::after { display: none; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wrap, .topbar-inner { width: calc(100% - 32px); }
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: -10px auto 0; width: 100%; }
  .sec { padding: 72px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .legend { display: none; }
  .scroll-hint { display: block; padding: 10px 18px 0; font-size: 13px; color: var(--muted); }
  .map-scroll { display: block; place-items: normal; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  #map { min-width: 760px; }
  .picker { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
  .picker button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; }
  .picker button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
  .story-visual { grid-template-columns: 1fr; }
  .access { grid-template-columns: 1fr; }
  .translate { grid-template-columns: 1fr; gap: 0; }
  .bridge { flex-direction: row; height: 52px; }
  .bridge span { height: 2px; width: auto; max-height: none; background: repeating-linear-gradient(90deg, var(--teal-600) 0 4px, transparent 4px 10px); }
  .bridge b { writing-mode: horizontal-tb; transform: none; }
  .glossary { grid-template-columns: 1fr 1fr; }
  .worries { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar-inner { gap: 10px; }
  .brand-divider, .brand-title { display: none; }
  .brand-logo { width: 70px; }
  .qnav { gap: 0; }
  .qnav a { padding: 8px 7px; }
  .motion-text { display: none; }
  .motion-toggle { padding: 9px; }
  .qcards { grid-template-columns: 1fr 1fr; }
  .qcards li:last-child { grid-column: span 2; }
  .qcards a { min-height: 0; }
  .controls { grid-template-columns: 1fr; }
  .control-wide { flex-direction: column; align-items: stretch; }
  .control-wide .seg-light { flex: none; }
  .gate-head { display: none; }
  .gate { grid-template-columns: 1fr auto; row-gap: 8px; }
  .gate > .pill:not(.big) { display: none; }
  .glossary { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .teach-rail { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
  .scene { padding: 18px; }
  .s-page { grid-template-columns: 1fr; }
  .keys-art { transform: scale(.85); transform-origin: left top; height: 165px; }
  .story-tabs button { padding: 9px 12px 9px 9px; font-size: 14px; }
}
@media (max-width: 380px) {
  .qnav a b { font-size: 10px; }
  .qnav a { padding: 8px 5px; }
}

html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.motion-paused .reveal { opacity: 1; transform: none; }
html.motion-paused .map .edge.active .flow { animation: none !important; stroke-dasharray: none; opacity: .0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
