/* ===================================
   AI for Game Developers 2025
   Presentation Design — Light Mode

   Design Philosophy:
   - Warm off-white, not blinding
   - Typography as primary differentiator
   - Minimal color, maximum clarity
   - Optimized for projector display
   =================================== */

/* ===============
   Design Tokens
   =============== */

:root {
    /*
     * Light Mode Palette
     * Warm off-whites to avoid harsh glare
     * Charcoal text for softer contrast than pure black
     */
    --bg-base: #f8f8f7;        /* Warm paper white */
    --bg-surface: #ffffff;      /* Cards, elevated elements */
    --bg-muted: #f0f0ef;        /* Subtle backgrounds */
    --bg-code: #eeeeed;         /* Code blocks */

    --text-primary: #1a1a1a;    /* Near-black, easier on eyes than #000 */
    --text-secondary: #555555;  /* Medium gray for supporting text */
    --text-tertiary: #888888;   /* Light gray for meta/captions */

    /*
     * Minimal accent — used sparingly
     * Deep blue that reads well on light backgrounds
     */
    --accent: #1a56db;
    --accent-light: rgba(26, 86, 219, 0.08);
    --accent-medium: rgba(26, 86, 219, 0.15);

    /* Semantic colors — very sparing use */
    --positive: #047857;        /* Forest green */
    --negative: #b91c1c;        /* Deep red */
    --neutral: #6b7280;         /* Gray */

    /* Borders & Shadows */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);

    /* Spacing — tighter for slide fit */
    --s1: 0.35rem;
    --s2: 0.7rem;
    --s3: 1rem;
    --s4: 1.5rem;
    --s5: 2rem;
    --s6: 2.5rem;
    --s7: 3rem;
    --s8: 4rem;

    /* Typography Scale — aggressive scaling for fit
       Using min of vw and vh to respect both dimensions */
    --text-mega: clamp(2.5rem, min(6vw, 8vh), 4.5rem);
    --text-huge: clamp(2rem, min(5vw, 6vh), 3.5rem);
    --text-large: clamp(1.5rem, min(3.5vw, 4.5vh), 2.5rem);
    --text-title: clamp(1.2rem, min(2.5vw, 3.5vh), 2rem);
    --text-body: clamp(1rem, min(2vw, 2.5vh), 1.5rem);
    --text-small: clamp(0.85rem, min(1.5vw, 2vh), 1.25rem);
    --text-tiny: clamp(0.75rem, min(1.2vw, 1.5vh), 1rem);

    /* Line Heights — tighter */
    --lh-tight: 1.1;
    --lh-snug: 1.2;
    --lh-normal: 1.4;
    --lh-relaxed: 1.5;

    /* Fonts */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

/* ===============
   Reset & Base
   =============== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* ===============
   Presentation Layout
   =============== */

.presentation {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: var(--s4) var(--s5);
    background: var(--bg-base);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Dark slide variant - inverted colors */
.slide.slide-dark {
    background: #1a1a1a;
}

.slide.slide-dark .section-title,
.slide.slide-dark .section-subtitle,
.slide.slide-dark h1,
.slide.slide-dark h2,
.slide.slide-dark p {
    color: #f8f8f7;
}

.slide.slide-dark .section-subtitle {
    color: #aaaaaa;
}

.slide-content {
    width: 100%;
    max-width: 1200px;
    max-height: calc(100vh - var(--s5) * 2);
    overflow: hidden; /* No scrolling - content must fit */
}

/* Slide details - hidden by default, shown in detail mode */
.slide-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    background: var(--bg-surface);
    border-top: 2px solid var(--border-medium);
    border-radius: 0 0 8px 8px;
    padding: 0 var(--s4);
    margin-top: 0;
}

/* ===============
   Typography
   =============== */

.title-large {
    font-size: var(--text-mega);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.035em;
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-huge);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.025em;
    margin-bottom: var(--s4);
}

h2 {
    font-size: var(--text-large);
    font-weight: 600;
    line-height: var(--lh-snug);
    letter-spacing: -0.015em;
    margin-bottom: var(--s3);
}

h2.emphasis {
    font-weight: 700;
}

h3 {
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--lh-snug);
    margin-bottom: var(--s2);
}

p, li {
    font-size: var(--text-body);
    line-height: var(--lh-relaxed);
}

.lead {
    font-size: var(--text-title);
    font-weight: 500;
    line-height: var(--lh-normal);
    margin-bottom: var(--s4);
}

.subtitle {
    font-size: var(--text-title);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--s5);
}

.meta {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-top: var(--s4);
}

.meta p {
    font-size: var(--text-small);
    color: var(--text-tertiary);
}

/* Text emphasis — typography-driven, not color */
em {
    font-style: normal;
    font-weight: 600;
}

strong {
    font-weight: 700;
}

/* Links — subtle accent */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============
   Lists
   =============== */

.big-list {
    list-style: none;
    margin: var(--s2) 0;
    display: grid;
    gap: var(--s2);
}

.big-list li {
    padding-left: var(--s3);
    position: relative;
    font-size: var(--text-body);
}

.big-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: var(--text-tertiary);
    border-radius: 50%;
}

.big-list ul {
    margin-top: var(--s1);
    margin-left: var(--s2);
    display: grid;
    gap: var(--s1);
    list-style: disc;
    list-style-position: outside;
    padding-left: 1em;
}

.big-list ul li {
    font-size: var(--text-small);
    color: var(--text-secondary);
    padding-left: 0;
}

.big-list ul li::before {
    display: none;
}

.compact-list {
    list-style: none;
    margin: var(--s1) 0;
    display: grid;
    gap: var(--s1);
}

.compact-list li {
    padding-left: var(--s2);
    position: relative;
    font-size: var(--text-small);
    color: var(--text-secondary);
}

.compact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background: var(--text-tertiary);
    border-radius: 50%;
}

/* ===============
   Constraint Diagram
   =============== */

.constraint-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    margin: var(--s3) 0;
}

.constraint-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3);
    background: var(--bg-muted);
    border-radius: 8px;
}

.constraint-input {
    background: var(--bg-surface);
    padding: var(--s1) var(--s2);
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

.input-label {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--text-secondary);
}

.constraint-arrow {
    font-size: var(--text-title);
    color: var(--text-tertiary);
}

.solution-space {
    width: 120px;
    height: 80px;
    position: relative;
    border: 1px dashed var(--border-subtle);
    border-radius: 4px;
}

.solution-space .dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Chaotic - scattered dots */
.solution-space.chaotic .dot:nth-child(1) { top: 10%; left: 15%; }
.solution-space.chaotic .dot:nth-child(2) { top: 70%; left: 80%; }
.solution-space.chaotic .dot:nth-child(3) { top: 25%; left: 65%; }
.solution-space.chaotic .dot:nth-child(4) { top: 80%; left: 20%; }
.solution-space.chaotic .dot:nth-child(5) { top: 45%; left: 45%; }
.solution-space.chaotic .dot:nth-child(6) { top: 15%; left: 85%; }
.solution-space.chaotic .dot:nth-child(7) { top: 60%; left: 10%; }
.solution-space.chaotic .dot:nth-child(8) { top: 35%; left: 30%; }
.solution-space.chaotic .dot:nth-child(9) { top: 85%; left: 55%; }

/* Focused - clustered dots */
.solution-space.focused .dot:nth-child(1) { top: 40%; left: 42%; }
.solution-space.focused .dot:nth-child(2) { top: 48%; left: 52%; }
.solution-space.focused .dot:nth-child(3) { top: 52%; left: 46%; }

.constraint-label {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin: 0;
}

/* ===============
   File Tree & Two-Layer System
   =============== */

.file-tree-demo {
    align-items: start;
}

.file-tree {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: var(--s2);
}

.file-tree pre {
    margin: 0;
    font-size: var(--text-small);
    line-height: 1.4;
}

.file-tree code {
    color: var(--text-secondary);
}

.two-layer-system {
    display: flex;
    align-items: stretch;
    gap: var(--s2);
    margin: var(--s2) 0;
}

.layer {
    flex: 1;
    background: var(--bg-muted);
    padding: var(--s2) var(--s3);
    border-radius: 8px;
    text-align: center;
}

.layer h3 {
    font-size: var(--text-body);
    margin-bottom: var(--s1);
    color: var(--text-primary);
}

.layer > p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--s1);
}

.layer .compact-list {
    text-align: left;
}

.layer-divider {
    display: flex;
    align-items: center;
    font-size: var(--text-title);
    color: var(--text-tertiary);
    font-weight: 600;
}

/* ===============
   Flow Chart
   =============== */

.flow-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s1);
    margin: var(--s2) 0;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: var(--s2);
    width: 100%;
    max-width: 500px;
}

.flow-box {
    flex: 0 0 200px;
    padding: var(--s1) var(--s2);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: var(--text-small);
    text-align: center;
}

.flow-box.user-action {
    background: var(--bg-surface);
    border: 2px solid var(--accent);
    color: var(--text-primary);
}

.flow-box.claude-action {
    background: var(--bg-muted);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.flow-box.git-action {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
}

.flow-box.skill-action {
    background: var(--bg-muted);
    border: 1px dashed var(--border-medium);
    color: var(--text-secondary);
}

.flow-annotation {
    flex: 1;
    font-size: var(--text-small);
    color: var(--text-tertiary);
}

.flow-arrow {
    font-size: var(--text-body);
    color: var(--text-tertiary);
}

/* ===============
   Conversation Flow
   =============== */

.convo-flow {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    margin: var(--s2) 0;
    max-width: 700px;
}

.convo-block {
    border-radius: 8px;
    overflow: hidden;
}

.convo-block.convo-user {
    border-left: 3px solid var(--accent);
    background: var(--bg-surface);
}

.convo-block.convo-ai {
    border-left: 3px solid var(--text-tertiary);
    background: var(--bg-muted);
}

.convo-main {
    padding: var(--s2) var(--s3);
}

.convo-speaker {
    display: block;
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--s1);
}

.convo-main p {
    margin: 0;
    font-size: var(--text-body);
    color: var(--text-primary);
}

.convo-user .convo-main p {
    font-family: var(--font-mono);
}

.convo-note {
    padding: var(--s1) var(--s3);
    background: rgba(0, 0, 0, 0.15);
    font-size: var(--text-small);
    color: var(--text-tertiary);
    border-top: 1px solid var(--border-subtle);
}

/* Term tooltips */
.term {
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px dotted var(--text-tertiary);
    cursor: help;
    position: relative;
}

.term:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.term::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: var(--s2);
    border-radius: 6px;
    font-size: var(--text-small);
    font-weight: 400;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-medium);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
    margin-bottom: var(--s1);
    line-height: 1.4;
}

.term:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===============
   Callouts & Highlights
   =============== */

.callout {
    background: var(--bg-muted);
    border-left: 3px solid var(--text-primary);
    padding: var(--s2) var(--s3);
    margin: var(--s3) 0;
    font-size: var(--text-body);
    font-weight: 500;
}

.insight {
    font-size: var(--text-title);
    font-weight: 600;
    margin: var(--s4) 0;
}

.question {
    font-size: var(--text-title);
    font-weight: 600;
    text-align: center;
    margin-top: var(--s5);
    padding: var(--s4);
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
}

.result {
    font-weight: 600;
    color: var(--positive);
}

.source {
    font-size: var(--text-tiny);
    color: var(--text-tertiary);
    margin-top: var(--s3);
    font-style: italic;
}

/* ===============
   Statistics
   =============== */

.stat-highlight {
    text-align: center;
    margin: var(--s3) 0;
    padding: var(--s3);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: var(--text-huge);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
    margin-bottom: var(--s1);
}

.stat-label {
    font-size: var(--text-body);
    color: var(--text-secondary);
}

.stat-large {
    font-size: var(--text-huge);
    font-weight: 800;
    text-align: center;
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
}

/* ===============
   Title Slide
   =============== */

[data-slide="1"] .slide-content {
    text-align: center;
}

/* ===============
   Agenda
   =============== */

.agenda {
    display: grid;
    gap: var(--s1);
    margin-top: var(--s2);
}

.agenda-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s2);
    align-items: center;
    padding: var(--s2);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agenda-item:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.agenda-item .number {
    font-size: var(--text-title);
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    min-width: 2rem;
}

.agenda-item .text {
    font-size: var(--text-body);
}

/* ===============
   Section Title Slides
   =============== */

.section-title {
    font-size: var(--text-mega);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-large);
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--s2);
}

/* Section title with image */
.section-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
    align-items: center;
    width: 100%;
}

.section-with-image .section-text {
    text-align: left;
}

.section-with-image .section-title,
.section-with-image .section-subtitle {
    text-align: left;
}

.section-image img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .section-with-image {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-with-image .section-title,
    .section-with-image .section-subtitle {
        text-align: center;
    }
}

/* ===============
   Split Layout
   =============== */

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
    align-items: start;
}

.split-content .left,
.split-content .right {
    padding: var(--s2);
}

.split-content h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s2);
}

.split-content ul {
    list-style: none;
    display: grid;
    gap: var(--s1);
}

.split-content li {
    font-size: var(--text-small);
    padding-left: var(--s3);
    position: relative;
}

.split-content li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* ===============
   Diagram Placeholder
   =============== */

.diagram-placeholder {
    background: var(--bg-muted);
    border: 2px dashed var(--border-medium);
    padding: var(--s5);
    text-align: center;
    border-radius: 8px;
    min-height: 250px;
    display: grid;
    place-items: center;
    color: var(--text-tertiary);
    font-size: var(--text-body);
}

.caption {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-top: var(--s2);
}

/* ===============
   ML Flow Diagram (Foundation section)
   =============== */

.diagram-box {
    background: var(--bg-muted);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s3);
    margin: var(--s2) 0;
}

.ml-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s1);
}

.flow-row {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
    justify-content: center;
}

.flow-row.center {
    justify-content: center;
}

.flow-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: var(--s1) var(--s2);
    border-radius: 4px;
    font-size: var(--text-small);
    font-family: var(--font-mono);
}

.flow-item.highlight {
    background: var(--accent-light);
    border-color: var(--accent);
    font-weight: 600;
}

.flow-arrows {
    font-size: var(--text-body);
    color: var(--text-tertiary);
    letter-spacing: 0.5em;
}

.flow-spacer {
    width: var(--s4);
}

/* Two-column ML flow diagram (accurate version) */
.ml-flow-two-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s1);
    width: 100%;
}

.flow-inputs {
    display: flex;
    justify-content: center;
    gap: var(--s4);
    width: 100%;
}

.flow-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s1);
    justify-content: center;
}

.flow-input-group.left {
    flex: 2;
    justify-content: flex-end;
}

.flow-input-group.right {
    flex: 1;
    justify-content: flex-start;
}

.flow-arrows-split {
    display: flex;
    justify-content: center;
    gap: var(--s5);
    width: 100%;
    font-size: var(--text-body);
    color: var(--text-tertiary);
}

.flow-arrows-split .arrow-group {
    text-align: center;
}

.flow-arrows-split .arrow-group.left {
    flex: 2;
    text-align: right;
    padding-right: var(--s3);
}

.flow-arrows-split .arrow-group.right {
    flex: 1;
    text-align: left;
    padding-left: var(--s3);
}

.flow-parallel {
    display: flex;
    justify-content: center;
    gap: var(--s5);
    width: 100%;
}

.flow-arrows-converge {
    font-size: var(--text-body);
    color: var(--text-tertiary);
    text-align: center;
    letter-spacing: 1em;
}

/* SVG Diagram - Typography focused */
.svg-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: var(--s3) 0;
}

.svg-diagram svg {
    max-width: 100%;
    height: auto;
    max-height: 58vh;
}

/* Attention diagram for transformer slide */
.attention-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.attention-diagram svg {
    max-width: 100%;
    height: auto;
    max-height: 280px;
}

/* Phase labels - the key steps */
.svg-diagram .label-phase {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    fill: var(--text-primary);
    text-anchor: middle;
    letter-spacing: 0.05em;
}

/* Medium labels - secondary elements */
.svg-diagram .label-medium {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    fill: var(--text-secondary);
    text-anchor: middle;
}

/* Small labels - inputs, parameters */
.svg-diagram .label-small {
    font-family: var(--font-mono);
    font-size: 15px;
    fill: var(--text-secondary);
    text-anchor: middle;
}

/* Description text under phases */
.svg-diagram .label-desc {
    font-family: var(--font-sans);
    font-size: 11px;
    font-style: italic;
    fill: var(--text-tertiary);
    text-anchor: middle;
}

/* Arrow lines */
.svg-diagram .arrow-line {
    stroke: var(--text-tertiary);
    stroke-width: 1.5;
    fill: none;
}

/* Phase boxes - key stages with emphasis */
.svg-diagram .phase-box {
    fill: none;
    stroke: var(--text-primary);
    stroke-width: 2;
}

/* Secondary boxes - supporting elements */
.svg-diagram .secondary-box {
    fill: none;
    stroke: var(--border-medium);
    stroke-width: 1;
}

/* Interactive hover elements */
.svg-diagram .hoverable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.svg-diagram .hoverable:hover {
    opacity: 0.8;
}

.svg-diagram .hoverable:hover .phase-box,
.svg-diagram .hoverable:hover .secondary-box {
    stroke-width: 3;
    stroke: var(--accent);
}

.svg-diagram .hoverable:hover .label-phase,
.svg-diagram .hoverable:hover .label-medium {
    fill: var(--accent);
}

/* Invisible hit area for small text */
.svg-diagram .hover-target {
    fill: transparent;
    stroke: none;
}

.svg-diagram .hoverable:hover .hover-target {
    fill: var(--accent-light);
}

/* Flow diagram boxes */
.svg-diagram .flow-box {
    fill: var(--bg-muted);
    stroke: var(--border-medium);
    stroke-width: 1.5;
}

.svg-diagram .user-box {
    fill: var(--bg-surface);
    stroke: var(--accent);
    stroke-width: 2;
}

.svg-diagram .config-box {
    fill: var(--bg-muted);
    stroke: var(--text-tertiary);
    stroke-width: 1.5;
    stroke-dasharray: 4 2;
}

.svg-diagram .claude-box {
    fill: var(--bg-muted);
    stroke: var(--border-medium);
    stroke-width: 1.5;
}

.svg-diagram .git-box {
    fill: var(--bg-surface);
    stroke: var(--border-medium);
    stroke-width: 1.5;
}

.svg-diagram .hook-box,
.svg-diagram .skill-box {
    fill: var(--bg-muted);
    stroke: var(--border-subtle);
    stroke-width: 1;
}

.svg-diagram .label-flow {
    font-family: var(--font-mono);
    font-size: 14px;
    fill: var(--text-primary);
    text-anchor: middle;
}

.svg-diagram .label-flow-small {
    font-family: var(--font-mono);
    font-size: 12px;
    fill: var(--text-secondary);
    text-anchor: middle;
}

.svg-diagram .label-annotation {
    font-family: var(--font-sans);
    font-size: 12px;
    font-style: italic;
    fill: var(--text-tertiary);
    text-anchor: start;
}

.svg-diagram .hoverable:hover .flow-box {
    stroke: var(--accent);
    stroke-width: 2;
}

.svg-diagram .hoverable:hover .label-flow,
.svg-diagram .hoverable:hover .label-flow-small {
    fill: var(--accent);
}

.svg-diagram .output-box {
    fill: var(--bg-surface);
    stroke: var(--accent);
    stroke-width: 1;
    stroke-dasharray: 3 2;
}

.svg-diagram .label-output {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--accent);
    text-anchor: middle;
}

.svg-diagram .label-section {
    font-family: var(--font-sans);
    font-size: 11px;
    fill: var(--text-tertiary);
    text-anchor: middle;
    font-style: italic;
}

/* Diagram tooltip */
.svg-diagram {
    position: relative;
}

.diagram-tooltip {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s2) var(--s3);
    box-shadow: var(--shadow-lg);
    max-width: 350px;
    font-size: var(--text-small);
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    white-space: pre-line;
}

.diagram-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.diagram-tooltip strong {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--s1);
}

/* ===============
   Term Grid (Terminology slide)
   =============== */

.term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--s2);
    margin: var(--s2) 0;
}

.term {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: var(--s2);
}

.term h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s1);
    color: var(--text-primary);
}

.term p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    line-height: var(--lh-normal);
}

/* ===============
   Concept List (Transformer slide)
   =============== */

.concept-list {
    display: grid;
    gap: var(--s2);
    margin: var(--s3) 0;
}

.concept {
    background: var(--bg-surface);
    border-left: 3px solid var(--text-tertiary);
    padding: var(--s2) var(--s3);
    border-radius: 0 6px 6px 0;
}

.concept h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s1);
}

.concept p {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

/* Compact variant for split layouts */
.concept-list.compact {
    gap: var(--s1);
    margin: var(--s2) 0;
}

.concept-list.compact .concept {
    padding: var(--s1) var(--s2);
}

.concept-list.compact .concept h3 {
    font-size: var(--text-small);
    margin-bottom: 0.25rem;
}

.concept-list.compact .concept p {
    font-size: var(--text-tiny);
}

.callout-small {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-top: var(--s2);
    font-style: italic;
}

/* ==============
   Big Quote
   ============== */

.big-quote {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 500;
    font-style: italic;
    text-align: center;
    color: var(--text-primary);
    margin: var(--s3) 0 var(--s4) 0;
    line-height: var(--lh-tight);
}

/* ==============
   Big List Large
   ============== */

.big-list.large li {
    font-size: var(--text-title);
    padding-left: var(--s4);
}

/* ===============
   Training Phases
   =============== */

.learning-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    align-items: center;
    margin: var(--s2) 0;
}

.rlhf-illustration img {
    width: 100%;
    max-height: 45vh;
    object-fit: contain;
}

@media (max-width: 900px) {
    .learning-layout {
        grid-template-columns: 1fr;
    }
}

.training-phases {
    display: grid;
    gap: var(--s2);
}

.phase {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: var(--s2);
}

.phase h3 {
    font-size: var(--text-body);
    font-weight: 700;
    margin-bottom: var(--s1);
}

.phase p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-bottom: var(--s1);
}

.phase p:last-child {
    margin-bottom: 0;
}

.phase .detail {
    font-size: var(--text-tiny);
    color: var(--text-tertiary);
    font-style: italic;
}

/* Farm to Table - factors affecting output */
.farm-to-table {
    margin: var(--s3) 0;
}

.factors-list {
    font-size: var(--text-body);
    line-height: var(--lh-relaxed);
    padding-left: var(--s4);
}

.factors-list > li {
    margin-bottom: var(--s2);
}

.factors-list .factor {
    font-weight: 600;
}

.context-items {
    list-style-type: lower-alpha;
    margin-top: var(--s1);
    padding-left: var(--s4);
    font-size: var(--text-small);
}

.context-items li {
    margin-bottom: var(--s1);
}

.factors-list .note {
    color: var(--text-tertiary);
    font-size: var(--text-small);
}

/* ===============
   Key Insight Box
   =============== */

.key-insight {
    text-align: center;
    padding: var(--s4);
    background: var(--bg-surface);
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    margin: var(--s3) 0;
}

.insight-text {
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--lh-snug);
    margin: 0;
}

.big-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: var(--s4) 0;
    color: var(--text-primary);
}

.text-only {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
}

.long-quote {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    line-height: 1.5;
    max-width: 900px;
    margin: var(--s3) auto;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-primary);
}

.long-quote em {
    font-style: normal;
    font-weight: 700;
    color: var(--accent);
}

.readable-quote {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.7;
    max-width: 65ch;
    margin: auto;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 400;
}

.readable-quote em {
    font-style: normal;
    font-weight: 700;
    color: var(--text-primary);
}

.text-only .readable-quote {
    display: flex;
    align-items: center;
}

.tweet-img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===============
   Quote Box
   =============== */

.quote-box {
    margin: var(--s3) 0;
    padding: var(--s3);
    background: var(--bg-muted);
    border-radius: 8px;
}

.quote-box blockquote {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: var(--text-body);
}

.quote-box .attribution {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-top: var(--s2);
    font-style: normal;
    text-align: right;
}

/* ===============
   Scaling Visual
   =============== */

.scaling-visual {
    margin: var(--s3) 0;
}

.axis-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--s2);
}

.y-label,
.x-label {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.curve-description {
    background: var(--bg-surface);
    padding: var(--s3);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.curve-description .lead {
    margin-bottom: var(--s2);
}

.curve-description ul {
    list-style: none;
    display: grid;
    gap: var(--s1);
}

.curve-description li {
    font-size: var(--text-small);
    padding-left: var(--s3);
    position: relative;
}

.curve-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* Scaling Chart */
.scaling-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.scaling-svg {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.scaling-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
}

.scaling-dimensions {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.scaling-dim {
    background: var(--bg-surface);
    border-left: 4px solid var(--text-tertiary);
    padding: var(--s2) var(--s3);
    border-radius: 0 6px 6px 0;
}

.scaling-dim strong {
    display: block;
    font-size: var(--text-body);
    margin-bottom: var(--s1);
}

.scaling-dim p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin: 0;
}

.scaling-explanation {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.scaling-point {
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.scaling-point:last-child {
    border-bottom: none;
}

.scaling-point strong {
    display: block;
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-bottom: var(--s1);
}

.scaling-point p {
    font-size: var(--text-body);
    margin: 0;
}

.scaling-point.subtle {
    padding-top: var(--s3);
    border-bottom: none;
}

.scaling-point.subtle p {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    font-style: italic;
}

/* METR Chart */
.metr-chart-container {
    display: flex;
    justify-content: center;
    margin: var(--s2) 0;
}

.metr-chart {
    width: 100%;
    max-width: 700px;
    height: auto;
}

.metr-chart-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
}

/* ===============
   Capability Timeline
   =============== */

.capability-timeline {
    display: grid;
    gap: var(--s1);
    margin: var(--s2) 0;
}

.cap-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s2);
    padding: var(--s1) var(--s2);
    background: var(--bg-surface);
    border-radius: 4px;
    border: 1px solid var(--border-light);
    font-size: var(--text-small);
}

.cap-item .year {
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    min-width: 4rem;
}

/* ===============
   Implications Grid
   =============== */

.implications {
    display: grid;
    gap: var(--s2);
    margin: var(--s2) 0;
}

.implication {
    background: var(--bg-surface);
    border-left: 3px solid var(--accent);
    padding: var(--s2) var(--s3);
    border-radius: 0 6px 6px 0;
}

.implication h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s1);
}

.implication p {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

/* ===============
   Warning Box
   =============== */

.warning-box {
    text-align: center;
    padding: var(--s3);
    background: rgba(185, 28, 28, 0.05);
    border: 2px solid var(--negative);
    border-radius: 8px;
    margin: var(--s3) 0;
}

.warning-box .lead {
    margin: 0;
    color: var(--text-primary);
}

/* ===============
   Project Example
   =============== */

.project-example {
    background: var(--bg-surface);
    padding: var(--s3);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.project-example .lead {
    font-size: var(--text-body);
    margin-bottom: var(--s2);
}

.project-example .time-saved {
    margin-top: var(--s3);
    font-size: var(--text-body);
}

.project-example .result {
    font-size: var(--text-small);
    margin-top: var(--s1);
}

/* ===============
   Timeline
   =============== */

.timeline {
    display: grid;
    gap: var(--s1);
    margin: var(--s2) 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--s2);
    padding: var(--s2);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.timeline-item.highlight {
    background: var(--accent-light);
    border-color: var(--accent);
}

.timeline-item .date {
    font-size: var(--text-small);
    color: var(--text-secondary);
    font-weight: 600;
    font-family: var(--font-mono);
}

.timeline-item .event {
    font-size: var(--text-body);
    font-weight: 500;
}

/* ===============
   Priority Stack
   =============== */

.priority-stack {
    display: grid;
    gap: var(--s2);
    margin: var(--s4) 0;
}

.priority-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s3);
    align-items: center;
    padding: var(--s3) var(--s4);
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
}

.priority-item.highest {
    border-width: 2px;
    border-color: var(--text-primary);
}

.priority-item.high {
    opacity: 0.85;
}

.priority-item.medium {
    opacity: 0.65;
}

.priority-item .rank {
    font-size: var(--text-title);
    font-weight: 800;
    font-family: var(--font-mono);
}

.priority-item .text {
    font-size: var(--text-title);
    font-weight: 600;
}

/* ===============
   Progressive Reveals
   =============== */

.reveal-container {
    margin: var(--s4) 0;
    display: grid;
    gap: var(--s4);
}

.reveal-item {
    opacity: 0.25;
    transition: opacity 0.4s ease;
}

.reveal-item.revealed {
    opacity: 1;
}

/* ===============
   Comparisons
   =============== */

.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--s2);
    align-items: center;
    margin: var(--s2) 0;
}

.comparison .before,
.comparison .after,
.comparison .old,
.comparison .new {
    padding: var(--s2);
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
}

.comparison .before,
.comparison .old {
    border-left: 3px solid var(--negative);
}

.comparison .after,
.comparison .new {
    border-left: 3px solid var(--positive);
}

.comparison .label {
    font-size: var(--text-tiny);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--s2);
    color: var(--text-secondary);
}

.comparison .arrow {
    font-size: var(--text-large);
    color: var(--text-tertiary);
}

.comparison p {
    font-size: var(--text-small);
}

.comparison h3 {
    font-size: var(--text-body);
    margin-bottom: var(--s2);
}

.comparison ul {
    list-style: none;
    display: grid;
    gap: var(--s2);
}

.comparison li {
    font-size: var(--text-small);
    padding-left: var(--s3);
    position: relative;
}

.comparison li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
    font-weight: 700;
}

/* ===============
   Metaphor & Mindset Boxes
   =============== */

.metaphor,
.mindset-shift {
    text-align: center;
    padding: var(--s3);
    background: var(--bg-surface);
    border: 2px solid var(--text-primary);
    border-radius: 8px;
    margin: var(--s2) 0;
}

.metaphor .lead,
.mindset-shift .lead {
    margin-bottom: 0;
}

/* ===============
   Example Prompts
   =============== */

.example-prompt {
    margin: var(--s4) 0;
    display: grid;
    gap: var(--s3);
}

.prompt-label {
    font-size: var(--text-small);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

blockquote {
    background: var(--bg-muted);
    border-left: 3px solid var(--text-tertiary);
    padding: var(--s3) var(--s4);
    font-size: var(--text-small);
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 4px;
}

.example-prompt blockquote {
    color: var(--text-primary);
    font-size: var(--text-base);
    background: var(--bg-surface);
    border-left-color: var(--accent);
}

/* ===============
   Code Examples
   =============== */

.code-example {
    background: var(--bg-muted);
    border-radius: 8px;
    padding: var(--s3);
    margin: var(--s3) 0;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: var(--text-small);
    line-height: 1.5;
}

.code-example code {
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* ===============
   Footnotes
   =============== */

.footnote {
    position: absolute;
    bottom: var(--s4);
    left: var(--s4);
    right: var(--s4);
    font-size: var(--text-small);
    color: var(--text-tertiary);
    font-style: italic;
}

/* ===============
   Design Demo (code + preview)
   =============== */

.design-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    margin: var(--s3) 0;
    align-items: start;
}

.design-demo .code-example {
    margin: 0;
}

.design-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s3);
    background: #008080;
    min-height: 240px;
}

.retro-ui {
    width: 100%;
    max-width: 240px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.retro-window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    box-shadow:
        inset 1px 1px 0 #dfdfdf,
        inset -1px -1px 0 #808080,
        2px 2px 0 #000;
}

.retro-titlebar {
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 2px 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.retro-title {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 #000;
}

.retro-controls {
    display: flex;
    gap: 2px;
}

.retro-btn-min,
.retro-btn-close {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #808080 #808080 #fff;
    font-size: 9px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    line-height: 1;
}

.retro-content {
    background: #fff;
    margin: 2px;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
}

.retro-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.retro-table tr {
    border-bottom: 1px solid #c0c0c0;
}

.retro-table tr:last-child {
    border-bottom: none;
}

.retro-table tr:hover {
    background: #ffffcc;
}

.retro-table tr.selected {
    background: #000080;
    color: #fff;
}

.retro-table td {
    padding: 3px 6px;
}

.col-id {
    color: #808080;
    width: 24px;
}

.retro-table tr.selected .col-id {
    color: #a0a0ff;
}

.col-name {
    font-weight: bold;
    letter-spacing: 0.5px;
}

.col-stat {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #008000;
    font-weight: bold;
}

.retro-table tr.selected .col-stat {
    color: #90ee90;
}

.retro-statusbar {
    background: #c0c0c0;
    padding: 2px 4px;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #808080;
}

.retro-statusbar span:first-child {
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 0 4px;
    background: #c0c0c0;
}

.retro-hotkey {
    color: #000080;
    font-weight: bold;
}

/* ===============
   Cards: Use Cases, Tools, Categories
   =============== */

.use-cases,
.tool-showcase,
.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--s2);
    margin: var(--s2) 0;
}

.use-case,
.tool,
.modal-category {
    background: var(--bg-surface);
    padding: var(--s2);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.use-case h3,
.tool h3,
.modal-category h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s2);
}

.use-case ul,
.modal-category ul {
    list-style: none;
    display: grid;
    gap: var(--s2);
}

.use-case li,
.modal-category li {
    font-size: var(--text-small);
    padding-left: var(--s3);
    position: relative;
}

.use-case li::before,
.modal-category li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.tool p {
    font-size: var(--text-small);
    margin-bottom: var(--s2);
    color: var(--text-secondary);
}

.tool .price {
    font-weight: 600;
    color: var(--positive);
}

.caveat {
    font-size: var(--text-tiny);
    color: var(--text-tertiary);
    font-style: italic;
    border-top: 1px solid var(--border-light);
    padding-top: var(--s2);
    margin-top: var(--s2);
}

/* ===============
   Case Study
   =============== */

.case-study {
    background: var(--bg-surface);
    padding: var(--s2);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin: var(--s2) 0;
}

.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--s1);
    margin: var(--s2) 0;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s1);
    padding: var(--s2);
    background: var(--bg-muted);
    border-radius: 6px;
}

.step-num {
    font-size: var(--text-title);
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.step p {
    font-size: var(--text-small);
}

.time-saved {
    font-size: var(--text-title);
    text-align: center;
    margin-top: var(--s4);
    font-weight: 700;
    color: var(--positive);
}

/* ===============
   Impact & Principles
   =============== */

.impact,
.principle,
.philosophy {
    padding: var(--s4);
    background: var(--bg-surface);
    border-left: 3px solid var(--text-primary);
    border-radius: 8px;
    margin: var(--s4) 0;
}

.principle-box h3 {
    margin-bottom: var(--s3);
}

.workflow {
    text-align: center;
    padding: var(--s3);
    background: var(--bg-muted);
    border-radius: 8px;
    margin-top: var(--s4);
}

.workflow-label {
    font-size: var(--text-small);
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: var(--s2);
}

.workflow p {
    font-size: var(--text-body);
    font-family: var(--font-mono);
}

/* ===============
   Pattern Examples
   =============== */

.pattern-example {
    text-align: center;
    padding: var(--s4);
    background: var(--bg-surface);
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    margin: var(--s4) 0;
}

.example {
    background: var(--bg-muted);
    padding: var(--s3);
    border-radius: 8px;
    margin-top: var(--s3);
    text-align: left;
}

.example-label {
    font-size: var(--text-small);
    font-weight: 700;
    margin-bottom: var(--s2);
}

.example p {
    font-size: var(--text-small);
    margin-bottom: var(--s1);
    color: var(--text-secondary);
}

/* ===============
   Insight Box
   =============== */

.insight-box {
    text-align: center;
    padding: var(--s5);
    background: var(--bg-surface);
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    margin: var(--s4) 0;
}

.org-principles {
    margin-top: var(--s4);
    padding: var(--s3);
    background: var(--bg-muted);
    border-radius: 8px;
    text-align: left;
}

/* ===============
   Perspectives (Ethics)
   =============== */

.perspectives {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s2);
    margin: var(--s2) 0;
}

.perspective {
    padding: var(--s2);
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
}

.perspective:first-child {
    border-left: 3px solid var(--negative);
}

.perspective:last-child {
    border-left: 3px solid var(--positive);
}

.perspective h3 {
    margin-bottom: var(--s3);
}

.perspective ul {
    list-style: none;
    display: grid;
    gap: var(--s2);
}

.perspective li {
    font-size: var(--text-small);
    padding-left: var(--s3);
    position: relative;
}

.perspective li::before {
    content: '·';
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* ===============
   Guidance (Good/Bad Examples)
   =============== */

.guidance {
    margin: var(--s4) 0;
}

.examples {
    display: grid;
    gap: var(--s3);
    margin-top: var(--s3);
}

.good,
.bad {
    padding: var(--s3);
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
}

.good {
    border-left: 3px solid var(--positive);
}

.bad {
    border-left: 3px solid var(--negative);
}

.good .label {
    color: var(--positive);
}

.bad .label {
    color: var(--negative);
}

.label {
    font-size: var(--text-tiny);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--s2);
}

.examples p {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

/* ===============
   Framework & Strategy
   =============== */

.framework,
.strategy {
    margin: var(--s4) 0;
}

.benchmark-process {
    display: grid;
    gap: var(--s3);
    margin: var(--s4) 0;
}

/* ===============
   Context Grid
   =============== */

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s2);
    margin: var(--s2) 0;
}

.context-item {
    background: var(--bg-surface);
    padding: var(--s2);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.context-item h3 {
    margin-bottom: var(--s1);
}

.context-item ul {
    list-style: none;
    display: grid;
    gap: var(--s2);
}

.context-item li {
    font-size: var(--text-small);
    padding-left: var(--s3);
    position: relative;
}

.context-item li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

/* ===============
   Actions (Call to Action)
   =============== */

.actions {
    display: grid;
    gap: var(--s1);
    margin: var(--s2) 0;
}

.action {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--s2);
    align-items: start;
    background: var(--bg-surface);
    padding: var(--s2);
    border-left: 3px solid var(--text-primary);
    border-radius: 6px;
}

.action-num {
    font-size: var(--text-title);
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    min-width: 2rem;
}

.action-content h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s1);
}

.action-content p {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

.action h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s1);
}

.action p {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

/* Big Takeaways - prominent 3-item layout */
.takeaways-big {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    margin: var(--s4) 0;
}

.takeaway-item {
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding: var(--s3) var(--s4);
    background: var(--bg-surface);
    border-left: 4px solid var(--text-primary);
    border-radius: 8px;
}

.takeaway-num {
    font-size: var(--text-huge);
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    min-width: 3rem;
}

.takeaway-content {
    display: flex;
    flex-direction: column;
    gap: var(--s1);
}

.takeaway-text {
    font-size: var(--text-large);
    font-weight: 600;
    color: var(--text-primary);
}

.takeaway-sub {
    font-size: var(--text-body);
    color: var(--text-secondary);
}

/* ===============
   Resources
   =============== */

.resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s2);
    margin: var(--s2) 0;
}

.resource-category {
    background: var(--bg-surface);
    padding: var(--s2);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.resource-category h3 {
    margin-bottom: var(--s1);
}

.resource-category ul {
    list-style: none;
    display: grid;
    gap: var(--s2);
}

.resource-category a {
    font-size: var(--text-small);
}

.gift-offer {
    font-size: var(--text-small);
    color: var(--text-secondary);
    line-height: 1.5;
}

.gift-offer strong {
    color: var(--accent);
}

.resource {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-top: var(--s3);
}

/* ===============
   Q&A Slide
   =============== */

.qa-slide {
    text-align: center;
}

.qa-slide h1 {
    font-size: var(--text-mega);
    margin-bottom: var(--s5);
}

.contact {
    margin: var(--s5) 0;
}

.contact p {
    font-size: var(--text-body);
    margin-bottom: var(--s2);
}

.thanks {
    font-size: var(--text-large);
    margin-top: var(--s5);
    font-weight: 600;
}

/* ===============
   Presentation Controls
   =============== */

.presentation-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
}

.progress-bar {
    height: 3px;
    background: var(--border-light);
}

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.slide-counter {
    position: fixed;
    bottom: var(--s2);
    right: var(--s3);
    font-size: var(--text-tiny);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.slide-counter .current {
    font-weight: 700;
    color: var(--text-secondary);
}

.controls-hint {
    position: fixed;
    bottom: var(--s2);
    left: var(--s3);
    font-size: var(--text-tiny);
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* ===============
   Detail Mode
   =============== */

/* Show details when detail mode is active */
body.detail-mode-active .slide-details {
    max-height: 400px;
    opacity: 1;
    padding: var(--s3) var(--s4);
    margin-top: var(--s3);
    overflow-y: auto;
}

/* Adjust slide layout when details are visible */
body.detail-mode-active .slide {
    align-items: flex-start;
    padding-top: var(--s3);
}

body.detail-mode-active .slide-content {
    max-height: calc(100vh - var(--s5) * 2 - 250px);
    overflow-y: auto;
}

/* Detail sections */
.detail-section {
    margin-bottom: var(--s3);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: var(--text-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: var(--s2);
    padding-bottom: var(--s1);
    border-bottom: 1px solid var(--border-light);
}

.detail-section p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

.detail-section ul {
    list-style: none;
    display: grid;
    gap: var(--s1);
    padding: 0;
    margin: 0;
}

.detail-section li {
    font-size: var(--text-small);
    padding-left: var(--s3);
    position: relative;
    color: var(--text-secondary);
}

.detail-section li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.detail-section a {
    color: var(--accent);
    text-decoration: none;
}

.detail-section a:hover {
    text-decoration: underline;
}

/* Detail mode indicator */
.detail-mode-indicator {
    position: fixed;
    top: var(--s2);
    right: var(--s3);
    font-size: var(--text-tiny);
    color: var(--text-tertiary);
    background: var(--bg-surface);
    padding: var(--s1) var(--s2);
    border-radius: 4px;
    border: 1px solid var(--border-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

body.detail-mode-active .detail-mode-indicator {
    opacity: 1;
}

/* ===============
   Task Cards (Slide 26)
   =============== */

.task-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s2);
    margin: var(--s3) 0;
}

.task-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: var(--s2);
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.task-icon {
    width: 32px;
    height: 32px;
    color: var(--text-tertiary);
    margin-bottom: var(--s1);
    transition: color 0.2s ease;
}

.task-card:hover .task-icon {
    color: var(--text-secondary);
}

.task-card h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s1);
}

.task-card p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin: 0;
}

/* ===============
   Design Loop (Slide 27)
   =============== */

.design-loop {
    display: flex;
    align-items: stretch;
    gap: var(--s1);
    margin: var(--s3) 0;
}

.loop-step {
    flex: 1;
    display: flex;
    gap: var(--s2);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: var(--s2);
}

.loop-step-final {
    border-color: var(--accent);
    border-width: 2px;
}

.loop-num {
    font-size: var(--text-title);
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    line-height: 1;
}

.loop-step-final .loop-num {
    color: var(--accent);
}

.loop-content h3 {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s1);
}

.loop-content p {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin: 0;
}

.loop-arrow {
    display: flex;
    align-items: center;
    font-size: var(--text-title);
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ===============
   Bold Statement (Slide 28)
   =============== */

.bold-statement {
    text-align: center;
    padding: var(--s5) var(--s4);
    margin-bottom: var(--s4);
}

.bold-statement h2 {
    font-size: var(--text-huge);
    font-weight: 700;
    margin-bottom: var(--s3);
}

.statement-tagline {
    font-size: var(--text-title);
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

.patience-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--s2);
    padding: var(--s3);
    background: var(--bg-muted);
    border-radius: 8px;
    margin-bottom: var(--s4);
}

.patience-item {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--text-primary);
}

.patience-divider {
    color: var(--text-tertiary);
    font-weight: 300;
}

.statement-footer {
    text-align: center;
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

/* ===============
   Responsive
   =============== */

@media (max-width: 900px) {
    .slide {
        padding: var(--s4) var(--s3);
    }

    .split-content,
    .perspectives,
    .comparison {
        grid-template-columns: 1fr;
    }

    .comparison .arrow {
        transform: rotate(90deg);
        margin: var(--s2) auto;
    }

    .modal-grid,
    .resources,
    .context-grid {
        grid-template-columns: 1fr;
    }

    /* Task cards responsive */
    .task-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Design loop responsive */
    .design-loop {
        flex-direction: column;
    }

    .loop-arrow {
        transform: rotate(90deg);
        justify-content: center;
        padding: var(--s1) 0;
    }

    /* Patience examples responsive */
    .patience-examples {
        flex-direction: column;
        gap: var(--s1);
    }

    .patience-divider {
        display: none;
    }
}

/* ===============
   Personal Benchmarks
   =============== */

.benchmark-concept {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    margin: var(--s4) 0;
}

.benchmark-why,
.benchmark-examples {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s4);
}

.benchmark-why h3,
.benchmark-examples h3 {
    font-size: var(--text-body);
    font-weight: 700;
    margin-bottom: var(--s3);
    color: var(--text-primary);
}

.benchmark-why ul,
.benchmark-examples ul {
    list-style: none;
    font-size: var(--text-small);
}

.benchmark-why li,
.benchmark-examples li {
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--border-light);
}

.benchmark-why li:last-child,
.benchmark-examples li:last-child {
    border-bottom: none;
}

.benchmark-examples li {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .benchmark-concept {
        grid-template-columns: 1fr;
    }
}

/* ===============
   Choose Your Fighter
   =============== */

.fighter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s4);
    margin: var(--s4) 0;
}

.fighter-card {
    background: var(--bg-surface);
    border: 2px solid var(--border-medium);
    border-radius: 12px;
    padding: var(--s4);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fighter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Brand colors for AI providers */
.fighter-card.claude {
    border-color: #D97757;
    background: rgba(217, 119, 87, 0.08);
}

.fighter-card.claude h3 {
    color: #D97757;
}

.fighter-card.chatgpt {
    border-color: #10A37F;
    background: rgba(16, 163, 127, 0.08);
}

.fighter-card.chatgpt h3 {
    color: #10A37F;
}

.fighter-card.gemini {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.08);
}

.fighter-card.gemini h3 {
    color: #4285F4;
}

.fighter-card h3 {
    font-size: var(--text-title);
    margin-bottom: var(--s2);
    font-weight: 700;
}

.fighter-rec {
    font-size: var(--text-small);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--s3);
    min-height: 1.5em;
}

.fighter-card ul {
    list-style: none;
    text-align: left;
    font-size: var(--text-small);
}

.fighter-card li {
    padding: var(--s1) 0;
    border-bottom: 1px solid var(--border-light);
}

.fighter-card li:last-child {
    border-bottom: none;
}

@media (max-width: 900px) {
    .fighter-grid {
        grid-template-columns: 1fr;
        gap: var(--s3);
    }
}

/* ===============
   "And Now For Something Completely Different" Section
   =============== */

/* Captain Disillusion Quote */
.captain-d-quote {
    font-size: var(--text-large);
    font-style: italic;
    border-left: 4px solid var(--highlight);
    padding: var(--s4);
    margin: var(--s4) 0;
    background: var(--bg-surface);
    border-radius: 0 8px 8px 0;
}

.captain-d-quote cite {
    display: block;
    font-style: normal;
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-top: var(--s2);
}

/* Incident Box (Sycophancy) */
.incident-box {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: var(--s3);
    margin-bottom: var(--s4);
}

.incident-box h3 {
    color: #ffc107;
    margin-bottom: var(--s1);
}

/* Scenario Grid (Jobs Slide) */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s3);
    margin: var(--s4) 0;
}

.scenario {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s3);
}

.scenario h3 {
    font-size: var(--text-base);
    margin-bottom: var(--s2);
    color: var(--highlight);
}

.scenario p {
    font-size: var(--text-small);
    margin: var(--s1) 0;
}

@media (max-width: 900px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
}

/* Jobs Slide - Horses vs Cars Layout */
.jobs-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    margin: var(--s3) 0;
}

.horse-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.horse-chart.centered {
    margin: var(--s2) auto;
    max-width: 55%;
}

.horse-chart img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-medium);
}

.chart-attribution {
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-top: var(--s2);
}

.chart-attribution a {
    color: var(--highlight);
}

.two-models {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.jobs-observations {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jobs-observations .lead {
    margin-bottom: var(--s3);
}

.jobs-observations .big-list {
    margin: 0;
}

.model {
    background: var(--bg-surface);
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s3);
}

.model h3 {
    font-size: var(--text-base);
    margin-bottom: var(--s2);
}

.horses-model {
    border-color: #dc3545;
}

.horses-model h3 {
    color: #dc3545;
}

.automation-model {
    border-color: #28a745;
}

.automation-model h3 {
    color: #28a745;
}

.model ul {
    font-size: var(--text-small);
    margin: 0;
    padding-left: var(--s4);
}

.model li {
    margin: var(--s1) 0;
}

.crux-box {
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: var(--s3);
    margin: var(--s3) 0;
    text-align: center;
}

.crux-box p {
    margin: 0;
    font-size: var(--text-base);
}

.economy-thesis {
    background: var(--bg-surface);
    border-left: 4px solid var(--highlight);
    padding: var(--s3);
    margin: var(--s3) 0;
}

.economy-thesis p {
    margin: 0;
}

@media (max-width: 900px) {
    .jobs-layout {
        grid-template-columns: 1fr;
    }
}

/* Disclaimer Box (Portfolio Guidance) */
.disclaimer-box {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: var(--s3);
    margin-bottom: var(--s3);
    font-size: var(--text-small);
}

/* Know Your Audience Section */
.know-audience {
    margin: var(--s3) 0;
}

.know-audience h3 {
    margin-bottom: var(--s2);
}

.audience-scenarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s3);
}

.scenario-audience {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s3);
}

.scenario-audience h4 {
    font-size: var(--text-base);
    color: var(--highlight);
    margin-bottom: var(--s2);
}

.scenario-audience p {
    font-size: var(--text-small);
    margin: 0;
}

@media (max-width: 900px) {
    .audience-scenarios {
        grid-template-columns: 1fr;
    }
}

/* Scenarios (Economy Slide) */
.scenarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    margin: var(--s4) 0;
}

.scenario-if {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s3);
    text-align: center;
}

.scenario-if h3 {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--s2);
}

/* Zvi Quote */
.zvi-quote {
    font-size: var(--text-base);
    font-style: italic;
    border-left: 4px solid var(--highlight);
    padding: var(--s3);
    margin-top: var(--s4);
    background: var(--bg-surface);
    border-radius: 0 8px 8px 0;
}

.zvi-quote cite {
    display: block;
    font-style: normal;
    font-size: var(--text-small);
    color: var(--text-secondary);
    margin-top: var(--s2);
}

/* Bubble Thesis */
.bubble-thesis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    margin: var(--s4) 0;
}

.bubble-question {
    text-align: center;
}

.bubble-question h3 {
    font-size: var(--text-large);
    margin-bottom: var(--s2);
}

.bubble-question .answer {
    font-size: 3rem;
    font-weight: 700;
    margin: var(--s2) 0;
}

.bubble-question .answer.yes {
    color: var(--negative);
}

.bubble-question .answer.no {
    color: var(--positive);
}

.bubble-question > p:last-child {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

/* Bubble Layout with Chart */
.bubble-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    align-items: start;
    margin: var(--s3) 0;
}

.bubble-layout .bubble-thesis {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.bubble-layout .bubble-question {
    text-align: left;
}

.bubble-layout .callout {
    font-size: var(--text-small);
    margin-top: var(--s2);
}

.bubble-chart img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 8px;
}

.bubble-chart .chart-label {
    font-size: var(--text-body);
    color: var(--text-secondary);
    margin-bottom: var(--s2);
    text-align: center;
    font-weight: 500;
}

.bubble-chart .chart-attribution {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-top: var(--s1);
    text-align: center;
}

/* Environment Layout */
.environment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    align-items: center;
    margin: var(--s2) 0;
}

.co2-chart img,
.energy-chart img {
    width: 100%;
    max-height: 45vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.co2-chart .chart-attribution,
.energy-chart .chart-attribution {
    font-size: var(--text-small);
    color: var(--text-tertiary);
    margin-top: var(--s1);
    text-align: center;
}

.environment-intuitions {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

/* Energy comparisons list */
.energy-comparisons {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.energy-comparisons .comparison-intro {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--s1);
}

.energy-comparisons .comparison-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.energy-comparisons .comparison-list li {
    font-size: var(--text-small);
    padding-left: var(--s3);
    position: relative;
}

.energy-comparisons .comparison-list li::before {
    content: '≈';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.energy-comparisons .source {
    margin-top: var(--s1);
}

.intuition {
    background: var(--bg-surface);
    padding: var(--s2) var(--s3);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.intuition h3 {
    font-size: var(--text-base);
    margin-bottom: var(--s1);
}

/* Zvi Trilemma (Slide 39) */
.zvi-trilemma {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    margin: var(--s4) 0;
}

.trilemma-item {
    display: flex;
    align-items: baseline;
    gap: var(--s3);
    padding: var(--s3) var(--s4);
    border-radius: 8px;
    background: var(--bg-surface);
    border-left: 4px solid var(--text-tertiary);
}

.trilemma-item.positive {
    border-left-color: var(--positive);
}

.trilemma-item.negative {
    border-left-color: var(--negative);
}

.trilemma-item.question {
    border-left-color: var(--accent);
    background: var(--bg-muted);
}

.trilemma-num {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--text-tertiary);
    min-width: 2rem;
}

.trilemma-item.positive .trilemma-num {
    color: var(--positive);
}

.trilemma-item.negative .trilemma-num {
    color: var(--negative);
}

.trilemma-item.question .trilemma-num {
    color: var(--accent);
}

.trilemma-item p {
    font-size: var(--text-body);
    font-weight: 500;
    margin: 0;
}

.intuition p {
    font-size: var(--text-small);
    margin: 0;
}

.intuition strong {
    color: var(--accent);
    font-size: var(--text-base);
}

/* Stat Grid (Deepfakes) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s3);
    margin: var(--s4) 0;
}

.stat {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s3);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: var(--s1);
}

.stat-label {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

.stat-grid.three-stats {
    grid-template-columns: repeat(3, 1fr);
}

.stat-grid.vertical {
    grid-template-columns: 1fr;
    gap: var(--s2);
    margin: 0;
}

.stat-grid.vertical .stat {
    padding: var(--s2);
}

.stat-grid.vertical .stat-number {
    font-size: var(--text-body);
    margin-bottom: 0;
}

.stat-grid.vertical .stat-label {
    font-size: var(--text-xs);
}

/* Economy Layout (Slide 40) */
.economy-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--s4);
    align-items: center;
    margin: var(--s2) 0;
}

.economy-stats {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.economy-stats .callout {
    margin: 0;
    font-size: var(--text-small);
}

.economy-chart img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid.three-stats {
        grid-template-columns: 1fr;
    }

    .economy-layout {
        grid-template-columns: 1fr;
    }
}

/* Good News / Bad News */
.good-news {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s3);
    margin-top: var(--s3);
}

.good-news p {
    margin: var(--s1) 0;
}

/* Two Camps (X-Risk) */
.two-camps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
    margin: var(--s3) 0;
}

.camp {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: var(--s3);
    text-align: center;
}

.camp h3 {
    font-size: var(--text-base);
    margin-bottom: var(--s2);
}

.camp p {
    font-size: var(--text-small);
    color: var(--text-secondary);
}

/* Scheming Research Box */
.scheming-research {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: var(--s3);
    margin-top: var(--s3);
}

.scheming-research h3 {
    color: #dc3545;
    margin-bottom: var(--s2);
}

.scheming-research ul {
    font-size: var(--text-small);
}

/* Tier List (Mandate of Heaven) */
.tier-list {
    margin: var(--s3) 0;
}

.tier {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    margin-bottom: var(--s1);
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
}

.tier-label {
    padding: var(--s2);
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--bg-primary);
    text-align: center;
}

/* ===============
   Mandate of Heaven - Tierlist Table
   =============== */

.tierlist {
    width: 100%;
    border-collapse: collapse;
    margin: var(--s3) 0;
}

.tierlist .tier-row {
    border: 1px solid var(--border-light);
}

.tierlist .tier-label {
    width: 80px;
    text-align: center;
    vertical-align: middle;
    padding: var(--s2);
    border-right: 1px solid var(--border-light);
}

.tierlist .tier-label .hanzi {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.tierlist .tier-label .translation {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--bg-primary);
    opacity: 0.8;
    margin-top: 0.25rem;
}

.tierlist .tier-entries {
    padding: var(--s2);
    vertical-align: middle;
}

.tierlist .entry {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    padding: 0.4rem 0.8rem;
    margin: 0.2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: var(--text-base);
}

.tierlist .entry-note {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--text-tertiary);
}

/* Row hover shows note */
.tierlist .tier-row {
    position: relative;
}

.tierlist .tier-row[data-note]:hover::after {
    content: attr(data-note);
    position: absolute;
    right: var(--s2);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-medium);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-style: italic;
    color: var(--text-secondary);
    max-width: 200px;
    z-index: 10;
}

/* ===============
   Sources Appendix
   =============== */

.sources-appendix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
    margin-top: var(--s2);
}

.sources-column h3 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--s2);
    margin-top: var(--s3);
    padding-bottom: var(--s1);
    border-bottom: 1px solid var(--border-light);
}

.sources-column h3:first-child {
    margin-top: 0;
}

ul.citations {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.citations li {
    font-size: var(--text-small);
    margin-bottom: var(--s2);
    padding-left: 0;
    line-height: var(--lh-normal);
}

ul.citations li::before {
    display: none;
}

ul.citations a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

ul.citations a:hover {
    text-decoration: underline;
}

/* On-slide source links */
.source a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--text-tertiary);
}

.source a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@media (max-width: 900px) {
    .sources-appendix {
        grid-template-columns: 1fr;
    }
}

/* ===============
   Quick Navigation (Ctrl+O)
   =============== */

.quick-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.quick-nav.visible {
    opacity: 1;
    visibility: visible;
}

.quick-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.quick-nav-modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quick-nav-input {
    width: 100%;
    padding: var(--s3);
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-primary);
    font-size: var(--text-body);
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.quick-nav-input::placeholder {
    color: var(--text-tertiary);
}

.quick-nav-results {
    max-height: 50vh;
    overflow-y: auto;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s2) var(--s3);
    cursor: pointer;
    transition: background 0.1s ease;
    border-left: 3px solid transparent;
}

.quick-nav-item:hover,
.quick-nav-item.selected {
    background: var(--bg-muted);
}

.quick-nav-item .slide-num {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--text-tertiary);
    min-width: 2.5em;
    text-align: right;
}

.quick-nav-item .slide-section {
    font-size: var(--text-tiny);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
}

.quick-nav-item .slide-title {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-nav-item.current {
    border-left-color: var(--accent);
}

.quick-nav-empty {
    padding: var(--s3);
    text-align: center;
    color: var(--text-tertiary);
    font-style: italic;
}

/* ===============
   Print / PDF Export
   =============== */

@media print {
    .presentation-ui,
    .controls-hint {
        display: none !important;
    }

    .slide {
        page-break-after: always;
        position: relative;
        opacity: 1;
        visibility: visible;
        height: 100vh;
        background: white;
    }

    .presenter-notes {
        display: block;
        margin-top: var(--s4);
        padding-top: var(--s4);
        border-top: 1px solid var(--border-medium);
        font-size: 12pt;
        color: var(--text-secondary);
        page-break-inside: avoid;
    }
}
