/**
 * ═══════════════════════════════════════════════════════════════════════════════
 * 
 *   DESIGN AS QUESTION
 *   Main Stylesheet
 * 
 *   "The details are not the details. They make the design."
 *   — Charles Eames
 * 
 *   This stylesheet is a love letter to the tension between
 *   Dieter Rams' functionalism and the democratic chaos of GeoCities.
 * 
 *   Read it. The comments are part of the experience.
 * 
 * ═══════════════════════════════════════════════════════════════════════════════
 * 
 *   TABLE OF CONTENTS
 *   ─────────────────
 *   1. Design Tokens (Custom Properties)
 *   2. Reset & Base
 *   3. Typography System
 *   4. Layout Containers
 *   5. Components
 *      5.1 Masthead
 *      5.2 Question Block
 *      5.3 Manifesto Grid
 *      5.4 Archives
 *      5.5 Colophon
 *      5.6 Konami Overlay
 *   6. Utilities
 *   7. Responsive Breakpoints
 *   8. Accessibility
 *   9. Print Styles
 * 
 * ═══════════════════════════════════════════════════════════════════════════════
 */


/* =============================================================================
   1. DESIGN TOKENS
   
   Philosophy:
   These aren't just variables—they're decisions crystallized into code.
   Change one, ripple through all. This is the genome of the design.
   
   Awwwards/Pentagram Aesthetic:
   - Bold, confident typography
   - Generous whitespace as design element
   - Subtle, intentional motion
   - Editorial restraint
   ============================================================================= */

:root {
    /* ─────────────────────────────────────────────────────────────────────────
       COLOR SYSTEM
       
       Not a palette. A gradient of intention.
       From the void (#0a0a0f) to the almost-there (#fafaf9).
       
       Naming Convention:
       - Semantic names over visual (--void vs --dark-black)
       - States expressed through opacity, not new colors
       ───────────────────────────────────────────────────────────────────────── */
    
    /* Core Tones */
    --void: #08080c;              /* The absence. Where we begin. */
    --deep: #101014;              /* One step from nothing. */
    --surface: #18181c;           /* Where content rests. */
    --muted: #8b95a5;             /* Supporting cast. Readable but quiet. */
    --text: #d4dae6;              /* Primary voice. 4.5:1 contrast on void. */
    --cream: #f5f5f4;             /* Almost white. For headlines. */
    
    /* Accent System - Refined coral */
    --accent: #e85d5d;            /* Coral red. The heartbeat. */
    --accent-dim: rgba(232, 93, 93, 0.12);
    --accent-hover: #f07070;
    --gold: #d4a520;              /* For rare moments of celebration. */
    --blue: #5a9cf5;              /* External links, tertiary accent. */
    
    /* ─────────────────────────────────────────────────────────────────────────
       TYPOGRAPHY SCALE
       
       Perfect Fourth ratio (1.333) — Bold, editorial, Pentagram-style.
       Uses clamp() for fluid scaling between 320px and 1440px viewports.
       
       Why Perfect Fourth?
       - More dramatic than Major Third
       - Creates strong visual hierarchy
       - Ideal for editorial/magazine layouts
       ───────────────────────────────────────────────────────────────────────── */
    
    --step--2: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);      /* 11-13px */
    --step--1: clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);      /* 13-15px */
    --step-0: clamp(0.95rem, 0.88rem + 0.4vw, 1.125rem);     /* 15-18px — Base */
    --step-1: clamp(1.15rem, 1rem + 0.75vw, 1.5rem);         /* 18-24px */
    --step-2: clamp(1.4rem, 1.15rem + 1.25vw, 2rem);         /* 22-32px */
    --step-3: clamp(1.75rem, 1.35rem + 2vw, 2.75rem);        /* 28-44px */
    --step-4: clamp(2.25rem, 1.6rem + 3.25vw, 4rem);         /* 36-64px */
    --step-5: clamp(3rem, 2rem + 5vw, 6rem);                 /* 48-96px */
    
    /* ─────────────────────────────────────────────────────────────────────────
       FONT FAMILIES
       
       Three voices, one choir:
       
       1. Cormorant Garamond — The poet. Elegant, italic-heavy, classical.
          Used for: Headlines, pull quotes, the emotional moments.
       
       2. Inter — The worker. Clean, neutral, highly legible.
          Used for: Body text, navigation, functional elements.
       
       3. JetBrains Mono — The technician. Code DNA, precise, honest.
          Used for: Labels, metadata, easter eggs.
       
       Variable fonts enable:
       - Fluid weight transitions
       - Optical sizing
       - Smaller file sizes
       ───────────────────────────────────────────────────────────────────────── */
    
    /* Design Temple System (Option 1: Contemporary Clean) */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif; 
    --font-accent: 'Bai Jamjuree', 'Arial', sans-serif;
    
    /* Legacy / Semantic Mapping */
    --font-serif: var(--font-display);
    --font-sans: var(--font-body);
    --font-mono: 'Space Grotesk', 'Courier New', monospace; /* Tech feel using Space Grotesk or system mono */
    
    /* Font Weight Scale */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 450;         /* Variable font intermediate */
    --weight-semibold: 550;       /* Variable font intermediate */
    --weight-bold: 600;
    --weight-black: 700;
    
    /* ─────────────────────────────────────────────────────────────────────────
       SPACING SCALE
       
       Fibonacci-inspired with viewport awareness.
       Spaces grow proportionally with screen real estate.
       ───────────────────────────────────────────────────────────────────────── */
    
    --space-3xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
    --space-2xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-xs: clamp(0.75rem, 0.6rem + 0.75vw, 1.125rem);
    --space-s: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-m: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --space-l: clamp(2rem, 1.6rem + 2vw, 3rem);
    --space-xl: clamp(3rem, 2.4rem + 3vw, 4.5rem);
    --space-2xl: clamp(4rem, 3.2rem + 4vw, 6rem);
    --space-3xl: clamp(6rem, 4.8rem + 6vw, 9rem);
    
    /* ─────────────────────────────────────────────────────────────────────────
       VIEWPORT-AWARE SIZING
       
       Modern CSS viewport units for mobile browser chrome awareness.
       ───────────────────────────────────────────────────────────────────────── */
    
    --full-height: 100dvh;        /* Dynamic: excludes browser chrome */
    --safe-height: 100svh;        /* Small: always visible area */
    --large-height: 100lvh;       /* Large: full potential viewport */
    --content-width: min(90vw, 75rem);
    
    /* ─────────────────────────────────────────────────────────────────────────
       MOTION & EASING
       
       Intentional movement. Every transition tells a story.
       Awwwards-level: silky, confident, never jarring.
       ───────────────────────────────────────────────────────────────────────── */
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* Quick start, gentle landing */
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* Symmetric, deliberate */
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* Playful overshoot */
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);    /* Expo out - luxury feel */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);    /* Material design smooth */
    --duration-fast: 0.2s;
    --duration-base: 0.4s;
    --duration-slow: 0.7s;
    --duration-reveal: 1s;
    
    /* ─────────────────────────────────────────────────────────────────────────
       BORDERS & SHADOWS
       
       Subtle definition. Never harsh.
       ───────────────────────────────────────────────────────────────────────── */
    
    --border-subtle: 1px solid rgba(255, 255, 255, 0.03);
    --border-visible: 1px solid rgba(255, 255, 255, 0.08);
    --border-accent: 1px solid var(--accent);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(232, 93, 93, 0.12);
    --shadow-lift: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    /* Sacred Shrine Tokens */
    --shrine-gold: #d4af37;
    --shrine-gold-dim: rgba(212, 175, 55, 0.3);
    --shrine-incense: rgba(255, 248, 220, 0.03);
    --shrine-divine: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}


/* =============================================================================
   1.5 CUSTOM CURSOR SYSTEM
   
   Sacred geometry in motion. Click to transform.
   Circle → Square → Triangle → Diamond → Blob
   ============================================================================= */

.cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.cursor--main {
    width: 40px;
    height: 40px;
    z-index: 10001;
}

.cursor-shape {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--cream);
    stroke-width: 1.5;
    overflow: visible;
}

.cursor-shape .shape {
    opacity: 0;
    transform-origin: center;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cursor-shape .shape.active {
    opacity: 1;
}

.cursor--hover .cursor-shape {
    stroke: var(--accent);
}

.cursor--hover .cursor-shape .shape.active {
    transform: scale(1.4);
}

/* Trail cursor */
.cursor--trail {
    width: 16px;
    height: 16px;
    background: var(--accent);
    opacity: 0.4;
    transition: opacity 0.2s ease, width 0.3s ease, height 0.3s ease;
}

.cursor--main.cursor--hover ~ .cursor--trail {
    opacity: 0.8;
    width: 24px;
    height: 24px;
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-container {
        display: none;
    }
    
    body {
        cursor: auto !important;
    }
}


/* =============================================================================
   1.6 EDGE MARQUEE (Semicircle Spinners)
   
   Sacred text flowing along the edges of the shrine.
   ============================================================================= */

.edge-marquee {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 80px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: screen;
}

.edge-marquee--left {
    left: 0;
}

.edge-marquee--right {
    right: 0;
    transform: scaleX(-1);
}

.edge-marquee-svg {
    width: 100%;
    height: 100%;
}

.edge-marquee-text {
    font-family: var(--font-mono);
    font-size: 9px;
    fill: var(--shrine-gold);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

@media (max-width: 64rem) {
    .edge-marquee {
        width: 40px;
        opacity: 0.25;
    }
    
    .edge-marquee-text {
        font-size: 7px;
    }
}

@media (max-width: 30rem) {
    .edge-marquee {
        display: none;
    }
}


/* =============================================================================
   1.7 WALL OF HONOUR MARQUEE
   
   The names of the masters. Perpetual motion. Eternal respect.
   ============================================================================= */

.wall-of-honour {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: linear-gradient(180deg, var(--void) 0%, transparent 100%);
    padding-top: 8px;
    overflow: hidden;
    pointer-events: none;
}

.honour-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 60s linear infinite;
}

.honour-track--1 {
    animation-duration: 80s;
}

.honour-track--2 {
    animation-duration: 90s;
    animation-direction: reverse;
    opacity: 0.6;
}

.honour-track--3 {
    animation-duration: 70s;
    opacity: 0.4;
}

.honour-text {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: var(--weight-medium);
    color: var(--shrine-gold);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    padding-right: 2rem;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 48rem) {
    .wall-of-honour {
        padding-top: 4px;
    }
    
    .honour-text {
        font-size: 8px;
        letter-spacing: 0.3em;
    }
}


/* =============================================================================
   1.8 THREE.JS WEBGL BACKGROUND
   
   Glassmorphic 3D shapes floating in space.
   ============================================================================= */

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

/* Reduce opacity on mobile for performance */
@media (max-width: 48rem) {
    .webgl-bg {
        opacity: 0.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .webgl-bg {
        display: none;
    }
}


/* =============================================================================
   1.9 SHRINE AMBIENT EFFECTS
   
   The temple breathes. Divine light emanates.
   ============================================================================= */

.shrine-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shrine-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.shrine-glow--1 {
    width: 600px;
    height: 600px;
    background: var(--shrine-divine);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    animation: shrine-breathe 8s ease-in-out infinite;
}

.shrine-glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(232, 93, 93, 0.06) 0%, transparent 70%);
    bottom: 20%;
    right: -100px;
    animation: shrine-breathe 12s ease-in-out infinite reverse;
}

@keyframes shrine-breathe {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1.15);
    }
}

/* Divine rays */
.shrine-rays {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60vh;
    background: 
        linear-gradient(180deg, rgba(212, 175, 55, 0.02) 0%, transparent 100%),
        repeating-conic-gradient(
            from 0deg at 50% 0%,
            transparent 0deg,
            rgba(212, 175, 55, 0.015) 2deg,
            transparent 4deg
        );
    pointer-events: none;
    opacity: 0.8;
}

/* Particle dust effect */
.shrine-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(212, 175, 55, 0.3) 50%, transparent 50%),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        radial-gradient(1px 1px at 60% 20%, rgba(212, 175, 55, 0.25) 50%, transparent 50%),
        radial-gradient(1px 1px at 80% 80%, rgba(255, 255, 255, 0.15) 50%, transparent 50%),
        radial-gradient(1px 1px at 10% 60%, rgba(212, 175, 55, 0.2) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.2) 50%, transparent 50%);
    background-size: 200px 200px;
    animation: particle-drift 60s linear infinite;
    opacity: 0.6;
}

@keyframes particle-drift {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-200px) translateX(50px);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .honour-track,
    .shrine-glow,
    .shrine-particles {
        animation: none !important;
    }
    
    .cursor-container {
        display: none;
    }
}


/* =============================================================================
   2. RESET & BASE
   
   Start from nothing. Build with intention.
   ============================================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
    hanging-punctuation: first last;
    
    /* Prevent text overflow globally */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body {
    font-family: var(--font-sans);
    font-size: var(--step-0);
    font-weight: var(--weight-regular);
    line-height: 1.7;
    color: var(--text);
    background: var(--void);
    min-height: var(--full-height, 100vh);
    min-height: 100dvh;
    overflow-x: hidden;
    
    /* Global text handling for mobile */
    -webkit-hyphens: auto;
    hyphens: auto;
    word-break: break-word;
}

/* Fallback for browsers without dvh support */
@supports not (min-height: 100dvh) {
    body {
        min-height: 100vh;
    }
}

/* Text selection - refined */
::selection {
    background: var(--accent);
    color: var(--void);
}

::-moz-selection {
    background: var(--accent);
    color: var(--void);
}

/* ─────────────────────────────────────────────────────────────────────────────
   THE GRAIN
   
   Imperfection as honesty.
   Every screen is a surface. This one has texture.
   
   The noise is generated via SVG filter, inlined to avoid extra requests.
   Subtle at 0.018 opacity — felt more than seen.
   ───────────────────────────────────────────────────────────────────────────── */

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


/* =============================================================================
   3. TYPOGRAPHY SYSTEM
   
   Typography is architecture.
   Letters are rooms. Words are hallways. Paragraphs are buildings.
   
   Pentagram approach: bold hierarchy, confident spacing.
   ============================================================================= */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: var(--weight-medium);
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
    
    /* Prevent text overflow in headings */
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Monospace utility */
.mono {
    font-family: var(--font-mono);
    font-size: 0.88em;
    letter-spacing: -0.02em;
}

/* Links - Pentagram style: subtle, refined */
a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: 
        background-size var(--duration-base) var(--ease-expo),
        color var(--duration-base) var(--ease-out);
}

a:hover {
    color: var(--cream);
    background-size: 100% 1px;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Emphasis */
em, i {
    font-style: italic;
}

strong, b {
    font-weight: var(--weight-semibold);
    color: var(--cream);
}

/* Paragraph text handling */
p {
    max-width: 70ch;
    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* =============================================================================
   4. LAYOUT CONTAINERS
   
   Constraints as liberation.
   The measure of a line is the measure of attention.
   
   Pentagram approach: generous margins, confident negative space.
   ============================================================================= */

.wrapper {
    width: min(65ch, 88vw);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.wrapper--wide {
    width: min(80rem, 92vw);
    padding-inline: clamp(1.25rem, 4vw, 2rem);
}


/* =============================================================================
   5. COMPONENTS
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   5.1 MASTHEAD (The Temple Entrance)
   
   Enter the shrine. Leave your assumptions at the door.
   Sacred geometry meets editorial restraint.
   ───────────────────────────────────────────────────────────────────────────── */

.masthead {
    padding-block: var(--space-3xl) var(--space-2xl);
    padding-top: calc(var(--space-3xl) + 50px); /* Account for wall of honour */
    text-align: center;
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Divine light from above */
.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 80%;
    background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Vertical line — a sacred thread descending */
.masthead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: var(--space-2xl);
    background: linear-gradient(to bottom, var(--shrine-gold), transparent);
    opacity: 0.4;
}

.title {
    font-size: var(--step-5);
    font-weight: var(--weight-light);
    font-style: italic;
    color: var(--cream);
    margin-bottom: var(--space-s);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: 0 0 80px rgba(212, 175, 55, 0.15);
    
    /* Mobile text overflow fix */
    max-width: 90vw;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.title span {
    font-style: normal;
    font-weight: var(--weight-bold);
    color: var(--shrine-gold);
    display: inline-block;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.byline {
    font-family: var(--font-mono);
    font-size: var(--step--2);
    font-weight: var(--weight-regular);
    color: var(--muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.8;
}

.byline a {
    background-image: none;
    border-bottom: 1px solid transparent;
    transition: 
        border-color var(--duration-base) var(--ease-expo),
        color var(--duration-base) var(--ease-out);
}

.byline a:hover {
    border-bottom-color: var(--shrine-gold);
    color: var(--cream);
    background-size: 0;
}

/* Jump to Archives button (masthead) */
.jump-to-archives {
    display: inline-block;
    margin-top: var(--space-m);
    padding: 0.6rem 1rem;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--deep);
    background: linear-gradient(180deg, var(--shrine-gold) 0%, #c99f2e 100%);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), opacity 200ms linear;
}

.jump-to-archives:hover,
.jump-to-archives:focus {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 36px rgba(0,0,0,0.45);
    outline: none;
}

/* small pulse to draw initial attention */
.jump-to-archives.pulse {
    animation: shrine-pulse 1.8s ease-in-out 2;
}

@keyframes shrine-pulse {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    40% { transform: translateY(-6px) scale(1.03); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}


/* (Orphaned manifesto/essay/pioneers-intro selectors removed — not referenced in index.html) */


/* ═══════════════════════════════════════════════════════════════════════════════
   SCROLL-STOPPING TYPOGRAPHY
   
   The unmissable. Sacred proclamations.
   Giant type. Divine light. Visual interruptions.
   ═══════════════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────────────────
   5.3k THESIS / GIANT OPENER (The Altar)
   ───────────────────────────────────────────────────────────────────────────── */

.thesis-section {
    padding-block: var(--space-3xl);
    text-align: center;
    border-top: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

/* Sacred light from above */
.thesis-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Sacred frame */
.thesis-section::after {
    content: '✦';
    position: absolute;
    bottom: var(--space-m);
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--shrine-gold);
    opacity: 0.5;
}

.giant-opener {
    font-family: var(--font-serif);
    font-size: var(--step-5);
    font-weight: var(--weight-light);
    line-height: 1.1;
    color: var(--cream);
    max-width: 18ch;
    margin-inline: auto;
    margin-bottom: var(--space-s);
    position: relative;
    text-shadow: 0 0 100px rgba(212, 175, 55, 0.2);
}

.giant-opener em {
    font-style: italic;
    color: var(--shrine-gold);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
}

.giant-subline {
    font-family: var(--font-mono);
    font-size: var(--step-0);
    font-weight: var(--weight-regular);
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.thesis-footnote {
    font-size: var(--step--1);
    color: var(--muted);
    font-family: var(--font-mono);
    margin-top: 1.5em;
    letter-spacing: 0.03em;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.3l SCROLL STOPS
   
   Full-width visual interruptions. Sacred proclamations.
   ───────────────────────────────────────────────────────────────────────────── */

.scroll-stop {
    padding-block: var(--space-2xl);
    text-align: center;
    background: var(--deep);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

/* Sacred glow behind scroll stops */
.scroll-stop::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 200%;
    background: var(--shrine-divine);
    pointer-events: none;
    z-index: 0;
}

/* Sacred frame lines */
.scroll-stop::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 80%);
    height: 80%;
    border: 1px solid var(--shrine-gold-dim);
    pointer-events: none;
    z-index: 0;
}

.scroll-stop > * {
    position: relative;
    z-index: 1;
}

.scroll-stop.alt {
    background: linear-gradient(135deg, var(--deep), var(--void));
}

.scroll-stop.giant {
    padding-block: var(--space-3xl);
    background: var(--void);
}

.scroll-stop.giant::before {
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
}

.scroll-stop.contrast {
    padding-block: var(--space-xl);
    background: var(--deep);
}

.scroll-stop.final {
    padding-block: var(--space-3xl);
    background: linear-gradient(to bottom, var(--deep), var(--void));
}

.scroll-stop.final::before {
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    animation: shrine-breathe 6s ease-in-out infinite;
}

/* Text styles */
.stop-text {
    font-family: var(--font-serif);
    font-size: var(--step-3);
    font-weight: var(--weight-light);
    line-height: 1.2;
    color: var(--cream);
    margin: 0;
}

.stop-giant {
    font-family: var(--font-serif);
    font-size: var(--step-5);
    font-weight: var(--weight-light);
    line-height: 1.1;
    color: var(--cream);
    margin: 0;
    text-shadow: 0 0 80px rgba(212, 175, 55, 0.3);
}

.stop-small {
    font-family: var(--font-sans);
    font-size: var(--step--1);
    font-weight: var(--weight-regular);
    color: var(--muted);
    margin: 0;
    margin-bottom: var(--space-2xs);
}

.stop-whisper {
    font-family: var(--font-sans);
    font-size: var(--step-0);
    font-weight: var(--weight-regular);
    color: var(--muted);
    margin-top: var(--space-s);
}

.stop-preamble {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    font-weight: var(--weight-regular);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: var(--space-m);
}

/* Accent variations */
.stop-fade {
    color: var(--muted);
    font-style: italic;
}

.stop-accent {
    color: var(--shrine-gold);
    font-style: italic;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Versus layout */
.stop-versus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-l);
    max-width: 60rem;
    margin-inline: auto;
    padding-inline: var(--space-m);
}

.versus-left,
.versus-right {
    flex: 1;
    font-family: var(--font-serif);
    font-size: var(--step-2);
    font-weight: var(--weight-light);
    line-height: 1.4;
    color: var(--cream);
}

.versus-left {
    text-align: right;
    color: var(--muted);
}

.versus-right {
    text-align: left;
    color: var(--cream);
}

.versus-left em,
.versus-right em {
    font-style: italic;
    display: block;
    margin-top: var(--space-2xs);
}

.versus-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.3m CONTENT SECTIONS (Simplified)
   ───────────────────────────────────────────────────────────────────────────── */

/* Section markers — architectural wayfinding */
.section-marker {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    margin-bottom: var(--space-m);
}

.marker-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    max-width: 4rem;
    opacity: 0.6;
}

.marker-label {
    font-family: var(--font-mono);
    font-size: var(--step--2);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-serif);
    font-size: var(--step-3);
    font-weight: var(--weight-light);
    color: var(--cream);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-m);
}

/* Content blocks */
.content-block {
    max-width: 60ch;
}

.content-block p {
    font-family: var(--font-sans);
    font-size: var(--step-0);
    color: var(--text);
    line-height: 1.7;
    margin-bottom: var(--space-s);
}

.content-block .highlight-line {
    font-family: var(--font-serif);
    font-size: var(--step-1);
    font-style: italic;
    color: var(--cream);
}

.warning-inline {
    color: var(--cream);
    padding-left: var(--space-s);
    border-left: 2px solid var(--accent);
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.3n FUNDAMENTAL SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.fundamental-section {
    padding-block: var(--space-2xl);
    border-top: var(--border-subtle);
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.3o HISTORY TIMELINE (Compact strip)
   ───────────────────────────────────────────────────────────────────────────── */

.history-section {
    padding-block: var(--space-2xl);
    border-top: var(--border-subtle);
}

.timeline-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: var(--space-m);
}

.timeline-item {
    flex: 1;
    min-width: 150px;
    padding: var(--space-m);
    background: var(--void);
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: var(--step--2);
    font-weight: var(--weight-semibold);
    color: var(--accent);
}

.timeline-name {
    font-family: var(--font-serif);
    font-size: var(--step-1);
    font-weight: var(--weight-medium);
    color: var(--cream);
}

.timeline-note {
    font-family: var(--font-sans);
    font-size: var(--step--2);
    color: var(--muted);
    font-style: italic;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.3p PIONEERS (Compact rows)
   ───────────────────────────────────────────────────────────────────────────── */

.pioneers-section {
    padding-block: var(--space-2xl);
    border-top: var(--border-subtle);
}

.pioneers-compact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: var(--space-m);
}

.pioneer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-m);
    padding: var(--space-s) var(--space-m);
    background: var(--void);
    transition: background 0.2s ease;
}

.pioneer-row:hover {
    background: var(--deep);
}

.pioneer-row.highlight {
    background: rgba(255, 107, 107, 0.08);
    border-left: 2px solid var(--accent);
}

.pioneer-names {
    font-family: var(--font-serif);
    font-size: var(--step-0);
    font-weight: var(--weight-medium);
    color: var(--cream);
}

.pioneer-what {
    font-family: var(--font-mono);
    font-size: var(--step--2);
    color: var(--muted);
    text-align: right;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.3q FACADE SECTION
   ───────────────────────────────────────────────────────────────────────────── */

.facade-section {
    padding-block: var(--space-2xl);
    border-top: var(--border-subtle);
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.3r VALUE STRIP
   ───────────────────────────────────────────────────────────────────────────── */

.value-section {
    padding-block: var(--space-2xl);
    border-top: var(--border-subtle);
}

.value-strip {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    margin-top: var(--space-l);
}

.value-strip li {
    font-family: var(--font-sans);
    font-size: var(--step--1);
    color: var(--muted);
    padding: var(--space-2xs) var(--space-s);
    background: var(--deep);
    border-left: 2px solid transparent;
    transition: border-color 0.2s ease;
    position: relative;
}

.value-strip li + li::before {
    content: '—';
    position: absolute;
    left: calc(-1 * var(--space-s) - 0.25em);
    color: var(--muted);
    opacity: 0.35;
    pointer-events: none;
}

.value-strip li:hover {
    border-left-color: var(--accent);
}

.value-strip li strong {
    color: var(--accent);
    font-weight: var(--weight-semibold);
}

/* (Orphaned section-subtitle, lead-paragraph, asymmetric-grid, margin-note, callout-box,
   duplicate fundamental/history/facade sections, pioneers-grid, pioneer-card, distinctions,
   paradox, value-list/quote, conclusion selectors removed — not referenced in index.html) */


/* ─────────────────────────────────────────────────────────────────────────────
   5.4 ARCHIVES
   
   The work. Organized by era. Each link is a portal.
   Pentagram-style: clean lines, bold typography, confident space.
   ───────────────────────────────────────────────────────────────────────────── */

.archives {
    padding-block: var(--space-3xl) var(--space-2xl);
    border-top: var(--border-subtle);
}

.archives-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-s);
}

.archives-title {
    font-size: var(--step-3);
    font-weight: var(--weight-light);
    color: var(--cream);
    letter-spacing: -0.02em;
}

.archives-subtitle {
    font-family: var(--font-mono);
    font-size: var(--step--2);
    font-weight: var(--weight-regular);
    color: var(--muted);
    opacity: 0.7;
}

.archive-list {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.02);
}

.archive-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-m);
    padding: var(--space-m) var(--space-s);
    background: var(--void);
    text-decoration: none;
    transition: 
        background var(--duration-base) var(--ease-expo),
        padding-left var(--duration-base) var(--ease-expo);
    
    /* Reset link styles */
    background-image: none;
}

.archive-item:hover {
    background: var(--deep);
    padding-left: var(--space-m);
}

.archive-item:hover .archive-arrow {
    transform: translateX(12px);
    opacity: 1;
}

.archive-item:hover .archive-name {
    color: var(--accent);
}

.archive-code {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    min-width: 5ch;
    letter-spacing: 0.05em;
}

.archive-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
    min-width: 0; /* Enable text truncation */
}

.archive-name {
    font-family: var(--font-serif);
    font-size: var(--step-1);
    font-weight: var(--weight-medium);
    color: var(--cream);
    transition: color var(--duration-base) var(--ease-out);
    
    /* Mobile text overflow */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.archive-desc {
    font-size: var(--step--1);
    font-weight: var(--weight-regular);
    color: var(--muted);
    line-height: 1.5;
    
    /* Mobile text overflow */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.archive-meta {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    flex-shrink: 0;
}

.archive-year {
    font-family: var(--font-mono);
    font-size: var(--step--2);
    font-weight: var(--weight-regular);
    color: var(--muted);
    opacity: 0.6;
}

.archive-arrow {
    font-size: var(--step-0);
    color: var(--accent);
    opacity: 0;
    transform: translateX(0);
    transition: 
        transform var(--duration-base) var(--ease-expo),
        opacity var(--duration-base) var(--ease-out);
}

/* Active Course Indicator */
.archive-item--active {
    border-left: 3px solid var(--accent);
    background: rgba(232, 93, 93, 0.03);
}

.archive-item--active:hover {
    background: rgba(232, 93, 93, 0.06);
}

.status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--step--2);
    font-weight: var(--weight-semibold);
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.15em 0.5em;
    border-radius: 4px;
    margin-left: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.5 COLOPHON
   
   The credits. The craft notes. The goodbye.
   ───────────────────────────────────────────────────────────────────────────── */

.colophon {
    padding-block: var(--space-3xl);
    border-top: var(--border-subtle);
    text-align: center;
}

.colophon-text {
    font-size: var(--step--1);
    font-weight: var(--weight-regular);
    color: var(--muted);
    max-width: 50ch;
    margin-inline: auto;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.colophon-text + .colophon-text {
    margin-top: var(--space-2xs);
}

.colophon-text a {
    color: var(--text);
    font-weight: var(--weight-medium);
    background-image: none;
}

.colophon-text a:hover {
    color: var(--cream);
}

.colophon-text em {
    font-style: italic;
    color: var(--text);
}

.colophon-links {
    display: flex;
    justify-content: center;
    gap: var(--space-s);
    margin-top: var(--space-l);
    font-family: var(--font-mono);
    font-size: var(--step--2);
}

.colophon-links a {
    color: var(--muted);
    text-decoration: none;
    padding: var(--space-2xs) var(--space-s);
    border: var(--border-visible);
    background-image: none;
    transition: 
        color var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out),
        background var(--duration-base) var(--ease-out);
}

.colophon-links a:hover {
    color: var(--cream);
    border-color: var(--accent);
    background: rgba(232, 93, 93, 0.05);
}

.copyright {
    margin-top: var(--space-xl);
    font-family: var(--font-mono);
    font-size: var(--step--2);
    font-weight: var(--weight-regular);
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5.6 KONAMI OVERLAY
   
   ↑ ↑ ↓ ↓ ← → ← → B A
   For those who remember.
   
   Pentagram approach: Theatrical reveal, confident typography.
   ───────────────────────────────────────────────────────────────────────────── */

.konami-overlay {
    position: fixed;
    inset: 0;
    background: var(--void);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1), 
        visibility 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.konami-content {
    text-align: center;
    padding: var(--space-xl);
    max-width: 55ch;
}

.konami-title {
    font-family: var(--font-serif);
    font-size: var(--step-4);
    font-weight: var(--weight-light);
    font-style: italic;
    color: var(--cream);
    margin-bottom: var(--space-l);
    letter-spacing: -0.03em;
}

.konami-text {
    font-size: var(--step-0);
    font-weight: var(--weight-regular);
    color: var(--muted);
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.konami-text + .konami-text {
    margin-top: var(--space-s);
}

.konami-text strong {
    color: var(--accent);
    font-weight: var(--weight-semibold);
}

.konami-close {
    margin-top: var(--space-xl);
    padding: var(--space-xs) var(--space-l);
    background: transparent;
    border: var(--border-visible);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    cursor: pointer;
    transition: 
        color var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out),
        background var(--duration-base) var(--ease-out);
}

.konami-close:hover {
    border-color: var(--accent);
    color: var(--cream);
    background: rgba(232, 93, 93, 0.08);
}

.konami-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}


/* =============================================================================
   6. UTILITIES
   ============================================================================= */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-m);
    background: var(--accent);
    color: var(--void);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    z-index: 99999;
    transition: top 0.4s var(--ease-expo);
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Smooth scroll anchor offset */
[id] {
    scroll-margin-top: 2rem;
}

/* Text balance for headings where supported */
@supports (text-wrap: balance) {
    h1, h2, h3, .section-title {
        text-wrap: balance;
    }
}

/* Smooth image rendering */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Focus visible enhancement for all interactive elements */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Remove outline on mouse focus */
:focus:not(:focus-visible) {
    outline: none;
}


/* =============================================================================
   7. RESPONSIVE BREAKPOINTS
   
   Mobile-first, content-driven breakpoints.
   Numbers chosen for content, not devices.
   
   Pentagram approach: Every breakpoint is intentional.
   Mobile text overflow is handled globally + per-component.
   ============================================================================= */

/* Large tablets and small laptops (≤1024px) */
@media (max-width: 64rem) {
    .masthead {
        padding-block: clamp(3rem, 15vh, 5rem) clamp(2rem, 10vh, 3rem);
        min-height: 50vh;
    }
}

/* Tablets (≤768px) */
@media (max-width: 48rem) {
    :root {
        --step-5: clamp(2rem, 6vw, 3.5rem);
        --step-4: clamp(1.75rem, 5vw, 2.75rem);
        --step-3: clamp(1.5rem, 4vw, 2rem);
        --step-2: clamp(1.2rem, 3.5vw, 1.75rem);
    }

    .wrapper {
        width: 92vw;
        padding-inline: clamp(1rem, 4vw, 1.75rem);
    }
    
    .wrapper--wide {
        width: 94vw;
        padding-inline: clamp(1rem, 4vw, 1.5rem);
    }
    
    .masthead {
        padding-block: clamp(2.5rem, 12vh, 4rem) clamp(1.5rem, 8vh, 2.5rem);
        min-height: 45vh;
    }
    
    .masthead::after {
        height: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .title {
        max-width: 85vw;
    }
    
    .archive-item {
        grid-template-columns: 1fr;
        gap: var(--space-2xs);
        padding: clamp(1rem, 4vw, 1.5rem);
    }
    
    .archive-meta {
        justify-content: space-between;
        margin-top: var(--space-2xs);
    }
    
    .archive-arrow {
        opacity: 0.5;
    }
    
    .archives-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2xs);
    }
    
    .colophon-links {
        flex-wrap: wrap;
        gap: clamp(0.5rem, 2vw, 0.75rem);
    }
    
    .colophon-links a {
        padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1rem);
    }
    
    .thesis-section::before {
        display: none;
    }
    
    .section-title {
        font-size: var(--step-3);
    }
    
    /* Scroll stops responsive (tablet) */
    .scroll-stop {
        padding-block: var(--space-xl);
    }
    
    .scroll-stop.giant {
        padding-block: var(--space-2xl);
    }
    
    .stop-versus {
        flex-direction: column;
        gap: var(--space-m);
    }
    
    .versus-left,
    .versus-right {
        text-align: center;
    }
    
    .versus-divider {
        width: 60px;
        height: 1px;
    }
    
    .timeline-strip {
        flex-direction: column;
    }
    
    .timeline-item {
        min-width: 100%;
    }
    
    .pioneer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3xs);
    }
    
    .pioneer-what {
        text-align: left;
    }
}

/* Mobile phones (≤480px) */
@media (max-width: 30rem) {
    :root {
        --step-5: clamp(1.5rem, 8vw, 2.5rem);
        --step-4: clamp(1.25rem, 6vw, 2rem);
        --step-3: clamp(1.1rem, 5vw, 1.75rem);
        --step-2: clamp(1rem, 4vw, 1.5rem);
    }

    body {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        -webkit-hyphens: auto;
        hyphens: auto;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    .wrapper {
        width: 100vw;
        padding-inline: max(clamp(1rem, 5vw, 1.5rem), env(safe-area-inset-left, 0));
    }
    
    .wrapper--wide {
        width: 100vw;
        padding-inline: max(clamp(1rem, 5vw, 1.5rem), env(safe-area-inset-left, 0));
    }
    
    /* Haptic-style active feedback for tappable elements */
    .archive-item:active,
    .pioneer-row:active,
    .jump-to-archives:active,
    .colophon-links a:active,
    .konami-close:active {
        transform: scale(0.97);
        transition-duration: 0.08s;
    }
    
    .masthead {
        padding-block: clamp(2rem, 10vh, 3.5rem) clamp(1.25rem, 6vh, 2rem);
        min-height: 40vh;
    }
    
    .title {
        line-height: 1.1;
        letter-spacing: -0.03em;
        max-width: 90vw;
        padding-inline: 0.5rem;
    }
    
    .byline {
        font-size: clamp(0.65rem, 2.5vw, 0.8rem);
        letter-spacing: 0.12em;
    }
    
    .archive-name {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }
    
    .archive-desc {
        font-size: clamp(0.75rem, 2.8vw, 0.9rem);
        line-height: 1.5;
    }
    
    .colophon-text {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
    }
    
    .colophon-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-2xs);
    }
    
    .colophon-links a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .konami-content {
        padding: clamp(1rem, 4vw, 1.5rem);
    }
    
    .konami-title {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }
    
    .konami-text {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
    }
    
    .section-title {
        letter-spacing: -0.02em;
    }
    
    .section-marker {
        margin-bottom: var(--space-m);
    }
    
    .marker-line {
        max-width: 3rem;
    }
    
    /* Scroll stops responsive (mobile) */
    .giant-opener {
        font-size: var(--step-5);
        max-width: 16ch;
    }
    
    .stop-text {
        font-size: var(--step-3);
    }
    
    .stop-giant {
        font-size: var(--step-5);
    }
    
    .versus-left,
    .versus-right {
        font-size: var(--step-2);
    }

    .archive-item {
        min-height: 48px;
    }

    .colophon-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .jump-to-archives {
        min-height: 48px;
        padding: 0.75rem 1.25rem;
    }
    
    .value-strip {
        flex-direction: column;
    }
    
    .value-strip li {
        width: 100%;
    }
    
}

/* Landscape mobile orientation */
@media (max-height: 31.25rem) and (orientation: landscape) {
    .masthead {
        padding-block: clamp(1.5rem, 8vh, 2.5rem) clamp(1rem, 5vh, 1.5rem);
    }
    
    .masthead::after {
        height: clamp(1rem, 5vh, 2rem);
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body::before {
        opacity: 0.02;
    }
}


/* =============================================================================
   8. ACCESSIBILITY
   ============================================================================= */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --muted: #b4c6dc;
        --border-subtle: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    a:focus-visible {
        outline-width: 3px;
    }
}

/* Focus within for keyboard navigation */
.archive-item:focus-within {
    background: var(--deep);
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}


/* =============================================================================
   9. PRINT STYLES
   
   Because sometimes the best screen is paper.
   ============================================================================= */

@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    body::before,
    .konami-overlay,
    .colophon-links {
        display: none;
    }
    
    a {
        text-decoration: none;
        color: inherit;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    .wrapper,
    .wrapper--wide {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    .masthead {
        padding-block: 2rem;
    }
    
    .masthead::after {
        display: none;
    }
    
    .title {
        color: black;
        font-size: 24pt;
    }
    
    .title span {
        color: #cc0000;
    }
    
    .archive-item {
        border-bottom: 1px solid #ccc;
        padding: 1rem 0;
    }
    
    .archive-arrow {
        display: none;
    }
}
