/* ==========================================================================
   cases.fabiangrupe.com - interactive case study
   Layer on top of style.css. Bento layout, the CMO/CTO/Translator lens,
   and the six interactive modules. Gold stays the only accent.
   ========================================================================== */

/* ---------- Lens toggle (in header) ---------- */

.lens-control { display: inline-flex; align-items: center; gap: 12px; }
.lens-control .lens-label {
  font-size: 11px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}
.lens-toggle {
  display: inline-flex; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; gap: 2px;
}
.lens-toggle button {
  border: none; background: transparent; font-family: inherit; font-size: 13.5px;
  font-weight: 550; color: var(--muted); padding: 7px 15px; border-radius: 999px;
  cursor: pointer; white-space: nowrap; transition: background 0.18s ease, color 0.18s ease;
}
.lens-toggle button:hover { color: var(--navy); }
.lens-toggle button[aria-checked="true"] { background: var(--navy); color: #fff; }
.lens-toggle button[data-lens="translator"][aria-checked="true"] { background: var(--gold); color: #fff; }

/* screen-reader-only utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* visible focus ring everywhere (gold reads on both white and navy) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* no-JS safety: reveal content is visible if scripts do not run */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }

/* small local lens echo used inside modules */
.lens-echo { display: inline-flex; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 3px; gap: 2px; }
.lens-echo button { border: none; background: transparent; font-family: inherit; font-size: 12px; font-weight: 550; color: rgba(255,255,255,0.7); padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: 0.15s; }
.lens-echo button[aria-pressed="true"] { background: rgba(255,255,255,0.92); color: var(--navy); }
.echo-light .lens-echo { background: var(--surface); border-color: var(--border); }
.echo-light .lens-echo button { color: var(--muted); }
.echo-light .lens-echo button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- Lens emphasis utilities ---------- */

/* dual-axis cards dim the non-active side; no layout shift */
.axis-card { transition: opacity 0.4s ease, border-color 0.4s ease; }
[data-lens="tech"] .axis-card[data-side="business"],
[data-lens="business"] .axis-card[data-side="tech"] { opacity: 0.42; }
[data-lens="tech"] .axis-card[data-side="tech"],
[data-lens="business"] .axis-card[data-side="business"] { border-color: var(--gold); }

/* blocks that only exist in one lens */
.show-translator, .show-business, .show-tech { display: none; }
[data-lens="translator"] .show-translator { display: block; }
[data-lens="business"] .show-business { display: block; }
[data-lens="tech"] .show-tech { display: block; }

/* a lens-driven accent word inside copy */
.lens-accent { color: var(--gold-dark); font-weight: 600; }

/* ---------- Bands & section helpers ---------- */

.band-dark { background: var(--navy); color: #fff; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .eyebrow { color: rgba(255,255,255,0.74); }
.band-dark .lead { color: rgba(255,255,255,0.74); }
.band-dark .case-note { color: rgba(255,255,255,0.6); }

.case-hero { padding: 92px 0 60px; }
.case-hero h1 { font-size: clamp(40px, 6vw, 70px); font-weight: 650; letter-spacing: -0.022em; line-height: 1.04; margin-bottom: 22px; max-width: 16ch; }
.case-hero .sub { font-size: clamp(18px, 2.3vw, 23px); color: var(--muted); line-height: 1.45; max-width: 60ch; margin-bottom: 26px; }
.case-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 14.5px; color: var(--faint); }
.case-hero .hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

.case-note { font-size: 14px; color: var(--faint); }

/* anonymization chip */
.anon-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
}
.anon-chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }

/* lens hint line under hero that teaches the toggle */
.lens-hint {
  margin-top: 30px; padding: 18px 22px; border-left: 4px solid var(--gold);
  background: var(--warm); border-radius: 0 var(--radius) var(--radius) 0; max-width: 640px;
  font-size: 15.5px; color: var(--ink);
}
.lens-hint strong { color: var(--navy); }

/* ---------- Scope stat strip (hero) ---------- */

.scope-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 38px 0 26px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.scope-item .scope-num { font-size: clamp(26px, 3vw, 38px); font-weight: 660; color: var(--navy); letter-spacing: -0.02em; line-height: 1; display: block; }
.scope-item .scope-label { font-size: 13.5px; color: var(--muted); margin-top: 9px; display: block; line-height: 1.35; }

/* ---------- "What it took" cards (clickable, jump to module) ---------- */

.what-card { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.what-card:hover, .what-card:focus-visible { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(15, 39, 71, 0.10); }
.what-card h3 { color: var(--navy); }
.what-card p { color: var(--muted); font-size: 15.5px; }
.what-card .what-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--gold-dark); }
.what-card:hover .what-link, .what-card:focus-visible .what-link { color: var(--navy); }

/* ---------- Case at a glance schematic ---------- */

.glance-stage { margin-top: 8px; }
.glance-svg { width: 100%; height: auto; display: block; overflow: visible; }
.glance-svg text { font-family: inherit; }
.glance-box .gb-rect { fill: #fff; stroke: var(--border); stroke-width: 1.5; transition: stroke 0.15s ease; }
.glance-box .gb-title { fill: var(--navy); font-weight: 650; }
.glance-box .gb-sub { fill: var(--muted); }
.glance-hl { cursor: default; }
.glance-hl:hover .gb-rect, .glance-hl:hover .gpa-rect { stroke: var(--gold); }
.glance-platform .gp-rect { fill: var(--navy); }
.glance-platform .gp-title { fill: #fff; font-weight: 650; }
.glance-platform .gp-sub { fill: rgba(255,255,255,0.72); }
.glance-step rect { fill: var(--navy-soft); stroke: rgba(255,255,255,0.22); stroke-width: 1; }
.glance-step text { fill: #fff; font-weight: 600; }
.glance-owner rect { fill: var(--gold); }
.glance-owner text { fill: var(--navy); font-weight: 700; letter-spacing: 0.04em; }
.glance-chip rect { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.glance-chip text { fill: var(--navy); font-weight: 550; }
.glance-arrow { stroke: var(--gold); stroke-width: 2.5; }
.glance-arrow-fill { fill: var(--gold); }
.glance-strip-label { fill: var(--muted); font-weight: 650; letter-spacing: 0.1em; }
.glance-party .gpa-rect { fill: #fff; stroke: var(--border); stroke-width: 1.5; transition: stroke 0.15s ease; }
.glance-party .gpa-text { fill: var(--navy); font-weight: 600; }
.glance-tl-line { stroke: var(--gold); stroke-width: 2.5; }
.glance-tl-dot { fill: var(--gold); }
.glance-tl-label { fill: var(--muted); font-weight: 600; }

/* ---------- Bento grid ---------- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); min-width: 0;
}
.box .box-eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); display: block; margin-bottom: 10px; }
.box h3 { margin-bottom: 8px; }
.box p { color: var(--muted); font-size: 15.5px; }
.box.dark { background: var(--navy-soft); color: #fff; border-color: rgba(255,255,255,0.12); }
.box.dark h3 { color: #fff; }
.box.dark p { color: rgba(255,255,255,0.76); }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

/* thesis: two-axis translation */
.axis-spine { position: relative; }
.axis-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.axis-row + .axis-row { margin-top: 20px; }
.axis-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.axis-card .role { font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.axis-card .says { font-size: 16.5px; color: var(--ink); line-height: 1.45; }
.axis-bridge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-width: 150px; padding: 0 8px;
}
.axis-bridge .bridge-mark { width: 2px; flex: 1; background: linear-gradient(var(--gold), var(--gold-dark)); border-radius: 2px; min-height: 18px; }
.axis-bridge .bridge-text { font-size: 13.5px; color: var(--navy); font-weight: 600; padding: 12px 10px; line-height: 1.35; }
.axis-bridge .bridge-mark.short { min-height: 10px; }

/* ---------- Module: Program Hub (centerpiece) ---------- */

.hub-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.hub-stage { position: relative; }
.hub-svg { width: 100%; height: auto; display: block; overflow: visible; }
.hub-node rect, .hub-node circle { transition: transform 0.2s ease, opacity 0.2s ease; }
.hub-spoke { stroke: rgba(255,255,255,0.22); stroke-width: 2; transition: stroke 0.2s ease, stroke-width 0.2s ease; }
.hub-spoke.axis-biz { stroke-dasharray: 1 0; }
.hub-spoke.axis-tech { stroke-dasharray: 6 5; }
.hub-spoke.active { stroke: var(--gold); stroke-width: 3.5; }
.hub-pill { cursor: pointer; }
.hub-pill .pill-bg { fill: var(--navy-soft); stroke: rgba(255,255,255,0.2); stroke-width: 1.5; transition: fill 0.2s ease, stroke 0.2s ease; }
.hub-pill:hover .pill-bg, .hub-pill:focus-visible .pill-bg { stroke: var(--gold); }
.hub-pill.active .pill-bg { fill: var(--gold); stroke: var(--gold); }
.hub-pill text { fill: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.hub-pill.active text { fill: var(--navy); }
.hub-pill .pill-sub { fill: rgba(255,255,255,0.78); font-size: 10.5px; font-weight: 500; }
.hub-pill.active .pill-sub { fill: rgba(15,39,71,0.7); }
.hub-center .core-bg { fill: var(--gold); }
.hub-center text { fill: var(--navy); font-weight: 700; pointer-events: none; }
.hub-center .core-sub { fill: rgba(15,39,71,0.72); font-weight: 600; font-size: 10px; }
.hub-pill:focus-visible { outline: none; }
.hub-pill:focus-visible .pill-bg { stroke: var(--gold); stroke-width: 3; }

.hub-detail { background: var(--navy-soft); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 26px; min-height: 220px; }
.hub-detail .hd-tag { font-size: 11.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.hub-detail h4 { color: #fff; font-size: 19px; margin-bottom: 12px; }
.hub-detail .hd-flow { font-size: 14px; color: rgba(255,255,255,0.74); margin-bottom: 14px; }
.hub-detail .hd-flow b { color: rgba(255,255,255,0.9); font-weight: 600; }
.hub-detail .hd-bridge { font-size: 15.5px; color: #fff; line-height: 1.5; border-left: 3px solid var(--gold); padding-left: 14px; }

/* glossary translator under the hub */
.glossary { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: start; margin-top: 8px; }
.gloss-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.gloss-col.cmo h4 { color: var(--gold); }
.gloss-col.cto h4 { color: rgba(255,255,255,0.8); }
.gloss-term {
  display: block; width: 100%; text-align: left; font-family: inherit; font-size: 14.5px;
  color: #fff; background: var(--navy-soft); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.gloss-col.cto .gloss-term { text-align: right; }
.gloss-term:hover { border-color: var(--gold); }
.gloss-term.active { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 600; }
.gloss-bridge {
  align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-width: 170px; padding: 14px;
  background: rgba(255,255,255,0.04); border: 1px dashed rgba(255,255,255,0.2); border-radius: var(--radius);
}
.gloss-bridge .gb-arrow { font-size: 20px; color: var(--gold); margin-bottom: 8px; }
.gloss-bridge .gb-text { font-size: 14px; color: #fff; line-height: 1.45; }
.gloss-bridge .gb-placeholder { font-size: 13px; color: rgba(255,255,255,0.5); }

/* operating model strip */
.opmodel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.opmodel .op-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.opmodel .op-card .op-role { font-size: 12px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.opmodel .op-card h4 { font-size: 16px; margin-bottom: 6px; }
.opmodel .op-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- Module: Architecture Stack ---------- */

.stack-wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 32px; align-items: start; }
.stack-svg { width: 100%; height: auto; display: block; }
.stack-layer { cursor: pointer; }
.stack-layer .slab { fill: var(--navy-soft); stroke: rgba(255,255,255,0.12); stroke-width: 1; transition: fill 0.2s ease, stroke 0.2s ease; }
.stack-layer:hover .slab, .stack-layer:focus-visible .slab { fill: #234a7d; }
.stack-layer.active .slab { fill: var(--gold); stroke: var(--gold); }
.stack-layer .slab-title { fill: #fff; font-size: 14px; font-weight: 600; pointer-events: none; }
.stack-layer .slab-sub { fill: rgba(255,255,255,0.62); font-size: 11px; pointer-events: none; }
.stack-layer.active .slab-title { fill: var(--navy); }
.stack-layer.active .slab-sub { fill: rgba(15,39,71,0.7); }
.stack-layer:focus-visible { outline: none; }
.stack-layer:focus-visible .slab { stroke: var(--gold); stroke-width: 3; }
.stack-spine rect { fill: rgba(232,154,45,0.16); stroke: var(--gold); stroke-width: 1; stroke-dasharray: 4 4; }
.stack-spine text { fill: var(--gold); font-size: 11px; font-weight: 650; letter-spacing: 0.08em; }

.stack-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.stack-panel .sp-tag { font-size: 11.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; display: block; }
.stack-panel h4 { font-size: 20px; margin-bottom: 16px; }
.stack-fact { margin-bottom: 16px; }
.stack-fact .sf-label { font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stack-fact .sf-val { font-size: 15.5px; color: var(--ink); line-height: 1.45; }
.stack-fact.biz .sf-label { color: var(--gold-dark); }
.stack-fact.owner .sf-val { font-weight: 600; color: var(--navy); }

/* ---------- Module: Quality Gate Simulator ---------- */

.gates-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.sample-chip {
  font-family: inherit; font-size: 14px; font-weight: 550; color: var(--navy);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: 0.15s;
}
.sample-chip:hover { border-color: var(--navy); }
.sample-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gates-run { margin-left: auto; }

.gates-track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 8px; }
.gate {
  position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 14px 18px; text-align: center; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gate .g-num { font-size: 11px; font-weight: 650; color: var(--faint); display: block; margin-bottom: 6px; }
.gate .g-name { font-size: 13.5px; font-weight: 600; color: var(--navy); line-height: 1.25; min-height: 34px; }
.gate .g-verdict {
  margin-top: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 0; opacity: 0; transform: translateY(4px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.gate.show-v .g-verdict { opacity: 1; transform: none; }
.gate .g-verdict.ok { background: var(--green-bg); color: var(--green); }
.gate .g-verdict.advisory { background: rgba(232,154,45,0.16); color: var(--gold-dark); }
.gate .g-verdict.stop { background: var(--red-bg); color: var(--red); }
.gate.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,154,45,0.18); }
.gate.verdict-ok { border-color: rgba(5,150,105,0.4); }
.gate.verdict-advisory { border-color: rgba(232,154,45,0.5); }
.gate.verdict-stop { border-color: rgba(220,38,38,0.45); }
.gate .g-arrow { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); color: var(--border); font-size: 16px; z-index: 1; }
.gate:last-child .g-arrow { display: none; }

.gates-result {
  margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
  background: var(--surface); min-height: 96px;
}
.gates-result .gr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.gates-result .gr-badge { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.gates-result .gr-badge.pass { background: var(--green-bg); color: var(--green); }
.gates-result .gr-badge.held { background: var(--red-bg); color: var(--red); }
.gates-result .gr-badge.idle { background: var(--border); color: var(--muted); }
.gates-result h4 { font-size: 16px; margin: 0; }
.gates-result p { font-size: 14.5px; color: var(--muted); margin: 0; }
.gates-result .gr-human { margin-top: 10px; font-size: 13.5px; color: var(--navy); font-weight: 600; }
.gates-result .gr-human::before { content: "→ "; color: var(--gold-dark); }

/* ---------- Module: Remix fan-out ---------- */

.remix-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
.remix-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; }
.remix-master {
  position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%);
  background: linear-gradient(150deg, var(--navy), var(--navy-soft)); border-radius: 10px; z-index: 5;
  cursor: pointer; box-shadow: 0 10px 30px rgba(15,39,71,0.28); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; text-align: center; padding: 10px;
  transition: transform 0.3s ease;
}
.remix-master .rm-label { font-size: 12px; font-weight: 650; letter-spacing: 0.04em; }
.remix-master .rm-sub { font-size: 10.5px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.remix-stage.exploded .remix-master { transform: translate(-50%, -50%) scale(0.86); }
.remix-frame {
  position: absolute; left: 50%; top: 50%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 7px; box-shadow: var(--shadow-sm); transform: translate(-50%, -50%) scale(0.3);
  opacity: 0; transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease, box-shadow 0.2s ease;
  display: flex; align-items: flex-end; overflow: hidden; cursor: default;
}
.remix-stage.exploded .remix-frame { opacity: 1; }
.remix-frame .rf-label { font-size: 9.5px; font-weight: 600; color: var(--muted); padding: 4px 6px; width: 100%; background: rgba(255,255,255,0.85); border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.remix-frame .rf-spec { display: none; }
.remix-frame:hover { z-index: 20; box-shadow: 0 8px 22px rgba(15,39,71,0.22); }
.remix-frame.pop { outline: 2px solid var(--gold); }

.remix-side .remix-counter { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.remix-side .rc-num { font-size: clamp(40px, 5vw, 56px); font-weight: 660; color: var(--navy); letter-spacing: -0.02em; line-height: 1; }
.remix-side .rc-unit { font-size: 16px; color: var(--muted); }
.remix-side .rc-caption { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.remix-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.remix-hint { margin-top: 16px; font-size: 13px; color: var(--faint); }
.remix-spec-readout { margin-top: 18px; min-height: 42px; font-size: 14px; color: var(--navy); }
.remix-spec-readout b { color: var(--gold-dark); }

/* ---------- Module: Roadmap slider ---------- */

/* dark band: light text throughout. Stops above, one styled slider below. */
.roadmap-stops { display: flex; justify-content: space-between; margin: 0 2px 4px; gap: 8px; }
.roadmap-stop { display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; background: transparent; border: none; font-family: inherit; padding: 6px 0; flex: 1; text-align: left; }
.roadmap-stop:nth-child(2) { align-items: center; text-align: center; }
.roadmap-stop:last-child { align-items: flex-end; text-align: right; }
.roadmap-stop .rs-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--navy-soft); border: 2px solid rgba(255,255,255,0.35); transition: 0.2s; margin-bottom: 9px; }
.roadmap-stop.active .rs-dot, .roadmap-stop.reached .rs-dot { border-color: var(--gold); background: var(--gold); }
.roadmap-stop .rs-when { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.72); }
.roadmap-stop.active .rs-when { color: #fff; }
.roadmap-stop .rs-name { font-size: 14px; font-weight: 650; color: rgba(255,255,255,0.88); margin-top: 2px; }
.roadmap-stop.active .rs-name { color: var(--gold); }

.roadmap-input { width: 100%; margin: 8px 0 30px; }
.roadmap-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.roadmap-panel .rp-tag { font-size: 11.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.roadmap-panel h4 { font-size: 22px; margin-bottom: 12px; }
.roadmap-panel p { color: rgba(255,255,255,0.78); font-size: 15.5px; }
.cap-bars { display: flex; flex-direction: column; gap: 14px; }
.cap-bar .cb-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.cap-bar .cb-name { color: rgba(255,255,255,0.7); font-weight: 600; }
.cap-bar .cb-val { color: #fff; font-weight: 650; }
.cap-bar .cb-track { height: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; overflow: hidden; }
.cap-bar .cb-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 999px; width: 0; transition: width 0.4s cubic-bezier(0.22,1,0.36,1); }

/* range input, brand-styled with a gold progress fill driven by --p */
input[type="range"].brand-range { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) 0 var(--p, 0%), rgba(255,255,255,0.22) var(--p, 0%)); }
input[type="range"].brand-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.35); cursor: pointer; }
input[type="range"].brand-range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.35); cursor: pointer; }
input[type="range"].brand-range:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Module: Commercials (pods + FTE) ---------- */

.pods-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.pod {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease; cursor: default;
}
.pod:hover { border-color: var(--gold); transform: translateY(-2px); }
.pod .pod-name { font-size: 15px; font-weight: 650; color: var(--navy); margin-bottom: 4px; }
.pod .pod-role { font-size: 13px; color: var(--muted); line-height: 1.4; }

.fte-ramp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.fte-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fte-bar-track { width: 100%; height: 150px; display: flex; align-items: flex-end; }
.fte-bar { width: 100%; background: linear-gradient(var(--navy-soft), var(--navy)); border-radius: 6px 6px 0 0; height: 0; transition: height 0.6s cubic-bezier(0.22,1,0.36,1); position: relative; }
.fte-bar .fte-val { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 660; color: var(--navy); }
.fte-col.peak .fte-bar { background: linear-gradient(var(--gold), var(--gold-dark)); }
.fte-phase { font-size: 12px; color: var(--muted); text-align: center; font-weight: 600; }
.fte-when { font-size: 11px; color: var(--faint); }

/* ---------- Demand funnel strip ---------- */

.funnel { display: flex; flex-direction: column; gap: 7px; }
.funnel-step { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 10px 14px; cursor: default; transition: background 0.15s ease, border-color 0.15s ease; }
.funnel-step:hover, .funnel-step:focus-visible { background: var(--navy); border-color: var(--navy); outline: none; }
.funnel-step .fs-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--gold-dark); }
.funnel-step .fs-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.funnel-step:hover .fs-name, .funnel-step:focus-visible .fs-name { color: #fff; }
.funnel-step:hover .fs-num, .funnel-step:focus-visible .fs-num { background: var(--gold); color: #fff; border-color: var(--gold); }
.funnel-step .fs-tip { display: none; }
.funnel-reveal { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 22px; }
.funnel-reveal b { color: var(--navy); }

/* ---------- Module note / reduced motion ---------- */

.module-foot { margin-top: 18px; font-size: 13px; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  .remix-frame, .remix-master, .cap-bar .cb-fill, .fte-bar, .gate .g-verdict, .hub-pill rect, .stack-layer .slab { transition: none !important; }
}

/* ---------- Responsive (desktop-first; graceful below) ---------- */

@media (max-width: 1024px) {
  .hub-wrap, .stack-wrap, .remix-wrap, .roadmap-panel { grid-template-columns: 1fr; }
  .stack-panel { position: static; }
}

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .scope-strip { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .box[class*="span-"] { grid-column: auto; }
  .axis-row { grid-template-columns: 1fr; }
  .axis-bridge { flex-direction: row; min-width: 0; }
  .axis-bridge .bridge-mark { height: 2px; width: auto; min-width: 24px; }
  .glossary { grid-template-columns: 1fr; }
  .gloss-col.cto .gloss-term { text-align: left; }
  .opmodel, .pods-grid, .roadmap-stages { grid-template-columns: 1fr; }
  .gates-track { grid-template-columns: repeat(2, 1fr); }
  .gate .g-arrow { display: none; }
  .fte-ramp { grid-template-columns: repeat(4, 1fr); }
  .lens-control .lens-label { display: none; }
}

@media (max-width: 520px) {
  .gates-track { grid-template-columns: repeat(2, 1fr); }
  .case-hero { padding: 60px 0 40px; }
}
