/* CSS Architecture Variables */
:root {
    --bg-dark: #050505;
    --text-dark-theme: #e8e6e3;
    --bg-light: #fcfcfc;
    --text-light-theme: #1a1a1a;
    
    --accent-orange: #ff6b00;
    --border-color-dark: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(0, 0, 0, 0.08);
    
    --font-header: 'Space Grotesk', sans-serif;
    --font-body: 'Literata', serif;
    --font-mono: 'Space Mono', monospace;
    --font-handwritten: 'Caveat', cursive;
    
    --transition-speed: 0.8s;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

/* Global Document Normalization */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-current, var(--bg-dark));
    color: var(--text-current, var(--text-dark-theme));
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.75;
    overflow-x: hidden;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Dynamic Chapter-by-Chapter Color Systems */
body.active-chapter-0 {
    --bg-current: #0d0c0b;
    --text-current: #e8e4e0;
    --border-current: rgba(255, 255, 255, 0.08);
    --pre-bg-current: rgba(0, 0, 0, 0.4);
}

body.active-chapter-1 {
    --bg-current: #1b1612;
    --text-current: #f4eae0;
    --border-current: rgba(255, 240, 220, 0.1);
    --pre-bg-current: rgba(0, 0, 0, 0.35);
}

body.active-chapter-2 {
    --bg-current: #413631;
    --text-current: #faefe6;
    --border-current: rgba(255, 230, 210, 0.15);
    --pre-bg-current: rgba(0, 0, 0, 0.3);
}

body.active-chapter-3 {
    --bg-current: #56505c;
    --text-current: #ffffff;
    --border-current: rgba(255, 255, 255, 0.15);
    --pre-bg-current: rgba(0, 0, 0, 0.25);
}

body.active-chapter-4 {
    --bg-current: #ded9cd;
    --text-current: #1e1b15;
    --border-current: rgba(0, 0, 0, 0.1);
    --pre-bg-current: rgba(255, 255, 255, 0.2);
}

body.active-chapter-5 {
    --bg-current: #f6f4ee;
    --text-current: #141311;
    --border-current: rgba(0, 0, 0, 0.08);
    --pre-bg-current: rgba(0, 0, 0, 0.03);
}

/* Base Editorial Page Infrastructure Layout */
.dossier-layout {
    display: flex;
    min-height: 100vh;
}

/* Left-Anchored Monospace Nav Track */
.sidebar-nav {
    width: 320px;
    border-right: 1px solid var(--border-current, var(--border-color-dark));
    padding: 3rem 2rem;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color var(--transition-speed) ease;
}

.nav-sticky-content {
    position: sticky;
    top: 3rem;
    height: calc(100vh - 6rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.studio-branding .brand-icon {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0.75rem 0;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studio-branding:hover .brand-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.studio-branding .brand-sub {
    color: var(--accent-orange);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.studio-branding .brand-main {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.2rem;
    letter-spacing: -1px;
}

.scroll-spy-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: auto 0;
}

.nav-item {
    color: inherit;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s ease, padding-left 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
}

.nav-item:hover, .nav-item.active {
    opacity: 1;
    padding-left: 0.5rem;
    font-weight: bold;
}

.nav-footer-signature {
    opacity: 0.3;
    line-height: 1.4;
}

/* Right Column Content Stream Layout */
.content-stream {
    margin-left: 320px;
    width: calc(100% - 320px);
    max-width: 1400px;
    padding: 6rem 4rem;
}

/* Distinct Typographic Treatment Systems */
.editorial-chapter {
    display: grid;
    grid-template-columns: 65% 30%;
    gap: 5%;
    margin-bottom: 12rem;
    scroll-margin-top: 6rem;
    position: relative;
}

.chapter-main {
    display: block;
}

.chapter-aside {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 6.5rem;
}

.chapter-aside pre {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: transparent;
    border-left: 2px solid var(--accent-orange);
    padding-left: 1.2rem;
    margin-bottom: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    font-variant-numeric: tabular-nums;
}

.chapter-aside pre:hover {
    opacity: 1;
}

/* System 1: The Narrative Text Block */
.editorial-chapter h2 {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 3rem;
    max-width: 100%;
}

.editorial-chapter h4 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.editorial-chapter p {
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 95%;
    text-align: left;
}

.editorial-chapter p em {
    font-family: var(--font-body);
    font-style: italic;
}

.editorial-chapter mark.highlight {
    background-color: rgba(255, 107, 0, 0.12); /* Soft, semi-transparent accent orange highlight */
    color: inherit;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    font-weight: 400;
}

.editorial-chapter blockquote.pullquote {
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--accent-orange);
    border-left: 3px solid var(--accent-orange);
    padding: 0.5rem 0 0.5rem 1.8rem;
    margin: 2.5rem 0;
    max-width: 95%;
    font-style: italic;
}

.editorial-chapter a {
    color: var(--accent-orange);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.editorial-chapter a:hover {
    opacity: 0.8;
}

/* System 3: Pure Photographic Artifacts */
.chapter-exhibit-slot {
    width: 100%;
    margin: 4rem 0;
}
.exhibit-frame-16-9 {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--border-current, var(--border-color-dark));
    transition: border-color var(--transition-speed) ease;
}

.exhibit-frame-16-9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.exhibit-caption {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    margin-top: 0.8rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Asymmetrical Layout Side-by-Side Component (Chapter 1) */
.split-exhibit-grid {
    display: flex;
    gap: 2rem;
    margin: 4rem 0;
    max-width: 90%;
}

.split-exhibit-grid .exhibit-frame-16-9 {
    aspect-ratio: 4 / 3;
}

/* Special Case Overrides for Intro Canvas Block */
#introduction h2 {
    font-size: 5rem;
    max-width: 100%;
}

/* Scroll-Spy Entry Animations with Defocusing effect */
.editorial-chapter {
    opacity: 0;
    transform: translateY(30px) scale(0.99);
    filter: blur(4px);
    will-change: transform, opacity, filter;
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.editorial-chapter.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

/* Global Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    left: 319px;
    top: 0;
    width: 2px;
    height: 100vh;
    background: transparent;
    pointer-events: none;
    z-index: 105;
}
.scroll-progress-bar {
    width: 100%;
    height: var(--scroll-percent, 0%);
    background: var(--accent-orange);
}

/* Interactive Before/After Image Slider */
.image-slider-container {
    --slider-pos: 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-current, var(--border-color-dark));
    margin: 4rem 0 1.2rem 0;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color var(--transition-speed) ease;
}

.slider-bg-img,
.slider-overlay-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-bg-img {
    display: block;
}

.slider-overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    filter: grayscale(100%);
    clip-path: polygon(0 0, var(--slider-pos) 0, var(--slider-pos) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, var(--slider-pos) 0, var(--slider-pos) 100%, 0 100%);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--slider-pos);
    width: 1px;
    background: var(--accent-orange);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
}

.slider-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--bg-current);
    color: var(--text-current);
    border: 1px solid var(--border-current);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    pointer-events: none;
    z-index: 12;
    opacity: 0;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s ease, background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.slider-label-left {
    right: calc(100% + 12px);
}

.slider-label-right {
    left: calc(100% + 12px);
}

.image-slider-container:hover .slider-label,
.image-slider-container:active .slider-label {
    opacity: 0.9;
}

.slider-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 60px;
    background: var(--accent-orange);
    border-radius: 4px;
    cursor: ew-resize;
    z-index: 11;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Keyboard Skip Link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

.skip-to-content:focus-visible {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    background: var(--bg-current);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 0.8rem 1.5rem;
    z-index: 9999;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Keyboard Focus Indicators */
.nav-item:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 4px;
    opacity: 1;
}

.slider-handle:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 4px;
}

/* User Preference: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    body {
        transition: none !important;
    }
    .sidebar-nav {
        transition: none !important;
    }
    .nav-item {
        transition: none !important;
    }
    .scroll-progress-bar {
        transition: none !important;
    }
    .editorial-chapter {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    .image-slider-container {
        transition: none !important;
    }
    .slider-label {
        transition: none !important;
    }
    .pulse-ring,
    .scanner-sweep,
    .flow-dots path,
    .rec-indicator {
        animation: none !important;
    }
}

/* Schematic SVG Layout & Telemetry System */
.schematic-svg {
    width: 100%;
    height: 100%;
    display: block;
    color: var(--text-current);
    background: transparent;
    transition: color var(--transition-speed) ease;
}

/* Aside SVG Styling & Hand-drawn overrides */
.aside-svg {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-current);
    transition: color var(--transition-speed) ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.aside-svg:hover {
    transform: scale(1.03) rotate(0.5deg);
}

.aside-svg text.handwritten {
    font-family: var(--font-handwritten, 'Caveat', cursive);
    font-size: 1.45rem;
    fill: currentColor;
    font-weight: normal;
}

.aside-svg text.handwritten-accent {
    font-family: var(--font-handwritten, 'Caveat', cursive);
    font-size: 1.45rem;
    fill: var(--accent-orange);
    font-weight: normal;
}

.aside-svg path, 
.aside-svg line, 
.aside-svg circle, 
.aside-svg rect, 
.aside-svg polygon {
    vector-effect: non-scaling-stroke;
}

.chapter-aside-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Pulsing coordinate beacons */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }
    50% {
        transform: scale(2.0);
        opacity: 0.15;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.9;
    }
}
.pulse-ring {
    animation: pulse 3s ease-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

/* Scanning Sweep Line Animation */
@keyframes scanner-sweep-y {
    0% {
        transform: translateY(20px);
    }
    50% {
        transform: translateY(880px);
    }
    100% {
        transform: translateY(20px);
    }
}
.scanner-sweep {
    animation: scanner-sweep-y 6s ease-in-out infinite;
}

/* Marching dots crowd-flow routing */
@keyframes flow-offset {
    to {
        stroke-dashoffset: -20;
    }
}
.flow-dots path {
    animation: flow-offset 1.2s linear infinite;
}

/* Viewfinder REC blinking light */
@keyframes rec-blink {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.1; }
}
.rec-indicator {
    animation: rec-blink 1.2s step-end infinite;
}

/* SVG Micro-Animations (Only active when reduced motion is NOT preferred) */
@media (prefers-reduced-motion: no-preference) {
    /* 1. Marching Flow (horizontal/vertical connectors) */
    .aside-svg .march-flow {
        stroke-dasharray: 8 6;
        animation: march-forward 2s linear infinite;
    }
    .aside-svg .march-flow-reverse {
        stroke-dasharray: 8 6;
        animation: march-backward 2s linear infinite;
    }
    @keyframes march-forward {
        to { stroke-dashoffset: -14; }
    }
    @keyframes march-backward {
        to { stroke-dashoffset: 14; }
    }

    /* 2. Needle Oscillation (Strategic Monitor) */
    .aside-svg .jitter-needle {
        animation: needle-jitter 2.5s ease-in-out infinite;
        transform-origin: 120px 150px;
    }
    @keyframes needle-jitter {
        0%, 100% { transform: rotate(0deg); }
        50% { transform: rotate(2.5deg); }
    }

    /* 3. Telemetry Alert Lamp Blinking */
    .aside-svg .lamp-blink {
        animation: lamp-fade 1.8s step-end infinite;
    }
    @keyframes lamp-fade {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    /* 4. Slow Rotation (star, loops, viewfinder) */
    .aside-svg .spin-slow {
        animation: spin-clockwise 25s linear infinite;
    }
    .aside-svg .spin-slow-reverse {
        animation: spin-counter-clockwise 25s linear infinite;
    }
    .aside-svg .spin-medium {
        animation: spin-clockwise 12s linear infinite;
    }
    @keyframes spin-clockwise {
        to { transform: rotate(360deg); }
    }
    @keyframes spin-counter-clockwise {
        to { transform: rotate(-360deg); }
    }

    /* 5. Concentric Ripple Animation (Viral Coefficient) */
    .aside-svg .ripple-ring-1 {
        animation: ripple-wave 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
        transform-origin: 200px 125px;
    }
    .aside-svg .ripple-ring-2 {
        animation: ripple-wave 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
        animation-delay: 1.5s;
        transform-origin: 200px 125px;
    }
    @keyframes ripple-wave {
        0% { transform: scale(0.8); opacity: 0.8; }
        100% { transform: scale(1.3); opacity: 0; }
    }

    /* 6. Viewfinder / Hologram Shimmer */
    .aside-svg .shimmer-slow {
        animation: active-shimmer 4s ease-in-out infinite;
    }
    @keyframes active-shimmer {
        0%, 100% { opacity: 0.4; }
        50% { opacity: 0.95; }
    }

    /* 7. Slide handle demonstration (Split-Slider preview) */
    .aside-svg .demo-slide {
        animation: handle-slide-back-forth 5s ease-in-out infinite;
    }
    @keyframes handle-slide-back-forth {
        0%, 100% { transform: translateX(0px); }
        50% { transform: translateX(10px); }
    }
}

/* Mobile Sticky Header (Hidden on Desktop) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-current);
    border-bottom: 1px solid var(--border-current);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.mobile-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.mobile-brand-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mobile-brand-main {
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mobile-active-chapter {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-current);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    flex-grow: 1;
    margin: 0 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-speed) ease;
}

.menu-toggle {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-current);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color var(--transition-speed) ease;
    transform-origin: center;
}

/* Hamburger Animating State */
body.menu-open .menu-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle .hamburger-bar:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Editorial Figure and Mockups */
.editorial-figure {
    width: 100%;
    max-width: 340px;
    margin: 3.5rem 0;
    display: flex;
    flex-direction: column;
}

.editorial-mockup-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-current, var(--border-color-dark));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    background-color: #000;
    transition: border-color var(--transition-speed) ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.editorial-mockup-img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

@media (min-width: 1024px) {
    /* Place adjacent mockups side-by-side on large screens */
    .editorial-figure:has(+ .editorial-figure),
    .editorial-figure + .editorial-figure {
        display: inline-flex;
        width: calc(50% - 1.5rem);
        max-width: 320px;
        margin: 3.5rem 1.5rem 3.5rem 0;
        vertical-align: top;
    }
}

/* Responsive Media Queries */
@media (max-width: 1023px) {
    .editorial-figure {
        margin: 3rem auto;
        max-width: 280px;
    }

    body {
        padding-top: 60px;
    }

    .mobile-header {
        display: flex;
    }

    .scroll-progress-container {
        left: 0;
        top: 60px;
        width: 100%;
        height: 3px;
        z-index: 1001;
    }

    .scroll-progress-bar {
        width: var(--scroll-percent, 0%);
        height: 100%;
    }

    .dossier-layout {
        display: block;
    }

    .sidebar-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-current);
        border-right: none;
        border-bottom: 1px solid var(--border-current);
        padding: 3rem 2rem;
        z-index: 999;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                    background-color var(--transition-speed) ease, 
                    border-color var(--transition-speed) ease;
    }

    body.menu-open .sidebar-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-nav .studio-branding {
        display: none;
    }

    .scroll-spy-links {
        margin: auto 0;
        gap: 1.5rem;
    }

    .nav-item {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .nav-footer-signature {
        opacity: 0.5;
        text-align: center;
        font-size: 0.7rem;
    }

    .content-stream {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 4rem 2.5rem;
    }

    .editorial-chapter {
        display: flex;
        flex-direction: column;
        gap: 3.5rem;
        margin-bottom: 7rem;
    }

    .chapter-main {
        width: 100%;
    }

    .chapter-aside {
        width: 100%;
        padding-top: 0;
        gap: 2rem;
    }

    .aside-svg {
        max-width: 320px;
        margin: 0 auto 0.5rem auto;
    }

    .chapter-aside pre {
        margin-top: 0.5rem;
        font-size: 0.7rem;
    }

    .image-slider-container {
        touch-action: pan-y;
        margin: 3rem 0 1.2rem 0;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 1.05rem;
    }

    .content-stream {
        padding: 3rem 1.25rem;
    }

    .editorial-chapter h2 {
        font-size: 2.25rem;
        letter-spacing: -1px;
        margin-bottom: 2rem;
    }

    #introduction h2 {
        font-size: 3rem;
    }

    .editorial-chapter h4 {
        font-size: 1.45rem;
        margin-top: 2rem;
    }

    .editorial-chapter blockquote.pullquote {
        font-size: 1.3rem;
        max-width: 100%;
        padding-left: 1.25rem;
        margin: 1.8rem 0;
    }

    .split-exhibit-grid {
        flex-direction: column;
        max-width: 100%;
        gap: 1.5rem;
        margin: 3rem 0;
    }

    .image-slider-container {
        margin: 2.5rem 0 1rem 0;
    }

    /* Pin Slider Labels to Corners on Mobile */
    .image-slider-container .slider-label {
        font-size: 0.6rem;
        opacity: 0.85;
        position: absolute;
        top: auto;
        bottom: 12px;
        transform: none !important;
        transition: opacity 0.3s ease;
    }

    .image-slider-container .slider-label-left {
        left: 12px;
        right: auto;
    }

    .image-slider-container .slider-label-right {
        right: 12px;
        left: auto;
    }

    .image-slider-container:hover .slider-label,
    .image-slider-container:active .slider-label {
        opacity: 0.95;
    }
}