/* =====================================================
   AVERY LAKE - THE HUMAN SIGNAL
   Gallery Aesthetic: White / Breath → Black / Silence
   ===================================================== */

/* CSS Custom Properties */
:root {
    /* The Duality: White (Breath) & Black (Silence/Void) */
    --color-breath: #ffffff;
    --color-breath-warm: #fafafa;
    --color-silence: #000000;
    --color-void: #0a0a0a;

    /* Text */
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-text-subtle: #999999;

    /* Borders */
    --color-border: #e0e0e0;
    --color-border-dark: #1a1a1a;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Timing - The Breath */
    --breath-duration: 0.4s;
    --pulse-min: 2000;
    --pulse-max: 5000;

    /* Entrance Animation - Slower, more dramatic */
    --fall-duration: 1.6s;
    --fall-stagger: 0.1s;
}

/* Dark Mode - The Void becomes the canvas */
[data-theme="dark"] {
    --color-breath: #0a0a0a;
    --color-breath-warm: #111111;
    --color-silence: #ffffff;
    --color-void: #000000;

    --color-text: #f0f0f0;
    --color-text-muted: #999999;
    --color-text-subtle: #666666;

    --color-border: #333333;
    --color-border-dark: #ffffff;
}

[data-theme="dark"] .fall-letter {
    color: var(--color-silence);
}

[data-theme="dark"] .nav {
    background: var(--color-breath);
    border-bottom-color: var(--color-border);
}

[data-theme="dark"] .mobile-menu {
    background: var(--color-breath);
}

[data-theme="dark"] .intro-overlay {
    background: var(--color-breath);
}

[data-theme="dark"] .nav-logo .logo {
    filter: invert(1);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-breath);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =====================================================
   INTRO SPLASH SCREEN
   Fullscreen overlay with parallax-style reveal
   ===================================================== */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-breath);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

/* =====================================================
   VOID TRANSITION
   Full-screen black overlay for monolith click animation
   ===================================================== */
.void-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-silence);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.2s ease-in, visibility 1.2s ease-in;
}

.void-transition.active {
    opacity: 1;
    visibility: visible;
}

.void-transition.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

/* =====================================================
   MATRIX RAIN EASTER EGG
   Canvas overlay for the falling letters effect
   ===================================================== */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.matrix-rain.active {
    opacity: 1;
    visibility: visible;
}

/* Easter Egg Trigger - subtle hint on hover */
.easter-trigger {
    cursor: pointer;
    transition: text-shadow 0.3s ease;
}

.easter-trigger:hover {
    text-shadow: 0 0 10px var(--color-silence), 0 0 20px var(--color-silence);
}

.intro-content {
    text-align: center;
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-overlay.fade-out .intro-content {
    transform: translateY(-30px);
}

.intro-image {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: introPulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.intro-image:hover {
    transform: scale(1.02);
}

@keyframes introPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* Hide main content during intro */
body.intro-active .nav,
body.intro-active .hero,
body.intro-active .monoliths,
body.intro-active .featured,
body.intro-active .correspondence,
body.intro-active .footer {
    opacity: 0;
}

body:not(.intro-active) .nav,
body:not(.intro-active) .hero,
body:not(.intro-active) .monoliths,
body:not(.intro-active) .featured,
body:not(.intro-active) .correspondence,
body:not(.intro-active) .footer {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--space-md);
    background: var(--color-breath);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nav-logo .logo {
    height: 100px;
    width: auto;
    transition: opacity var(--breath-duration);
}

.nav-logo:hover .logo {
    opacity: 0.7;
}

/* Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    transition: opacity var(--breath-duration);
}

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

.theme-toggle svg {
    fill: var(--color-silence);
    transition: fill var(--breath-duration);
}

/* Show sun in dark mode, moon in light mode */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Mobile Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-silence);
    transition: all var(--breath-duration);
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-breath);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--breath-duration);
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-silence);
    transition: all var(--breath-duration);
}

.mobile-menu a:hover,
.mobile-menu a.signal-active {
    background: var(--color-silence);
    color: var(--color-breath);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(120px + var(--space-lg)) var(--space-md) var(--space-lg);
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.hero-title .title-line {
    display: block;
}

/* OGAKI-style falling letters animation */
.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-150%);
    animation: letterFall 1s cubic-bezier(0.49, 0.62, 0.17, 1) forwards;
    animation-play-state: paused;
}

/* JS adds this class to trigger animation */
.hero-title.animate .letter {
    animation-play-state: running;
}

@keyframes letterFall {
    0% {
        opacity: 0;
        transform: translateY(-150%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-status {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

.hero-status strong {
    color: var(--color-text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: var(--space-lg);
    animation: scrollBounce 3s ease-in-out infinite;
    opacity: 0.4;
    transition: opacity var(--breath-duration);
}

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

.scroll-indicator svg {
    fill: var(--color-text-muted);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* =====================================================
   OGAKI-STYLE FALLING NAME - "AVERY LAKE"
   Physics-based falling with rotation and bounce
   ===================================================== */
.falling-name-container {
    position: relative;
    width: 100%;
    height: clamp(120px, 25vw, 280px);
    margin-bottom: var(--space-md);
    overflow: visible;
}

.falling-name {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    gap: 0;
}

.fall-letter {
    display: inline-block;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 0.85;
    color: var(--color-silence);
    opacity: 0;
    transform: translateY(-200%) rotate(0deg);
    animation: letterDrop 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-play-state: paused;
    transform-origin: center bottom;
}

.fall-space {
    width: clamp(1rem, 4vw, 3rem);
}

/* Trigger animation when JS adds this class */
.falling-name.animate .fall-letter {
    animation-play-state: running;
}

/* Physics-based drop with bounce and rotation */
@keyframes letterDrop {
    0% {
        opacity: 0;
        transform: translateY(-200%) rotate(var(--fall-rotation, 0deg));
    }

    60% {
        opacity: 1;
        transform: translateY(8%) rotate(calc(var(--fall-rotation, 0deg) * 0.3));
    }

    75% {
        transform: translateY(-3%) rotate(calc(var(--fall-rotation, 0deg) * -0.15));
    }

    90% {
        transform: translateY(1%) rotate(calc(var(--fall-rotation, 0deg) * 0.05));
    }

    100% {
        opacity: 1;
        transform: translateY(var(--land-offset, 0px)) rotate(var(--final-rotation, 0deg));
    }
}

/* Staggered delays and unique rotations for each letter */
/* Letters animate with rotation during fall but end perfectly aligned */
.fall-letter:nth-child(1) {
    --fall-rotation: -12deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0s;
    animation-duration: 1.15s;
}

.fall-letter:nth-child(2) {
    --fall-rotation: 8deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.08s;
    animation-duration: 1.25s;
}

.fall-letter:nth-child(3) {
    --fall-rotation: -15deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.14s;
    animation-duration: 1.1s;
}

.fall-letter:nth-child(4) {
    --fall-rotation: 10deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.22s;
    animation-duration: 1.2s;
}

.fall-letter:nth-child(5) {
    --fall-rotation: -8deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.28s;
    animation-duration: 1.18s;
}

/* Space */
.fall-letter:nth-child(6) {
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.35s;
    animation-duration: 0.8s;
}

.fall-letter:nth-child(7) {
    --fall-rotation: 14deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.42s;
    animation-duration: 1.22s;
}

.fall-letter:nth-child(8) {
    --fall-rotation: -10deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.5s;
    animation-duration: 1.15s;
}

.fall-letter:nth-child(9) {
    --fall-rotation: 12deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.58s;
    animation-duration: 1.28s;
}

.fall-letter:nth-child(10) {
    --fall-rotation: -6deg;
    --final-rotation: 0deg;
    --land-offset: 0px;
    animation-delay: 0.65s;
    animation-duration: 1.12s;
}

/* Responsive */
@media (max-width: 768px) {
    .falling-name-container {
        height: clamp(80px, 20vw, 150px);
    }

    .fall-letter {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }

    .fall-space {
        width: clamp(0.5rem, 2vw, 1.5rem);
    }
}

/* =====================================================
   THE MONOLITHS - Black Portals (Silence/Void)
   The Human Signal touches them, they respond
   ===================================================== */
.monoliths {
    padding: var(--space-lg) var(--space-md);
}

.monoliths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    max-width: 1000px;
    margin: 0 auto;
}

/* Individual Monolith */
.monolith {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-silence);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--breath-duration);
    /* Falling entrance - start hidden above */
    opacity: 0;
    transform: translateY(-100px);
}

/* The Void (Black Background) */
.monolith-void {
    position: absolute;
    inset: 0;
    background: var(--color-silence);
    opacity: 0;
    transition: opacity var(--breath-duration);
}

/* The Signal (Text Content) */
.monolith-signal {
    position: relative;
    z-index: 1;
    text-align: center;
    transition: color var(--breath-duration);
}

.monolith-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.monolith-hint {
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
    opacity: 0;
    transform: translateY(5px);
    transition: all var(--breath-duration);
}

/* Autonomous Pulse State (breathing) */
.monolith.pulse-active .monolith-void {
    opacity: 1;
}

.monolith.pulse-active .monolith-signal {
    color: var(--color-breath);
}

/* Human Signal (Hover/Touch) State */
.monolith:hover .monolith-void,
.monolith:focus .monolith-void {
    opacity: 1;
}

.monolith:hover .monolith-signal,
.monolith:focus .monolith-signal {
    color: var(--color-breath);
}

.monolith:hover .monolith-hint,
.monolith:focus .monolith-hint {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   FALLING ENTRANCE ANIMATION
   OGAKI-style smooth cascade - letters falling like rain
   ===================================================== */
@keyframes monolithFall {
    0% {
        opacity: 0;
        transform: translateY(-100%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Applied via JS after page load */
.monolith.fall-in {
    animation-name: monolithFall;
    animation-timing-function: cubic-bezier(0.49, 0.62, 0.17, 1);
    animation-fill-mode: forwards;
}

/* OGAKI-style cascade: dramatically staggered delays, smooth slide */
.monolith:nth-child(1).fall-in {
    animation-duration: 1.2s;
    animation-delay: 0s;
}

.monolith:nth-child(2).fall-in {
    animation-duration: 1.3s;
    animation-delay: 0.15s;
}

.monolith:nth-child(3).fall-in {
    animation-duration: 1.1s;
    animation-delay: 0.35s;
}

.monolith:nth-child(4).fall-in {
    animation-duration: 1.25s;
    animation-delay: 0.5s;
}

.monolith:nth-child(5).fall-in {
    animation-duration: 1.15s;
    animation-delay: 0.7s;
}

.monolith:nth-child(6).fall-in {
    animation-duration: 1.2s;
    animation-delay: 0.9s;
}

/* =====================================================
   FEATURED ARTWORK
   ===================================================== */
.featured {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.section-label {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin-bottom: var(--space-lg);
}

.featured-artwork {
    display: block;
    max-width: 700px;
    margin: 0 auto;
    cursor: pointer;
}

.featured-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-silence);
}

.featured-void {
    position: absolute;
    inset: 0;
    background: var(--color-silence);
    opacity: 0;
    transition: opacity var(--breath-duration);
    z-index: 1;
}

.featured-image {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

/* Pulse State */
.featured-artwork.pulse-active .featured-void {
    opacity: 0.3;
}

/* Hover State */
.featured-artwork:hover .featured-image {
    transform: scale(1.02);
}

.featured-artwork:hover .featured-void {
    opacity: 0;
}

.featured-info {
    margin-top: var(--space-md);
}

.featured-title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    transition: color var(--breath-duration);
}

.featured-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.featured-artwork.pulse-active .featured-title {
    color: var(--color-text-muted);
}

/* =====================================================
   CORRESPONDENCE
   ===================================================== */
.correspondence {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.correspondence-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
}

.correspondence-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: var(--space-xs);
    max-width: 350px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-sm);
    border: 1px solid var(--color-border-dark);
    background: var(--color-breath);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color var(--breath-duration);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-silence);
}

.newsletter-form input::placeholder {
    color: var(--color-text-subtle);
}

/* Monolith-style button */
.monolith-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-breath);
    color: var(--color-silence);
    border: 1px solid var(--color-silence);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--breath-duration);
}

.monolith-btn:hover {
    background: var(--color-silence);
    color: var(--color-breath);
}

/* Substack Embed */
.substack-embed {
    margin: 0 auto;
    max-width: 480px;
}

.substack-embed iframe {
    width: 100%;
    border: 1px solid var(--color-border-dark) !important;
    background: var(--color-breath) !important;
}

/* Dark mode: Invert Substack embed colors */
[data-theme="dark"] .substack-embed iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* =====================================================
   SOCIAL ICONS
   ===================================================== */
.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-silence);
    color: var(--color-silence);
    transition: all var(--breath-duration);
}

.social-icon:hover {
    background: var(--color-silence);
    color: var(--color-breath);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.acknowledgment {
    font-size: 0.625rem;
    color: var(--color-text-subtle);
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto var(--space-md);
}

.footer-title {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.footer-copyright {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--color-text-subtle);
}

/* =====================================================
   RESPONSIVE - Tablet (1024px and below)
   ===================================================== */
@media (max-width: 1024px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .hero {
        min-height: 90vh;
        padding: calc(80px + var(--space-md)) var(--space-md) var(--space-md);
    }

    .falling-name-container {
        height: clamp(100px, 20vw, 200px);
    }

    .fall-letter {
        font-size: clamp(3rem, 12vw, 8rem);
    }

    .monoliths-grid {
        max-width: 800px;
    }

    .featured-artwork {
        max-width: 600px;
    }
}

/* =====================================================
   RESPONSIVE - Tablet Portrait (768px and below)
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 3rem;
    }

    .nav {
        height: 100px;
        padding: 10px var(--space-sm);
    }

    .nav-logo .logo {
        height: 80px;
    }

    .hero {
        min-height: auto;
        padding: calc(100px + var(--space-lg)) var(--space-sm) var(--space-md);
    }

    .hero-content {
        padding: 0 var(--space-xs);
    }

    .hero-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
        margin-bottom: var(--space-sm);
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: var(--space-md);
    }

    .hero-status {
        font-size: 0.6rem;
    }

    .falling-name-container {
        height: clamp(60px, 15vw, 120px);
        margin-bottom: var(--space-sm);
    }

    .fall-letter {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .fall-space {
        width: clamp(0.5rem, 2vw, 1rem);
    }

    .monoliths {
        padding: var(--space-md) var(--space-sm);
    }

    .monoliths-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }

    .monolith {
        aspect-ratio: 1;
    }

    .monolith-label {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .monolith-hint {
        font-size: 0.55rem;
    }

    .featured {
        padding: var(--space-lg) var(--space-sm);
    }

    .section-label {
        font-size: 0.55rem;
        margin-bottom: var(--space-md);
    }

    .featured-frame {
        border-width: 1px;
    }

    .featured-title {
        font-size: 0.875rem;
    }

    .featured-meta {
        font-size: 0.65rem;
    }

    .correspondence {
        padding: var(--space-lg) var(--space-sm);
    }

    .correspondence-title {
        font-size: 0.65rem;
    }

    .correspondence-text {
        font-size: 0.75rem;
        padding: 0 var(--space-xs);
    }

    .substack-embed {
        max-width: 100%;
        padding: 0 var(--space-xs);
    }

    .substack-embed iframe {
        height: 280px;
    }

    .social-icons {
        gap: var(--space-sm);
        margin: var(--space-md) 0;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .footer {
        padding: var(--space-md) var(--space-sm);
    }

    .acknowledgment {
        font-size: 0.55rem;
        padding: 0 var(--space-xs);
    }

    .footer-title {
        font-size: 0.55rem;
    }

    .footer-copyright {
        font-size: 0.45rem;
    }
}

/* =====================================================
   RESPONSIVE - Mobile (480px and below)
   ===================================================== */
@media (max-width: 480px) {
    :root {
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
    }

    .nav {
        height: 85px;
        padding: 10px var(--space-xs);
    }

    .nav-logo .logo {
        height: 65px;
    }

    .nav-toggle {
        padding: var(--space-xs);
    }

    .nav-toggle span {
        width: 20px;
    }

    .mobile-menu a {
        font-size: 1rem;
        padding: var(--space-sm);
    }

    .hero {
        padding: calc(85px + var(--space-md)) var(--space-xs) var(--space-sm);
    }

    .hero-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .hero-title {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }

    .hero-status {
        font-size: 0.5rem;
        gap: 4px;
    }

    .falling-name-container {
        height: clamp(50px, 12vw, 80px);
        margin-bottom: var(--space-xs);
    }

    .fall-letter {
        font-size: clamp(1.75rem, 9vw, 3rem);
        font-weight: 800;
    }

    .fall-space {
        width: clamp(0.3rem, 1.5vw, 0.6rem);
    }

    /* Reduce rotation on small screens for readability */
    .fall-letter:nth-child(1) {
        --final-rotation: -1deg;
    }

    .fall-letter:nth-child(2) {
        --final-rotation: 1deg;
    }

    .fall-letter:nth-child(3) {
        --final-rotation: 0deg;
    }

    .fall-letter:nth-child(4) {
        --final-rotation: 0deg;
    }

    .fall-letter:nth-child(5) {
        --final-rotation: -1deg;
    }

    .fall-letter:nth-child(7) {
        --final-rotation: 1deg;
    }

    .fall-letter:nth-child(8) {
        --final-rotation: 0deg;
    }

    .fall-letter:nth-child(9) {
        --final-rotation: 1deg;
    }

    .fall-letter:nth-child(10) {
        --final-rotation: -1deg;
    }

    .monoliths {
        padding: var(--space-sm) var(--space-xs);
    }

    .monoliths-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .monolith {
        aspect-ratio: 1;
        border-width: 1px;
    }

    .monolith-label {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }

    .monolith-hint {
        display: none;
    }

    .featured {
        padding: var(--space-md) var(--space-xs);
    }

    .section-label {
        font-size: 0.5rem;
        letter-spacing: 0.15em;
        margin-bottom: var(--space-sm);
    }

    .featured-info {
        margin-top: var(--space-sm);
    }

    .featured-title {
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .featured-meta {
        font-size: 0.6rem;
    }

    .correspondence {
        padding: var(--space-md) var(--space-xs);
    }

    .correspondence-title {
        font-size: 0.6rem;
        margin-bottom: var(--space-xs);
    }

    .correspondence-text {
        font-size: 0.7rem;
        max-width: 100%;
        margin-bottom: var(--space-sm);
    }

    .substack-embed iframe {
        height: 260px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form input {
        padding: var(--space-sm);
        font-size: 0.8rem;
    }

    .monolith-btn {
        padding: var(--space-sm);
        font-size: 0.65rem;
    }

    .social-icons {
        gap: var(--space-xs);
        margin: var(--space-sm) 0;
        padding: 0 var(--space-xs);
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .footer {
        padding: var(--space-sm) var(--space-xs);
    }

    .acknowledgment {
        font-size: 0.5rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .footer-bottom {
        margin-top: var(--space-sm);
    }

    .footer-title {
        font-size: 0.5rem;
    }

    .footer-copyright {
        font-size: 0.4rem;
    }
}

/* =====================================================
   RESPONSIVE - Very Small Screens (360px and below)
   ===================================================== */
@media (max-width: 360px) {
    .falling-name-container {
        height: 45px;
    }

    .fall-letter {
        font-size: 1.5rem;
    }

    .fall-space {
        width: 0.25rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.5rem;
    }

    .monolith-label {
        font-size: 0.45rem;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .social-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* =====================================================
   RESPONSIVE - Landscape Mobile
   ===================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(60px + var(--space-sm)) var(--space-md) var(--space-sm);
    }

    .falling-name-container {
        height: 60px;
        margin-bottom: var(--space-xs);
    }

    .fall-letter {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    .hero-status {
        flex-direction: row;
        gap: var(--space-md);
    }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--color-silence);
    outline-offset: 2px;
}

::selection {
    background: var(--color-silence);
    color: var(--color-breath);
}