/* ==========================================================================
   CLASSICAL RENAISSANCE DESIGN SYSTEM FOR TOMMY TEJA
   ========================================================================== */

:root {
    /* Color Palette — Dark Classical Renaissance */
    --color-bg-base: #080604;
    --color-bg-surface: rgba(18, 13, 6, 0.88);
    --color-bg-card: rgba(22, 16, 8, 0.92);
    --color-bg-sidebar: rgba(8, 6, 4, 0.92);

    /* Classical Accent Colors — warm amber/gold tones */
    --color-accent-home: #c8922a;
    /* Aged gold */
    --color-accent-about: #a0714a;
    /* Warm sienna */
    --color-accent-news: #7c9e6d;
    /* Muted sage */
    --color-accent-ventures: #8b7040;
    /* Dark ochre */
    --color-accent-achievements: #b05e3a;
    /* Terracotta */
    --color-accent-contact: #c08040;
    /* Amber copper */

    /* Variable morphs per section via JS */
    --section-glow: rgba(180, 130, 40, 0.12);
    --section-accent: var(--color-accent-home);

    /* Text Colors — aged parchment warm whites */
    --color-text-primary: #e8dfc8;
    /* Aged parchment white */
    --color-text-secondary: #a09070;
    /* Warm sepia mid */
    --color-text-muted: #6b5c44;
    /* Dark sepia muted */
    --color-border-subtle: rgba(180, 140, 60, 0.18);
    --color-border-glow: rgba(200, 160, 70, 0.28);

    /* Typography */
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   FIXED VIEWPORT BACKGROUNDS (Shopify Editions style)
   ========================================================================== */
.fixed-viewport-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: #030306;
    /* Always dark base */
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #030306;
    /* Fallback for transparent PNG edges */
    opacity: 0;
    transform: scale(1);
    will-change: opacity, transform;
}

/* ==========================================================================
   BURN TRANSITION OVERLAY
   ========================================================================== */
.burn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Radial gradient burn: center glows white/amber like embers, edges dark */
    background: radial-gradient(ellipse at center,
            rgba(255, 200, 80, 1) 0%,
            rgba(255, 100, 10, 0.9) 30%,
            rgba(180, 30, 0, 0.7) 55%,
            rgba(20, 5, 0, 0.95) 80%,
            rgba(0, 0, 0, 1) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    mix-blend-mode: screen;
    will-change: opacity;
}

/* ==========================================================================
   PAPER BURN CANVAS (nebula → scholar transition)
   ========================================================================== */
.paper-burn-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 48;
    will-change: opacity;
}

.hero-parallax-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 12;
}

.hero-bg-layer {
    background-image: url('hero_bg_landscape.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    /* Extra padding so parallax shift doesn't show empty edges */
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 1;
}

.hero-god-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 2;
    pointer-events: none;
}

.hero-god-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Focus on center of painting in any orientation */
    object-position: center 20%;
}

.hero-adam-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 3;
    pointer-events: none;
}

.hero-adam-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keep the key figure (Adam's hands reaching) centered; shift up slightly so torso is visible */
    object-position: center 30%;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
}

.hero-legibility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay on top of everything inside the slide background container */
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 45%, transparent 85%);
    pointer-events: none;
    z-index: 4;
}

.slide-bg-nebula {
    background: #030306;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 11;
}

.nebula-bg-layer {
    background-image: url('nebula_galaxy_bg.png?v=2');
    /* cover = always fills the frame without distorting aspect ratio */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    /* Extra space for parallax movement */
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    z-index: 1;
}

.nebula-angels-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.nebula-angels-img {
    width: min(780px, 90vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.7));
    opacity: 0;
    transform: scale(0.6);
    will-change: opacity, transform;
}

.nebula-sun-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.nebula-sun {
    width: min(350px, 50vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 50px rgba(255, 210, 100, 0.65)) drop-shadow(0 0 100px rgba(230, 160, 50, 0.5));
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
    will-change: opacity, transform;
}

/* ==========================================================================
   PAINTING-SECTION: background fused with content (fixed parallax)
   Each section carries its own Renaissance painting as background.
   background-attachment: fixed creates native CSS parallax —
   the painting stays put while the section's content scrolls through it.
   ========================================================================== */
.painting-section {
    position: relative;
    /* Painting always shown, content sits inside it */
    isolation: isolate;
}

/* Dark gradient overlay — applied OVER the painting to let text breathe.
   Direction varies per section to match where the open area is in each painting. */
.painting-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* Default: soft vignette darkening edges, lighter center-bottom */
    background: linear-gradient(to bottom,
            rgba(3, 3, 6, 0.55) 0%,
            rgba(3, 3, 6, 0.30) 40%,
            rgba(3, 3, 6, 0.50) 100%);
}

/* Container must sit above the overlay */
.painting-section>.container,
.painting-section>div>.container {
    position: relative;
    z-index: 2;
}

.news-section {
    position: relative;
    overflow: hidden;
}

.news-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('journey_4_ground.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.28;
    filter: blur(8px);
    z-index: 1;
    pointer-events: none;
    will-change: opacity;
}

/* Ventures — open area LEFT → keep left clear, darken right */
.ventures-section.painting-section::before {
    background: linear-gradient(to left,
            rgba(3, 3, 6, 0.75) 0%,
            rgba(3, 3, 6, 0.40) 50%,
            rgba(3, 3, 6, 0.15) 100%);
}

/* Achievements — open area TOP → darken bottom, keep top clear */
.milestones-section.painting-section::before {
    background: linear-gradient(to top,
            rgba(3, 3, 6, 0.80) 0%,
            rgba(3, 3, 6, 0.45) 40%,
            rgba(3, 3, 6, 0.10) 100%);
}

/* Contact — open area BOTTOM-LEFT → darken top-right, keep bottom-left clear */
.contact.painting-section::before {
    background: linear-gradient(135deg,
            rgba(3, 3, 6, 0.70) 0%,
            rgba(3, 3, 6, 0.40) 50%,
            rgba(3, 3, 6, 0.10) 100%);
}

/* ==========================================================================
   3D SCHOLAR PARALLAX SCENE
   ========================================================================== */
/* scholar-parallax-wrap style removed */

/* Base layer styles — all cover full frame, position is shifted by JS */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.scholar-parallax-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.scholar-bg-layer {
    background-image: url('scholar_layer_bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    z-index: 1;
}

.scholar-subject-layer {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    z-index: 3;
}

.scholar-subject-img {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: auto;
    max-height: 95vh;
    object-fit: contain;
    filter: drop-shadow(-30px 40px 60px rgba(0, 0, 0, 0.95)) drop-shadow(0 30px 50px rgba(0, 0, 0, 0.8)) brightness(0.92);
    transform-origin: bottom center;
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.scholar-floating-candles {
    position: absolute;
    top: -8%;
    left: -8%;
    width: 116%;
    height: 116%;
    pointer-events: none;
    z-index: 2;
}

.float-candle {
    position: absolute;
    object-fit: contain;
    transform-origin: bottom center;
    animation:
        candleWiggle 3.1s ease-in-out infinite alternate,
        candleDim 2.4s ease-in-out infinite alternate;
}

/* Candle 1 - tall, upper-left area */
.fc-1 {
    width: 72px;
    top: 12%;
    left: 8%;
    opacity: 0.85;
    animation-delay: 0s, 0.3s;
}

/* Candle 2 - short, far left */
.fc-2 {
    width: 44px;
    top: 42%;
    left: 3%;
    opacity: 0.70;
    animation-delay: 0.7s, 1.1s;
}

/* Candle 3 - medium, left-center */
.fc-3 {
    width: 58px;
    top: 22%;
    left: 22%;
    opacity: 0.80;
    animation-delay: 1.4s, 0.6s;
}

/* Candle 4 - tall, upper-center-right */
.fc-4 {
    width: 80px;
    top: 6%;
    left: 55%;
    opacity: 0.90;
    animation-delay: 0.2s, 1.8s;
}

/* Candle 5 - small, far right */
.fc-5 {
    width: 38px;
    top: 32%;
    left: 82%;
    opacity: 0.65;
    animation-delay: 1.9s, 0.4s;
}

/* Candle 6 - medium-tall, right area */
.fc-6 {
    width: 64px;
    top: 16%;
    left: 70%;
    opacity: 0.78;
    animation-delay: 0.9s, 1.5s;
}

/* Candle 7 - tiny, background depth */
.fc-7 {
    width: 30px;
    top: 8%;
    left: 38%;
    opacity: 0.50;
    animation-delay: 2.3s, 0.9s;
}

/* Candle 8 - medium, right-bottom area */
.fc-8 {
    width: 52px;
    top: 48%;
    left: 92%;
    opacity: 0.72;
    animation-delay: 1.1s, 2.0s;
}

/* ── Candle Keyframes ── */

/* Gentle left-right sway (like air draft) */
@keyframes candleWiggle {
    0% {
        transform: rotate(-1.8deg) translateX(-3px);
    }

    25% {
        transform: rotate(0.8deg) translateX(2px);
    }

    50% {
        transform: rotate(-0.5deg) translateX(-1px);
    }

    75% {
        transform: rotate(1.5deg) translateX(3px);
    }

    100% {
        transform: rotate(-1.2deg) translateX(-2px);
    }
}

/* Brightness pulse — candle flicker dimming */
@keyframes candleDim {
    0% {
        filter: drop-shadow(0 0 18px rgba(255, 180, 50, 0.6)) brightness(1.05);
    }

    20% {
        filter: drop-shadow(0 0 30px rgba(255, 200, 80, 0.85)) brightness(1.15);
    }

    45% {
        filter: drop-shadow(0 0 10px rgba(255, 140, 30, 0.4)) brightness(0.82);
    }

    65% {
        filter: drop-shadow(0 0 22px rgba(255, 170, 50, 0.7)) brightness(1.0);
    }

    80% {
        filter: drop-shadow(0 0 8px rgba(255, 120, 20, 0.35)) brightness(0.78);
    }

    100% {
        filter: drop-shadow(0 0 25px rgba(255, 190, 60, 0.75)) brightness(1.08);
    }
}

/* Glow halo pulsing in sync with candle dim */
@keyframes candleGlow {
    0% {
        opacity: 0.75;
        transform: scale(1.0);
    }

    20% {
        opacity: 1.0;
        transform: scale(1.12);
    }

    45% {
        opacity: 0.45;
        transform: scale(0.88);
    }

    65% {
        opacity: 0.80;
        transform: scale(1.05);
    }

    80% {
        opacity: 0.35;
        transform: scale(0.82);
    }

    100% {
        opacity: 0.85;
        transform: scale(1.08);
    }
}

/* ==========================================================================
   HERO EDITIONS CARD (Direct Bottom-Left Overlay)
   ========================================================================== */
/* ── Hero Overlay: bottom-left, directly on painting, no card box ── */
.hero-editions-card {
    position: absolute;
    bottom: 8vh;
    left: 5%;
    max-width: 520px;
    width: 45%;
    padding: 0;
    /* NO border, NO background, NO blur — sits directly on artwork */
    border: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    text-align: left;
    z-index: 10;
    transform-origin: bottom left;
    will-change: opacity, transform;
}

.hero-edition-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-editions-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 200;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.hero-editions-title em {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.92);
    display: block;
}

.hero-editions-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

/* Chapter list — minimal, editorial, no box */
.hero-editions-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.25s ease, letter-spacing 0.25s ease;
    background: none;
}

.hero-menu-item:hover {
    color: rgba(255, 255, 255, 1);
    letter-spacing: 0.04em;
}

.hero-menu-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-menu-item .rom-num {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 0.78rem;
    opacity: 0.5;
    min-width: 2rem;
}

.hero-menu-item .menu-name {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Container for split sections */
.hero-split-content {
    width: 100%;
    display: none;
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
    z-index: 5;
}


/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    font-size: 16px;
    background-color: #030306;
    /* Always solid dark — no transparency leaking through */
}

body {
    background-color: #030306;
    /* Solid dark — prevents checkerboard from PNG transparency */
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   BACKGROUNDS & DYNAMIC GLOWS
   ========================================================================== */

/* Ambient Blobs (hidden in hero/about zones — paintings take over) */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.dof-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(120px);
    -webkit-backdrop-filter: blur(120px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3 !important;
    mix-blend-mode: screen;
    filter: blur(100px);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(134, 51, 255, 0.3), transparent 70%);
    animation: drift-slow 35s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: -15%;
    right: -15%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    animation: drift-medium 40s ease-in-out infinite alternate;
}

.blob-3 {
    top: 30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
    animation: drift-fast 28s ease-in-out infinite alternate;
}

.blob-4 {
    bottom: 15%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
    animation: drift-slow 32s ease-in-out infinite alternate;
}

.blob-5 {
    top: 40%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.2), transparent 70%);
    animation: drift-medium 25s ease-in-out infinite alternate-reverse;
}

.blob-6 {
    bottom: 40%;
    right: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25), transparent 70%);
    animation: drift-fast 20s ease-in-out infinite alternate;
}

@keyframes drift-slow {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(100px, 80px) scale(1.1) rotate(180deg);
    }
}

@keyframes drift-medium {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(-80px, 100px) scale(1.15) rotate(-120deg);
    }
}

@keyframes drift-fast {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(60px, -70px) scale(1.05) rotate(90deg);
    }
}

/* Dynamic Section Glow Layer behind content */
.section-glow-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1400px;
    height: 1000px;
    max-width: 100vw;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle, var(--section-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-section .section-glow-layer {
    opacity: 1;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    line-height: 1.15;
}

p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Elegant Editorial Title and Heading Styling */
.editorial-heading {
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
}

.editorial-heading em,
.editorial-title em {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
    background: linear-gradient(to right, var(--section-accent), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
}

.editorial-title {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.editorial-card-title {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-top: 1rem;
}

/* ==========================================================================
   LAYOUT CONTAINERS & OFFSET
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 5;
}

section {
    padding: 8rem 0;
    position: relative;
    overflow: visible;
    z-index: 5;
    /* Sections stack above fixed-viewport-bg (z:1) */
}

/* Grid helpers */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

/* Main content offset on desktop to clear the sidebar */
.main-content-wrapper {
    margin-left: 0;
    width: 100%;
    transition: margin-left var(--transition-smooth), width var(--transition-smooth);
    min-height: 100vh;
    position: relative;
    z-index: 10;
    /* Above fixed backgrounds (z:1), below sidebar (z:20) */
}

/* Cinematic/wide mode when clicked */
.main-content-wrapper.cinematic-mode {
    margin-left: 0;
    width: 100%;
}

/* ==========================================================================
   STICKY VERTICAL SIDEBAR NAVIGATION
   ========================================================================== */

.sidebar-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    /* Soft black gradient fading from left to right for seamless blend */
    background: linear-gradient(to right, rgba(3, 3, 6, 0.96) 0%, rgba(3, 3, 6, 0.82) 65%, rgba(3, 3, 6, 0.0) 100%);
    border-right: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.25rem;
    z-index: 100;
    transition: transform var(--transition-smooth), width var(--transition-smooth);
}

.sidebar-nav-container.hidden-sidebar {
    transform: translateX(-100%);
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 4rem 0;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.sidebar-item .chapter-num {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.6;
}

.sidebar-item .chapter-name {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: transform var(--transition-fast);
}

.sidebar-item:hover a,
.sidebar-item.active a {
    color: var(--color-text-primary);
}

.sidebar-item.active .chapter-name {
    font-weight: 700;
    transform: translateX(4px);
}

.sidebar-item.active a::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    width: 3px;
    height: 20px;
    background: var(--section-accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--section-accent);
}

/* ==========================================================================
   INTERACTIVE ORNAMENT (KEY TRIGGER)
   ========================================================================== */

.sidebar-footer-trigger {
    display: flex;
    justify-content: flex-start;
}

.interactive-key-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Aged brass coin style */
    background: linear-gradient(135deg, rgba(180, 140, 60, 0.25) 0%, rgba(120, 90, 30, 0.15) 100%);
    border: 1px solid rgba(180, 140, 60, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(180, 140, 60, 0.2);
    transition: all var(--transition-bounce);
}

.interactive-key-trigger:hover {
    transform: scale(1.12) rotate(12deg);
    border-color: rgba(200, 160, 80, 0.6);
    box-shadow: 0 0 20px rgba(180, 130, 40, 0.3);
}

.key-inner {
    font-size: 1.15rem;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.interactive-key-trigger:hover .key-inner {
    color: var(--section-accent);
}

/* Cinematic wave overlay effect when clicked */
.ripple-wave {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 51, 255, 0.4) 0%, transparent 60%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-anim 1.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes ripple-anim {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

/* ==========================================================================
   BENTO DESIGN SYSTEM & CARDS
   ========================================================================== */

/* Classical art card — aged vellum/parchment style */
.bento-badge {
    border-radius: 4px;
    border: 1px solid rgba(180, 140, 60, 0.25);
    /* Dark aged paper with warm amber undertone */
    background: linear-gradient(135deg, rgba(25, 18, 8, 0.92) 0%, rgba(18, 13, 6, 0.96) 100%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(200, 160, 70, 0.12),
        inset 0 0 0 1px rgba(180, 130, 50, 0.06);
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bento-badge:hover {
    border-color: rgba(200, 160, 70, 0.45);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(180, 130, 40, 0.12),
        inset 0 1px 0 rgba(200, 160, 70, 0.18);
    transform: translateY(-2px);
}

/* Engraved line pattern overlay — replaces frosted ribs */
.reeded-glass {
    position: relative;
}

.reeded-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(0deg,
            rgba(180, 140, 60, 0.03),
            rgba(180, 140, 60, 0.03) 1px,
            transparent 1px,
            transparent 28px);
    pointer-events: none;
    z-index: 4;
    border-radius: inherit;
}

/* ==========================================================================
   BUTTONS & ACCENTS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2.25rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid var(--color-border-subtle);
    transition: all var(--transition-smooth);
    background: transparent;
    color: var(--color-text-primary);
}

.btn-primary {
    background: var(--color-text-primary);
    color: var(--color-bg-base);
    border-color: var(--color-text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--section-accent);
    transform: translateY(-2px);
}

/* Section label metadata text */
.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

/* Floating glass art — disabled (replaced by classical renaissance backgrounds) */
.floating-glass-art {
    display: none !important;
}

.hero-glass-crown {
    display: none !important;
}

.floating-glass-art-hero-left {
    width: 320px;
    top: 5%;
    left: -10%;
    animation-duration: 9s;
}

.floating-glass-art-hero-right {
    width: 250px;
    bottom: 10%;
    right: -5%;
    animation-duration: 11s;
    animation-delay: -2s;
}

.floating-glass-art-about {
    width: 280px;
    top: 15%;
    right: -5%;
    animation-duration: 12s;
}

.floating-glass-art-news-right {
    width: 250px;
    top: 10%;
    right: -4%;
    animation-duration: 10s;
}

.floating-glass-art-ventures-left {
    width: 270px;
    bottom: 5%;
    left: -6%;
    animation-duration: 13s;
}

.floating-glass-art-achievements {
    width: 260px;
    top: 30%;
    right: -5%;
    animation-duration: 11s;
}

.floating-glass-art-contact {
    width: 320px;
    bottom: 5%;
    left: -8%;
    animation-duration: 12s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(4deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */

.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    /* Hero is transparent — painting shows through from .fixed-viewport-bg */
    background: transparent;
}

.hero-container-split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glass-crown {
    position: absolute;
    top: -5%;
    right: 5%;
    width: 140px;
    height: auto;
    z-index: 6;
    pointer-events: none;
    opacity: 0.85;
    animation: float 7s ease-in-out infinite;
}

.hero-massive-portrait {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 82%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 82%, rgba(0, 0, 0, 0) 100%);
    z-index: 5;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-left:hover .hero-massive-portrait {
    transform: scale(1.03) translateY(-5px);
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-bio {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.hero-credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Credential badge — aged manuscript card */
.fp-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(22, 16, 8, 0.9) 0%, rgba(15, 10, 5, 0.95) 100%);
    border: 1px solid rgba(180, 140, 60, 0.2);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(200, 160, 70, 0.08);
    transition: all 0.4s ease;
}

.fp-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    /* Aged brass circle */
    background: linear-gradient(135deg, rgba(180, 140, 60, 0.2) 0%, rgba(120, 90, 30, 0.15) 100%);
    border: 1px solid rgba(180, 140, 60, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(200, 170, 90, 0.9);
    font-size: 1rem;
}

.fp-badge:hover .fp-badge-icon {
    background: rgba(180, 140, 60, 0.3);
    color: rgba(220, 185, 100, 1);
}

.fp-badge-text h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
}

.fp-badge-text p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   3. ABOUT SECTION
   ========================================================================== */
.about {
    position: relative;
    overflow: hidden;
    padding: 10rem 0;
    background-color: #030306;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(3, 3, 6, 0.96) 0%,
            rgba(3, 3, 6, 0.88) 45%,
            rgba(3, 3, 6, 0.40) 70%,
            rgba(3, 3, 6, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}


.about-text h2 {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.stat-card {
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   4. NEWS SECTION
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.news-card-colossal {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* News source tag — worn manuscript seal */
.news-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(180, 140, 60, 0.08);
    border: 1px solid rgba(180, 140, 60, 0.3);
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(200, 165, 80, 0.85);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.news-header-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-card-footer {
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.news-card-colossal:hover .news-read-more {
    color: var(--section-accent);
}

.news-card-colossal:hover .news-card-visual img {
    transform: scale(1.04);
}

/* ==========================================================================
   5. VENTURES SECTION
   ========================================================================== */

/* slide-bg-news style removed */

/* Parallax slide for Ventures */
.slide-bg-ventures {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 13;
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

.ventures-bg-layer {
    background-image: url('ventures_bg_back.png');
}

.ventures-ships-layer {
    background-image: url('ventures_bg_middle.png');
}

.ventures-balcony-layer {
    background-image: url('ventures_bg_foreground.png');
}

/* Expandable grid container */
.ventures-expandable-grid {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    min-height: 480px;
    margin-top: 3.5rem;
    position: relative;
    z-index: 10;
}

/* Expandable card */
.venture-expand-card {
    flex: 1;
    background: rgba(14, 11, 8, 0.42);
    border: 1px solid rgba(180, 140, 60, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.venture-expand-card:hover {
    border-color: rgba(180, 140, 60, 0.32);
    background: rgba(20, 16, 12, 0.52);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.55);
}

.venture-expand-card.active {
    flex: 2.8;
    background: rgba(14, 11, 8, 0.78);
    border-color: rgba(180, 140, 60, 0.45);
    cursor: default;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(200, 160, 70, 0.08);
}

/* Header bar (always visible) */
.card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-icon-title {
    display: flex;
    align-items: center;
}

.expand-indicator {
    transition: transform 0.4s ease, color 0.3s ease;
}

.venture-expand-card.active .expand-indicator {
    transform: rotate(90deg);
    color: var(--section-accent);
}

/* Expanded content area */
.card-body-content {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.15s, height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.venture-expand-card.active .card-body-content {
    opacity: 1;
    pointer-events: auto;
    height: auto;
    overflow: visible;
    flex-grow: 1;
}

.card-body-text {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body-media {
    flex: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 240px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease;
}

.venture-expand-card.active:hover .card-body-media {
    transform: scale(1.02);
}

.venture-role {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--section-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.milestone-highlights {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.milestone-hl-tag {
    padding: 0.3rem 0.75rem;
    background: rgba(180, 140, 60, 0.06);
    border: 1px solid rgba(180, 140, 60, 0.22);
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(190, 155, 70, 0.8);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.venture-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   6. TIMELINE & ACHIEVEMENTS SECTION
   ========================================================================== */

.milestones-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
}

.milestone-timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline-track-inactive {
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
}

.timeline-track-active {
    position: absolute;
    left: 4px;
    top: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--section-accent), #3b82f6);
    box-shadow: 0 0 10px var(--section-accent);
    height: 0;
    transition: height 0.1s linear;
}

.milestone-item {
    position: relative;
    margin-bottom: 4rem;
    padding-bottom: 1rem;
    opacity: 0.3;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.milestone-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.milestone-dot {
    position: absolute;
    left: -2.5rem;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-bg-base);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: translateX(-4px);
    transition: all 0.5s ease;
    z-index: 2;
}

.milestone-dot.active {
    background: var(--section-accent);
    border-color: var(--color-text-primary);
    box-shadow: 0 0 12px var(--section-accent);
    transform: translateX(-4px) scale(1.3);
}

.milestone-time {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--section-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.milestone-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
}

.milestone-location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.milestone-desc {
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
}

.achievements-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.achievement-box {
    padding: 2.5rem;
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.achievement-list-item {
    display: flex;
    gap: 1.25rem;
}

.achievement-list-icon {
    font-size: 1.2rem;
    color: var(--section-accent);
}

.achievement-list-content h5 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.achievement-list-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   7. CONTACT SECTION
   ========================================================================== */

/* Contact section — open dark parchment, no glass */
.contact-card {
    padding: 5rem 3rem;
    border-radius: 4px;
    border: 1px solid rgba(180, 140, 60, 0.18);
    background: linear-gradient(180deg, rgba(20, 14, 6, 0.85) 0%, rgba(10, 7, 3, 0.9) 100%);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(200, 160, 70, 0.1);
}

.contact-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Bio link card — carved stone tile style */
.bio-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(22, 16, 8, 0.88) 0%, rgba(14, 10, 5, 0.94) 100%);
    border: 1px solid rgba(180, 140, 60, 0.18);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(200, 160, 70, 0.08);
    transition: all var(--transition-smooth);
}

.bio-link-card-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Link icon — brass medallion */
.bio-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(180, 140, 60, 0.2) 0%, rgba(120, 90, 30, 0.15) 100%);
    border: 1px solid rgba(180, 140, 60, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: rgba(200, 170, 90, 0.9);
    transition: all var(--transition-smooth);
}

.bio-link-text h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.bio-link-text p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.bio-link-arrow {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    transition: transform var(--transition-bounce);
}

.bio-link-card:hover {
    border-color: var(--section-accent);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.bio-link-card:hover .bio-link-icon {
    background: var(--section-accent);
    color: var(--color-bg-base);
    box-shadow: 0 0 15px var(--section-accent);
}

.bio-link-card:hover .bio-link-arrow {
    color: var(--color-text-primary);
    transform: translateX(4px);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

footer {
    border-top: 1px solid var(--color-border-subtle);
    padding: 5rem 0 3rem;
    background: #030305;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1rem;
    max-width: 450px;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-end;
    align-items: center;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-smooth);
}

.footer-social-link:hover {
    border-color: var(--section-accent);
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-nav a:hover {
    color: var(--color-text-primary);
}

/* ==========================================================================
   TILT SHIFT VINYETS & CINEMATIC EFFECTS
   ========================================================================== */

.tilt-shift-overlay {
    position: fixed;
    left: 0;
    width: 100%;
    height: 12vh;
    pointer-events: none;
    z-index: 99;
    backdrop-filter: blur(0);
    transition: backdrop-filter 2s ease;
}

.tilt-shift-overlay.active {
    /* Subtle depth blur on top/bottom of viewport */
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.tilt-shift-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.7) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.tilt-shift-bottom {
    bottom: 0;
    background: linear-gradient(to top, rgba(5, 5, 8, 0.7) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

/* ==========================================================================
   MOBILE HEADER & RESPONSIVENESS
   ========================================================================== */

.mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 1rem 2rem;
    z-index: 1000;
}

.mobile-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.menu-toggle {
    font-size: 1.25rem;
    color: var(--color-text-primary);
    cursor: pointer;
}

/* Mobile Dropdown Nav links styles */
.mobile-header .nav-links {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-header .nav-links.active {
    display: flex;
}

.mobile-header .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: block;
    padding: 0.5rem 0;
}

.mobile-header .nav-links a.active {
    color: var(--color-text-primary);
    font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 1023px) {
    .hero {
        padding-top: 7rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .editorial-heading {
        font-size: 3.5rem;
    }

    .editorial-title {
        font-size: 2.25rem;
    }

    .hero-container-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left {
        order: -1;
    }

    .hero-credentials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ventures-expandable-grid {
        flex-direction: column;
        gap: 1.25rem;
        min-height: auto;
    }

    .venture-expand-card {
        flex: none !important;
        width: 100% !important;
        height: auto;
        padding: 1.75rem;
    }

    .card-body-content {
        flex-direction: column;
        gap: 1.5rem;
        height: 0;
    }

    .venture-expand-card.active .card-body-content {
        height: auto;
    }

    .card-body-media {
        height: 200px;
        order: -1;
    }

    .milestones-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-cards-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-socials {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ==========================================================================
   ORIENTATION & RESPONSIVE IMAGE FIXES
   Ensures all background images look correct in both landscape and portrait.
   ========================================================================== */

/* ── Portrait orientation: adjust focal points for tall narrow frames ── */
@media (orientation: portrait) {

    /* Hero bg: painting has subjects in center — show more of center */
    .hero-bg-layer {
        background-position: center 35%;
    }

    /* Hero god/adam layers: shift position focus to center-upper to see figures */
    .hero-god-img {
        object-position: center 25%;
    }

    .hero-adam-img {
        object-position: center 20%;
    }

    /* Nebula: keep galaxy centered, it's symmetric so center is fine */
    .nebula-bg-layer {
        background-position: center center;
    }

    /* Nebula angels: slightly smaller in portrait so they don't overflow */
    .nebula-angels-img {
        width: min(700px, 88vw);
    }

    /* Nebula sun: proportionally smaller on portrait to leave breathing room */
    .nebula-sun {
        width: min(280px, 55vw);
    }

    /* Scholar bg: focus on center of room painting */
    .scholar-bg-layer {
        background-position: center 30%;
    }

    /* Scholar subject: wider in portrait so figure is more prominent */
    .scholar-subject-img {
        width: 85%;
        max-width: 640px;
    }

    /* Candles: scale to stay within portrait viewport */
    .fc-1 {
        width: 56px;
        left: 6%;
    }

    .fc-2 {
        width: 36px;
        left: 2%;
    }

    .fc-4 {
        width: 62px;
        left: 52%;
    }

    .fc-5 {
        width: 30px;
        left: 80%;
    }

    .fc-6 {
        width: 50px;
        left: 68%;
    }

    /* Hero card: wider on portrait to use available width */
    .hero-editions-card {
        width: 70%;
        max-width: 480px;
        bottom: 6vh;
    }

    /* Hero edition title: smaller on portrait */
    .hero-editions-title {
        font-size: 3.2rem;
    }
}

/* ── Mobile portrait (phones) ── */
@media (max-width: 640px) and (orientation: portrait) {
    .hero-editions-title {
        font-size: 2.5rem;
    }

    .hero-editions-card {
        width: 88%;
        left: 6%;
        bottom: 5vh;
    }

    .nebula-angels-img {
        width: 90vw;
    }

    .nebula-sun {
        width: 45vw;
    }

    .scholar-subject-img {
        width: 92%;
        min-width: 260px;
    }
}

/* ── Tablet landscape: ensure painting positions are correct ── */
@media (min-width: 768px) and (max-width: 1200px) and (orientation: landscape) {
    .hero-bg-layer {
        background-position: center 40%;
    }

    .scholar-subject-img {
        width: 60%;
    }
}

/* ── Fix background-attachment: fixed on mobile/tablet (broken on iOS) ──
   On touch devices, background-attachment:fixed causes the background to
   freeze relative to the viewport during momentum scroll — looks broken.
   Fall back to scroll for touch screens. ── */
@media (hover: none) and (pointer: coarse) {

    .news-section.painting-section,
    .ventures-section.painting-section,
    .milestones-section.painting-section,
    .contact.painting-section {
        background-attachment: scroll !important;
        background-size: cover !important;
    }

    .news-section.painting-section {
        background-position: 25% center !important;
    }

    .ventures-section.painting-section {
        background-position: 75% center !important;
    }

    .milestones-section.painting-section {
        background-position: center 30% !important;
    }

    .contact.painting-section {
        background-position: 70% top !important;
    }
}

/* ── Very short landscape (e.g. phone in landscape) ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-editions-card {
        bottom: 4vh;
        max-width: 42%;
    }

    .hero-editions-title {
        font-size: 2.8rem;
        line-height: 1.0;
    }

    /* Scholar figure: reduce to fit short frame */
    .scholar-subject-img {
        width: 45%;
    }

    /* Nebula: compact in short frames */
    .nebula-sun {
        width: min(220px, 30vw);
    }

    .nebula-angels-img {
        width: min(500px, 65vw);
    }
}

/* News Diorama Blocks (Inline 3D Scrolling) */
.news-diorama-block {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: auto;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 4rem;
    background: rgba(5, 5, 8, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
}

.news-diorama-container {
    position: relative;
    z-index: 5;
    width: 96%;
    max-width: 1750px;
    margin: 0 auto;
    padding: 3rem 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-diorama-grid {
    display: grid;
    gap: 4rem;
    width: 100%;
    align-items: center;
}

.news-diorama-grid-left {
    grid-template-columns: 0.85fr 1.25fr;
}

.news-diorama-grid-right {
    grid-template-columns: 1.25fr 0.85fr;
}

.news-content-floating {
    padding: 2.5rem;
    border-radius: 4px;
    background: rgba(10, 10, 15, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.news-diorama-grid-left .news-content-floating {
    text-align: left;
}

.news-diorama-grid-right .news-content-floating {
    text-align: right;
}

.news-meta-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-diorama-grid-right .news-meta-row {
    justify-content: flex-end;
}

.news-badge {
    background: rgba(180, 140, 60, 0.35);
    border: 1px solid rgba(180, 140, 60, 0.5);
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #fff;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.news-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.news-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.news-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    margin-bottom: 2.5rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.news-read-more {
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed #fff;
    padding-bottom: 4px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.news-read-more:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    transform: translateX(4px);
}

.news-diorama-grid-right .news-read-more {
    justify-content: flex-end;
}

.news-diorama-grid-right .news-read-more:hover {
    transform: translateX(-4px);
}

.news-bg-layer,
.news-soldiers-layer,
.news-flags-layer,
.news2-bg-layer,
.news2-merchants-layer,
.news2-goods-layer {
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
}

/* Responsive Rules for Mobile/Tablet Portrait */
@media (max-width: 900px) {
    .news-diorama-block {
        min-height: auto;
        height: auto;
    }

    .news-diorama-container {
        padding: 2.5rem 0;
    }

    .news-diorama-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .news-grid-empty {
        display: none;
    }

    .news-content-floating {
        width: 100%;
        padding: 2rem;
        background: rgba(10, 10, 15, 0.85);
        /* Darken bg card for contrast on mobile */
        border: 1px solid rgba(180, 140, 60, 0.25);
        /* Gold outline card style on mobile */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
        text-align: left !important;
    }

    .news-meta-row {
        justify-content: flex-start !important;
    }

    .news-title {
        font-size: 1.7rem;
        /* Reduce font-size on mobile */
        line-height: 1.3;
    }

    .news-description {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left !important;
        margin-bottom: 2rem;
    }

    .news-read-more {
        font-size: 0.95rem;
        justify-content: flex-start !important;
    }

    .news-read-more:hover {
        transform: translateX(4px) !important;
    }
}

/* ==========================================================================
   STARFIELD CANVAS
   ========================================================================== */
#starsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    /* Stack on top of scholar bg (z:9) but under nebula bg (z:11) */
}

/* ==========================================================================
   STARFIELD TEXT OVERLAY (What we are building)
   ========================================================================== */
#starsTextOverlay {
    position: absolute;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.55),
        0 0 22px rgba(255, 255, 255, 0.35),
        0 0 40px rgba(180, 140, 60, 0.25);
    transform: translate3d(0, 0, 0);
    transition: opacity 0.15s ease;
}

/* Portrait / Mobile Screen Styling: small, top-left aligned */
@media (max-width: 900px),
(max-aspect-ratio: 4/5) {
    #starsTextOverlay {
        font-size: 2.2rem;
        font-weight: 400;
        top: 8vh;
        left: 6vw;
        width: auto;
        text-align: left;
    }
}

/* Landscape / Desktop Screen Styling: large, centered */
@media (min-width: 901px) and (min-aspect-ratio: 4/5) {
    #starsTextOverlay {
        font-size: 4.8rem;
        font-weight: 300;
        top: 10vh;
        left: 0;
        width: 100vw;
        text-align: center;
    }
}

/* ── Scholar Parallax Responsive Settings ── */
@media (min-width: 1201px) {
    .scholar-subject-img {
        left: 68% !important;
        width: 58% !important;
        bottom: -5% !important;
    }
}

@media (max-width: 1200px) {
    .scholar-subject-img {
        left: 65% !important;
        width: 72% !important;
        bottom: -2% !important;
    }
}

@media (max-width: 900px) {
    .scholar-subject-img {
        left: 50% !important;
        width: 80% !important;
        bottom: 0% !important;
        opacity: 0.35 !important;
    }

    .about::before {
        background: linear-gradient(to bottom,
                rgba(3, 3, 6, 0.98) 0%,
                rgba(3, 3, 6, 0.92) 50%,
                rgba(3, 3, 6, 0.88) 100%) !important;
    }
}

@media (max-width: 600px) {
    .scholar-subject-img {
        left: 50% !important;
        width: 105% !important;
        bottom: 0% !important;
        opacity: 0.22 !important;
    }
}

/* ── Hero Contact Button Styles ── */
.hero-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1.75rem;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, rgba(22, 16, 8, 0.6) 0%, rgba(14, 10, 5, 0.7) 100%);
    border: 1px solid rgba(180, 140, 60, 0.35);
    border-radius: 4px;
    color: rgba(220, 185, 100, 0.95);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.hero-contact-btn i {
    font-size: 1.1rem;
    color: rgba(220, 185, 100, 0.95);
    transition: transform var(--transition-smooth);
}

.hero-contact-btn:hover {
    background: linear-gradient(135deg, rgba(180, 140, 60, 0.25) 0%, rgba(120, 90, 30, 0.15) 100%);
    border-color: rgba(220, 185, 100, 1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(180, 140, 60, 0.25);
    transform: translateY(-2px);
}

.hero-contact-btn:hover i {
    color: #fff;
    transform: scale(1.1);
}

/* ── Diorama Background Layers (Individual sharp backgrounds instead of master stretch) ── */
.diorama-bg-layer {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.55;
    will-change: transform;
}

@media (max-width: 768px) {
    .diorama-bg-layer {
        opacity: 0.25 !important;
    }
}

/* ── Professional Journey Diorama Blocks & Responsiveness ── */
.journey-diorama-block {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 35vh;
    min-height: 400px;
    max-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.journey-diorama-block.no-border {
    border-bottom: none;
}

.diorama-block-inner {
    position: relative;
    z-index: 5;
    width: 95%;
    max-width: 1700px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.diorama-grid {
    display: grid;
    gap: 4rem;
    width: 100%;
}

.diorama-grid.align-left {
    grid-template-columns: 1.2fr 0.8fr;
}

.diorama-grid.align-right {
    grid-template-columns: 0.8fr 1.2fr;
}

@media (max-width: 900px) {
    .journey-diorama-block {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 3rem 0 !important;
    }

    .diorama-block-inner {
        height: auto !important;
        padding: 0 1.5rem !important;
    }

    .diorama-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .journey-photo-container {
        order: 2 !important;
        margin-top: 1rem;
        height: 220px !important;
    }

    .journey-diorama-block .diorama-bg-layer {
        opacity: 0.5 !important;
    }

    .journey-diorama-block h3 {
        font-size: 1.8rem !important;
        text-align: left !important;
    }

    .journey-diorama-block p {
        font-size: 1.05rem !important;
        text-align: left !important;
    }

    .journey-diorama-block .news-content-floating {
        padding: 1.75rem !important; /* Reduced padding on mobile */
        text-align: left !important;
    }

    .journey-diorama-block .milestone-highlights {
        justify-content: flex-start !important;
    }
}

/* ── Language Switcher Toggle Styles ── */
.lang-switch-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    user-select: none;
    -webkit-user-select: none;
}

.lang-switch-toggle:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 12px rgba(192, 128, 64, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.lang-option {
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
}

.lang-option.active {
    color: var(--color-accent);
    text-shadow: 0 0 8px rgba(192, 128, 64, 0.3);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.12);
    font-weight: 300;
}

/* ── Journey Event Photos & Placeholders ── */
.journey-photo-container {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-photo-container::before {
    content: "PHOTO PLACEHOLDER";
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
    position: absolute;
    z-index: 1;
}

.journey-photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Fallback if image doesn't exist or is empty (so it doesn't show broken image icon) */
.journey-photo-placeholder:not([src]), 
.journey-photo-placeholder[src=""],
.journey-photo-placeholder[src*="placeholder"] {
    opacity: 0 !important;
}

.journey-photo-container:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 45px rgba(192, 128, 64, 0.15);
    transform: translateY(-4px);
}

/* ── Journey Event Photos & Placeholders ── */
.journey-photo-container {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 15, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-photo-container::before {
    content: "PHOTO PLACEHOLDER";
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.1em;
    position: absolute;
    z-index: 1;
}

.journey-photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Fallback if image doesn't exist or is empty (so it doesn't show broken image icon) */
.journey-photo-placeholder:not([src]), 
.journey-photo-placeholder[src=""],
.journey-photo-placeholder[src*="placeholder"] {
    opacity: 0 !important;
}

.journey-photo-container:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 45px rgba(192, 128, 64, 0.15);
    transform: translateY(-4px);
}

.journey-photo-container:hover .journey-photo-placeholder {
    transform: scale(1.05);
    opacity: 1;
}

.photo-overlay-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

/* ── Journey Photo Slideshow (Google I/O) ── */
.journey-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.journey-slideshow .journey-photo-placeholder {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.journey-slideshow .journey-photo-placeholder.active-slide {
    opacity: 0.85;
    visibility: visible;
}

.journey-photo-container:hover .journey-slideshow .journey-photo-placeholder.active-slide {
    opacity: 1;
}

/* ── iPhone Video Mockup Frame (Bank Mandiri) ── */
.phone-frame-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    height: 380px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup-frame {
    position: relative;
    width: 200px;
    height: 360px;
    border-radius: 36px;
    background: #09090d;
    border: 8px solid #1a1a24;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.05),
                0 0 30px rgba(192, 128, 64, 0.1);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(2deg);
}

.phone-speaker-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 12px;
    background: #1a1a24;
    border-radius: 99px;
    z-index: 10;
}

.phone-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    background: #000;
    transition: opacity 0.8s ease;
}

.phone-glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 40%, transparent 41%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* Hover effects */
.phone-frame-container:hover .phone-mockup-frame {
    transform: scale(1.05) rotate(0deg);
    border-color: var(--color-accent);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.9),
                0 0 0 1px rgba(192, 128, 64, 0.25),
                0 0 45px rgba(192, 128, 64, 0.2);
}

/* ── Phone Video Slideshow (Bank Mandiri) ── */
.phone-video-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.phone-video-slideshow .phone-video-player {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.phone-video-slideshow .phone-video-player.active-video-slide {
    opacity: 0.9;
}

.phone-frame-container:hover .phone-video-slideshow .phone-video-player.active-video-slide {
    opacity: 1;
}

/* Hardware acceleration for scroll components */
.ventures-horizontal-track,
.ventures-horizontal-panel {
    will-change: transform;
}