/* ── Terminal Luxe Design System — Aged Terminal Edition ─────────── */

:root {
    /* Dark mode (default) — warm charcoal, aged phosphor */
    --bg-primary: #1a1612;
    --bg-secondary: #211e19;
    --bg-tertiary: #2a2520;
    --text-primary: #d4cdc4;
    --text-secondary: #9a918a;
    --text-muted: #6e6560;
    --border: #3a332c;
    --accent: #c4a44a;
    --accent-dim: color-mix(in srgb, var(--accent) 10%, transparent);
    --accent-glow: color-mix(in srgb, var(--accent) 25%, transparent);
    --amber: #c9a84c;
    --red: #b85a5a;
    --blue: #6a9ab8;
    --green: #7a9a6a;
    --shadow: #0d0a08;
    --font-display: "Chakra Petch", sans-serif;
    --font-data: "JetBrains Mono", monospace;
    --font-body: "IBM Plex Sans", sans-serif;
    --noise-opacity: 0.035;
}

/* ── Light Mode ────────────────────────────────────────────────── */

body.light-theme {
    --bg-primary: #f2ece4;
    --bg-secondary: #e8e0d6;
    --bg-tertiary: #ddd4c8;
    --text-primary: #2c2520;
    --text-secondary: #5a524a;
    --text-muted: #8a8078;
    --border: #c8bfb4;
    --accent: #8a6e2a;
    --accent-dim: color-mix(in srgb, var(--accent) 8%, transparent);
    --accent-glow: color-mix(in srgb, var(--accent) 15%, transparent);
    --amber: #8a6e2a;
    --red: #8a4040;
    --blue: #4a7a9a;
    --green: #5a7a4a;
    --shadow: #b8b0a4;
    --noise-opacity: 0.025;
}

/* ── Reset ──────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Noise Texture Overlay ─────────────────────────────────────── */

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ── CRT Overlays ──────────────────────────────────────────────── */

.scanline-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.015) 3px,
        rgba(0, 0, 0, 0.015) 6px
    );
}

.dot-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.02;
    background-image: radial-gradient(circle, var(--text-muted) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ── CRT Boot Animation ───────────────────────────────────────── */

@keyframes crt-boot {
    0% { clip-path: inset(50% 0); opacity: 0; }
    20% { clip-path: inset(48% 0); opacity: 0.3; }
    40% { clip-path: inset(30% 0); opacity: 0.6; }
    60% { clip-path: inset(10% 0); opacity: 0.8; }
    80% { clip-path: inset(2% 0); opacity: 0.95; }
    100% { clip-path: inset(0 0); opacity: 1; }
}

@keyframes scanline-sweep {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

body {
    animation: crt-boot 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Theme Toggle ──────────────────────────────────────────────── */

.site-nav {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 10000;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 2px 2px 0 var(--shadow);
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--shadow);
}

.theme-toggle:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--shadow);
}

.toggle-icon {
    font-size: 20px;
    line-height: 1;
    color: var(--accent);
    font-family: var(--font-data);
    transition: color 0.3s;
}

/* ── Layout ─────────────────────────────────────────────────────── */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

@media (max-width: 640px) {
    .section { padding: 48px 0; }
}

/* ── Scroll Reveal ──────────────────────────────────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    padding: 140px 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero .crt-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, var(--bg-primary) 100%);
    pointer-events: none;
}

.hero .overline {
    font-family: var(--font-data);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero .cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
    text-shadow: 0 0 30px var(--accent-dim);
}

.hero .date {
    font-family: var(--font-data);
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Loom / Screen Bezel ────────────────────────────────────────── */

.screen-bezel {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 2px;
    padding: 12px 12px 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 3px 3px 0 var(--shadow);
}

.screen-inner {
    aspect-ratio: 16 / 9;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    overflow: hidden;
}

.loom-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 16px;
}

.play-icon {
    font-size: 36px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 3px 3px 0 var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.play-icon:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--shadow);
}

.play-icon:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--shadow);
}

/* ── Section Labels ─────────────────────────────────────────────── */

.section-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.subsection-label {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-top: 56px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* ── Headline ───────────────────────────────────────────────────── */

.headline {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 48px;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

/* ── Scoreboard — Segmented Bars ────────────────────────────────── */

.scoreboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-row {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    box-shadow: 3px 3px 0 var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.score-row:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow);
}

.score-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.score-area {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
}

.score-value {
    font-family: var(--font-data);
    font-weight: 700;
    font-size: 15px;
}

.seg-bar {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
    height: 10px;
}

.seg-block {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 1px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.seg-block.filled {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.seg-block.filled.active {
    opacity: 1;
}

.score-row[data-status="good"] .seg-block.filled { background: var(--green); box-shadow: 0 0 4px color-mix(in srgb, var(--green) 30%, transparent); }
.score-row[data-status="good"] .score-value { color: var(--green); }

.score-row[data-status="warning"] .seg-block.filled { background: var(--amber); box-shadow: 0 0 4px color-mix(in srgb, var(--amber) 30%, transparent); }
.score-row[data-status="warning"] .score-value { color: var(--amber); }

.score-row[data-status="critical"] .seg-block.filled { background: var(--red); box-shadow: 0 0 4px color-mix(in srgb, var(--red) 30%, transparent); }
.score-row[data-status="critical"] .score-value { color: var(--red); }

.score-verdict {
    font-family: var(--font-data);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.scoreboard-summary {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 24px;
    padding: 16px 20px;
    border-left: 3px solid var(--accent);
    background: var(--accent-dim);
}

/* ── Finding Cards — Dossier Style ──────────────────────────────── */

.finding-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 2px;
    margin-bottom: 12px;
    box-shadow: 3px 3px 0 var(--shadow);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
}

.finding-card:hover {
    border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow);
}

.finding-card:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--shadow);
}

.finding-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    cursor: pointer;
    user-select: none;
}

.finding-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.finding-toggle {
    font-family: var(--font-data);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    transition: transform 0.3s;
    width: 24px;
    text-align: center;
}

.finding-card.expanded .finding-toggle {
    transform: rotate(45deg);
}

.finding-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.finding-card.expanded .finding-body {
    max-height: 2000px;
}

/* Dossier unfold — perspective rotation on expand */
.finding-card.dossier .finding-body {
    transform-origin: top center;
    transform: perspective(800px) rotateX(-5deg);
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s ease,
                opacity 0.4s ease;
}

.finding-card.dossier.expanded .finding-body {
    transform: perspective(800px) rotateX(0deg);
    opacity: 1;
}

.finding-section {
    padding: 0 20px 20px 20px;
}

.finding-section h5 {
    font-family: var(--font-data);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 6px;
}

.finding-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-line;
}

.evidence ul {
    list-style: none;
    padding: 0;
}

.evidence li {
    font-family: var(--font-data);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.evidence li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ── Terminal Window ────────────────────────────────────────────── */

.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    box-shadow: 3px 3px 0 var(--shadow);
    overflow: hidden;
    margin-bottom: 32px;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.terminal-dot.red { background: var(--red); border-color: color-mix(in srgb, var(--red) 60%, transparent); }
.terminal-dot.amber { background: var(--amber); border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.terminal-dot.green { background: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }

.terminal-title {
    font-family: var(--font-data);
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 20px;
    overflow-x: auto;
}

.terminal-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.terminal-body th {
    text-align: left;
    padding: 10px 14px;
    font-family: var(--font-data);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.terminal-body td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-data);
    font-size: 13px;
}

.terminal-body tbody tr:hover {
    background: var(--bg-tertiary);
}

/* ── Deliverable Cards — Loot Drop ──────────────────────────────── */

.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.deliverable-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 3px 3px 0 var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.2s;
    cursor: pointer;
}

.deliverable-card:hover {
    border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow);
}

.deliverable-card:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--shadow);
}

/* Loot drop animation */
.deliverable-card.loot-drop {
    opacity: 0;
    transform: translateY(-20px);
}

.deliverable-card.loot-drop.dropped {
    opacity: 1;
    transform: translateY(0);
    animation: loot-stamp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loot-stamp {
    0% { transform: translateY(-20px) scale(1.05); opacity: 0; }
    60% { transform: translateY(3px) scale(0.98); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.deliverable-type-badge {
    font-family: var(--font-data);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 1px;
    width: fit-content;
}

.deliverable-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
}

.deliverable-desc {
    font-size: 16px;
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.6;
}

.deliverable-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.deliverable-expand-hint {
    font-family: var(--font-data);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.deliverable-card:hover .deliverable-expand-hint {
    color: var(--accent);
}

.download-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-data);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    border-radius: 1px;
    text-decoration: none;
    box-shadow: 2px 2px 0 var(--shadow);
    transition: transform 0.1s, box-shadow 0.1s;
}

.download-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--shadow);
    text-decoration: none;
}

.download-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--shadow);
}

/* ── Deliverable Modal ─────────────────────────────────────────── */

.deliverable-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 6, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.deliverable-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.light-theme .deliverable-modal-overlay {
    background: rgba(200, 190, 180, 0.7);
}

.deliverable-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    box-shadow: 6px 6px 0 var(--shadow);
    max-width: 620px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.deliverable-modal-overlay.active .deliverable-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-data);
    font-size: 16px;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.modal-header {
    margin-bottom: 24px;
    padding-right: 40px;
}

.modal-header .deliverable-type-badge {
    margin-bottom: 10px;
}

.modal-header .deliverable-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.modal-header .deliverable-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h5 {
    font-family: var(--font-data);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.detail-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.detail-section ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-section li {
    font-size: 16px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.detail-section li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-data);
    font-weight: 700;
}

.detail-section.checklist li::before {
    content: "[ ]";
    font-size: 12px;
    left: -2px;
}

.modal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* ── Workstreams — Mission Panels ───────────────────────────────── */

.workstreams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.workstream {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 24px;
    box-shadow: 3px 3px 0 var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.workstream:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow);
}

.workstream-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.workstream-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workstream-items li {
    font-size: 16px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.workstream-items li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-family: var(--font-data);
    font-weight: 700;
}

/* ── Flowchart ──────────────────────────────────────────────────── */

.flowchart-body {
    text-align: center;
}

.flowchart-body .mermaid {
    font-family: var(--font-data);
}

/* ── Timeline — Level Progression ───────────────────────────────── */

.timeline {
    position: relative;
    padding: 20px 0 20px 40px;
}

.timeline-track {
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.timeline-track-fill {
    width: 100%;
    height: 0;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    display: flex;
    gap: 24px;
}

.timeline-node {
    position: absolute;
    left: -40px;
    top: 0;
}

.timeline-day {
    display: inline-block;
    font-family: var(--font-data);
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-primary);
    background: var(--accent);
    padding: 4px 12px;
    border-radius: 1px;
    box-shadow: 2px 2px 0 var(--shadow);
    white-space: nowrap;
    position: relative;
    left: -8px;
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px;
    box-shadow: 3px 3px 0 var(--shadow);
    flex: 1;
    margin-left: 20px;
}

.timeline-shipped h5,
.timeline-measurable h5 {
    font-family: var(--font-data);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-shipped p,
.timeline-measurable p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-shipped {
    margin-bottom: 12px;
}

/* Timeline unlock animation */
.timeline-item.unlocked .timeline-day {
    animation: node-unlock 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes node-unlock {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Iteration Model ────────────────────────────────────────────── */

.iteration-model {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .iteration-model { grid-template-columns: 1fr; }
}

.iteration-day {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 20px;
    box-shadow: 3px 3px 0 var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.iteration-day:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow);
}

.iteration-label {
    display: block;
    font-family: var(--font-data);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.iteration-day p {
    font-size: 16px;
    color: var(--text-secondary);
}

.iteration-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 24px;
}

/* ── Investment Card ────────────────────────────────────────────── */

.investment-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 40px;
    text-align: center;
    box-shadow: 3px 3px 0 var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.investment-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.investment-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.investment-items {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.investment-items li {
    font-size: 16px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.investment-items li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-data);
    font-weight: 700;
}

.investment-price {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--accent);
    margin-top: 8px;
    letter-spacing: 2px;
}

/* ── Footer CTA — Insert Coin ───────────────────────────────────── */

.footer-cta {
    text-align: center;
    border-top: 1px solid var(--border);
    padding: 100px 0;
}

.footer-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 0 20px var(--accent-dim);
    letter-spacing: 4px;
}

.footer-cta p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid var(--accent);
    border-radius: 2px;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--shadow);
    transition: transform 0.1s, box-shadow 0.1s;
}

.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--shadow);
    text-decoration: none;
}

.cta-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--shadow);
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .hero { padding: 100px 0 60px; }
    .timeline { padding-left: 30px; }
    .timeline-node { left: -30px; }
    .timeline-day { font-size: 11px; padding: 3px 8px; }
    .timeline-content { margin-left: 12px; }
    .workstreams { grid-template-columns: 1fr; }
    .deliverables-grid { grid-template-columns: 1fr; }
    .deliverable-modal { padding: 24px 20px; max-height: 85vh; }
    .site-nav { top: 10px; right: 12px; }
}
