/*
 * Signal Architecture — The Vision Gap
 * A dark editorial strategy lab: deep blue-black space, architectural display type,
 * aurora-teal signal, solar-amber spark, thin grids, and restrained diagnostic instruments.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #071820;
  --ink-2: #0d2730;
  --panel: #12343d;
  --ivory: #f4f0e8;
  --muted: #a9b8b8;
  --teal: #29d3c2;
  --amber: #ffb86b;
  --coral: #ff6b6b;
  --green: #9be564;
  --line: rgba(244, 240, 232, .14);
  --line-strong: rgba(244, 240, 232, .28);
  --shadow: 0 26px 80px rgba(0, 0, 0, .28);
  --display: 'Space Grotesk', Arial, sans-serif;
  --body: 'Inter', Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; overflow-x: hidden; padding-top: 92px; padding-bottom: 96px; color: var(--ivory); background: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
body::before { content: ''; pointer-events: none; position: fixed; z-index: 10; inset: 0; opacity: .075; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -4rem; left: 1rem; padding: .7rem 1rem; background: var(--ivory); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.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; }

.site-shell { position: relative; min-height: 100vh; overflow: clip; }
.site-shell::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(rgba(244,240,232,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(244,240,232,.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 70%); }
.container { width: min(100% - 40px, 1240px); margin-inline: auto; }
.eyebrow, .index-label, .section-tag, .tiny-label { display: inline-flex; align-items: center; gap: .55rem; color: var(--teal); font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .13em; line-height: 1; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
.index-label { color: var(--amber); font-size: .78rem; }
.section-tag { color: var(--muted); }
.section-rule { width: 100%; height: 1px; background: var(--line); }

/* Navigation */
.site-header { position: fixed; z-index: 40; top: 0; right: 0; left: 0; padding: .65rem 0; border: 0; background: transparent; pointer-events: none; }
.nav-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 40px, 1240px); margin-inline: auto; padding: 0 1rem; border: 1px solid rgba(244,240,232,.18); border-radius: 4px; background: rgba(7, 24, 32, .9); box-shadow: 0 18px 46px rgba(0,0,0,.26), inset 0 1px 0 rgba(244,240,232,.04); backdrop-filter: blur(20px); pointer-events: auto; }
.brand { position: relative; display: inline-flex; align-items: center; gap: .72rem; flex: 0 0 auto; font-family: var(--display); font-weight: 700; letter-spacing: -.04em; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span { position: relative; font-size: 1rem; letter-spacing: -.07em; }
.brand span::after { content: ''; position: absolute; left: 0; right: 19%; bottom: -.28rem; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); opacity: .78; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.85rem, 1.7vw, 1.7rem); }
.nav-links a { position: relative; color: var(--muted); font-size: .76rem; font-weight: 600; white-space: nowrap; transition: color .2s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ivory); }
.nav-links a[aria-current='page']::after { content: ''; position: absolute; left: 0; bottom: -.5rem; width: 100%; height: 2px; background: var(--teal); }
.nav-links .nav-cta { color: var(--ink); background: var(--teal); padding: .58rem .8rem; border-radius: 2px; }
.nav-links .nav-cta[aria-current='page']::after { display: none; }
.nav-toggle { display: none; width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 2px; background: transparent; }
.nav-toggle span { display: block; width: 18px; height: 1px; margin: 4px auto; background: var(--ivory); transition: transform .2s var(--ease-out), opacity .2s; }

/* Global typography and buttons */
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.065em; }
.display-title { max-width: 11ch; margin: 1.15rem 0 1.75rem; font-size: clamp(4.1rem, 12.15vw, 10rem); line-height: .78; letter-spacing: -.105em; text-transform: uppercase; }
.display-title span { display: block; }
.display-title .accent { color: var(--teal); }
.section-title { margin: .8rem 0 1.25rem; max-width: 13ch; font-size: clamp(2.4rem, 5.4vw, 5.6rem); line-height: .91; text-transform: uppercase; }
.page-title { max-width: 13ch; font-size: clamp(3rem, 8vw, 8rem); line-height: .82; text-transform: uppercase; }
.title-amber { color: var(--teal); }
.lead { max-width: 49rem; color: var(--ivory); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.55; }
.body-copy { color: var(--muted); max-width: 43rem; font-size: 1rem; }
.body-copy p + p { margin-top: 1.1rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--ivory); border-bottom: 1px solid var(--teal); font-family: var(--display); font-size: .85rem; font-weight: 600; padding-bottom: .2rem; transition: color .18s var(--ease-out), gap .18s var(--ease-out); }
.text-link:hover { color: var(--teal); gap: .8rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; border: 1px solid transparent; border-radius: 2px; padding: .85rem 1.1rem; background: var(--teal); color: var(--ink); cursor: pointer; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out), background .2s var(--ease-out); }
.button:hover { box-shadow: 0 0 0 5px rgba(41,211,194,.10); transform: translateY(-2px); }
.button:active { transform: scale(.97); }
.button--amber { background: var(--amber); }
.button--outline { border-color: var(--line-strong); background: transparent; color: var(--ivory); }
.button--outline:hover { border-color: var(--teal); box-shadow: none; }
.button--quiet { min-height: auto; background: transparent; color: var(--muted); padding: .5rem .1rem; }
.button[disabled] { cursor: not-allowed; opacity: .38; transform: none; box-shadow: none; }

/* Decorative hero signal field */
.hero { position: relative; min-height: 710px; display: grid; align-items: end; padding: clamp(3rem, 8vw, 8rem) 0 3rem; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 88% 77%, rgba(41,211,194,.13), transparent 26%), radial-gradient(circle at 64% 22%, rgba(255,184,107,.1), transparent 17%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: end; gap: 3rem; }
.hero-copy { position: relative; z-index: 1; }
.hero-pretitle { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero-question { max-width: 38rem; padding-left: 1.1rem; border-left: 2px solid var(--amber); color: var(--ivory); font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.82rem); font-weight: 500; line-height: 1.25; }
.hero-question strong { color: var(--teal); font-weight: 500; }
.hero-visual { position: relative; min-height: 560px; margin-bottom: -3rem; border: 1px solid var(--line); overflow: hidden; background: #0d2730 url('/assets/images/vision-gap-hero-signal.jpg') center/cover no-repeat; box-shadow: var(--shadow); }
.hero-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(7,24,32,.3), transparent 48%, rgba(7,24,32,.32)); }
.hero-visual::after { content: ''; position: absolute; inset: 10%; border: 1px solid rgba(244,240,232,.12); border-radius: 50%; transform: rotate(-18deg) scaleX(1.45); }
.hero-signal-mark { position: absolute; left: 10%; top: 12%; width: 54px; height: 54px; background: url('/assets/images/vision-gap-signal-mark.png') center/contain no-repeat; filter: drop-shadow(0 0 18px rgba(41,211,194,.8)); }
.hero-visual-caption { position: absolute; z-index: 1; right: 1.25rem; bottom: 1.2rem; display: flex; align-items: center; gap: .55rem; color: var(--ivory); font-family: var(--display); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-visual-caption::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(41,211,194,.15); }

.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 1.8rem; min-width: max-content; padding: .9rem 0; color: var(--muted); font-family: var(--display); font-size: .77rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; animation: ticker 25s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 1.8rem; }
.ticker-track span::after { content: '✦'; color: var(--amber); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Editorial content pages */
.editorial { padding: clamp(5rem, 11vw, 10rem) 0; }
.editorial-grid { display: grid; grid-template-columns: .31fr .69fr; gap: 3rem; }
.editorial-sticky { align-self: start; position: sticky; top: 2rem; }
.editorial-sticky .section-rule { margin-top: 1rem; }
.editorial-content { display: grid; gap: 2rem; }
.editorial-text { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.editorial-text:last-child { border-bottom: 0; }
.editorial-text h2 { margin: .65rem 0 1.25rem; max-width: 12ch; font-size: clamp(2.45rem, 4.8vw, 5.2rem); line-height: .88; text-transform: uppercase; }
.editorial-text p { max-width: 42rem; color: var(--muted); font-size: 1.04rem; }
.editorial-text strong { color: var(--ivory); font-weight: 600; }
.insight-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.insight-card { min-height: 225px; padding: 1.5rem; background: var(--ink-2); transition: background .2s var(--ease-out); }
.insight-card:hover { background: var(--panel); }
.insight-card h3 { margin: 2rem 0 .65rem; font-size: 1.24rem; letter-spacing: -.05em; }
.insight-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.quote-block { position: relative; margin-top: 4rem; padding: 2.25rem 0 2.25rem 2.25rem; border-left: 2px solid var(--teal); }
.quote-block::before { content: '“'; position: absolute; top: -2rem; left: 1.25rem; color: rgba(41,211,194,.18); font-family: var(--display); font-size: 10rem; line-height: 1; }
.quote-block p { position: relative; max-width: 20ch; margin: 0; color: var(--ivory); font-family: var(--display); font-size: clamp(2rem,4vw,4rem); font-weight: 500; letter-spacing: -.07em; line-height: .98; }

/* Subpage hero */
.page-hero { position: relative; padding: clamp(4rem,9vw,8rem) 0 clamp(4rem,8vw,6rem); overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -12vw; bottom: -35vw; width: min(69vw, 840px); aspect-ratio: 1; border: 1px solid rgba(41,211,194,.24); border-radius: 50%; box-shadow: 0 0 0 90px rgba(41,211,194,.025), 0 0 0 180px rgba(41,211,194,.018); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 1.5rem; }
.framework-hero::before { content: ''; position: absolute; inset: 0; opacity: .28; background: url('/assets/images/vision-gap-framework-orbit.jpg') right 16%/min(470px,50vw) auto no-repeat; mix-blend-mode: screen; }
.synthesis-hero { min-height: 460px; background: linear-gradient(90deg, var(--ink) 14%, transparent 70%), url('/assets/images/vision-gap-possibility-horizon.jpg') center/cover no-repeat; }
.synthesis-hero::after { display: none; }

/* Framework */
.framework-intro { padding: 1.25rem 0 5rem; }
.framework-steps { counter-reset: framework; display: grid; gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--line); }
.framework-step { display: grid; grid-template-columns: .15fr .45fr .4fr; gap: 1.25rem; align-items: start; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.framework-step::before { counter-increment: framework; content: '0' counter(framework); color: var(--amber); font-family: var(--display); font-size: .76rem; font-weight: 700; letter-spacing: .1em; }
.framework-step h2 { margin: 0; font-size: clamp(1.8rem,3vw,3rem); line-height: .92; }
.framework-step p { margin: 0; color: var(--muted); }
.cycle-panel { position: relative; display: grid; place-items: center; min-height: 610px; margin: 4rem 0 0; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2) url('/assets/images/vision-gap-framework-orbit.jpg') center/cover no-repeat; }
.cycle-panel::before { content: ''; position: absolute; inset: 0; background: rgba(7,24,32,.66); }
.cycle-panel > * { position: relative; z-index: 1; }
.vision-cycle { position: relative; width: min(77vw, 460px); aspect-ratio: 1; border: 1px solid rgba(244,240,232,.28); border-radius: 50%; }
.vision-cycle::before, .vision-cycle::after { content: ''; position: absolute; border: 1px solid rgba(41,211,194,.26); border-radius: 50%; }
.vision-cycle::before { inset: 10%; }
.vision-cycle::after { inset: 21%; border-color: rgba(255,184,107,.35); }
.cycle-core { position: absolute; inset: 40%; display: grid; place-items: center; border-radius: 50%; background: rgba(255,184,107,.11); box-shadow: 0 0 38px rgba(255,184,107,.3); }
.cycle-core img { width: 49px; }
.cycle-node { position: absolute; display: grid; place-items: center; width: 142px; aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(7,24,32,.85); color: var(--ivory); font-family: var(--display); font-size: .78rem; font-weight: 600; line-height: 1.1; text-align: center; }
.cycle-node--a { left: -5%; top: 3%; border-color: rgba(255,184,107,.65); }
.cycle-node--b { right: -6%; top: 45%; border-color: rgba(41,211,194,.65); }
.cycle-node--c { left: 14%; bottom: -4%; border-color: rgba(244,240,232,.45); }
.cycle-caption { position: absolute; z-index: 1; bottom: 2rem; max-width: 26rem; margin: 0 1rem; color: var(--muted); text-align: center; }

/* Gaps */
.gap-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.gap-card { position: relative; display: flex; flex-direction: column; min-height: 350px; padding: 2rem; overflow: hidden; background: var(--ink-2); transition: background .2s var(--ease-out), transform .2s var(--ease-out); }
.gap-card:hover { z-index: 1; background: var(--panel); transform: translateY(-5px); }
.gap-card::after { content: ''; position: absolute; right: -3rem; bottom: -3rem; width: 11rem; aspect-ratio: 1; border: 1px solid rgba(41,211,194,.15); border-radius: 50%; }
.gap-card:nth-child(2n)::after { border-color: rgba(255,184,107,.15); }
.gap-card h2 { position: relative; z-index: 1; max-width: 9ch; margin: 2.2rem 0 .8rem; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: .92; }
.gap-card .reframe { position: relative; z-index: 1; color: var(--ivory); font-size: .95rem; font-weight: 500; }
.gap-card .ask { position: relative; z-index: 1; margin-top: auto; padding-top: 1.5rem; color: var(--muted); font-size: .88rem; }
.gap-card .ask strong { display: block; margin-bottom: .3rem; color: var(--teal); font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; }

/* Six Gaps transmission map: a directional diagnostic instrument, not a generic card matrix. */
.gap-analysis-layout { display: grid; grid-template-columns: minmax(180px,.23fr) minmax(0,.77fr); gap: clamp(2rem,5vw,5rem); align-items: start; }
.gap-rail { position: sticky; top: 2rem; padding: 1.4rem 1.2rem 1.5rem; border: 1px solid var(--line); background: linear-gradient(165deg, rgba(18,52,61,.88), rgba(7,24,32,.72)); box-shadow: inset 2px 0 0 var(--teal); }
.gap-rail h2 { max-width: 7ch; margin: .7rem 0 1.25rem; font-size: clamp(1.65rem,2.6vw,2.6rem); line-height: .87; text-transform: uppercase; }
.gap-rail p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.gap-rail-meter { display: grid; gap: .75rem; margin: 1.6rem 0 0; }
.gap-rail-meter div { display: grid; grid-template-columns: 1.75rem 1fr; align-items: center; gap: .45rem; color: var(--muted); font-family: var(--display); font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.gap-rail-meter span { display: block; height: 4px; background: rgba(244,240,232,.16); }
.gap-rail-meter div:nth-child(1) span, .gap-rail-meter div:nth-child(4) span { background: var(--amber); }
.gap-rail-meter div:nth-child(2) span, .gap-rail-meter div:nth-child(5) span { background: var(--coral); }
.gap-rail-meter div:nth-child(3) span, .gap-rail-meter div:nth-child(6) span { background: var(--teal); }

/* Synthesis */
.synthesis-grid { display: grid; grid-template-columns: minmax(0,.66fr) minmax(300px,.34fr); gap: clamp(3rem,8vw,7rem); align-items: start; }
.formula { position: sticky; top: 2rem; padding: 1.65rem; border: 1px solid rgba(255,184,107,.44); background: rgba(18,52,61,.58); box-shadow: var(--shadow); }
.formula .tiny-label { color: var(--amber); }
.formula p { margin: 1.5rem 0 0; font-family: var(--display); font-size: clamp(1.3rem,2.4vw,2rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.15; }
.formula .formula-slot { color: var(--teal); }
.strategic-list { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--line); counter-reset: moves; }
.strategic-list li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: baseline; padding: 1.15rem 0; border-bottom: 1px solid var(--line); counter-increment: moves; color: var(--ivory); font-family: var(--display); font-size: clamp(1.12rem,1.7vw,1.45rem); font-weight: 500; letter-spacing: -.045em; }
.strategic-list li::before { content: '0' counter(moves); color: var(--amber); font-size: .72rem; font-weight: 700; letter-spacing: .09em; }

/* CTA and footer */
.global-cta { position: relative; margin-top: 2rem; padding: clamp(4rem,8vw,8rem) 0; overflow: hidden; background: var(--panel); }
.global-cta::before { content: ''; position: absolute; inset: 0; opacity: .26; background: radial-gradient(circle at 80% 55%, var(--teal), transparent 4%), radial-gradient(circle at 72% 55%, rgba(41,211,194,.23), transparent 19%), radial-gradient(circle at 72% 55%, rgba(255,184,107,.18), transparent 38%); }
.global-cta .container { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.global-cta h2 { max-width: 10ch; margin: .7rem 0 0; font-size: clamp(2.8rem,7vw,7rem); line-height: .83; text-transform: uppercase; }
.site-footer { padding: 2rem 0 6.8rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; color: var(--muted); font-size: .77rem; }
.footer-inner .brand { color: var(--ivory); }
.footer-inner .brand img { width: 25px; height: 25px; }
.footer-inner > span:last-child { justify-self: end; }
.author-credit { color: var(--muted); font-family: var(--display); font-size: .67rem; font-weight: 600; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.author-credit strong { color: var(--ivory); font-weight: 600; }

/* Persistent bottom navigation: the site’s always-available route map. */
.bottom-nav { position: fixed; z-index: 40; right: 50%; bottom: .8rem; display: flex; align-items: center; gap: .12rem; width: max-content; max-width: calc(100vw - 28px); padding: .38rem; border: 1px solid rgba(244,240,232,.18); border-radius: 5px; background: rgba(7,24,32,.92); box-shadow: 0 20px 52px rgba(0,0,0,.34), inset 0 1px 0 rgba(244,240,232,.05); backdrop-filter: blur(22px); transform: translateX(50%); }
.bottom-nav::before { content: ''; width: 6px; height: 6px; margin: 0 .4rem 0 .25rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(41,211,194,.13); }
.bottom-nav a { position: relative; padding: .52rem .68rem; border-radius: 2px; color: var(--muted); font-family: var(--display); font-size: .63rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .18s var(--ease-out), color .18s var(--ease-out), transform .18s var(--ease-out); }
.bottom-nav a:hover { color: var(--ivory); background: rgba(244,240,232,.08); transform: translateY(-1px); }
.bottom-nav a[aria-current='page'] { color: var(--ink); background: var(--teal); }

/* Diagnostic */
.diagnostic-hero { min-height: 510px; padding-bottom: 3rem; background: linear-gradient(90deg, var(--ink) 25%, rgba(7,24,32,.48) 65%, var(--ink)), url('/assets/images/vision-gap-diagnostic-field.jpg') center/cover no-repeat; }
.diagnostic-hero .page-title { max-width: 8ch; }
.diagnostic-stage { min-height: 590px; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 7rem); }
.diagnostic-shell { overflow: hidden; border: 1px solid var(--line); background: rgba(13,39,48,.7); box-shadow: var(--shadow); }
.diagnostic-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .88rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--display); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.diagnostic-progress { height: 3px; background: rgba(244,240,232,.1); }
.diagnostic-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--amber),var(--teal)); transition: width .3s var(--ease-out); }
.diagnostic-body { padding: clamp(1.5rem,4vw,4rem); }
.question-tag { color: var(--amber); font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.question-heading { max-width: 17ch; margin: 1.15rem 0 2.5rem; font-size: clamp(2rem,4.7vw,4.5rem); line-height: .98; }
.likert { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .6rem; }
.likert-option { position: relative; display: grid; min-height: 125px; align-content: space-between; gap: .7rem; padding: 1rem; border: 1px solid var(--line); background: rgba(7,24,32,.36); cursor: pointer; transition: border-color .18s var(--ease-out), background .18s var(--ease-out), transform .18s var(--ease-out); }
.likert-option:hover, .likert-option:has(input:focus-visible) { border-color: var(--teal); }
.likert-option:has(input:checked) { border-color: var(--teal); background: rgba(41,211,194,.12); transform: translateY(-4px); }
.likert-option input { position: absolute; opacity: 0; pointer-events: none; }
.likert-number { color: var(--amber); font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.07em; line-height: 1; }
.likert-label { max-width: 8ch; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.diagnostic-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.keyboard-note { color: var(--muted); font-size: .76rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.form-field { display: grid; gap: .4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--ivory); font-size: .78rem; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 2px; padding: .85rem .9rem; background: rgba(7,24,32,.52); color: var(--ivory); outline: 0; transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out); }
.form-field textarea { min-height: 92px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(41,211,194,.13); }
.form-note { margin: 1rem 0 0; color: var(--muted); font-size: .78rem; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.submit-button { min-width: 194px; }
.button-spinner { display: inline-block; width: .86rem; height: .86rem; border: 2px solid rgba(7,24,32,.28); border-top-color: var(--ink); border-radius: 50%; animation: submit-spin .72s linear infinite; vertical-align: -.1rem; }
.submit-button.is-loading { cursor: progress; opacity: .82; }
.status-message.is-loading { display: flex; align-items: center; gap: .55rem; color: var(--teal); }
.submission-success { display: flex; align-items: flex-start; gap: .85rem; margin: 0 0 1.75rem; padding: 1rem 1.1rem; border: 1px solid rgba(155,229,100,.38); background: rgba(155,229,100,.09); color: var(--ivory); }
.submission-success__mark { display: grid; flex: 0 0 auto; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--green); color: var(--ink); font-family: var(--display); font-size: .88rem; font-weight: 700; }
.submission-success strong { display: block; color: var(--green); font-family: var(--display); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.submission-success p { margin: .2rem 0 0; color: var(--ivory); font-size: .85rem; line-height: 1.4; }
@keyframes submit-spin { to { transform: rotate(360deg); } }
.result-verdict { max-width: 14ch; margin: .8rem 0 2rem; font-size: clamp(2.5rem,5vw,5rem); line-height: .9; text-transform: uppercase; }
.result-layout { display: grid; grid-template-columns: minmax(0,.32fr) minmax(0,.68fr); gap: clamp(2rem,6vw,5rem); align-items: start; }
.score-ring { position: relative; display: grid; place-items: center; width: min(100%,255px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--teal) var(--score-angle, 0deg), rgba(244,240,232,.11) 0deg); }
.score-ring::before { content: ''; position: absolute; inset: 12px; border-radius: inherit; background: var(--ink-2); }
.score-ring > * { position: relative; z-index: 1; text-align: center; }
.score-value { display: block; color: var(--ivory); font-family: var(--display); font-size: 4.8rem; font-weight: 700; letter-spacing: -.11em; line-height: .8; }
.score-caption { display: block; max-width: 13ch; margin-top: .65rem; color: var(--muted); font-size: .7rem; line-height: 1.25; }
.result-message { margin-top: 1.5rem; color: var(--muted); font-size: .84rem; }
.gap-results { display: grid; gap: 1.15rem; }
.gap-result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; }
.gap-result-head strong { font-family: var(--display); letter-spacing: -.04em; }
.gap-result-head span { color: var(--muted); font-size: .77rem; }
.gap-meter { height: 9px; overflow: hidden; background: rgba(244,240,232,.10); }
.gap-meter span { display: block; height: 100%; width: 0; background: var(--teal); transition: width .6s var(--ease-out); }
.gap-meter[data-size='Medium Gap'] span { background: var(--amber); }
.gap-meter[data-size='Large Gap'] span { background: var(--coral); }
.generated-statement, .moves-panel { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--line); background: rgba(7,24,32,.3); }
.generated-statement p { margin: .8rem 0 0; font-family: var(--display); font-size: clamp(1.3rem,2.2vw,2rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.2; }
.moves-panel ol { display: grid; gap: .8rem; margin: 1rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.moves-panel li::marker { color: var(--amber); font-family: var(--display); font-weight: 700; }
.result-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.status-message { min-height: 1.4rem; margin-top: 1rem; color: var(--muted); font-size: .78rem; }
.status-message.error { color: var(--amber); }

/* Responsive parallax: applied only to abstract decorative fields, never copy or controls. */
@media (prefers-reduced-motion: no-preference) {
  [data-parallax] { --parallax-y: 0px; --parallax-bg-y: 0px; }
  .hero-visual[data-parallax], .cycle-panel[data-parallax], .synthesis-hero[data-parallax], .diagnostic-hero[data-parallax] { background-position: center calc(50% + var(--parallax-bg-y)); transition: background-position .12s linear; }
  .hero-visual[data-parallax]::after { transform: translate3d(0, var(--parallax-y), 0) rotate(-18deg) scaleX(1.45); }
  .page-hero[data-parallax]::after { transform: translate3d(0, var(--parallax-y), 0); }
  .framework-hero[data-parallax]::before { transform: translate3d(0, var(--parallax-y), 0) scale(1.04); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: calc(100% - .65rem); display: none; align-items: stretch; gap: 0; padding: .5rem 20px 1.2rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; background: rgba(7,24,32,.98); box-shadow: 0 18px 36px rgba(0,0,0,.25); }
  .nav-links.is-open { display: flex; flex-direction: column; }
  .nav-links a { padding: .8rem 0; }
  .nav-links a[aria-current='page']::after { bottom: .45rem; width: 2rem; }
  .nav-links .nav-cta { margin-top: .5rem; padding: .85rem; text-align: center; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; margin-bottom: 0; }
  .editorial-grid, .synthesis-grid, .result-layout, .gap-analysis-layout { grid-template-columns: 1fr; }
  .editorial-sticky, .formula, .gap-rail { position: static; }
  .framework-step { grid-template-columns: .15fr 1fr; }
  .framework-step p { grid-column: 2; }
  .global-cta .container { display: block; }
  .global-cta .button { margin-top: 2rem; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 30px, 1240px); }
  .display-title { font-size: clamp(3.75rem,17.2vw,5.4rem); }
  .hero-question { font-size: 1.25rem; }
  .hero-visual { min-height: 285px; }
  .ticker-track { animation-duration: 35s; }
  .editorial { padding: 4.5rem 0; }
  .insight-cards, .gap-grid, .form-grid { grid-template-columns: 1fr; }
  .gap-card { min-height: 300px; }
  .cycle-panel { min-height: 480px; }
  .vision-cycle { width: min(84vw,370px); }
  .cycle-node { width: 105px; font-size: .64rem; }
  .cycle-node--a { left: -8%; }
  .cycle-node--b { right: -8%; }
  .likert { grid-template-columns: 1fr; }
  .likert-option { min-height: 0; grid-template-columns: 2.2rem 1fr; align-items: center; }
  .likert-number { grid-row: span 1; }
  .likert-label { max-width: none; }
  .diagnostic-controls { align-items: flex-start; flex-direction: column-reverse; }
  .footer-inner { display: flex; align-items: flex-start; flex-direction: column; }
  .footer-inner > span:last-child { justify-self: auto; }
  .author-credit { text-align: left; }
  .bottom-nav { bottom: .7rem; width: calc(100vw - 24px); justify-content: space-around; padding: .32rem; }
  .bottom-nav::before { display: none; }
  .bottom-nav a { padding: .5rem .42rem; font-size: .57rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
