@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* Fluid typography for identical scaling across laptop screens */
@media (min-width: 64em) {
    html {
        font-size: clamp(0.6625rem, 1.0416vw, 1rem) !important;
    }
}

/* Scale down globally for mobile to prevent oversized elements */
@media (max-width: 53.125em) {
    html {
        font-size: 0.844rem !important;
    }
}

/* ───────────────────────── RESET & BASE ───────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold:        #d7a234; /* Balanced premium gold */
    --gold-light:  #ebb950;
    --gold-dark:   #aa7c11;
    --black:       #090a0b; /* Sleeker, dark mode black */
    --panel-bg:    #121315; /* Slate dark charcoal */
    --text:        #f5f4f0; /* Crisp off-white */
    --text-muted:  #a6a5a0;
    --border:      rgba(255, 255, 255, 0.08);
    --border-gold: rgba(215, 162, 52, 0.2);
    --navbar-h:    4.375rem;
}

html {
    background-color: #0b0d10 !important;
}

html, body {
    height: 100%;
    overflow: hidden; /* STRICTLY NO SCROLLING ON DESKTOP */
    font-family: "Inter", sans-serif;
    background: transparent;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../../css/bg.avif") no-repeat center center;
    background-size: cover;
    z-index: -1;
    will-change: transform;
}

/* ───────────────────────── HEADER NAVBAR BLUR ───────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-h);
    z-index: 999; /* Just below floating navbar which is z-index 1000 */
}

/* ───────────────────────── ENTRANCE ANIMATIONS ───────────────────────── */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ───────────────────────── SPLITSCREEN CONTAINER ───────────────────────── */
.about-splitscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 35fr 65fr;
    height: 100vh;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

/* ───────────────────────── LEFT PANEL (Branding & Nav) ───────────────────────── */
.brand-panel {
    position: relative;
    height: 100%;
    background: rgba(9, 10, 11, 0.9);
    border-right: 1px solid var(--border);
    padding: calc(var(--navbar-h) + 1rem) 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Bring all panel contents above the overlay */
.brand-panel > * {
    position: relative;
    z-index: 2;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0.5rem;
    animation: slideUpFade 0.6s ease-out both;
}

.brand-logo {
    width: 100%;
    max-width: 19.43rem; /* Bigger logo */
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 50%;
    border: 1.5px solid var(--border-gold);
    padding: 0.375rem;
    background: rgba(9, 10, 11, 0.6);
    box-shadow: 0 0 25px rgba(242, 193, 86, 0.15);
    align-self: center; /* Center horizontally in flex column */
    margin-top: 1.5rem;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.edition-tag {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(242, 193, 86, 0.2);
}

.brand-main {
    font-family: "Playfair Display", serif;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.01em;
}

.theme-tag {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.2rem;
}

/* Address Navigation */
.address-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.5rem; /* Moves the section slightly down */
    animation: slideUpFade 0.8s ease-out both;
}

.nav-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.address-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address-link {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Sliding left gold accent line on hover */
.address-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--gold);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.address-link:hover::before {
    transform: scaleY(1);
}

.address-link:hover {
    border-color: var(--gold-dark);
    background-color: rgba(242, 193, 86, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(242, 193, 86, 0.05);
}

.address-link .role {
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.address-link:hover .role {
    color: var(--gold-light);
}

.address-link .arrow {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.25s ease;
}

.address-link:hover .arrow {
    color: var(--gold);
    transform: translateX(5px);
}

.editorial-panel {
    position: relative;
    background: transparent;
    padding: calc(var(--navbar-h) + 1.5rem) 3.5rem 2.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

/* Radial light glow in the top right corner */
.editorial-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 18.75rem;
    height: 18.75rem;
    background: radial-gradient(circle at 100% 0%, rgba(242, 193, 86, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Faint background watermark to fill empty space */
.editorial-panel::after {
    content: "XI";
    position: absolute;
    bottom: -3.75rem;
    right: 1.25rem;
    font-family: "Playfair Display", serif;
    font-size: 32rem;
    font-weight: 700;
    font-style: italic;
    color: rgba(255, 255, 255, 0.012);
    pointer-events: none;
    line-height: 0.8;
    z-index: 1;
}

.editorial-panel > * {
    position: relative;
    z-index: 2;
}

.editorial-card {
    position: relative;
    background-color: #1b1c1e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23f2c156' stroke-width='0.5' stroke-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3Ccircle cx='0' cy='0' r='28'/%3E%3Ccircle cx='60' cy='0' r='28'/%3E%3Ccircle cx='0' cy='60' r='28'/%3E%3Ccircle cx='60' cy='60' r='28'/%3E%3C/g%3E%3C/svg%3E");
    border: 1px solid rgba(242, 193, 86, 0.35);
    border-radius: 8px;
    padding: 2rem 2.5rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.4);
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideUpFade 0.7s ease-out both;
}



.lead-quote {
    font-family: "Playfair Display", serif;
    font-size: clamp(0.6rem, 2vw, 2.6rem);
    font-style: italic;
    line-height: 1.45;
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    max-width: 100%;

    /* Metallic text gradient for the quote */
    background: linear-gradient(135deg, #f5f4f0 0%, #ffd966 60%, #f2c156 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.editorial-text {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 100%;
}

.editorial-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #ffffff;
}

.editorial-footer {
    margin-top: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 900px;
    animation: slideUpFade 1.1s ease-out both;
}

.welcome-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.stat-item {
    color: var(--text-muted);
}

.stat-item strong {
    color: var(--gold);
}

.stat-sep {
    color: var(--border);
}

/* ───────────────────────── RESPONSIVE FALLBACK ───────────────────────── */
@media (max-width: 56.25em) {
    html {
        background-color: #0b0d10 !important;
    }
    
    html, body {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
    }
    
    .about-splitscreen {
        position: static;
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .brand-panel {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: calc(var(--navbar-h) + 1.5rem) 1.5rem 3rem 1.5rem;
        gap: 3rem;
        overflow-y: visible;
    }
    
    .editorial-panel {
        padding: 3rem 1.5rem;
        justify-content: flex-start;
        height: auto;
        min-height: auto;
    }
    
    .editorial-card {
        padding: 1.75rem;
        gap: 1.5rem;
    }
    
    .lead-quote {
        margin-bottom: 2rem;
    }

    .editorial-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Fallback: Enable scroll on desktop if the window height is extremely short */
@media (min-width: 56.25em) and (max-height: 38.75em) { /* 620px */
    html, body {
        overflow-y: auto;
    }
    
    .about-splitscreen {
        position: relative;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    
    .brand-panel {
        position: sticky;
        top: 0;
        height: 100vh;
    }
    
    .editorial-panel {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
}

/* Custom Scrollbars for Page */
::-webkit-scrollbar {
    width: 0.375rem;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}

::-webkit-scrollbar-thumb {
    background: rgba(242, 193, 86, 0.35);
    border-radius: 0.188rem;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(242, 193, 86, 0.6);
}