
.home-page {
    background: #11141b;
    overflow-x: hidden;
}

/* ==========================================================================
   2. HERO & VIDEO SECTION
   ========================================================================== */
.hero {
    position: relative;
    margin-top: var(--navbar-height-desktop);
    min-height: calc(100svh - var(--navbar-height-desktop));
    width: 100%;
    overflow: visible; /* Lets pillars pop out */
    z-index: 20;       /* Higher than the sections below */
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 20, 0.72) 0%, rgba(8, 12, 20, 0.48) 38%, rgba(8, 12, 20, 0.62) 100%);
    z-index: 2;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(248, 223, 139, 0.42);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(18, 24, 35, 0.76), rgba(18, 24, 35, 0.38));
    color: #fff3c9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-nav span {
    font-size: 2rem;
    line-height: 1;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.hero-nav:hover {
    transform: translateY(-50%) scale(1.08);
    background: linear-gradient(180deg, rgba(40, 50, 72, 0.9), rgba(24, 31, 46, 0.64));
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero-nav:focus-visible {
    outline: 2px solid rgba(255, 239, 180, 0.95);
    outline-offset: 4px;
}

.hero-nav-prev {
    left: clamp(18px, 3vw, 38px);
}

.hero-nav-next {
    right: clamp(18px, 3vw, 38px);
}

.hero-box {
    position: relative;
    z-index: 3;
    width: min(92%, 1100px);
    display: flex;
    justify-content: center;
    padding: clamp(96px, 12vh, 138px) 18px 32px;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    color: #ffffff;
    max-width: 980px;
}

.hero-trust-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 4.9vw, 4.8rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fffdf5;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.52);
}

.hero-trust-title,
.hero-wing-name {
    position: relative;
    overflow: hidden;
}

.hero-trust-title::after,
.hero-wing-name::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -22%;
    width: 24%;
    height: 140%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 248, 214, 0.55), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    animation: heroGoldAura 4.8s ease-in-out infinite;
    pointer-events: none;
}

.hero-wing-text {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.85rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
    padding: 4px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(20, 24, 32, 0.42), rgba(20, 24, 32, 0.2));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-logo-frame {
    width: clamp(140px, 18vw, 220px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: clamp(6px, 0.9vw, 10px);
    border-radius: 50%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05) 58%, rgba(16, 22, 34, 0.16) 100%);
    border: 1px solid rgba(248, 223, 139, 0.3);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 4px rgba(248, 223, 139, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(255, 255, 255, 0.9);
}

.hero-wing-name {
    margin: 0;
    font-size: clamp(4.5rem, 4vw, 5.4rem);
    font-weight: 700;
    line-height: 1.35;
    color: #f8df8b;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-wing-name-line {
    display: block;
    white-space: nowrap;
}

.hero-wing-name-abbr {
    display: block;
    font-size: 0.82em;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.hero-tagline {
    margin: 8px 0 0;
    padding: 14px 30px;
    border-radius: 999px;
    border: 1px solid rgba(248, 223, 139, 0.42);
    background: rgba(255, 255, 255, 0.06);
    font-size: clamp(1.15rem, 1.95vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff8df;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid rgba(248, 223, 139, 0.85);
    box-sizing: border-box;
    max-width: min(92vw, 720px);
    width: 0;
    animation: heroTaglineTypingLoop 5s steps(36, end) infinite, heroTaglineCaret 0.8s step-end infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes heroGoldAura {
    0%, 100% {
        left: -26%;
        opacity: 0;
    }
    15% {
        opacity: 0.9;
    }
    55% {
        left: 108%;
        opacity: 0.65;
    }
    70% {
        opacity: 0;
    }
}

@keyframes heroTaglineTypingLoop {
    0% { width: 0; }
    45% { width: 36ch; }
    75% { width: 36ch; }
    100% { width: 0; }
}

@keyframes heroTaglineTypingLoopMobile {
    0% { width: 0; }
    45% { width: 40ch; }
    75% { width: 40ch; }
    100% { width: 0; }
}

@keyframes heroTaglineCaret {
    50% { border-color: transparent; }
}

.hero-box.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-box h1 {
    font-size: 75px; 
    font-weight: 800; 
    background: linear-gradient(to right, #f4c430 20%, #fff 50%, #f4c430 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.scroll-indicator span {
    display: block;
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    position: relative;
}

.scroll-indicator span::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff4bf;
    transform: translateX(-50%);
    animation: heroScrollDot 1.8s ease-in-out infinite;
}

@keyframes heroScrollDot {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    25% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }
}

/* Glass Trigger Inside Video */
.video-glass-trigger {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 12px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-glass-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-5px);
}

/* ==========================================================================
   UPDATED HERO RESPONSIVE RULES (All Devices)
   ========================================================================== */

/* 1. Tablet Devices (iPad/Tablets) */
@media (max-width: 1024px) {
    .hero-box {
        max-width: 90%;
        padding: clamp(82px, 10vh, 110px) 18px 16px;
    }

    .hero-nav {
        width: 58px;
        height: 58px;
    }

    .hero-nav span {
        font-size: 1.8rem;
    }

    .hero-text-container {
        max-width: 860px;
        gap: 16px;
    }

    .hero-trust-title {
        font-size: clamp(2.3rem, 5.4vw, 4rem);
    }

    .hero-wing-name {
        font-size: clamp(1.9rem, 3.9vw, 2.8rem);
    }

    .hero-logo-frame {
        width: clamp(128px, 19vw, 180px);
    }
}

/* 2. Large Mobile / Small Tablets */
@media (max-width: 768px) {
    .hero {
        margin-top: var(--navbar-height-mobile);
        min-height: calc(100svh - var(--navbar-height-mobile));
    }

    .hero-nav {
        width: 52px;
        height: 52px;
    }

    .hero-nav span {
        font-size: 1.5rem;
    }

    .hero-text-container {
        gap: 14px;
        max-width: 680px;
    }

    .hero-trust-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.16;
    }

    .hero-wing-text {
        font-size: 1.08rem;
        letter-spacing: 0.18em;
    }

    .hero-wing-name {
        font-size: clamp(1.7rem, 5.4vw, 2.45rem);
        line-height: 1.45;
        gap: 4px;
    }

    .hero-logo-frame {
        width: clamp(118px, 28vw, 156px);
        padding: 7px;
        box-shadow:
            0 14px 28px rgba(0, 0, 0, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            0 0 0 3px rgba(248, 223, 139, 0.05);
    }

    .hero-wing-name-line {
        white-space: nowrap;
    }

    .hero-wing-name-abbr {
        font-size: 0.8em;
        letter-spacing: 0.14em;
    }

    .hero-tagline {
        padding: 12px 16px;
        max-width: 96vw;
        font-size: 1.02rem;
        letter-spacing: 0.06em;
        text-align: center;
        white-space: nowrap;
        width: 0;
        border-right: 2px solid rgba(248, 223, 139, 0.85);
        animation: heroTaglineTypingLoopMobile 5s steps(40, end) infinite, heroTaglineCaret 0.8s step-end infinite;
    }

    .scroll-indicator {
        bottom: 16px;
    }

    .video-glass-trigger {
        width: 85%; 
        bottom: 40px;
        padding: 15px 20px;
        font-size: 16px;
        letter-spacing: 1px;
    }

}

/* 3. Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 480px) {
    .hero-box {
        padding: clamp(72px, 9vh, 92px) 8px 14px;
    }

    .hero-nav {
        width: 46px;
        height: 46px;
    }

    .hero-nav span {
        font-size: 1.28rem;
    }

    .hero-text-container {
        gap: 12px;
        max-width: 100%;
    }

    .hero-trust-title {
        font-size: clamp(1.65rem, 9vw, 2.35rem);
        line-height: 1.18;
    }

    .hero-wing-text {
        font-size: 0.98rem;
        letter-spacing: 0.14em;
    }

    .hero-wing-name {
        font-size: 1.72rem;
        line-height: 1.5;
        gap: 3px;
    }

    .hero-logo-frame {
        width: clamp(104px, 34vw, 136px);
        padding: 6px;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.16),
            0 0 0 2px rgba(248, 223, 139, 0.05);
    }

    .hero-wing-name-line {
        white-space: nowrap;
    }

    .hero-wing-name-abbr {
        font-size: 0.78em;
        letter-spacing: 0.12em;
    }

    .hero-tagline {
        padding: 10px 12px;
        font-size: 0.95rem;
        letter-spacing: 0.035em;
        max-width: 96vw;
        white-space: nowrap;
        width: 0;
        border-right: 2px solid rgba(248, 223, 139, 0.85);
        animation: heroTaglineTypingLoopMobile 5s steps(40, end) infinite, heroTaglineCaret 0.8s step-end infinite;
    }

    .hero video {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }

    .video-glass-trigger {
        font-size: 15px;
        bottom: 25px; 
        backdrop-filter: blur(15px); 
    }

    .scroll-indicator {
        display: none;
    }
}

/* 4. Special fix for Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 150vh; 
    }
    
    .video-glass-trigger {
        position: relative;
        bottom: 0;
        margin-top: 20px;
        left: 0;
        transform: none;
    }
}


/* ------------------------------------------ */

.hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* This makes the image act as a background */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    z-index: 0;
    transform: scale(1.08);
    transform-origin: center center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 20, 0.72) 0%, rgba(8, 12, 20, 0.48) 38%, rgba(8, 12, 20, 0.62) 100%);
    z-index: 2;
}

.hero-box {
    position: relative;
    z-index: 3; /* Ensures text is above image and overlay */
}


/* ============================================================
   1. SECTION BACKGROUND: REGAL CRIMSON & GOLD HALO
   ============================================================ */
/* --- SECTION STYLING --- */
.grand-heritage-section {
    background: linear-gradient(135deg, #41374f);
    padding: 10px 5% 40px 5%;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    padding-bottom: 5PX;
}

.grand-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- HEADER --- */
.grand-header-full {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.one-line-header {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 3.8vw, 4.2rem); 
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f5d108;
}


/* --- CONTENT SPLIT --- */
.grand-content-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1px;
    margin-top: 2px;
}

.narrative-side { 
    flex: 1; 
    margin-top: 40px;
}

.heritage-narrative {
    font-size: 1.5rem;
    line-height: 2.2;
    text-align: justify;
    
    /* Corrects the "large gaps" problem */
    text-justify: inter-word; 
    word-spacing: 1px; 
    
    /* Prevents words from stretching too much */
    hyphens: auto; 
    
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.heritage-drop-cap {
    float: left;
    font-size: 3.6rem;
    font-family: 'Playfair Display', serif;
    color: hsla(45, 100%, 51%, 0.811);  /* gold accent */
    line-height: 0.9;
    margin-right: 0px;
}

/* --- MEDALLION / IMAGE --- */
.medallion-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

/* SQUARE IMAGE FRAME */
.square-frame-grand {
    width: min(400px, 86vw);
    height: min(400px, 86vw);
    border-radius: 12px;  
    border: 4px solid #ffdd59;  
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    overflow: hidden; /* keep image inside frame when it scales */
}

@media (max-width: 420px) {
    .hero-wing-name-line {
        white-space: normal;
    }

    .hero-wing-name {
        padding: 0 10px;
    }
}

.portrait-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* prevent stretching */
    object-position: center;
    border-radius: 10px;   
    border: 3px solid rgba(255, 221, 89, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;

}

.portrait-img:hover {
    transform: scale(1.05);  
}

/* NAME AND YEAR BELOW IMAGE */
.grand-founder-identity {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.founder-name {
    font-family: 'Playfair Display', serif; /* Elegant serif font */
    font-size: 1.6rem; /* keep original */
    font-weight: 900; /* bold for premium feel */
    color: #f4c430; /* luxurious gold color */
    line-height: 1.2;
    letter-spacing: 2px; /* adds premium spacing */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5), 
                 0 0 5px rgba(255,215,0,0.5); /* subtle glow effect */
    transition: 0.3s ease;
    padding-top: 20px;
}

/* Optional: add a hover effect for extra elegance */
.founder-name:hover {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6),
                 0 0 10px rgba(255,215,0,0.7);
    color: #ffd700; /* brighter gold on hover */
}
.dob-display {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #f3b006;  
    letter-spacing: 2px;
    text-transform: uppercase;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
    .grand-content-split {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .narrative-side {
        margin-top: 8px;
        width: 100%;
    }

    .square-frame-grand {
        width: 250px;
        height: 250px;
    }
    
    .founder-name {
        font-size: 1.3rem;
    }

    .dob-display {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .grand-heritage-section {
        padding: 18px 18px 28px;
    }

    .grand-header-full {
        margin-bottom: 18px;
    }

    .grand-content-split {
        gap: 20px;
        margin-top: 0;
    }

    .narrative-side {
        margin-top: 0;
    }

    .heritage-narrative {
        font-size: 1.14rem;
        line-height: 1.95;
        text-align: left;
        word-spacing: normal;
        hyphens: none;
    }

    .heritage-drop-cap {
        font-size: 2.8rem;
        line-height: 0.92;
        margin-right: 6px;
    }

    .medallion-area {
        width: 100%;
        gap: 10px;
    }

    .square-frame-grand {
        width: min(82vw, 300px);
        height: min(82vw, 300px);
    }

    .founder-name {
        max-width: 100%;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        font-size: 1.2rem;
        line-height: 1.35;
        letter-spacing: 1px;
        padding-top: 12px;
    }

    .dob-display {
        font-size: 1rem;
        letter-spacing: 1px;
        padding-top: 4px;
    }
}

@media (max-width: 480px) {
    .grand-heritage-section {
        padding: 16px 14px 24px;
    }

    .heritage-narrative {
        font-size: 1rem;
        line-height: 1.82;
    }

    .heritage-drop-cap {
        font-size: 2.45rem;
        margin-right: 5px;
    }

    .square-frame-grand {
        width: min(86vw, 250px);
        height: min(86vw, 250px);
        border-width: 3px;
        padding: 5px;
    }

    .founder-name {
        font-size: 1.05rem;
        line-height: 1.32;
        letter-spacing: 0.6px;
    }

    .dob-display {
        font-size: 0.92rem;
        letter-spacing: 0.8px;
    }
}
