/* ── Theme variables ───────────────────────────────────────── */
:root {
    /* Light / Newspaper (default) */
    --bg-page:          #f7f5f0;
    --bg-card:          #f0ece4;
    --bg-mini:          #ece8e0;
    --bg-bar:           #e0dbd2;
    --bg-gradient-mid:  #f4f0e8;
    --border-subtle:    #d8d2c8;
    --border-main:      #c8c0b4;
    --border-heavy:     #b8b0a4;
    --text-main:        #1a1612;
    --text-near:        #1e1610;
    --text-muted-1:     #251c12;
    --text-muted-2:     #2e2418;
    --text-muted-3:     #3a2e24;
    --text-mid:         #4a3e32;
    --text-dim:         #6a5e50;
    --text-faint:       #8a7e70;
    --accent:           #cc3300;
    --accent-light:     #dd4411;
    --header-bg:        rgba(247, 245, 240, 0.97);
    --scale-label-bg:   rgba(247, 245, 240, 0.85);
    --modal-backdrop:   rgba(26, 22, 18, 0.35);
    --dev-banner-color: #4a3e32;
}

body.dark-mode {
    /* Dark / Sepia */
    --bg-page:          #100e0b;
    --bg-card:          #17140f;
    --bg-mini:          #130f0c;
    --bg-bar:           #1e1a14;
    --bg-gradient-mid:  #1a1208;
    --border-subtle:    #221d17;
    --border-main:      #2e2820;
    --border-heavy:     #3d3428;
    --text-main:        #c8b89a;
    --text-near:        #b8a880;
    --text-muted-1:     #aa9878;
    --text-muted-2:     #9a8870;
    --text-muted-3:     #8a7860;
    --text-mid:         #7a6a53;
    --text-dim:         #5c503e;
    --text-faint:       #4d4233;
    --accent:           #a07850;
    --accent-light:     #b08860;
    --header-bg:        rgba(16, 14, 11, 0.97);
    --scale-label-bg:   rgba(16, 14, 11, 0.85);
    --modal-backdrop:   rgba(0, 0, 0, 0.9);
    --dev-banner-color: #7a6a53;
}
/* ─────────────────────────────────────────────────────────── */

.dev-banner {
    color: var(--dev-banner-color);
    opacity: 0.6;
    white-space: nowrap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}

.intro-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.intro-content {
    max-width: 500px;
}

.intro-text {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-main);
}

.intro-text strong {
    color: var(--accent);
}

.intro-subtext {
    font-size: 18px;
    color: var(--text-mid);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.scroll-indicator:hover {
    opacity: 0.7;
}

.scroll-arrow {
    font-size: 32px;
    color: var(--text-dim);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 940px) {
    .scroll-indicator {
        bottom: 140px;
    }

    .intro-text {
        font-size: 22px;
    }

    .intro-subtext {
        font-size: 16px;
    }
}

.progress-bar {
    position: fixed;
    left: 50%;
    margin-left: -350px;
    top: 101px;
    width: 3px;
    height: calc(100vh - 106px);
    background: var(--bg-bar);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    transform-origin: bottom center;
    transform: scaleY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.progress-bar.ui-visible {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .progress-bar {
        left: 22px;
        margin-left: 0;
        width: 3px;
    }
}

@media (max-width: 640px) {
    .progress-bar {
        top: 106px;
        height: calc(100vh - 106px);
    }
}

.progress-fill {
    width: 100%;
    height: 0;
    background: var(--accent);
    transition: height 0.1s;
    cursor: grab;
    position: relative;
}

.progress-fill:active {
    cursor: grabbing;
}

.progress-marker {
    position: absolute;
    left: -3px;
    width: 20px;
    height: 2px;
    background: var(--text-dim);
}

.progress-marker-year {
    position: absolute;
    left: -1px;
    width: 10px;
    height: 1px;
    background: var(--border-heavy);
}

.progress-marker-year-major {
    position: absolute;
    left: -2px;
    width: 14px;
    height: 1px;
    background: var(--text-faint);
}

.progress-marker-year-label {
    position: absolute;
    left: 16px;
    font-size: 9px;
    color: var(--text-faint);
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
}


.progress-scale {
    position: absolute;
    left: 12px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.scale-label {
    position: absolute;
    top: 0;
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: top 0.1s ease;
    background: var(--scale-label-bg);
    padding: 1px 4px;
    z-index: 1;
}

@media (max-width: 768px) {
    .progress-scale {
        left: 10px;
    }

    .scale-label {
        font-size: 10px;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    padding: 20px 20px 25px;
    text-align: center;
    border-bottom: 1px solid var(--border-main);
    z-index: 100;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header.ui-visible {
    opacity: 1;
    transform: translateY(0);
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-mid);
}

.stats-bar {
    position: fixed;
    top: 81px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
    z-index: 100;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stats-bar.ui-visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    padding: 15px 20px;
    text-align: center;
    border-right: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 24px;
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stats-info {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.info-icon {
    font-size: 14px;
    color: var(--text-faint);
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.info-icon:hover {
    color: var(--text-mid);
}

.info-tooltip {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background: var(--bg-bar);
    border: 1px solid var(--border-heavy);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-near);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 101;
}

.stats-info:hover .info-tooltip,
.stats-info.active .info-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 640px) {
    .info-tooltip {
        white-space: normal;
        width: 200px;
        right: -5px;
    }
}

@media (max-width: 640px) {
    .stats-bar {
        top: 90px;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-item {
        padding: 12px 10px;
    }
}

.stats-explainer {
    position: fixed;
    top: 155px;
    left: 0;
    right: 0;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px 16px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.stats-explainer.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.explainer-line {
    width: 1px;
    height: 24px;
    background: var(--border-heavy);
    margin-bottom: 10px;
}

.explainer-text {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    max-width: 360px;
    line-height: 1.5;
}

.explainer-subtext {
    font-size: 11px;
    color: var(--border-heavy);
    text-align: center;
    margin-top: 4px;
    letter-spacing: 0.04em;
}

@media (max-width: 640px) {
    .stats-explainer {
        top: 158px;
    }

    .explainer-text {
        font-size: 12px;
        max-width: 280px;
    }
}

.gate-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.gate-section.visible {
    opacity: 1;
}

.gate-text {
    font-size: 20px;
    color: var(--text-mid);
    max-width: 400px;
    line-height: 1.6;
}

.gate-arrow {
    font-size: 18px;
    color: var(--border-heavy);
    animation: bounce 2s infinite;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
    .gate-text {
        font-size: 17px;
    }
}

.feed {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 361px;
    padding-left: 40px; /* Space for labels on left side of small units */
    overflow-x: clip;
}

/* Scale row - horizontal display of small units */
.scale-row {
    display: flex;
    align-items: flex-end;
    gap: 60px;
    margin-bottom: 60px;
    padding: 40px 0;
}

.scale-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.scale-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.scale-desc {
    font-size: 14px;
    color: var(--text-muted-2);
    margin-bottom: 8px;
}

.scale-arrow {
    font-size: 20px;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.scale-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -40px;
    margin-bottom: 60px;
}

.scale-note-line {
    width: 1px;
    height: 24px;
    background: var(--border-heavy);
    margin-bottom: 10px;
}

.scale-note-text {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    max-width: 360px;
    line-height: 1.5;
}

/* Scale units - small squares representing hours (1 hour = 1 pixel) */
.scale-unit {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 4px;
    position: relative;
    min-width: 1px;
    min-height: 1px;
}

.milestone-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.milestone-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 19px,
        var(--border-main) 19px,
        var(--border-main) 20px
    );
    border-radius: 12px 0 0 12px;
    pointer-events: none;
    z-index: 1;
}


/* Massive card - maintains dark aesthetic but much taller */
/* Massive card - maintains dark aesthetic but much taller */
.scale-card-massive {
    overflow: clip;
}

.sticky-section {
    overflow: visible;
    text-align: center;
}

.sticky-section .floating-text,
.sticky-section .mini-card,
.sticky-section .positioned-video {
    position: sticky !important;
    top: 50vh !important;
    left: auto !important;
    transform: none !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sticky-video-wrapper {
    position: sticky !important;
    top: calc(50vh - 200px) !important;
    text-align: center;
}

.sticky-video-wrapper .positioned-video {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}

.sticky-video-wrapper .media-caption-top,
.sticky-video-wrapper .media-caption-bottom {
    position: static !important;
    left: auto !important;
    transform: none !important;
    display: block;
    margin: 10px auto;
    font-size: 14px;
    color: var(--text-muted-3);
    text-align: center;
}

.milestone-card-header {
    margin-bottom: 40px;
    padding: 20px 0 10px 0;
    z-index: 10;
    background: var(--bg-card);
    width: 100%;
}

.milestone-card-header.is-stuck {
    position: fixed;
    top: 153px;
    z-index: 50;
}

@media (max-width: 640px) {
    .milestone-card-header.is-stuck {
        top: 156px;
    }
}

.milestone-card[data-hours="73050"] .milestone-card-header.is-stuck {
    top: 100px;
    padding: 10px 0 8px 0;
}

@media (max-width: 640px) {
    .milestone-card[data-hours="73050"] .milestone-card-header.is-stuck {
        top: 100px;
    }
}

.milestone-card:first-child {
    padding-top: 0;
}

.milestone-card:first-child .milestone-card-header {
    margin-bottom: 0;
    margin-top: -5px;
}

.milestone-card h2 {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent);
}

.milestone-card p {
    font-size: 18px;
    color: var(--text-muted-2);
    line-height: 1.6;
}

.milestone-card-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.mini-card {
    background: var(--bg-mini);
    border: 1px solid var(--border-heavy);
    border-radius: 8px;
    padding: 20px 30px;
    max-width: 400px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.mini-card h3 {
    font-size: 32px;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.mini-card p {
    font-size: 14px;
    color: var(--text-mid);
}

.lives-card {
    max-width: 500px;
    padding: 40px 30px;
    text-align: center;
}

#livesMiniCard2 {
    transform: translate(-50%, -100%);
}

.lives-card h3 {
    font-size: 72px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.lives-card p {
    font-size: 15px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.floating-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: var(--text-muted-3);
    text-align: center;
    max-width: 80%;
    line-height: 1.6;
}

.positioned-image {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.positioned-video {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#brainrot-video {
    clip-path: inset(0% 0 0% 0);
}

.video-replay-container {
    position: relative;
    display: inline-block;
}

.video-replay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.2s ease;
    z-index: 10;
    line-height: 1;
}

.video-replay-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.video-replay-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    color: var(--text-main);
}


.media-caption-top,
.media-caption-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--text-muted-3);
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}

.media-caption-top {
    margin-bottom: 8px;
}

.media-caption-bottom {
    margin-top: 8px;
}

.end-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-gradient-mid) 50%, var(--bg-page) 100%);
    border-top: 1px solid var(--border-main);
    padding: 60px 20px;
    margin-top: 40px;
}

.end-screen-content {
    max-width: 600px;
    text-align: center;
}

.end-screen-content h2 {
    font-size: 56px;
    margin-bottom: 40px;
    color: var(--text-main);
    font-weight: 700;
}

.end-screen-content p {
    font-size: 20px;
    color: var(--text-muted-1);
    line-height: 1.8;
    margin-bottom: 20px;
}

.end-screen-cta {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-main);
}

.end-screen-cta p {
    font-size: 24px;
    color: var(--accent);
    font-weight: 600;
}

.share-button {
    margin-top: 40px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-heavy);
    border-radius: 8px;
    color: var(--text-muted-3);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.share-button:hover {
    border-color: var(--text-dim);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.share-button:active {
    transform: scale(0.98);
}

.share-button svg {
    width: 16px;
    height: 16px;
}

.grass-image {
    margin-top: 30px;
    width: 100%;
    max-width: 600px;
    height: auto;
    opacity: 0.35;
}

body:not(.dark-mode) .grass-image {
    opacity: 0.8;
}

.bottom-footer {
    padding: 8px 20px 500px;
    text-align: center;
}

@media (max-width: 640px) {
    .bottom-footer {
        padding-bottom: 600px;
    }
}

.sources-link {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sources-link:hover {
    color: var(--text-muted-2);
    text-decoration: underline;
}

.footer-divider {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0 6px;
}

.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    color: var(--text-dim);
    z-index: 100000;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.sources-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-backdrop);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.sources-modal.active {
    display: flex;
}

.sources-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.sources-modal-header {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 30px 40px 20px;
    border-bottom: 1px solid var(--border-main);
}

.sources-modal-header h2 {
    font-size: 28px;
    color: var(--text-main);
    margin: 0;
    grid-column: 1;
    grid-row: 1;
}

.sources-modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 40px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
}

.sources-modal-close:hover {
    color: var(--text-main);
}

.sources-modal-body {
    padding: 30px 40px;
    overflow-y: auto;
}

.source-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-subtle);
}

.source-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.source-item h3 {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 8px;
}

.source-item p {
    font-size: 15px;
    color: var(--text-muted-2);
    margin-bottom: 12px;
    line-height: 1.5;
}

.source-item .source-link {
    font-size: 14px;
    color: var(--text-dim);
}

.source-item .source-link a {
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-item .source-link a:hover {
    color: var(--accent);
}

.attribution-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-subtle);
}

.attribution-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.attribution-section h3 {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 8px;
}

.attribution-section p {
    font-size: 15px;
    color: var(--text-muted-2);
    margin-bottom: 8px;
}

.attribution-section a {
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}

.attribution-section a:hover {
    color: var(--accent);
}

.attribution-editors h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted-2);
    margin-bottom: 5px;
}

.attribution-editors p {
    font-size: 14px;
    color: var(--text-muted-2);
}


.modal-footer {
    padding: 14px 40px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
}


@media (max-width: 640px) {
    .header {
        padding: 20px 20px 30px;
    }

    .header h1 {
        font-size: 20px;
    }

    .subtitle {
        line-height: 1.4;
    }

    .feed {
        padding: 10px 20px;
        max-width: 90%;
        padding-top: 343px;
        padding-left: 35px;
    }

    .milestone-card {
        padding: 30px 20px;
    }

    .milestone-card:first-child {
        padding-top: 40px !important;
    }

    .milestone-card:first-child .milestone-card-header {
        padding-top: 0;
        margin-top: -20px;
    }

    .milestone-card h2 {
        font-size: 44px;
    }

    .milestone-card.highlight h2 {
        font-size: 22px;
    }

    .scale-row {
        gap: 30px;
        flex-wrap: wrap;
    }

    .scale-value {
        font-size: 14px;
    }

    .scale-desc {
        font-size: 12px;
    }

    .scale-note-text {
        font-size: 12px;
        max-width: 280px;
    }

}

/* ── iPhone Frame Overlay ──────────────────────────────────── */
#iphone-corner-fills {
    fill: var(--bg-page);
}

#iphone-frame-border {
    stroke: #111;
    stroke-width: 12;
}

body.dark-mode #iphone-frame-border {
    stroke: #222;
}

#iphone-notch-pill {
    fill: #111;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

body.dark-mode #iphone-notch-pill {
    fill: #1a1a1a;
    opacity: 0.75;
}

body.header-visible #iphone-notch-pill {
    opacity: 0;
}

@media (max-width: 768px) {
    #iphone-frame-border,
    #iphone-corner-fills,
    #iphone-notch-pill,
    #iphone-vol-up,
    #iphone-vol-down,
    #iphone-power-btn {
        display: none;
    }
}

#iphone-vol-up, #iphone-vol-down, #iphone-power-btn {
    fill: #111;
}

body.dark-mode #iphone-vol-up,
body.dark-mode #iphone-vol-down,
body.dark-mode #iphone-power-btn {
    fill: #222;
}
/* ─────────────────────────────────────────────────────────── */

/* ── Theme toggle ──────────────────────────────────────────── */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.theme-toggle.visible {
    opacity: 0.55;
    pointer-events: auto;
}

.theme-toggle:hover {
    opacity: 0.9;
}

.theme-toggle-track {
    position: relative;
    width: 30px;
    height: 17px;
    background: var(--border-main);
    border-radius: 9px;
    display: block;
    transition: background 0.3s ease;
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 11px;
    height: 11px;
    background: var(--text-main);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

body.dark-mode .theme-toggle-thumb {
    transform: translateX(13px);
}

.theme-toggle-label {
    font-size: 10px;
    color: var(--text-mid);
    letter-spacing: 0.03em;
    font-weight: 500;
    min-width: 28px;
}
/* ─────────────────────────────────────────────────────────── */
