/* ============================================
   CSS CUSTOM PROPERTIES (Theme Variables)
   ============================================ */

:root {
    /* Palette: Alice Blue, Blue-Green, Intense Cherry */
    --bg-color: #e8eef4;
    --text-color: #1a2533;
    --text-muted: #6b7d8f;
    --accent-color: #0e9cc7;
    --accent-secondary: #c21f2f;
    --accent-hover: #0a7fa3;
    --card-bg: rgba(213, 225, 237, 0.4);
    --card-border: rgba(14, 156, 199, 0.15);
    --evidence-bg: rgba(213, 225, 237, 0.85);
    --divider-color: rgba(14, 156, 199, 0.2);
    --toggle-bg: rgba(255, 255, 255, 0.9);
    --toggle-border: rgba(14, 156, 199, 0.3);
    --font-display: "Merriweather", Georgia, serif;
    --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-heading: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --accent-secondary-mid: rgba(194, 31, 47, 0.55);
    --accent-secondary-faint: rgba(194, 31, 47, 0.2);
    --text-body: #2e3a4a;
    --arrow-color: var(--accent-color);
    --image-gradient: linear-gradient(to bottom right, #c21f2f, #0e9cc7);
}

[data-theme="night"] {
    /* Palette: Maya Blue, Cyan accents to match Voronoi */
    --bg-color: #0a0f14;
    --text-color: #f0f4f8;
    --text-muted: #6b8099;
    --accent-color: #74bff8;
    --accent-secondary: #3db8d9;
    --accent-hover: #a0d4ff;
    --card-bg: rgba(10, 15, 25, 0.3);
    --card-border: rgba(116, 191, 248, 0.18);
    --evidence-bg: rgba(10, 15, 25, 0.55);
    --divider-color: rgba(116, 191, 248, 0.15);
    --toggle-bg: rgba(15, 20, 30, 0.9);
    --toggle-border: rgba(116, 191, 248, 0.3);
    --accent-secondary-mid: rgba(61, 184, 217, 0.5);
    --accent-secondary-faint: rgba(61, 184, 217, 0.2);
    --text-body: #ffffff;
    --arrow-color: var(--accent-color);
    --image-gradient: linear-gradient(to bottom right, #3db8d9, #d96baa);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    transition: background-color 0.8s ease, color 0.8s ease;
    min-height: 100vh;
    position: relative;
}

/* ============================================
   BACKGROUND ANIMATION
   ============================================ */

#bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#bg-canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

.theme-toggle,
.page-header,
.sections-container {
    position: relative;
    z-index: 1;
}

/* ============================================
   CHERRY BLOCK FLOURISHES
   ============================================ */

.cherry-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    padding: 0 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.cherry-bar-top {
    padding-top: 1.5rem;
    justify-content: flex-start;
}

.cherry-bar-bottom {
    padding-bottom: 2rem;
    justify-content: flex-end;
}

.cherry-block {
    display: block;
    background: var(--accent-secondary);
    transition: background 0.4s ease;
}

.cherry-bar-top .cherry-block:nth-child(1) {
    width: 80px;
    height: 10px;
}

.cherry-bar-top .cherry-block:nth-child(2) {
    width: 30px;
    height: 10px;
    opacity: 0.6;
}

.cherry-bar-top .cherry-block:nth-child(3) {
    width: 10px;
    height: 10px;
    opacity: 0.35;
}

.cherry-bar-bottom .cherry-block:nth-child(1) {
    width: 10px;
    height: 10px;
    opacity: 0.35;
}

.cherry-bar-bottom .cherry-block:nth-child(2) {
    width: 50px;
    height: 10px;
}


/* ============================================
   THEME SWITCH ANIMATION
   ============================================ */

body.theme-switching::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.04;
    z-index: 50;
    pointer-events: none;
    animation: theme-flash 0.8s ease-out forwards;
}

@keyframes theme-flash {
    0% { opacity: 0.08; }
    100% { opacity: 0; }
}

/* ============================================
   THEME TOGGLE — Pill-shaped sliding switch
   ============================================ */

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
}

.toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--toggle-bg);
    border: 2px solid var(--toggle-border);
    border-radius: 100px;
    padding: 4px;
    gap: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toggle-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--accent-color);
    border-radius: 100px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

[data-theme="night"] .toggle-indicator {
    transform: translateX(100%);
}

.toggle-option {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    padding: 0.5rem 1.2rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.35s ease;
    white-space: nowrap;
}

[data-theme="day"] .toggle-option[data-theme-value="day"] {
    color: #ffffff;
}

[data-theme="day"] .toggle-option[data-theme-value="night"] {
    color: var(--text-muted);
}

[data-theme="night"] .toggle-option[data-theme-value="night"] {
    color: #0a0f14;
}

[data-theme="night"] .toggle-option[data-theme-value="day"] {
    color: var(--text-muted);
}

.toggle-option:hover {
    opacity: 0.8;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
    text-align: center;
    padding: 6rem 2rem 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.page-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Night mode: offset the outer header padding to compensate for
   the inner box's 15px padding, keeping vertical position identical */
[data-theme="night"] .page-header {
    padding-top: calc(6rem - 15px);
    padding-bottom: calc(2.5rem - 15px);
}

/* Night mode: small frosted box hugging just the name & subtitle */
[data-theme="night"] .page-header-inner {
    display: inline-block;
    padding: 15px;
    background: rgba(10, 15, 20, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

[data-theme="night"] .page-subtitle {
    color: #93adc5;
}

/* ============================================
   SECTIONS CONTAINER — 3x2 grid on desktop
   ============================================ */

.sections-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem 6rem;
    gap: 1rem;
}

/* ============================================
   SECTION CARDS — Sharp-edged, semi-transparent
   ============================================ */

.section-card {
    position: relative;
    border: none;
    border-radius: 0;
    overflow: hidden;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
}

/* The clickable header */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    min-height: 200px;
    flex: 1;
    padding: 1.75rem 1.5rem 1.75rem 1.5rem;
    background: var(--card-bg);
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
}

/* Cherry accent blocks on the left edge — top-down, with gaps */
.section-header::before,
.section-header::after {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
}

/* Top block: full opacity */
.section-header::before {
    top: 0;
    height: 70px;
    background: var(--accent-secondary);
}

/* Middle + small block via box-shadow (gaps between) */
.section-header::after {
    top: calc(70px + 8px);
    height: 30px;
    background: var(--accent-secondary-mid, rgba(194, 31, 47, 0.55));
    box-shadow: 0 calc(30px + 8px) 0 0 var(--accent-secondary-faint, rgba(194, 31, 47, 0.2));
}

.statement-text {
    flex: 1;
    padding-right: 1.5rem;
}

/* Statement text — large editorial serif */
.statement {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.section-card:hover .statement {
    color: var(--accent-color);
}

/* Show/hide entire cards by theme */
[data-theme="day"] .section-card[data-section-theme="night"] {
    display: none;
}

[data-theme="night"] .section-card[data-section-theme="day"] {
    display: none;
}

/* Placeholder boxes for future images/videos */
.evidence-placeholder {
    background: rgba(128, 128, 128, 0.12);
    border: 2px dashed rgba(128, 128, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.evidence-placeholder-hero {
    width: 100%;
    height: 320px;
    margin: 0 0 2rem;
}

.evidence-placeholder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.evidence-placeholder-grid .evidence-placeholder {
    height: 240px;
    margin: 0;
}

.evidence-placeholder-video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    margin: 2rem 0;
}

.evidence-placeholder-video .evidence-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* ============================================
   ARROW — Animated click indicator
   ============================================ */

.section-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--arrow-color);
    opacity: 0.4;
    margin-bottom: 0.25rem;
}

.section-arrow svg {
    width: 100%;
    height: 100%;
}

.section-card:hover .section-arrow {
    color: var(--accent-color);
    opacity: 1;
}

.section-card.is-open .section-arrow {
    opacity: 0;
    pointer-events: none;
}

@keyframes arrow-pulse {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }
    30% {
        transform: translateY(8px);
        opacity: 0.95;
    }
    60% {
        transform: translateY(0);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }
}

.section-arrow.is-pulsing {
    animation: arrow-pulse 1.2s ease-in-out;
}

.section-card.is-open .section-arrow.is-pulsing,
.sections-container.has-open-section .section-arrow.is-pulsing {
    animation: none;
}

/* ============================================
   FADE UNSELECTED TILES when one is open
   ============================================ */

.sections-container.has-open-section .section-card:not(.is-open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.sections-container.has-open-section .section-card:not(.is-open) .statement {
    opacity: 0.15;
    will-change: opacity, color;
}

.sections-container.has-open-section .section-card:not(.is-open) .section-arrow {
    opacity: 0.1;
    will-change: opacity;
}

.sections-container.has-open-section .section-card:not(.is-open) .section-header::before,
.sections-container.has-open-section .section-card:not(.is-open) .section-header::after {
    opacity: 0.15;
}

.sections-container.has-open-section .section-card:not(.is-open):hover .section-header::before,
.sections-container.has-open-section .section-card:not(.is-open):hover .section-header::after {
    opacity: 0.5;
}

.sections-container.has-open-section .section-card:not(.is-open):hover .statement {
    opacity: 0.5;
}

.sections-container.has-open-section .section-card:not(.is-open):hover .section-arrow {
    opacity: 0.4;
}

/* Night mode: faded tiles are a touch brighter so they're still readable */
[data-theme="night"] .sections-container.has-open-section .section-card:not(.is-open) .statement {
    opacity: 0.28;
}

[data-theme="night"] .sections-container.has-open-section .section-card:not(.is-open) .section-arrow {
    opacity: 0.2;
}

/* Night mode: hide left-edge accent blocks entirely */
[data-theme="night"] .section-header::before,
[data-theme="night"] .section-header::after {
    display: none;
}

/* Night mode: cyan-pink keyline border on tile headers */
[data-theme="night"] .section-header {
    border: 2px solid;
    border-image: linear-gradient(135deg, rgba(61, 184, 217, 0.45), rgba(200, 100, 180, 0.35)) 1;
}

/* ============================================
   SHARED EVIDENCE SLOTS (desktop only)
   One per row, full width, sits between rows
   ============================================ */

.evidence-slot {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--evidence-bg);
    border: 1px solid transparent;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#evidence-slot-1 {
    order: 7;
}

#evidence-slot-2 {
    order: 13;
}

.evidence-slot.is-open {
    border-color: var(--card-border);
}

/* Inner wrapper handles the swap animation */
.evidence-slot-inner {
    padding: 0;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.evidence-slot.is-open .evidence-slot-inner {
    padding: 2.5rem 2rem 3rem;
}

/* Cherry accent bar */
.evidence-slot.is-open .evidence-slot-inner::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

/* Content swap: slide+fade out to the left */
.evidence-slot-inner.is-exiting {
    opacity: 0;
    transform: translateX(-50px);
}

/* Content swap: start from the right, then transition in */
.evidence-slot-inner.is-entering {
    opacity: 0;
    transform: translateX(50px);
    transition: none;
}

/* ============================================
   INLINE EVIDENCE (mobile/tablet fallback)
   ============================================ */

.section-evidence {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem;
    background: var(--evidence-bg);
    border-top: 0px solid var(--divider-color);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.section-card.is-open .section-evidence {
    max-height: 5000px;
    padding: 2.5rem 2rem 3rem;
    border-top-width: 1px;
}

/* ============================================
   EVIDENCE TYPOGRAPHY (shared by both slots
   and inline evidence)
   ============================================ */

.section-evidence h2,
.evidence-slot-inner h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.section-evidence h2:first-of-type,
.evidence-slot-inner h2:first-of-type {
    margin-top: 0;
}

.section-evidence p,
.evidence-slot-inner p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--text-body);
}

.section-evidence p:last-child,
.evidence-slot-inner p:last-child {
    margin-bottom: 0;
}

.section-evidence img,
.evidence-slot-inner img {
    max-width: 100%;
    margin: 1.5rem 0;
    border: 1px solid var(--card-border);
}

.section-evidence ul,
.section-evidence ol,
.evidence-slot-inner ul,
.evidence-slot-inner ol {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.5;
    padding-left: 1.3em;
    margin: 1rem 0;
    color: var(--text-body);
}

.section-evidence li,
.evidence-slot-inner li {
    margin-bottom: 0.6rem;
}

.section-evidence a,
.evidence-slot-inner a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.section-evidence a:hover,
.evidence-slot-inner a:hover {
    color: var(--accent-hover);
}

/* ---- Magazine layout elements ---- */

/* Image grid: two images side by side */
.evidence-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.evidence-image-grid .evidence-media {
    margin: 0 0 1.5rem;
    overflow: visible;
    background: var(--image-gradient);
}

.evidence-image-grid img,
.evidence-image-grid .evidence-hero {
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none !important;
}

/* Full-width hero image */
.evidence-hero {
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin: 0 0 2rem;
    border: none !important;
}

.evidence-hero-full {
    height: auto;
    object-fit: contain;
}

/* Pull quote / highlight */
.evidence-pullquote {
    border-left: 3px solid var(--accent-secondary);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-display);
    font-size: 1.73rem;
    line-height: 1.4;
    color: var(--text-color);
    opacity: 0.85;
}

/* Stat callout row */
.evidence-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

.evidence-stat {
    text-align: center;
    flex: 1;
}

.evidence-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.evidence-stat-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Responsive video embed */
.evidence-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid var(--card-border);
}

.evidence-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Media wrapper with overlay caption bubble ---- */

.evidence-media {
    position: relative;
    margin: 0 0 2.5rem;
}

.evidence-media .evidence-hero {
    margin: 0;
}

.evidence-media-caption {
    position: absolute;
    bottom: 0;
    right: 1.5rem;
    transform: translateY(50%);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
    padding: 0.6rem 1.1rem;
    max-width: 340px;
    border-radius: 12px;
    z-index: 2;
}

[data-theme="day"] .evidence-media-caption {
    background: rgba(255, 255, 255, 0.92);
    color: #1a2533;
    border: 1.5px solid var(--accent-color);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

[data-theme="night"] .evidence-media-caption {
    background: rgba(10, 15, 25, 0.88);
    color: #f0f4f8;
    border: 1.5px solid var(--accent-color);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
    .evidence-media-caption {
        font-size: 0.85rem;
        right: 1rem;
        max-width: 240px;
        padding: 0.5rem 0.85rem;
        transform: translateY(25%);
    }
}

/* Video wrapper with mute toggle */
.evidence-video-wrap {
    position: relative;
    margin: 0 0 2rem;
}

.evidence-video-wrap .evidence-hero {
    margin-bottom: 0;
}

.video-mute-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
    z-index: 3;
}

.video-mute-toggle:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.8);
}

.video-mute-toggle svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 640px) {
    .video-mute-toggle {
        width: 40px;
        height: 40px;
    }

    .video-mute-toggle svg {
        width: 18px;
        height: 18px;
    }
}

.video-mute-toggle .icon-unmuted {
    display: none;
}

.video-mute-toggle.is-unmuted .icon-muted {
    display: none;
}

.video-mute-toggle.is-unmuted .icon-unmuted {
    display: block;
}

/* Portrait video — centred, constrained width */
.evidence-video-portrait {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.evidence-video-portrait video {
    width: 100%;
    max-width: 320px;
    height: auto;
    border: 1px solid var(--card-border);
    background: #000;
}

@media (max-width: 640px) {
    .evidence-video-portrait video {
        max-width: 45%;
    }
}

/* Caption text under images */
.evidence-caption {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    font-style: normal;
}

/* ---- Cross-mode CTA links ---- */

.evidence-mode-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    margin-left: auto;
    padding: 0.9rem 1.4rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    border-radius: 4px;
    width: 30%;
    text-align: left;
}

/* Day mode: cyan-to-pink gradient, white text */
[data-theme="day"] .evidence-mode-cta {
    background: linear-gradient(135deg, #3db8d9, #d94f8a);
    color: #ffffff;
}

[data-theme="day"] .evidence-mode-cta:hover {
    background: linear-gradient(135deg, #2ea8c9, #c93f7a);
    box-shadow: 0 4px 16px rgba(61, 184, 217, 0.3);
}

/* Night mode: blues and whites, black text */
[data-theme="night"] .evidence-mode-cta {
    background: linear-gradient(135deg, #74bff8, #e0ecf8);
    color: #0a0f14;
}

[data-theme="night"] .evidence-mode-cta:hover {
    background: linear-gradient(135deg, #5baee8, #cde0f4);
    box-shadow: 0 4px 16px rgba(116, 191, 248, 0.3);
}

@keyframes cta-arrow-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

.evidence-mode-cta .cta-arrow {
    margin-left: auto;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    opacity: 0.85;
    animation: cta-arrow-nudge 1.8s ease-in-out infinite;
}

.evidence-mode-cta:hover .cta-arrow {
    opacity: 1;
    animation: none;
    transform: translateX(4px);
}

/* Responsive image swap: show different images on mobile vs desktop */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

/* Mobile: stack image grids */
@media (max-width: 640px) {
    .evidence-image-grid {
        grid-template-columns: 1fr;
    }

    .evidence-image-grid img,
    .evidence-image-grid .evidence-hero {
        height: auto;
    }

    .evidence-hero {
        height: 200px;
    }

    .evidence-hero-full {
        height: auto;
    }

    .evidence-placeholder-hero {
        height: 200px;
    }

    .evidence-placeholder-grid {
        grid-template-columns: 1fr;
    }

    .evidence-placeholder-grid .evidence-placeholder {
        height: 160px;
    }

    .evidence-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .evidence-stat {
        flex: 1 1 calc(50% - 0.75rem);
    }

    .evidence-stat-number {
        font-size: 1.8rem;
    }

    .evidence-pullquote {
        font-size: 1.44rem;
    }

    .evidence-mode-cta {
        width: 100%;
    }
}

/* ============================================
   DESKTOP: hide inline evidence, show slots
   ============================================ */

@media (min-width: 1025px) {
    .section-evidence {
        display: none !important;
    }
}

/* ============================================
   TABLET & MOBILE: hide slots, show inline
   ============================================ */

@media (max-width: 1024px) {
    .evidence-slot {
        display: none !important;
    }
}

/* ============================================
   RESPONSIVE — Tablet & Mobile (single column)
   Below 1024px: drop to 1 column with inline
   evidence. No 2-column middle step.
   ============================================ */

@media (max-width: 1024px) {
    .sections-container {
        grid-template-columns: 1fr;
        max-width: 640px;
        padding: 1rem 1.5rem 4rem;
        gap: 1rem;
    }

    .statement {
        font-size: 1.8rem;
    }

    .section-header {
        height: auto;
        min-height: 100px;
        padding: 1.5rem 1.5rem;
    }

    .section-arrow {
        width: 24px;
        height: 24px;
    }

    .section-evidence {
        padding: 0;
    }

    .section-card.is-open .section-evidence {
        padding: 1.5rem 4px 2rem;
    }

    [data-theme="day"] .section-evidence {
        background: rgba(213, 225, 237, 0.4);
    }

    [data-theme="night"] .section-evidence {
        background: rgba(10, 15, 25, 0.6);
    }

    .page-header {
        padding: 5rem 1.5rem 1.5rem;
    }

    [data-theme="night"] .page-header {
        padding-top: calc(5rem - 15px);
        padding-bottom: calc(1.5rem - 15px);
    }

    .page-header h1 {
        font-size: 2.4rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
    }

    .toggle-option {
        padding: 0.4rem 0.9rem;
        font-size: 0.7rem;
    }

    .section-evidence p {
        font-size: 1.1rem;
    }

    .section-evidence ul,
    .section-evidence ol {
        font-size: 1.1rem;
    }

    .section-evidence h2 {
        font-size: 1.42rem;
    }

    .cherry-bar {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Even smaller phones */
@media (max-width: 480px) {
    .statement {
        font-size: 1.5rem;
    }

    .section-header {
        min-height: 140px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}
