/* ==========================================================================
   Charles M. Lawrie, MD, MSc — Design System & Editorial Stylesheet (v2.3)
   Source of Truth: docs/storytelling.md (Home Cinematic Scroll Sequence v2)
   & Brand Book Concept 08 ("Open-Book CL")
   Palette: Navy #142D3B, Deep Midnight #0E222D, Ivory #F5F2EA, Teal #165B65, Titanium #8A9BA8
   Typography: Editorial (Serif Display) & Nunito (Functional & UI Sans)
   ========================================================================== */

@font-face {
    font-family: 'Editorial';
    src: url('../fonts/editorial-400.woff') format('woff'),
         url('/theme/assets/fonts/editorial-400.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/nunito-latin-ext.woff2') format('woff2'),
         url('/assets/fonts/nunito-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../fonts/nunito-latin.woff2') format('woff2'),
         url('/assets/fonts/nunito-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --c-ink: #142D3B;
    --c-ink-rgb: 20, 45, 59;
    --c-canvas: #F5F2EA;
    --c-canvas-rgb: 245, 242, 234;
    --c-accent: #236B68;
    --c-accent-teal: #165B65;
    --c-accent-hover: #1E7582;
    --c-accent-cyan: #38BDF8;
    --c-metal: #8A9BA8;
    --c-metal-light: #DCE5E9;
    --c-surface: #FFFFFF;
    --c-secondary: #3B515D;
    --c-dark-copy: #DCE5E9;
    --c-dark-copy-muted: #B0C2CB;
    --c-border: #D6DDD9;
    --c-border-subtle: rgba(20, 45, 59, 0.08);
    --c-dark-bg: #0E222D;
    --c-dark-surface: #142E3D;
    --c-dark-border: rgba(245, 242, 234, 0.14);

    --font-display: 'Editorial', 'Georgia', serif;
    --font-ui: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: var(--font-ui);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Reset & Global Typographic Rendering Quality */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-synthesis: none;
}

html {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 16px;
    background-color: var(--c-dark-bg);
    color: var(--c-canvas);
    scroll-behavior: auto; /* Lenis handles smooth scroll */
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.65;
    font-family: var(--font-ui);
    font-weight: 400;
    background-color: var(--c-dark-bg);
    color: var(--c-canvas);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

strong, b {
    font-family: var(--font-ui);
    font-weight: 600;
}

body.nav-locked, body.modal-locked {
    overflow: hidden;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

button, input, select, textarea {
    font-family: var(--font-ui);
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

/* Accessible Focus States */
:focus-visible {
    outline: 2px solid var(--c-accent-cyan);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    z-index: 999;
    padding: 0.75rem 1.25rem;
    background: var(--c-surface);
    color: var(--c-ink);
    font-family: var(--font-ui);
    font-weight: 600;
    border-radius: 4px;
}
.skip-link:focus {
    top: 1rem;
}

/* ==========================================================================
   GLOBAL WEBGL STAGE & LAYER HIERARCHY
   z-index 0: Fixed Hero Video Frame (dissolves smoothly on scroll)
   z-index 1: Shared WebGL Canvas (#webgl-root-canvas)
   z-index 2+: Main DOM Content & Interactive Sections
   ========================================================================== */
#webgl-root-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
    pointer-events: none;
}

main#main-content {
    position: relative;
    z-index: 2;
}

/* Typography Classes */
.font-serif {
    font-family: var(--font-display);
    font-weight: 400;
    font-synthesis: none;
}

.eyebrow {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-accent-cyan);
    display: inline-block;
}

.title-editorial {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: #FFFFFF;
    font-synthesis: none;
}

/* High-contrast body copy on dark sections by default; overridden cleanly on light sections */
.text-body-lead {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: clamp(1.04rem, 1.28vw, 1.2rem);
    line-height: 1.68;
    color: var(--c-dark-copy);
}

/* Layout Containers */
.site-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
    position: relative;
    z-index: 5;
}

.site-container-narrow {
    max-width: 900px;
}

.section-editorial {
    position: relative;
    z-index: 5;
    padding-top: clamp(4.5rem, 8vw, 7.5rem);
    padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
    background: rgba(14, 34, 45, 0.72);
    color: var(--c-canvas);
    transition: background-color 0.4s var(--ease-out);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(180deg, rgba(11, 26, 35, 0.72) 0%, rgba(11, 26, 35, 0) 100%);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s var(--ease-out), border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.header-scrolled {
    background: rgba(12, 29, 39, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(245, 242, 234, 0.12);
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Increased Header Logo Size (~22-25% larger, preserving exact aspect ratio) */
.header-logo {
    display: inline-flex;
    align-items: center;
    height: 48px;
    flex-shrink: 0;
}

.logo-svg {
    width: 152px;
    height: auto;
    color: #F5F2EA;
}

@media (min-width: 768px) {
    .header-logo .logo-svg {
        width: 184px;
        height: auto;
    }
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.85rem;
}

@media (min-width: 1040px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    color: #F5F2EA;
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #FFFFFF;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--c-accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s var(--ease-out);
}

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

/* Nav Dropdown Clusters */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #F5F2EA;
    padding: 0.4rem 0;
    cursor: pointer;
}

.nav-dropdown-btn:hover {
    color: #FFFFFF;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    width: 248px;
    background: rgba(12, 29, 39, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid var(--c-dark-border);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap:focus-within .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.62rem 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 500;
    color: #DCE5E9;
    border-radius: 5px;
    transition: background 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.dropdown-item:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #FFFFFF;
    transform: translateX(3px);
}

/* Refined Outline Pill CTA (Deliberate Hover & Focus, Nunito 600) */
.btn-nav-pill {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 1.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(56, 189, 248, 0.55);
    background: rgba(22, 91, 101, 0.22);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #F5F2EA;
    transition: background-color 0.28s var(--ease-out), border-color 0.28s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.28s var(--ease-out);
}

.btn-nav-pill:hover {
    background-color: var(--c-accent-teal);
    border-color: var(--c-accent-cyan);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(22, 91, 101, 0.45);
}

/* Mobile Toggle */
.mobile-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px;
    height: 44px;
    padding: 10px;
    z-index: 110;
}

@media (min-width: 1040px) {
    .mobile-toggle-btn {
        display: none;
    }
}

.burger-bar {
    width: 24px;
    height: 2px;
    background-color: #F5F2EA;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 33, 0.72);
    backdrop-filter: blur(6px);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}
.mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 380px);
    background-color: #0B1B24;
    border-left: 1px solid var(--c-dark-border);
    z-index: 99;
    padding: 2.25rem 1.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
}
.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mobile-close-btn {
    font-family: var(--font-ui);
    font-size: 1.8rem;
    color: #F5F2EA;
    line-height: 1;
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #DCE5E9;
    border-bottom: 1px solid rgba(245, 242, 234, 0.08);
    padding-bottom: 0.55rem;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
    color: #FFFFFF;
    border-bottom-color: var(--c-accent-cyan);
}

.nav-locked .mobile-toggle-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* ==========================================================================
   BUTTON MICRO-INTERACTIONS (PRIMARY & SECONDARY — NUNITO 600)
   ========================================================================== */
.btn-primary-pill {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #165B65 0%, #1F7A87 100%);
    color: #FFFFFF;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 9999px;
    padding: 0.85rem 1.9rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 28px rgba(14, 34, 45, 0.45);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.btn-primary-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s var(--ease-out);
    pointer-events: none;
}

.btn-primary-pill:hover {
    transform: translateY(-2px);
    border-color: #7DD3FC;
    box-shadow: 0 14px 34px rgba(22, 91, 101, 0.58);
}

.btn-primary-pill:hover::before {
    left: 140%;
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease-out);
}

.btn-primary-pill:hover .btn-arrow,
.btn-secondary-pill:hover .btn-arrow,
.btn-editorial-text:hover .btn-arrow,
.pathway-card:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 242, 234, 0.06);
    color: #F5F2EA;
    border: 1px solid rgba(245, 242, 234, 0.28);
    border-radius: 9999px;
    padding: 0.82rem 1.65rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn-secondary-pill:hover {
    background: rgba(245, 242, 234, 0.14);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-editorial-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 600;
    color: #F5F2EA;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(245, 242, 234, 0.45);
    padding-bottom: 3px;
    transition: border-color 0.22s var(--ease-out), color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.btn-editorial-text:hover {
    color: #FFFFFF;
    border-color: var(--c-accent-cyan);
}

/* ==========================================================================
   HOME CINEMATIC SCROLL SEQUENCE — VERSION 2 (6 SCENES)
   ========================================================================== */

/* Scene 1: Flagship Hero (#scene-hero) */
.home-hero-stage {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    z-index: 2;
}

/* Fixed Hero Video Frame — Dissolves smoothly via opacity on scroll so there is NEVER a horizontal seam */
.hero-video-frame {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    will-change: opacity;
}

.hero-video-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
}

.hero-video-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 45%, rgba(14, 34, 45, 0.18) 0%, rgba(14, 34, 45, 0.72) 70%),
        linear-gradient(180deg, rgba(11, 26, 35, 0.55) 0%, rgba(14, 34, 45, 0.28) 48%, rgba(14, 34, 45, 0.96) 100%);
    pointer-events: none;
}

/* Unboxed Floating Hero Content */
.hero-floating-container {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(7rem, 15vh, 10rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vh, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-editorial-lead {
    max-width: 650px;
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-accent-cyan);
    margin-bottom: 0.85rem;
    display: block;
}

.hero-main-title {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    font-weight: 400;
    font-synthesis: none;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-serif-title {
    font-style: italic;
    color: #F5F2EA;
}

.hero-summary {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: clamp(1rem, 1.22vw, 1.16rem);
    line-height: 1.65;
    color: #E2ECEF;
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-btn-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.15rem;
}

.hero-scroll-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #DCE5E9;
}

.scroll-prompt-line {
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--c-accent-cyan), transparent);
}

/* Home Scene Wrapper — Translucent atmospheric staging so 3D Bone is ALWAYS visible */
.home-scene-section {
    position: relative;
    z-index: 2;
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding-top: clamp(5rem, 9vh, 7.5rem);
    padding-bottom: clamp(5rem, 9vh, 7.5rem);
    background: radial-gradient(ellipse at 50% 50%, rgba(14, 34, 45, 0.22) 0%, rgba(12, 28, 38, 0.72) 100%);
}

/* Glassmorphic Narrative Panel for Scenes 2 & 3 */
.scene-glass-card {
    max-width: 560px;
    background: rgba(14, 34, 45, 0.74);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 242, 234, 0.16);
    border-radius: 12px;
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.scene-glass-card--right {
    margin-left: auto;
}

.scene-telemetry-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(245, 242, 234, 0.12);
}

.telemetry-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.telemetry-val {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.55rem;
    color: #FFFFFF;
    line-height: 1.1;
}

.telemetry-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9DB3BE;
}

.precision-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.75rem;
}

.spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(22, 91, 101, 0.28);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    padding: 0.45rem 0.95rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #F5F2EA;
}

.spec-pill svg {
    color: var(--c-accent-cyan);
    flex-shrink: 0;
}

/* ==========================================================================
   SCENE 4 (#scene-path): CURVED EXPERTISE PATHWAY (REPLACES FLAT CARD ROW)
   ========================================================================== */
.pathway-section-header {
    max-width: 680px;
    margin-bottom: 3rem;
}

.expertise-pathway-stage {
    position: relative;
    width: 100%;
    padding: 1rem 0 2rem;
}

.expertise-curve-svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 260px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.expertise-pathway-nodes {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

/* Depth-staggered wave arrangement on desktop (using margin-top so GSAP transform y:0 preserves the wave) */
@media (min-width: 960px) {
    .pathway-card:nth-child(1) {
        margin-top: 2.5rem;
    }
    .pathway-card:nth-child(2) {
        margin-top: 0;
    }
    .pathway-card:nth-child(3) {
        margin-top: 3.25rem;
    }
    .pathway-card:nth-child(4) {
        margin-top: 0.65rem;
    }
}

.pathway-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(15, 36, 48, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 242, 234, 0.16);
    border-radius: 12px;
    padding: 1.85rem 1.6rem;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.pathway-card:hover {
    border-color: var(--c-accent-cyan);
    background: rgba(19, 45, 59, 0.92);
    box-shadow: 0 24px 52px rgba(22, 91, 101, 0.38);
}

.pathway-node-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.pathway-node-index {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--c-accent-cyan);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    padding: 0.2rem 0.7rem;
    letter-spacing: 0.04em;
}

.pathway-node-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(245, 242, 234, 0.06);
    border: 1px solid rgba(245, 242, 234, 0.12);
    color: #F5F2EA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pathway-card-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9DB3BE;
    display: block;
    margin-bottom: 0.4rem;
}

.pathway-card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.22;
    color: #FFFFFF;
    margin-bottom: 0.7rem;
}

.pathway-card-desc {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--c-dark-copy);
    margin-bottom: 1.5rem;
}

.pathway-card-cta {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Tablet & Mobile S-Curve Pathway Layout */
@media (max-width: 959px) {
    .expertise-curve-svg {
        display: none;
    }
    .expertise-pathway-nodes {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding-left: 1.25rem;
        border-left: 2px solid rgba(56, 189, 248, 0.35);
    }
    .pathway-card {
        width: 100%;
    }
    .pathway-card::before {
        content: '';
        position: absolute;
        left: -1.68rem;
        top: 2rem;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--c-accent-cyan);
        box-shadow: 0 0 12px var(--c-accent-cyan);
    }
}

/* ==========================================================================
   SCENE 5 (#scene-chronology): SEPARATE PROOF STATISTIC + ASCENDING CHRONOLOGY
   ========================================================================== */
.chronology-layout {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Part A: Separate Proof Statistic Banner */
.proof-stat-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(22, 91, 101, 0.38) 0%, rgba(14, 34, 45, 0.86) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-radius: 14px;
    padding: clamp(1.85rem, 3.5vw, 2.75rem);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
}

.proof-stat-metric {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.proof-stat-number {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.proof-stat-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.proof-stat-title {
    font-family: var(--font-ui);
    font-size: 1.06rem;
    font-weight: 600;
    color: #F5F2EA;
    letter-spacing: 0.01em;
}

.proof-stat-sub {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--c-dark-copy);
}

/* Part B: Ascending Chronological Journey (2016 -> 2022 -> 2025-2026) */
.chronology-track-wrapper {
    position: relative;
    padding-top: 1rem;
}

.chronology-svg-line {
    position: absolute;
    top: 28px;
    left: 0;
    width: 100%;
    height: 24px;
    pointer-events: none;
    z-index: 1;
}

.chronology-milestones-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.chronology-milestone-card {
    background: rgba(14, 34, 45, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(245, 242, 234, 0.16);
    border-top: 3px solid var(--c-accent-cyan);
    border-radius: 10px;
    padding: 1.85rem 1.65rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}

.chronology-milestone-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-accent-cyan);
}

.milestone-year-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--c-accent-cyan);
    margin-bottom: 0.65rem;
}

.milestone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-accent-cyan);
    box-shadow: 0 0 10px var(--c-accent-cyan);
}

.milestone-org {
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9DB3BE;
    display: block;
    margin-bottom: 0.35rem;
}

.milestone-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #FFFFFF;
    margin-bottom: 0.65rem;
}

.milestone-desc {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--c-dark-copy);
}

@media (max-width: 900px) {
    .chronology-svg-line {
        display: none;
    }
    .chronology-milestones-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   SCENE 6 (#scene-finale): FINAL HOME SCENE — TOUCHING THE FOOTER
   ========================================================================== */
.home-finale-section {
    position: relative;
    z-index: 2;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: clamp(5rem, 10vh, 8rem);
    padding-bottom: 0;
    background: linear-gradient(180deg, rgba(14, 34, 45, 0.35) 0%, rgba(11, 27, 36, 0.88) 100%);
    overflow: hidden;
}

.triad-resolution-box {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(14, 34, 45, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(245, 242, 234, 0.15);
    border-radius: 14px;
    padding: clamp(2rem, 4vw, 3.25rem);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.finale-contact-stage {
    position: relative;
    width: 100%;
    margin-top: clamp(3.5rem, 8vh, 6rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.finale-contact-caption {
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9DB3BE;
    margin-bottom: 1rem;
}

/* Luminous Horizontal Baseline Light Wave triggered when 3D bone touches the footer */
.footer-baseline-wave {
    position: relative;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #165B65 20%, #38BDF8 50%, #F5F2EA 53%, #165B65 80%, transparent 100%);
    transform: scaleX(0.18);
    opacity: 0.35;
    transform-origin: center;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.85), 0 -4px 20px rgba(245, 242, 234, 0.45);
    will-change: transform, opacity;
}

/* ==========================================================================
   INTERNAL PAGE HEROS & EDITORIAL BLOCKS
   ========================================================================== */
.page-intro-header {
    position: relative;
    min-height: clamp(440px, 54vh, 580px);
    display: flex;
    align-items: center;
    padding-top: clamp(7.5rem, 15vh, 9.5rem);
    padding-bottom: clamp(3.5rem, 6vh, 5rem);
    border-bottom: 1px solid var(--c-dark-border);
    background: radial-gradient(circle at 75% 40%, rgba(22, 91, 101, 0.25) 0%, rgba(14, 34, 45, 0.86) 75%);
}

.page-main-title {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 4.6vw, 3.85rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    font-weight: 400;
    font-synthesis: none;
}

.page-lead-subtitle {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    line-height: 1.65;
    color: var(--c-dark-copy);
    max-width: 720px;
}

.two-col-editorial {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.25rem;
}

.editorial-card-clean {
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--c-ink);
    box-shadow: 0 12px 32px rgba(20, 45, 59, 0.06);
}

.editorial-bio-block {
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: clamp(1.85rem, 4.5vw, 3.25rem);
    color: var(--c-ink);
    box-shadow: 0 12px 32px rgba(20, 45, 59, 0.06);
}

.clean-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--c-ink);
}

.clean-check-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.clean-check-list svg {
    color: var(--c-accent-teal);
    flex-shrink: 0;
}

/* Timeline on Internal Pages (About / Awards) */
.timeline-editorial {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.timeline-row {
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--c-accent-teal);
    border-radius: 6px;
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .timeline-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.timeline-year {
    font-family: var(--font-ui);
    font-size: 0.86rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-accent-teal);
}

.timeline-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--c-ink);
    margin-bottom: 0.35rem;
}

.timeline-desc {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.94rem;
    color: var(--c-secondary);
    line-height: 1.6;
}

/* Procedures Grid */
.procedures-clean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.85rem;
}

.proc-clean-item {
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 2rem;
}

.proc-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    color: var(--c-ink);
    margin-top: 0.4rem;
    margin-bottom: 0.65rem;
}

.proc-desc {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.94rem;
    color: var(--c-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.proc-spec {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.86rem;
    color: var(--c-ink);
    border-top: 1px solid var(--c-border);
    padding-top: 0.75rem;
}

/* Filterable Research */
.filter-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.filter-pill-btn {
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    color: var(--c-secondary);
    transition: all 0.2s;
}

.filter-pill-btn:hover {
    border-color: var(--c-ink);
    color: var(--c-ink);
}

.filter-pill-btn.active {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: #FFFFFF;
}

.pub-clean-card {
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.pub-badge-award {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(197, 160, 89, 0.16);
    color: #7D5D1C;
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 4px;
    padding: 0.25rem 0.65rem;
    font-family: var(--font-ui);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.pub-item-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--c-ink);
    margin-bottom: 0.5rem;
}

.pub-item-meta {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--c-secondary);
    margin-bottom: 1.25rem;
}

.link-citation {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-ui);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    background: rgba(20, 45, 59, 0.04);
    border: 1px solid var(--c-border);
    color: var(--c-ink);
}

.link-citation:hover {
    background: var(--c-ink);
    color: #FFFFFF;
}

/* Gateway items on Innovation / Internal pages */
.gateway-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(22, 91, 101, 0.1);
    color: var(--c-accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.gateway-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--c-ink);
    margin-bottom: 0.65rem;
}

.gateway-desc {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--c-secondary);
    line-height: 1.6;
}

/* Lectures Grid */
.lectures-clean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lecture-item-card {
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    overflow: hidden;
}

.lecture-thumb-box {
    background: var(--c-dark-bg);
    height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem;
    text-align: center;
}

.lecture-play-btn {
    margin-top: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-accent-teal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s, background-color 0.2s;
}

.lecture-play-btn:hover {
    transform: scale(1.08);
    background: var(--c-accent-hover);
}

.lecture-body {
    padding: 1.75rem;
}

/* Clinic Selector Tabs (Nunito 600, Clean Contrast, No Synthetic Bold) */
.clinic-tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.clinic-tab-pill {
    padding: 0.7rem 1.4rem;
    border-radius: 9999px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    color: var(--c-ink);
    transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.clinic-tab-pill:hover {
    border-color: var(--c-accent-teal);
    color: var(--c-accent-teal);
}

.clinic-tab-pill.active {
    background: var(--c-accent-teal);
    border-color: var(--c-accent-teal);
    color: #FFFFFF;
}

.clinic-card-panel {
    display: none;
    background: #FFFFFF;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

.clinic-card-panel.active {
    display: block;
}

.clinic-panel-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Form Styles (Nunito 600 Labels, Nunito 400 Inputs) */
.clean-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .clean-form-grid {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-ink);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 1rem;
    color: var(--c-ink);
    background: #FFFFFF;
}

.form-input::placeholder {
    font-family: var(--font-ui);
    font-weight: 400;
    color: #7A8E99;
}

/* Video Modal */
.video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 34, 45, 0.92);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
}
.video-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
}

.modal-close-btn {
    position: absolute;
    top: -2.75rem;
    right: 0;
    font-family: var(--font-ui);
    color: #FFFFFF;
    font-size: 1.6rem;
    font-weight: 600;
}

#modal-video-iframe {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   REBUILT FOOTER — HORIZONTAL DESKTOP / COMPACT 2-COLUMN MOBILE
   ========================================================================== */
.site-footer {
    background-color: #09171F;
    color: #F5F2EA;
    padding-top: 3.75rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(245, 242, 234, 0.14);
    position: relative;
    z-index: 5;
}

.footer-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* Desktop: Balanced 4-Column Horizontal Architecture */
.footer-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr 1fr 1.15fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo-svg {
    width: 176px;
    height: auto;
    color: #F5F2EA;
}

.footer-tagline {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.92rem;
    color: #B8C7CF;
    max-width: 310px;
    margin-top: 0.85rem;
    line-height: 1.55;
}

.footer-triad-badge {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-accent-cyan);
    margin-top: 1.1rem;
}

.footer-title {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    margin-bottom: 0.95rem;
}

.footer-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.58rem;
}

.footer-link {
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.88rem;
    color: #B8C7CF;
    transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    display: inline-block;
}

.footer-link:hover {
    color: #FFFFFF;
    transform: translateX(2px);
}

.footer-phone {
    font-family: var(--font-ui);
    color: var(--c-accent-cyan);
    font-weight: 600;
}

/* Slim Centered Horizontal Copyright Bar (Disclaimer Removed) */
.footer-bottom-bar {
    border-top: 1px solid rgba(245, 242, 234, 0.1);
    padding-top: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--font-ui);
    font-weight: 400;
    font-size: 0.84rem;
    color: #A9BCC6;
}

.footer-copyright {
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* Mobile & Tablet Compact 2-Column Grid Footer (Never a tall single-column stack) */
@media (max-width: 900px) {
    .site-footer {
        padding-top: 2.75rem;
        padding-bottom: 1.75rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1.25rem;
        margin-bottom: 1.85rem;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(245, 242, 234, 0.08);
    }
    .footer-col--connect {
        grid-column: 1 / -1;
    }
    .footer-col--connect .footer-link-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem 1rem;
    }
    .footer-bottom-bar {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .footer-baseline-wave {
        transform: scaleX(1) !important;
        opacity: 0.85 !important;
    }
}
