:root {
    /* Compliance vocabulary from DESIGN.md: Mono" (Google Interaction Interaction* Interaction:** Patterns* Patterns:** Intersection Observer When section's headline enters (threshold: triggering reveals mousemove handler. libraries. scroll-hijacking. continuous animations should `transform` `stroke-dashoffset` only (GPU-composited properties each becomes */
    --void: #0a081c;
    --sky: #e8f0ff;
    --frost: #c0c8d8;
    --frost-blue: #b8c6db;
    --magenta: #ff006e;
    --cyan: #00f5d4;
    --display: 'Cormorant Garamond', serif;
    --mono: 'IBM Plex Mono', monospace;
    --body: 'Inter', sans-serif;
    --sidebar: 280px;
    --gutter: clamp(1.5rem, 5vw, 5.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--void);
    color: var(--frost);
    font-family: var(--body);
    line-height: 1.65;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(0, 245, 212, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 110, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 72% 12%, rgba(0, 245, 212, 0.12), transparent 30rem),
        radial-gradient(circle at 18% 78%, rgba(255, 0, 110, 0.13), transparent 26rem);
    background-size: 58px 58px, 58px 58px, auto, auto;
    z-index: 0;
}

.ambient { position: fixed; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(70px); opacity: .26; pointer-events: none; z-index: 1; }
.ambient-cyan { background: var(--cyan); top: 8%; right: 5%; animation: drift 11s ease-in-out infinite; }
.ambient-magenta { background: var(--magenta); bottom: 4%; left: 17%; animation: drift 13s ease-in-out infinite reverse; }
.scanline-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: .16; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(232, 240, 255, .16) 4px); mix-blend-mode: screen; }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-2rem,1.5rem,0) scale(1.12); } }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    padding: 2.7rem 1.45rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(10, 8, 28, .72), rgba(10, 8, 28, .92));
    border-right: 1px solid rgba(192, 200, 216, .12);
    box-shadow: inset -1px 0 rgba(0, 245, 212, .12), 0 0 50px rgba(0, 245, 212, .05);
    backdrop-filter: blur(18px) saturate(160%);
}
.sidebar-header { text-align: center; margin-bottom: 3rem; }
.logo-mark { font-family: var(--display); font-size: 3rem; font-weight: 600; line-height: .9; letter-spacing: -.04em; color: var(--cyan); text-shadow: 0 0 16px rgba(0, 245, 212, .55), 0 0 46px rgba(0, 245, 212, .18); }
.logo-subtitle { margin-top: .6rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); text-shadow: 0 0 12px rgba(255, 0, 110, .42); }
.sidebar-nav { position: relative; flex: 1; display: grid; place-items: center; }
.nav-line { position: absolute; left: 50%; top: 1.2rem; bottom: 1.2rem; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--cyan), rgba(192,200,216,.12), var(--magenta)); box-shadow: 0 0 16px rgba(0, 245, 212, .3); overflow: hidden; }
.nav-line-fill { display: block; width: 100%; height: 0%; background: linear-gradient(var(--sky), var(--cyan), var(--magenta)); box-shadow: 0 0 18px var(--cyan); }
.nav-dots { list-style: none; width: 100%; display: flex; flex-direction: column; gap: clamp(2rem, 6vh, 3.3rem); }
.nav-dot { position: relative; display: grid; place-items: center; cursor: pointer; min-height: 1.4rem; }
.nav-dot::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: rgba(184,198,219,.22); border: 2px solid rgba(192,200,216,.8); box-shadow: 0 0 0 rgba(0,245,212,0); transition: .35s cubic-bezier(.34,1.56,.64,1); }
.nav-dot.active::before, .nav-dot:hover::before { width: 18px; height: 18px; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 8px rgba(0,245,212,.4), 0 0 24px rgba(0,245,212,.15), 0 0 64px rgba(0,245,212,.05); }
.dot-label { position: absolute; left: 2.35rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--frost); opacity: 0; white-space: nowrap; transition: .25s ease; }
.nav-dot:hover .dot-label, .nav-dot.active .dot-label { opacity: 1; color: var(--cyan); }
.waveform-visualizer { margin-top: 2rem; }
.wave-label { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(232,240,255,.55); text-align: center; }
.wave { width: 100%; height: 54px; margin-top: .55rem; filter: drop-shadow(0 0 10px rgba(0,245,212,.45)); }
.wave path { fill: none; stroke-linecap: round; }
.wave-back { stroke: rgba(255,0,110,.4); stroke-width: 2; }
.wave-front { stroke: rgba(0,245,212,.82); stroke-width: 2.4; }

.content { position: relative; z-index: 5; margin-left: var(--sidebar); }
.section { min-height: 100vh; position: relative; overflow: hidden; padding: 7.5rem var(--gutter); display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid rgba(0,245,212,.08); }
.section::before { content: ''; position: absolute; inset: 8% 3% auto auto; width: 22rem; height: 22rem; border: 1px solid rgba(0,245,212,.12); border-radius: 50%; transform: rotateX(65deg); box-shadow: inset 0 0 44px rgba(0,245,212,.05), 0 0 42px rgba(0,245,212,.04); }
.section-chrome { position: absolute; inset: 2rem 2rem auto auto; width: 11rem; height: 3rem; border-top: 1px solid rgba(232,240,255,.22); border-right: 1px solid rgba(232,240,255,.15); }
.section-header { position: relative; max-width: 980px; margin-bottom: 3.2rem; }
.chapter-kicker, .section-subtitle, .panel-header, .activity-readout, .signal-tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.chapter-kicker { color: var(--magenta); font-size: .74rem; margin-bottom: .7rem; text-shadow: 0 0 12px rgba(255,0,110,.35); }
h1, h2 { font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 5.5vw, 4.8rem); line-height: 1.08; letter-spacing: -.02em; color: var(--sky); text-shadow: -1px 0 rgba(255,0,110,.35), 1px 0 rgba(0,245,212,.3), 0 0 28px rgba(0,245,212,.12); animation: glitch-enter .85s cubic-bezier(.34,1.56,.64,1) both; }
.section-subtitle { max-width: 760px; margin-top: 1rem; color: var(--frost-blue); font-size: .86rem; opacity: .86; animation: glitch-enter .85s .16s both; }
@keyframes glitch-enter { 0% { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100% 0); filter: hue-rotate(60deg); } 42% { opacity: .75; transform: translateY(-2px); clip-path: inset(0 0 34% 0); text-shadow: -4px 0 var(--magenta), 4px 0 var(--cyan); } 100% { opacity: 1; transform: translateY(0); clip-path: inset(0); filter: none; } }
.glass-panel, .metric-card, .analysis-card { position: relative; background: linear-gradient(135deg, rgba(232,240,255,.07), rgba(0,245,212,.025)); border: 1px solid rgba(192,200,216,.15); border-radius: 8px; box-shadow: inset 0 1px rgba(232,240,255,.12), 0 18px 70px rgba(0,0,0,.22); backdrop-filter: blur(15px) saturate(150%); }
.glass-panel::before, .metric-card::before, .analysis-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 0 18%, rgba(232,240,255,.16) 32%, transparent 44%); transform: translateX(-110%); transition: transform .65s ease; pointer-events: none; }
.glass-panel:hover::before, .metric-card:hover::before, .analysis-card:hover::before { transform: translateX(110%); }
.tilt-card { transform-style: preserve-3d; transition: transform .2s ease, border-color .35s ease, box-shadow .35s ease; }
.tilt-card:hover { border-color: rgba(0,245,212,.45); box-shadow: 0 0 8px rgba(0,245,212,.4), 0 0 24px rgba(0,245,212,.15), 0 0 64px rgba(0,245,212,.05), inset 0 0 24px rgba(0,245,212,.05); }
.intro-content { max-width: 930px; padding: clamp(1.5rem, 4vw, 2.8rem); animation: glitch-enter .85s .25s both; }
.intro-content > p { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--sky); margin-bottom: 2.4rem; }
.signal-card { border-left: 2px solid var(--cyan); padding-left: 1.3rem; }
.signal-tag { display: inline-block; color: var(--cyan); font-size: .68rem; margin-bottom: .65rem; }
h3, h4 { font-family: var(--display); font-weight: 600; }
.signal-card h3, .conclusion-panel h3 { color: var(--cyan); font-size: 1.9rem; text-shadow: 0 0 14px rgba(0,245,212,.3); }
.signal-card p, .conclusion-panel p, .analysis-card p, .insight-text p { color: var(--frost-blue); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; margin-bottom: 2rem; }
.metric-card { min-height: 190px; padding: 1.7rem 1.25rem; display: grid; align-content: center; text-align: center; overflow: hidden; animation: glitch-enter .8s both; }
.metric-card:nth-child(2) { animation-delay: .08s; } .metric-card:nth-child(3) { animation-delay: .16s; } .metric-card:nth-child(4) { animation-delay: .24s; }
.metric-value { display: block; font-family: var(--mono); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--cyan); text-shadow: 0 0 20px rgba(0,245,212,.5); }
.metric-label { font-family: var(--mono); color: var(--frost-blue); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.metric-spark { position: absolute; top: 1rem; right: 1rem; width: 5px; height: 5px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 14px var(--magenta); animation: spark 1.8s ease-in-out infinite; }
@keyframes spark { 0%,100% { opacity: .18; transform: scale(.55); } 50% { opacity: 1; transform: scale(1.25); } }
.data-panel, .analysis-panel, .conclusion-panel, .action-items { padding: clamp(1.5rem, 3vw, 2.5rem); overflow: hidden; }
.panel-header { color: var(--cyan); font-size: .78rem; margin-bottom: 1.2rem; }
.activity-track, .confidence-bar { height: 7px; background: rgba(0,245,212,.09); border-radius: 99px; overflow: hidden; }
.activity-fill, .confidence-bar span { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--magenta)); box-shadow: 0 0 18px rgba(0,245,212,.45); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.activity-readout { margin-top: 1rem; display: flex; justify-content: space-between; color: var(--frost-blue); font-size: .72rem; }
.analysis-content, .conclusions-content { max-width: 980px; }
.analysis-panel { margin-bottom: 1.4rem; }
.panel-title { font-family: var(--display); font-size: 1.75rem; color: var(--sky); margin-bottom: 1.4rem; }
.chart-field { height: 260px; background: rgba(10,8,28,.45); border: 1px solid rgba(0,245,212,.12); border-radius: 6px; overflow: hidden; }
.trend-chart { width: 100%; height: 100%; }
.chart-grid { stroke: rgba(184,198,219,.12); stroke-width: 1; }
.trend-line { fill: none; stroke: url(#chartGradient); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(0,245,212,.5)); stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 1.4s ease; }
.trend-fill { fill: rgba(0,245,212,.06); opacity: 0; transition: opacity 1s .35s ease; }
.section.animated .trend-line { stroke-dashoffset: 0; }
.section.animated .trend-fill { opacity: 1; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.analysis-card { padding: 1.65rem; border-color: rgba(255,0,110,.18); overflow: hidden; }
.analysis-card:hover { border-color: rgba(255,0,110,.55); box-shadow: 0 0 20px rgba(255,0,110,.22); }
.analysis-card h4, .action-items h3 { color: var(--magenta); font-size: 1.45rem; text-shadow: 0 0 12px rgba(255,0,110,.25); margin-bottom: .65rem; }
.anomaly-indicator { display: inline-block; margin-top: 1rem; padding: .4rem .75rem; font-family: var(--mono); color: var(--magenta); border: 1px solid rgba(255,0,110,.38); background: rgba(255,0,110,.08); box-shadow: 0 0 14px rgba(255,0,110,.14); }
.insights-content { max-width: 900px; padding: clamp(1.3rem, 3vw, 2.4rem); }
.insight-item { display: grid; grid-template-columns: 72px 1fr; gap: 1.2rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(0,245,212,.09); animation: glitch-enter .85s both; }
.insight-item:last-child { border-bottom: 0; }
.insight-number { font-family: var(--mono); font-size: 2.3rem; color: var(--cyan); text-shadow: 0 0 20px rgba(0,245,212,.4); }
.insight-text h4 { color: var(--sky); font-size: 1.48rem; margin-bottom: .35rem; }
.conclusion-panel { margin-bottom: 1.3rem; }
.action-items { border-color: rgba(255,0,110,.18); background: linear-gradient(135deg, rgba(255,0,110,.055), rgba(232,240,255,.035)); }
.action-items ul { list-style: none; display: grid; gap: .9rem; }
.action-items li { display: flex; gap: 1rem; align-items: center; color: var(--frost-blue); }
.action-items li span { flex: 0 0 auto; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--void); background: var(--magenta); padding: .32rem .6rem; border-radius: 2px; }
.cta-container { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.cta-button { position: relative; overflow: hidden; border: 2px solid var(--cyan); background: transparent; color: var(--cyan); padding: 1rem 1.6rem; border-radius: 6px; font-family: var(--mono); font-weight: 600; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 14px rgba(0,245,212,.22); transition: .3s cubic-bezier(.34,1.56,.64,1); }
.cta-button::before { content: ''; position: absolute; inset: 0; background: var(--cyan); opacity: 0; z-index: -1; transition: opacity .25s ease; }
.cta-button:hover, .cta-button.is-working { color: var(--void); transform: translateY(-3px); box-shadow: 0 0 28px rgba(0,245,212,.42); }
.cta-button:hover::before, .cta-button.is-working::before { opacity: 1; }
.cta-button.secondary { border-color: var(--magenta); color: var(--magenta); box-shadow: 0 0 14px rgba(255,0,110,.22); }
.cta-button.secondary::before { background: var(--magenta); }
.cta-button.secondary:hover, .cta-button.secondary.is-working { color: var(--void); box-shadow: 0 0 28px rgba(255,0,110,.42); }
.scroll-indicator { position: fixed; right: 2rem; bottom: 2rem; z-index: 950; display: grid; gap: .75rem; justify-items: center; pointer-events: none; }
.scroll-indicator span { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(184,198,219,.72); writing-mode: vertical-rl; }
.indicator-bar { width: 4px; height: 84px; border-radius: 99px; overflow: hidden; background: rgba(0,245,212,.13); }
.indicator-bar .progress { display: block; width: 100%; height: 0%; background: linear-gradient(var(--cyan), var(--magenta)); box-shadow: 0 0 12px var(--cyan); }

@media (max-width: 980px) {
    :root { --sidebar: 0px; }
    .sidebar { right: 0; bottom: auto; width: auto; height: 82px; padding: .8rem 1rem; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid rgba(0,245,212,.13); }
    .sidebar-header { margin: 0; text-align: left; }
    .logo-mark { font-size: 1.8rem; }
    .logo-subtitle { font-size: .55rem; margin-top: .25rem; }
    .sidebar-nav { flex: 0 1 auto; display: block; }
    .nav-line, .dot-label, .waveform-visualizer { display: none; }
    .nav-dots { flex-direction: row; gap: 1rem; }
    .content { margin-left: 0; padding-top: 82px; }
    .section { min-height: auto; padding: 5rem 1.3rem; }
    .metrics-grid, .analysis-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .metrics-grid, .analysis-grid { grid-template-columns: 1fr; }
    .activity-readout, .action-items li { align-items: flex-start; flex-direction: column; gap: .45rem; }
    .insight-item { grid-template-columns: 1fr; }
    .scroll-indicator { display: none; }
}
