/*
 * PORTFOLIO V1: PLACEHOLDER REDESIGN
 * Style: Clean Minimalist / Modern Tech
 */

@font-face {
    font-family: 'Cal Sans';
    src: url("../assets/fonts/CalSans-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-gray: #f2f2f2;
    --border-color: #e5e5e5;

    /* Font System */
    --font-headline: 'Cal Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', 'Georgia', serif;

    --font-main: 'Cal Sans', sans-serif;

    /* Spacing & Sizes */
    --nav-height: 80px;
    --card-width: 38vw;
    --card-height: 50vh;
    --gap: 1.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Hide Scrollbar Globally */
::-webkit-scrollbar {
    display: none;
    width: 0 !important;
}

/* --- LENIS RECOMMENDED CSS --- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html {
    /* scroll-behavior: smooth; REMOVED to prevent Trackpad Fighting */
    background-color: #0a0908; /* Warmer black substrate */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

body {
    background-color: #0a0908; /* Default to warmer footer black */
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100vw;
    min-height: 100vh;
}

/* Base sections default to white */
.hero-section, #gallery-module, #about-module {
    background-color: var(--bg-color);
}

/* --- NAVIGATION --- */
.global-nav {
    font-family: var(--font-headline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    height: var(--nav-height);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    background: transparent;
    color: #ffffff;
    border-bottom: none;
    transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* THE PREMIUM SCRIM: Using pseudo-element for ultra-smooth non-linear feathering */
.global-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Tighten to match nav height exactly */
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Scrim (Specifically for sections needing a subtle light tint) */
.global-nav.scrolled::before,
.global-nav.transparent-dark::before {
    opacity: 0; /* Hidden for solid states */
}

/* GALLERY: Solid White Glass Bar */
.global-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #000000;
}

/* ABOUT: Solid Black Glass Bar */
.global-nav.transparent-dark {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

/* DARK SECTIONS (Video/Footer): Maintain Eased Dark Scrim */
.global-nav.over-footer::before {
    opacity: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0.05) 90%,
        rgba(0, 0, 0, 0) 100%
    );
}

.global-nav.over-footer {
    color: #ffffff;
}

/* PERFORMANCE MODE: Maintain smooth scrim but ensure transition stability */
body.perf-mode .global-nav::before {
    transition: none !important;
}

.brand-mark, .btn-text {
    color: inherit;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand-mark {
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    width: auto;
    height: 32px;
    display: block;
    transform: translateY(-2px); /* Visual optical adjustment */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-text {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.6;
    position: relative;
}

.btn-text:hover, .btn-text.active {
    opacity: 1;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-text:hover::after, .btn-text.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.brand-mark {
    transition: opacity 0.3s;
}

.brand-mark:hover {
    opacity: 0.7;
}

/* --- MAIN LAYOUT --- */
#interface {
    display: block;
    min-height: 100vh;
    height: auto;
    position: relative;
}

/* --- HERO --- */
.hero-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5; /* Above Footer (z:0) initially */
    padding-top: var(--nav-height);
    background-color: #050505; /* Clean black fallback */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    will-change: transform, opacity;
    transform: translateZ(0); /* Force GPU */
    /* Optimize visibility to remove from render tree when hidden */
    transition: opacity 0.5s ease, visibility 0s step-start;
    opacity: 1;
    visibility: visible;
}

.hero-section.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Delay visibility hide until opacity is done */
    transition: opacity 0.5s ease, visibility 0.5s step-end;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.hero-content h1, .hero-content .hero-badge {
    pointer-events: auto;
}

h1 {
    font-family: var(--font-headline);
    font-size: clamp(3.5rem, 12vw, 14rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 0;
    color: #ffffff;
    min-height: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Cinematic Ambient Shadow (Lightened) */
    text-shadow:
        0 0 20px rgba(0,0,0,0.2),
        0 0 40px rgba(0,0,0,0.1),
        0 0 80px rgba(0,0,0,0.05);
}

#hero-word {
    display: inline-block;
    transition: opacity 0.35s ease-in-out;
    opacity: 0;
    will-change: opacity;
}

#hero-word.visible {
    opacity: 1;
}

.hero-badge {
    font-family: var(--font-ui);
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    /* backdrop-filter: blur(10px); REMOVED for Retina Performance */
    background: rgba(0,0,0,0.4); /* High contrast fallback */
    
    /* New Absolute Positioning */
    position: absolute;
    bottom: 11rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* --- SCROLL CUE --- */
.scroll-cue {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
    animation: cuePulse 2s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes cuePulse {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, 15px);
        opacity: 1;
    }
}

/* --- GALLERY MODULE --- */
#gallery-module {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: #E0E5DF; /* Moss Light theme */
    padding: 8rem 0 8rem 0; /* Optimized for laptop viewport */
}

.gallery-split-layout {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    position: relative;
    z-index: 5; /* Sit above the background signal */
}

.gallery-intro-column {
    flex: 0 0 35%;
    padding-left: 6vw;
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertical center within flex-direction: column */
    align-items: flex-start;
    z-index: 10;
    min-height: 55vh; /* Match card height for baseline alignment */
}

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

.label-small {
    font-family: var(--font-ui);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.intro-content h2 {
    font-family: var(--font-headline);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 3.5rem;
    color: #1a1a1a;
}

.view-more-link {
    font-family: var(--font-ui);
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.view-more-link:hover {
    opacity: 0.6;
}

.view-more-link .arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.view-more-link:hover .arrow {
    transform: translateX(4px);
}

.gallery-right-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.gallery-viewport {
    flex: none;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding-left: 0;
    padding-right: 4rem;
    display: flex;
    align-items: center;
}

.gallery-viewport::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    position: relative; /* Ensure predictable offsetParent for children */
    /* Moved to the left for Laptop/Desktop */
    padding-left: 4vw; 
    padding-right: calc(50% - (var(--card-width) / 2));
}

/* --- CARDS --- */
.card {
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    height: 55vh;
    /* background-color: #333; REMOVED per user request to fix dark borders/flash */
    border-radius: 40px; /* High-end tech feel */
    position: relative;
    z-index: 10; /* Ensure above Data Horizon */
    overflow: hidden;
    isolation: isolate;

    /* Entry Animation State */
    opacity: 0;
    transform: scale(0.95) translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease, opacity 0.3s ease;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    cursor: pointer;
}

.card.visible {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.card-bg {
    position: absolute;
    top: -5%; 
    left: -22%; /* 2% larger than the JS maxParallax for a 'dead zone' safety buffer */
    width: 144%;
    height: 110%;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease;
    opacity: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    /* Softened gradient: more transparent, less height to show more image */
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.card-info h3 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-info p {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 90%;
}

.card-plus {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    margin-left: 1rem;
    padding-bottom: 2px;
}

/* --- ABOUT MODULE --- */
#about-module {
    width: 100%;
    padding: 8rem 0 8rem 0;
    background-color: #F2F0E9; /* Unbleached Paper theme */

    display: block; /* Remove flex centering */
}

.about-split-layout {
    display: flex;
    width: 100%;
    padding: 0;
    gap: 0;
    align-items: flex-start;
}

.about-left-column {
    flex: 0 0 35%;
    padding-left: 6vw;
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ghost Label for Alignment */
.about-left-column::before {
    content: 'ABOUT'; /* Match content for line-height */
    font-family: var(--font-ui);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 2rem;
    visibility: hidden; /* Invisible but takes up space */
    pointer-events: none;
}

.details-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0.6rem; /* Fine-tuned nudge for visual alignment */
}

.oval-icon {
    width: 100%;
    height: 450px;
    margin-bottom: 0.5rem;
    overflow: visible;
}

.description-small {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 0; /* Remove default browser margin */
    margin-bottom: 0.5rem;
    color: #333;
    font-style: italic;
}

.btn-outline {
    font-family: var(--font-ui);
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 1rem 3.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ededed; /* Match #about-module background */
    color: #000;
}

.about-right-column {
    flex: 1;
    padding-left: 2rem;
    padding-right: 6vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0; /* Reset */
}

.manifesto-text {
    font-family: var(--font-headline);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #000;
    text-transform: none;
}

.about-image-placeholder {
    width: auto;
    height: 400px;
    /* Portrait / Face Image for "Ghost in the Machine" vibe */
    background-image: url('../assets/about.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 4rem;
    margin-right: -6vw;
    border-radius: 40px 0 0 40px; /* Only left side rounded */
    /* Allow displacement spill */
    overflow: visible;
    opacity: 0;
    transition: opacity 2s ease;
}

/* --- GALLERY CONTROLS --- */
.controls-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
    padding: 0;
    margin-top: 2.5rem;
    width: 100%;
}

.nav-arrows {
    display: flex;
    gap: 0.75rem;
}

.circle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-btn:hover:not(:disabled) {
    background: #efefef;
    transform: scale(1.05);
}

.circle-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-dots {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eeeeee;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.dot.active {
    background: transparent;
    border-color: #000;
}

/* --- CONTENT LAYER --- */
#content-layer {
    position: relative;
    z-index: 10;
    background-color: #fce4ec; /* Matching pink */
    /* box-shadow: 0 0 100px rgba(0,0,0,0.3); REMOVED for Retina Performance */
    /* will-change removed to prevent massive layer promotion */
}

.parallax-spacer {
    height: 100vh;
    width: 100%;
    pointer-events: none;
}

/* --- MAXIMALIST FOOTER --- */
#site-footer {
    height: 100vh;
    width: 100%;
    background-color: #0a0908;
    color: #ffffff;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 0; /* Always at bottom */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    display: block;
}

.footer-content {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1;
    padding: 4vw 6vw; /* Reduced vertical padding from 6vw */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-headline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Keep text left-aligned as per current style */
}

.footer-headline h2 {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 12vw, 12rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    font-weight: 500;
    text-transform: none;
    color: #fff;
    max-width: 95%;
}

.footer-headline h2 span {
    display: block;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 2rem; /* Reduced from 4rem */
    padding-bottom: 2rem; /* Added safety buffer */
    border-top: 1px solid rgba(255,255,255,0.8);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    opacity: 0.5;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-link, .footer-text {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s;
}

.footer-link:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet Landscape (Minor tweaks) */
@media (max-width: 1024px) {
    .global-nav {
        padding: 0 2.5rem;
    }

    .gallery-intro-column, .about-left-column {
        flex: 0 0 40%;
    }

    .card {
        height: 48vh; /* Reduced from 55vh */
    }

    .gallery-track {
        padding-left: calc(50% - (var(--card-width) / 2));
    }

    .footer-headline {
        padding-top: 20vh;
    }
}

/* Tablet Vertical & Mobile (Standard stacked layout) */
@media (max-width: 800px) {
    :root {
        --nav-height: 70px;
        --card-width: 80vw;
    }

    .global-nav {
        padding: 0 2rem;
    }

    /* Hero */
    .hero-section {
        padding: 0 2rem;
    }

    .hero-badge {
        bottom: 6rem;
    }

    .scroll-cue {
        bottom: 2rem;
    }

    /* Gallery Module */
    #gallery-module {
        padding: 8rem 0 4rem 0;
    }

    /* Gallery Split */
    .gallery-split-layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-intro-column {
        width: 100%;
        padding: 0 2rem 3rem 2rem;
        min-height: auto;
    }

    .intro-content {
        max-width: 100%;
    }

    .intro-content h2 {
        margin-bottom: 2rem;
    }

    .gallery-right-column {
        width: 100%;
    }

    .gallery-track {
        padding-left: 10vw;
        padding-right: 10vw;
    }

    .card {
        flex: 0 0 var(--card-width);
        width: var(--card-width);
        height: 40vh; /* Reduced from 45vh */
        border-radius: 30px;
    }

    .card-info p {
        font-size: 1.2rem;
    }

    /* Video Grid Padding */
    .video-masonry {
        padding: 0 2rem !important;
    }

    #video-module .video-intro {
        padding: 0 2rem 3rem 2rem !important;
    }

    /* About Split */
    .about-split-layout {
        flex-direction: column-reverse;
    }

    .about-left-column {
        width: 100%;
        padding: 4rem 2rem 0 2rem;
    }

    .about-left-column::before {
        display: none;
    }

    .about-right-column {
        width: 100%;
        padding: 0 2rem;
    }

    .about-image-placeholder {
        margin-right: -2rem;
        height: 400px;
        margin-top: 3rem;
    }

    /* Footer */
    .footer-content {
        padding: 2rem;
    }

    .footer-headline {
        padding-top: 15vh;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2.5rem;
        padding-top: 2rem;
    }

    .footer-col.copyright {
        padding-top: 1rem;
    }

    /* Controls */
    .controls-area {
        gap: 2rem;
    }
}

/* Mobile Specific Tweaks (Smaller screens) */
@media (max-width: 768px) {
    .global-nav {
        padding: 0 1.5rem;
    }
    
    .nav-left, .nav-right {
        gap: 1rem;
    }

    .btn-text {
        font-size: 0.8rem;
    }

    .gallery-intro-column, .about-left-column, .about-right-column, .footer-content, .hero-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .video-masonry, #video-module .video-intro {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .about-image-placeholder {
        margin-right: -1.5rem;
        height: 300px;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1.2rem;
    }

    .card {
        flex: 0 0 85vw;
        width: 85vw;
    }

    .manifesto-text {
        font-size: 1.6rem;
    }
}

/* --- ANIMATIONS --- */
.word-mask {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    padding-bottom: 0.1em; /* Prevent descender clipping */
    margin-bottom: -0.1em;
}

.word-stagger {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    transition: 
        opacity 0.8s ease-out,
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.word-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

.char-stagger {
    display: inline-block;
    white-space: nowrap;
}

/* --- VIEWER --- */
#viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

#viewer.hidden {
    pointer-events: none;
    opacity: 0;
}

#viewer.active {
    pointer-events: auto;
    opacity: 1;
}

.viewer-close-btn {
    position: absolute;
    top: 2rem;
    left: 3rem;
    z-index: 101;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#viewer iframe {
    width: 100%;
    height: 100%;
}

/* Ultra Wide Screens: Reveal more of the portrait image */
@media (min-width: 1600px) {
    .about-image-placeholder {
        height: 600px;
    }
}