:root {
    --bg: #03070d;
    --bg-soft: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f5f8ff;
    --muted: rgba(255, 255, 255, 0.72);
    --subtle: rgba(255, 255, 255, 0.45);
    --cyan: #00f3ff;
    --cyan-soft: rgba(0, 243, 255, 0.08);
    --orange: #ff5b1f;
    --orange-soft: rgba(255, 91, 31, 0.08);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --font-heading: "Outfit", sans-serif;
    --font-mono: "Space Mono", monospace;
    --font-body: "Noto Sans SC", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 243, 255, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 91, 31, 0.14), transparent 34%),
        linear-gradient(180deg, #02050a 0%, #03070d 35%, #040810 100%);
    color: var(--text);
    font-family: var(--font-body);
    overflow: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.22;
    animation: driftGrid 18s linear infinite;
}

body::after {
    background-image: radial-gradient(circle, rgba(255, 91, 31, 0.18) 1.4px, transparent 1.5px);
    background-size: 34px 34px;
    opacity: 0.1;
    transform: translateX(38%);
    animation: driftDots 24s linear infinite;
}

a {
    color: inherit;
    text-decoration: none;
}

.deck-shell {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    height: 100vh;
    padding: 20px;
}

.deck-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 14px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.brand-mark {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-mark-top,
.rail-label,
.slide-link,
.eyebrow,
.panel-kicker,
.section-kicker,
.mini-label,
.statement-label,
.cluster-tag,
.metric-label,
.slide-index {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-mark-top,
.rail-label,
.panel-kicker,
.section-kicker,
.mini-label,
.statement-label,
.cluster-tag,
.metric-label {
    font-size: 11px;
    color: var(--subtle);
}

.brand-mark strong {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1;
}

.slide-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.slide-link {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--subtle);
    font-size: 12px;
    transition: 0.25s ease;
}

.slide-link:hover,
.slide-link.active {
    color: var(--text);
    border-color: rgba(0, 243, 255, 0.24);
    box-shadow: 0 0 22px rgba(0, 243, 255, 0.18);
    background: rgba(0, 243, 255, 0.1);
}

.rail-progress {
    position: relative;
    width: 8px;
    height: 180px;
    margin: 18px auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.rail-progress-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 11.11%;
    border-radius: inherit;
    background: linear-gradient(180deg, var(--orange), var(--cyan));
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.28);
    transition: height 0.35s ease;
}

.rail-foot strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
}

.rail-foot p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.slides {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    border-radius: 34px;
}

.slide {
    position: relative;
    min-height: 100vh;
    scroll-snap-align: start;
    padding: 22px 22px 100px;
}

.slide-frame {
    position: relative;
    min-height: calc(100vh - 44px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(4, 10, 18, 0.72), rgba(3, 7, 13, 0.9));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.slide-frame::after {
    content: "";
    position: absolute;
    inset: -30% auto auto -20%;
    width: 40%;
    height: 160%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: rotate(12deg) translateX(-180%);
    animation: sweep 13s ease-in-out infinite;
    pointer-events: none;
}

.cover-slide .slide-frame {
    background: linear-gradient(180deg, rgba(4, 10, 18, 0.76), rgba(2, 6, 12, 0.94));
}

.slide-backdrop {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 54%;
    pointer-events: none;
    opacity: 0.72;
}

.slide-backdrop-left {
    left: 0;
    background:
        linear-gradient(rgba(0, 243, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.08) 1px, transparent 1px);
    background-size: 52px 52px;
}

.slide-backdrop-right {
    right: 0;
    background-image: radial-gradient(circle, rgba(255, 91, 31, 0.28) 1.8px, transparent 2px);
    background-size: 28px 28px;
}

.eyebrow-row,
.cover-layout,
.slide-head,
.two-column-grid,
.cluster-grid,
.workflow-stack,
.layer-stack,
.fit-layout,
.closing-layout,
.bottom-quote,
.stats-layout,
.research-strip {
    position: relative;
    z-index: 1;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.slide.is-visible [data-reveal].is-visible,
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.eyebrow-row {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 243, 255, 0.24);
    background: rgba(0, 243, 255, 0.08);
    font-size: 12px;
    color: var(--cyan);
}

.eyebrow.ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.cover-layout,
.two-column-grid,
.closing-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
}

.lower-layout {
    margin-top: 20px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-soft);
    backdrop-filter: blur(18px);
}

.cyan-panel {
    background: linear-gradient(180deg, rgba(0, 243, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.orange-panel {
    background: linear-gradient(180deg, rgba(255, 91, 31, 0.08), rgba(255, 255, 255, 0.03));
}

.cover-main,
.cover-side,
.big-panel,
.value-panel,
.fit-panel,
.final-panel,
.path-timeline,
.cluster-panel,
.workflow-panel,
.layer-panel,
.quote-panel,
.insight-card,
.sources-panel,
.research-strip {
    padding: 24px;
}

h1,
h2,
h3,
strong {
    font-family: var(--font-heading);
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(48px, 7vw, 84px);
    line-height: 0.94;
    letter-spacing: -0.05em;
}

h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h3 {
    margin: 0;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
}

p {
    margin: 0;
}

.lead {
    font-size: 20px;
    line-height: 1.85;
    color: var(--muted);
    max-width: 720px;
}

.lead span {
    display: inline-block;
    margin-right: 10px;
    color: var(--text);
}

.chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 24px;
}

.chip {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.statement-box {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.statement-box strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.5;
}

.strong-box strong {
    font-size: 28px;
}

.subtle-box {
    margin-top: 18px;
}

.metric-grid,
.stats-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.metric-grid {
    margin: 16px 0 18px;
}

.metric-card,
.insight-card {
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card {
    padding: 18px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-card:nth-child(odd) .metric-value {
    color: var(--cyan);
}

.metric-card:nth-child(even) .metric-value {
    color: var(--orange);
}

.signal-list {
    display: grid;
    gap: 10px;
}

.signal-row {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-row strong {
    font-size: 18px;
    line-height: 1.45;
}

.slide-head {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}

.slide-index {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--cyan);
    font-size: 15px;
}

.slide:nth-child(even) .slide-index {
    color: var(--orange);
}

.insight-card {
    padding: 22px;
}

.insight-card h3 {
    margin-top: 10px;
    font-size: 26px;
    line-height: 1.35;
}

.insight-card p,
.research-strip p,
.workflow-panel p,
.layer-panel p,
.timeline-item p,
.fit-panel p,
.final-panel p,
.value-list p,
.cluster-items p,
.sources-note,
.signal-row span {
    color: var(--muted);
    line-height: 1.75;
    font-size: 17px;
}

.research-strip {
    margin-top: 16px;
}

.research-strip p {
    margin-top: 8px;
    font-size: 20px;
}

.big-panel,
.value-panel,
.fit-panel,
.final-panel,
.path-timeline {
    min-height: 100%;
}

.bullet-list {
    margin: 18px 0 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.9;
    font-size: 17px;
}

.bullet-list li + li {
    margin-top: 4px;
}

.emphasis-list li::marker {
    color: var(--orange);
}

.quote-panel {
    margin-top: 20px;
}

.quote-panel p {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.65;
}

.cluster-grid,
.fit-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cluster-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cluster-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.cluster-items,
.workflow-stack,
.layer-stack,
.value-list,
.final-points,
.source-list {
    display: grid;
    gap: 12px;
}

.cluster-items div,
.value-list div,
.final-points span,
.source-list a {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cluster-items strong,
.value-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.workflow-panel,
.layer-panel {
    display: grid;
    align-items: center;
}

.flow-title,
.layer-panel,
.timeline-item {
    grid-template-columns: 80px 1fr;
    gap: 16px;
}

.flow-title {
    display: grid;
    align-items: center;
    margin-bottom: 8px;
}

.flow-title span,
.layer-panel span,
.timeline-item span {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    color: var(--cyan);
}

.workflow-panel:nth-child(even) .flow-title span,
.layer-panel:nth-child(even) span,
.timeline-item:nth-child(even) span {
    color: var(--orange);
}

.split-points {
    display: grid;
    gap: 18px;
}

.split-points h3 {
    margin-bottom: 4px;
}

.fit-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wide-panel {
    grid-column: 1 / -1;
}

.fit-panel {
    display: grid;
    gap: 10px;
    align-content: start;
}

.path-timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    display: grid;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item:first-child {
    border-top: none;
    padding-top: 0;
}

.timeline-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.final-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sources-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.source-list {
    margin-top: 14px;
}

.source-list a {
    transition: 0.25s ease;
}

.source-list a:hover {
    border-color: rgba(0, 243, 255, 0.24);
    color: var(--text);
    transform: translateX(4px);
}

.sources-note {
    margin-top: 16px;
}

.system-bar {
    position: fixed;
    left: 200px;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    pointer-events: none;
}

.system-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

.system-pill.ghost {
    color: var(--subtle);
}

.system-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.7);
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes driftGrid {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(46px, 46px, 0); }
}

@keyframes driftDots {
    from { transform: translate3d(38%, 0, 0); }
    to { transform: translate3d(40%, 34px, 0); }
}

@keyframes sweep {
    0% { transform: rotate(12deg) translateX(-180%); opacity: 0; }
    20% { opacity: 0.4; }
    45% { opacity: 0.12; }
    100% { transform: rotate(12deg) translateX(360%); opacity: 0; }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

@media (max-width: 1180px) {
    body {
        overflow: auto;
    }

    .deck-shell {
        grid-template-columns: 1fr;
        height: auto;
        padding: 14px;
    }

    .deck-rail {
        position: sticky;
        top: 14px;
        z-index: 30;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 16px;
        align-items: center;
    }

    .slide-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .rail-progress {
        display: none;
    }

    .rail-foot {
        grid-column: 1 / -1;
    }

    .slides {
        height: auto;
        overflow: visible;
        scroll-snap-type: none;
    }

    .slide {
        min-height: auto;
        padding: 14px 0 0;
    }

    .slide-frame {
        min-height: auto;
    }

    .cover-layout,
    .two-column-grid,
    .closing-layout,
    .cluster-grid,
    .fit-layout,
    .stats-layout,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .system-bar {
        left: 14px;
        right: 14px;
    }
}

@media (max-width: 720px) {
    .slide-frame,
    .cover-main,
    .cover-side,
    .big-panel,
    .value-panel,
    .fit-panel,
    .final-panel,
    .path-timeline,
    .cluster-panel,
    .workflow-panel,
    .layer-panel,
    .quote-panel,
    .insight-card,
    .sources-panel,
    .research-strip {
        padding: 18px;
    }

    .slide-head,
    .flow-title,
    .layer-panel,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .slide-index,
    .flow-title span,
    .layer-panel span,
    .timeline-item span {
        width: 56px;
        height: 56px;
    }

    .lead,
    .research-strip p,
    .insight-card p,
    .workflow-panel p,
    .layer-panel p,
    .timeline-item p,
    .fit-panel p,
    .final-panel p,
    .value-list p,
    .cluster-items p,
    .sources-note,
    .bullet-list {
        font-size: 16px;
    }

    .insight-card h3,
    .timeline-item strong,
    .statement-box strong {
        font-size: 20px;
    }

    .strong-box strong,
    .quote-panel p {
        font-size: 24px;
    }
}
