/* ============================================================
   OXYGEN BIOINNOVATIONS — Premium Light Design System v3
   Clean, editorial, premium. AG1/Huel character. 
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    --bg: #FFFFFF;
    --bg-alt: #F4F4F0;
    --bg-tint: #E8E8E4;
    --bg-dark: #0A0A0A;
    --accent: #0A0A0A;
    --accent-mid: #0A0A0A;
    --accent-light: #E8E8E4;
    --accent-lime: #A3A3A3;
    --text-main: #0A0A0A;
    --text-muted: #4a4a4a;
    --border: #E5E5E5;
    --border-dark: rgba(255, 255, 255, 0.1);
    --card: #FFFFFF;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
    --container: 1220px;
    --section-py: clamp(6rem, 10vw, 10rem);
    --font-serif: 'Outfit', system-ui, sans-serif;
    /* Repurposing serif class for our geometric display font */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'Outfit', system-ui, sans-serif;
    /* Replaced Space Mono with Outfit for cleaner numbers */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    /* Strict Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;


    /* --- Strict Fluid Typography Scale --- */
    --text-xs: clamp(0.75rem, 0.7vw, 0.8rem);
    --text-sm: clamp(0.875rem, 0.8vw, 0.95rem);
    --text-base: clamp(1.0625rem, 1.1vw, 1.175rem);
    --text-lg: clamp(1.125rem, 1.2vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 2vw, 2rem);
    --text-3xl: clamp(2rem, 3vw, 2.75rem);
    --text-4xl: clamp(2.5rem, 4vw, 3.75rem);
    --text-5xl: clamp(3rem, 5vw, 4.5rem);
    --text-6xl: clamp(4rem, 7vw, 6.5rem);

    /* --- Strict Line Spacing (Leading) --- */
    --leading-none: 1;
    --leading-tight: 1.1;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;
}

/* --- Strict Responsive Spacing Overrides --- */
@media (max-width: 1024px) {
    :root {
        --space-xl: 6rem;
        --space-2xl: 8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 3.5rem;
        --space-2xl: 5rem;
        --section-py: 4.5rem;
    }
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-main);
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ── Navigation ─────────────────────────────────────────── */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

#header.scrolled {
    box-shadow: 0 4px 24px rgba(14, 26, 16, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 2rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.7;
}

.logo span {
    color: var(--accent-mid);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.desktop-nav>a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.desktop-nav>a:not(.btn):hover {
    color: var(--text-main);
}

/* Nav dropdown */
.nav-item {
    position: relative;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-item:hover>a {
    color: var(--text-main);
}

.nav-item>a svg {
    transition: transform 0.2s;
}

/* ── Innovative Active Navigation Link Highlight ── */
.desktop-nav>a.nav-active,
.desktop-nav .nav-item>a.nav-active,
.mobile-menu .menu-link.nav-active {
    font-weight: 800 !important;
    background: linear-gradient(110deg,
            var(--text-main) 0%,
            var(--text-main) 40%,
            #a8a8a8 50%,
            var(--text-main) 60%,
            var(--text-main) 100%);
    background-size: 250% auto;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    animation: premiumTextShine 4s linear infinite;
    letter-spacing: -0.01em;
}

/* Ensure SVG icons remain visible when text is transparent */
.nav-item>a.nav-active svg {
    stroke: var(--text-main);
    color: var(--text-main);
}

@keyframes premiumTextShine {
    to {
        background-position: -250% center;
    }
}

.nav-item:hover>a svg {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 1.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    min-width: 320px;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    color: var(--text-main);
}

/* Invisible bridge so the mouse doesn't lose hover when crossing the gap */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    width: 100%;
    height: 1.5rem;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.mega-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%);
    padding: 1.25rem;
    border-radius: 12px;
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.mega-card .mega-icon {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.mega-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.mega-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mega-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.mega-links a {
    position: relative;
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
    color: var(--text-muted);
}

.mega-links a:hover {
    transform: translateX(4px);
    color: #fff;
}

.mega-links a::after {
    content: "→";
    position: absolute;
    right: -20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.mega-links a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-mid);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-mid);
    color: var(--accent-mid);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent-mid);
    color: var(--accent-mid);
}

.btn-outline:hover {
    background: var(--accent-mid);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--accent);
}

.btn-white:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-mid);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ── Section Labels ──────────────────────────────────────── */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.section-label-line {
    width: 28px;
    height: 2px;
    background: var(--accent-mid);
    border-radius: 2px;
}

.section-label-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-mid);
}

/* ── Section Headlines ───────────────────────────────────── */
.display {
    font-family: var(--font-serif);
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.display em {
    font-style: italic;
    color: var(--text-muted);
}

.headline {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.headline em {
    font-style: italic;
    color: var(--accent-mid);
}

.subtext {
    font-size: var(--text-lg);
    color: var(--text-muted);
    line-height: var(--leading-relaxed);
    max-width: 560px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
    padding-top: 120px;
    padding-bottom: 0;
    background: var(--bg);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 0;
}

.hero-text {
    padding-bottom: 4rem;
}

.hero-badge {
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.25rem, 6vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1.75rem;
}

.hero-title em {
    font-style: italic;
    color: var(--accent-mid);
}

.hero-sub {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Hero - right visual panel */
.hero-visual {
    background: var(--bg-tint);
    border-radius: 24px 24px 0 0;
    height: 100%;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-bottom: none;
}

.hero-visual-tag {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.5rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.hero-visual-tag span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-mid);
    animation: pulse 2s ease-in-out infinite;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: auto;
}

.hero-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.hero-stat-num {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.hero-stat-num strong {
    color: var(--accent-mid);
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero-product-card {
    grid-column: span 2;
    background: var(--accent-mid);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
}

.hero-product-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.hero-product-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.hero-product-sub {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* ── Marquee ─────────────────────────────────────────────── */
.marquee-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marquee 35s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    /* /* removed: animation-play-state paused */
    */
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2.5rem;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-mid);
    flex-shrink: 0;
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-section {
    padding: 4rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

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

.stat-item {
    padding: 2rem 3rem;
    border-right: 1px solid var(--border);
    text-align: center;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--accent-mid);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 180px;
    margin: 0 auto;
}

/* ── Problem Section ─────────────────────────────────────── */
.problem-section {
    padding: var(--section-py) 0;
    background: var(--bg-alt);
}

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

.problem-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

.problem-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.problem-big-num {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--accent-mid);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.problem-num-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.problem-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Products Section ────────────────────────────────────── */
.products-section {
    padding: var(--section-py) 0;
    background: var(--bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.product-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-card-head {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.product-head-text h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

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

.product-card-body {
    padding: 1.75rem 2rem;
}

.product-detail {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.product-detail:last-child {
    border-bottom: none;
}

.product-detail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-mid);
    flex-shrink: 0;
    margin-top: 6px;
}

.product-detail-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.product-detail-text strong {
    color: var(--text-main);
    font-weight: 600;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1.25rem;
}

.product-tag {
    padding: 0.3rem 0.8rem;
    background: var(--accent-light);
    border-radius: 100px;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--accent);
}

/* ── Science Section ─────────────────────────────────────── */
.science-section {
    padding: var(--section-py) 0;
    background: var(--bg-tint);
}

.science-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.compare-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.compare-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
}

.compare-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.compare-row {
    margin-bottom: 1.25rem;
}

.compare-row:last-child {
    margin-bottom: 0;
}

.compare-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.compare-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.compare-pct {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 800;
}

.compare-pct.good {
    color: var(--accent-mid);
}

.compare-pct.bad {
    color: var(--text-muted);
}

.compare-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 100px;
    overflow: hidden;
}

.compare-fill {
    height: 100%;
    border-radius: 100px;
    width: 0;
    transition: width 1.4s var(--ease);
}

.compare-fill.good {
    background: var(--accent-mid);
}

.compare-fill.bad {
    background: var(--border);
}

/* ── Feature Grid ────────────────────────────────────────── */
.features-section {
    padding: var(--section-py) 0;
    background: var(--bg);
}

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

.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-mid);
    margin-bottom: 1.25rem;
}

.feature-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Roadmap ─────────────────────────────────────────────── */
.roadmap-section {
    padding: var(--section-py) 0;
    background: var(--bg-alt);
    overflow: hidden;
}

.roadmap-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    padding-bottom: 1rem;
}

.roadmap-scroll::-webkit-scrollbar {
    display: none;
}

.roadmap-track {
    display: flex;
    gap: 0;
    width: max-content;
    position: relative;
    padding: 3rem 0;
    margin-top: 3rem;
}

.roadmap-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.roadmap-item {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.roadmap-item:first-child {
    padding-left: clamp(1.25rem, 5vw, 3rem);
}

.roadmap-item:last-child {
    padding-right: clamp(1.25rem, 5vw, 3rem);
}

.roadmap-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg-alt);
    box-shadow: 0 0 0 3px var(--border);
    margin: 0 auto 1.5rem;
}

.roadmap-dot.active {
    background: var(--accent-mid);
    box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.2);
}

.roadmap-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.roadmap-date {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-mid);
    margin-bottom: 0.5rem;
}

.roadmap-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.roadmap-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.roadmap-status {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
}

.roadmap-status.done {
    background: var(--accent-light);
    color: var(--accent);
}

.roadmap-status.active {
    background: rgba(163, 163, 163, 0.15);
    color: #4d7c0f;
}

.roadmap-status.planned {
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* ── CTA Section (green!) ────────────────────────────────── */
.cta-section {
    padding: var(--section-py) 0;
    background: var(--accent-mid);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 10% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 90% 50%, rgba(0, 0, 0, 0.08) 0%, transparent 60%);
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-inner h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-inner h2 em {
    font-style: italic;
    color: var(--accent-light);
}

.cta-inner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-input {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.waitlist-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.waitlist-input:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.cta-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cta-stat {
    text-align: center;
}

.cta-stat-num {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.cta-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* ── Footer ──────────────────────────────────────────────── */
#footer {
    background: var(--bg-dark);
    padding: 5rem 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-logo span {
    color: var(--accent-mid);
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.footer-sub {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
    background: var(--accent-mid);
    color: #fff;
    border-color: transparent;
}

.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.footer-contact-icon {
    color: var(--accent-mid);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-text {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.footer-contact-text a {
    color: rgba(255, 255, 255, 0.45);
}

.footer-contact-text a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Mobile Nav ──────────────────────────────────────────── */
.menu-btn {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    /* right-align for asymmetric look */
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-main);
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
    justify-content: center;
}

/* Ripple ring on hover */
.menu-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--text-main);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: none;
}

.menu-btn:hover {
    border-color: var(--text-main);
}

.menu-btn:hover::after {
    opacity: 0.2;
    transform: scale(1);
}

/* TWO asymmetric lines — top line longer, bottom line shorter */
.menu-btn span {
    display: block;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.3s,
        width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-btn span:nth-child(1) {
    width: 20px;
    /* long line */
}

.menu-btn span:nth-child(2) {
    width: 12px;
    /* short line — asymmetric premium touch */
}

.menu-btn span:nth-child(3) {
    display: none;
    /* hide 3rd line — we only need 2 */
}

/* OPEN STATE — morphs into a slim X */
.menu-btn.is-open span:nth-child(1) {
    width: 18px;
    transform: translateY(7.5px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
    width: 18px;
    /* equalize for X symmetry */
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.mobile-overlay.open {
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 100vw);
    background: #fff;
    z-index: 1000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.menu-link {
    display: block;
    padding: 0.8rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.menu-link:hover {
    color: var(--accent-mid);
}

.mobile-submenu .menu-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: none;
    padding: 0.45rem 1rem;
}

.mobile-cta {
    margin-top: auto;
    padding-top: 1.5rem;
}

.mobile-sticky-cta {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: none;
    z-index: 900;
    padding: 0.85rem 2rem;
    background: var(--accent-mid);
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 30px rgba(10, 10, 10, 0.4);
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0;
    white-space: nowrap;
}

.mobile-sticky-cta a {
    color: #fff;
}

/* ── Page Hero (sub-pages) ───────────────────────────────── */
.page-hero {
    padding: 120px 0 5rem;
    background: var(--bg-tint);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.08) 0%, transparent 70%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin: 1.25rem 0;
}

.page-hero h1 em {
    font-style: italic;
    color: var(--accent-mid);
}

.page-hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.82rem 1rem;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    appearance: none;
}

.form-input:focus {
    border-color: var(--accent-mid);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.1);
    background: #fff;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* ── Animations ──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger>*:nth-child(1) {
    transition-delay: 0ms;
}

.stagger>*:nth-child(2) {
    transition-delay: 100ms;
}

.stagger>*:nth-child(3) {
    transition-delay: 200ms;
}

.stagger>*:nth-child(4) {
    transition-delay: 300ms;
}

.stagger>*:nth-child(5) {
    transition-delay: 400ms;
}

.stagger>*:nth-child(6) {
    transition-delay: 500ms;
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center {
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 360px;
        border-radius: 24px;
        border: 1px solid var(--border);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

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

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

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

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .mobile-sticky-cta {
        display: block;
    }

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

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-input {
        border-radius: 10px;
        width: 100%;
    }
}

/* -- Bespoke Inner Page Layouts ---------------------------- */

/* Split Screen (About) */
.bespoke-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.bespoke-split-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 6rem);
    border-right: 1px solid var(--border);
}

.bespoke-split-content {
    padding: clamp(5rem, 8vw, 12rem) clamp(2rem, 5vw, 6rem);
    background: var(--bg);
}

@media (max-width: 992px) {
    .bespoke-split {
        grid-template-columns: 1fr;
    }

    .bespoke-split-sticky {
        position: relative;
        height: 60vh;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

/* Lab Journal Grid (Science) */
.lab-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    border-top: 2px solid var(--text-main);
    padding-top: 3rem;
    margin-top: 3rem;
}

.lab-sidebar {
    position: sticky;
    top: 120px;
}

.lab-sidebar-num {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.lab-content-block {
    margin-bottom: 6rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
    .lab-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lab-sidebar {
        position: relative;
        top: 0;
    }
}

/* Massive Typographic Hero (Careers/Blog) */
.typo-hero {
    padding: clamp(8rem, 15vw, 15rem) 0 clamp(4rem, 10vw, 8rem);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
}

.typo-hero h1 {
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    max-width: 1400px;
}

.typo-hero p {
    font-size: 1.25rem;
    margin-top: 2rem;
    max-width: 600px;
    color: var(--text-muted);
}

/* ── Structural Layout Engine (Bento Box & Asymmetrical) ─── */

.structure-section {
    padding: var(--section-py) 0;
    border-bottom: 1px solid var(--border);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    /* Creates the strict border look */
    background: var(--border);
    border: 1px solid var(--border);
    margin-top: var(--space-lg);
}

.bento-cell {
    background: var(--bg);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.data-num {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--text-main);
    margin-bottom: var(--space-xs);
}

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

.editorial-col {
    max-width: 65ch;
    /* strict readability width */
}

/* Asymmetrical Left Flow */
.flow-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
    padding-right: var(--space-xl);
}

/* -- Mobile Header & Hamburger Button ---------------------- */

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 5px 0;
    transition: all 0.3s var(--ease);
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}


.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}



/* ── UI/UX Data Presentation Enhancements ──────────────── */
.stat-bar-container {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
    position: relative;
    display: none;
    /* Only show where explicitly needed */
}

.stat-bar-fill {
    height: 100%;
    background: var(--text-main);
    border-radius: 4px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-divider {
    width: 60px;
    height: 1px;
    background: var(--text-main);
    margin: 1.5rem 0;
}

.text-meta {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}


/* ── UI/UX Premium Enhancements (Blueprint / Clinical Data) ──────────────── */
body {
    /* Subtle dot grid for the lab/clinical feel */
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: var(--bg);
}

.clinical-container {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg);
}

.bento-cell {
    position: relative;
}

/* Coordinate markers for Bento Cells */
.bento-cell::before {
    content: '+';
    position: absolute;
    top: -4px;
    left: -4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    pointer-events: none;
}

.bento-cell::after {
    content: '+';
    position: absolute;
    bottom: -4px;
    right: -4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    pointer-events: none;
}

/* Data Journal Tables */
.data-journal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

.data-journal-table th {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--text-main);
    padding: 1.5rem 1rem;
    text-align: left;
}

.data-journal-table td {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1rem;
    color: var(--text-main);
}

.data-journal-table tbody tr:hover {
    background: var(--bg-alt);
}


/* MEGA MENU OVERRIDE */
.nav-item.has-mega>.mega-menu {
    min-width: 700px;
    padding: 0.75rem;
    flex-direction: row;
    gap: 0;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    background: #fff;
    border: none;
}

.mega-menu-left {
    width: 45%;
    background: linear-gradient(135deg, #FFF8F0 0%, #fff 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 120, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mega-menu-right {
    width: 55%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.mega-link-block {
    display: block;
    padding: 1rem;
    margin: -1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.mega-link-block:hover {
    background: #F8FAFC;
}

.mega-link-block h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.mega-link-block:hover h5 {
    color: #0D8A74;
}

.mega-link-block h5 span {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
    color: #0D8A74;
}

.mega-link-block:hover h5 span {
    opacity: 1;
    transform: translateX(0);
}

.mega-link-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* FOOTER 4-COLUMN STYLING */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    margin-top: 4rem;
}

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

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.footer-brand h3 span {
    color: #0D8A74;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.footer-socials a:hover {
    color: #0D8A74;
    border-color: #0D8A74;
    background: rgba(13, 138, 116, 0.05);
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-column ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-column ul a:hover {
    color: #0D8A74;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-contact-item svg {
    color: #0D8A74;
    flex-shrink: 0;
    margin-top: 0.25rem;
}


/* --- HERO GRID LAYOUT --- */
.hero-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- O2 MOLECULE COMBINATION ANIMATION --- */
.hero-animation-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 0;
}

/* Orbiting decorative rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(107, 82, 68, 0.25);
    animation: spin 15s linear infinite;
}

.orbit-ring-1 {
    width: 280px;
    height: 280px;
}

.orbit-ring-2 {
    width: 180px;
    height: 180px;
    border: 1px solid rgba(107, 82, 68, 0.15);
    animation: spin 10s linear infinite reverse;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Individual Oxygen Atoms */
.atom {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4ade80, #0D8A74);
    box-shadow: 0 4px 12px rgba(13, 138, 116, 0.3), inset -4px -4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Atom 1 (Left) */
.atom-1 {
    animation: atom1Combine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Atom 2 (Right) */
.atom-2 {
    animation: atom2Combine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes atom1Combine {

    0%,
    15% {
        transform: translateX(-90px) rotate(0deg) scale(1);
        opacity: 1;
    }

    30%,
    40% {
        transform: translateX(-15px) rotate(180deg) scale(1);
        opacity: 1;
    }

    45%,
    55% {
        transform: translateX(0px) rotate(270deg) scale(1.5);
        opacity: 0;
    }

    85%,
    100% {
        transform: translateX(-90px) rotate(360deg) scale(1);
        opacity: 1;
        filter: blur(0);
    }

    86% {
        filter: blur(4px);
    }

    90% {
        filter: blur(0px);
    }
}

@keyframes atom2Combine {

    0%,
    15% {
        transform: translateX(90px) rotate(0deg) scale(1);
        opacity: 1;
    }

    30%,
    40% {
        transform: translateX(15px) rotate(-180deg) scale(1);
        opacity: 1;
    }

    45%,
    55% {
        transform: translateX(0px) rotate(-270deg) scale(1.5);
        opacity: 0;
    }

    85%,
    100% {
        transform: translateX(90px) rotate(-360deg) scale(1);
        opacity: 1;
        filter: blur(0);
    }

    86% {
        filter: blur(4px);
    }

    90% {
        filter: blur(0px);
    }
}

/* Combined O2 Molecule */
.molecule-result {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #6EE7B7, #0D8A74);
    box-shadow: 0 0 40px rgba(13, 138, 116, 0.4), inset -6px -6px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    color: white;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -1px;
    opacity: 0;
    transform: scale(0);
    animation: moleculePop 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.molecule-result sub {
    font-size: 1.25rem;
    margin-bottom: -15px;
    margin-left: 2px;
}

@keyframes moleculePop {

    0%,
    40% {
        opacity: 0;
        transform: scale(0);
        box-shadow: 0 0 0px rgba(13, 138, 116, 0);
    }

    45% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 80px rgba(107, 82, 68, 0.5);
    }

    50%,
    80% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 40px rgba(107, 82, 68, 0.3);
    }

    85%,
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Pulse ring when combining */
.pulse-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1.5px solid rgba(107, 82, 68, 0.7);
    opacity: 0;
    animation: pulseExpand 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulseExpand {

    0%,
    43% {
        opacity: 0;
        transform: scale(0.8);
    }

    45% {
        opacity: 0.8;
        transform: scale(1.2);
    }

    55% {
        opacity: 0;
        transform: scale(2.5);
    }

    100% {
        opacity: 0;
        transform: scale(3);
    }
}




/* =========================================================
   SUPER PREMIUM MEGA DROPDOWN (V3 Override)
========================================================= */

/* Ensure desktop nav has appropriate stacking context */
.desktop-nav {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 999;
}

.desktop-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.desktop-nav .nav-item>a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.desktop-nav .nav-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-nav .nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 1.5rem;
    /* invisible bridge */
    z-index: 1000;
}

.desktop-nav .nav-item:hover .mega-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.mega-dropdown-inner {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #E5E7EB;
    display: flex;
    overflow: hidden;
    min-width: 650px;
}

/* Feature Pane (Left Side) */
.mega-feature {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 2.5rem;
    width: 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #E5E7EB;
    text-align: left;
}

.mega-feature .icon-wrap {
    color: #0D8A74;
    margin-bottom: 1.25rem;
    background: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(13, 138, 116, 0.1);
}

.mega-feature h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    line-height: 1.2;
}

.mega-feature p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

/* Links Pane (Right Side) */
.mega-links-col {
    padding: 1.5rem;
    width: 58%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.mega-nav-link {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: 16px;
    transition: all 0.25s ease;
    text-decoration: none;
    border: 1px solid transparent;
    text-align: left;
}

.mega-nav-link:hover {
    background: #F8FAFC;
    transform: translateX(6px);
    border-color: #E2E8F0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.mega-nav-link .link-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.25s;
}

.mega-nav-link:hover .link-title {
    color: #0D8A74;
}

.mega-nav-link .link-title::after {
    content: "→";
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #0D8A74;
}

.mega-nav-link:hover .link-title::after {
    opacity: 1;
    transform: translateX(0);
}

.mega-nav-link .link-desc {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.5;
}

/* Hide the old mega-menu strictly to ensure no conflicts */
.custom-nav-replaced .mega-menu {
    display: none !important;
}


/* =========================================================
   GLOBAL DESIGN SYSTEM PATCH v4  Spacing, Mega Menu, Vision
   ========================================================= */

/* --- 1. GLOBAL TYPOGRAPHY & LINE-HEIGHT CONSISTENCY ------ */
/* Shared content spacing across all inner pages */
.structure-section p,
.subtext,
.editorial-col p,
.bento-cell p {
    line-height: 1.75;
}

.structure-section h2,
.structure-section h3,
.structure-section h4 {
    margin-bottom: 0.75rem;
}

/* Enforce consistent paragraph spacing inside content blocks */
.content-body p+p {
    margin-top: 1.75rem;
}

/* All "flow-left" sections get consistent bottom margin from headings to text */
.flow-left h1+p,
.flow-left h2+p {
    margin-top: 1.5rem;
}

/* Editorial text column: hero-quality spacing across every page */
.editorial-col {
    font-size: var(--text-lg);
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 600px;
}

/* Section-level spacing system */
.structure-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

/* --- 2. MEGA MENU  MONOCHROME PALETTE FIX -------------- */
/* Override the old dark glass mega-menu  match the white site palette */
.mega-menu {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    color: var(--text-main) !important;
}

.mega-card {
    background: var(--bg-alt) !important;
    border: 1px solid var(--border) !important;
}

.mega-card h4 {
    color: var(--text-main) !important;
}

.mega-card p {
    color: var(--text-muted) !important;
}

.mega-links a {
    color: var(--text-muted) !important;
}

.mega-links a:hover {
    color: var(--text-main) !important;
    transform: translateX(4px);
}

/* New V3 Dropdown  Monochrome palette match */
.mega-feature {
    background: var(--bg-alt) !important;
    border-right: 1px solid var(--border) !important;
}

.mega-feature .icon-wrap {
    background: #ffffff !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid var(--border) !important;
}

.mega-feature h4 {
    color: var(--text-main) !important;
    font-family: var(--font-serif) !important;
}

.mega-feature p {
    color: var(--text-muted) !important;
}

.mega-dropdown-inner {
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06), 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.mega-nav-link .link-title {
    color: var(--text-main) !important;
}

.mega-nav-link:hover .link-title {
    color: var(--text-main) !important;
}

.mega-nav-link .link-title::after {
    color: var(--text-main) !important;
}

.mega-nav-link:hover {
    background: var(--bg-alt) !important;
    border-color: var(--border) !important;
}

.mega-nav-link .link-desc {
    color: var(--text-muted) !important;
}

/* --- 3. VISION & MISSION  PREMIUM EDITORIAL REDESIGN --- */
/* The entire vision/mission container becomes a newspaper editorial */
.vision-premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
    .vision-premium-grid {
        grid-template-columns: 1fr;
    }
}

.vision-cell {
    padding: 3rem;
    border-right: 1px solid var(--border);
    position: relative;
}

.vision-cell:last-child {
    border-right: none;
}

.vision-cell-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vision-cell-label::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--text-main);
}

.vision-cell h3 {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.vision-cell p {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.8;
}

/* Vision sub-pillars bar */
.vision-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.vision-pillar-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.25s;
}

.vision-pillar-row:last-child {
    border-bottom: none;
}

.vision-pillar-row:hover {
    background: var(--bg-alt);
}

.pillar-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    width: 24px;
    flex-shrink: 0;
}

.pillar-content h5 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.pillar-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Mission large pull-quote */
.mission-quote {
    border-left: 3px solid var(--text-main);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--text-main);
    line-height: 1.5;
}



/* =========================================================
   CORE VALUES  Indexed Editorial Rows (Premium)
   ========================================================= */

.values-list {
    border-top: 1px solid var(--border);
}

.value-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    cursor: default;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Full-bleed background wipe on hover */
.value-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--text-main);
    transform: translateX(-101%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    border-radius: 0;
}

.value-row:hover::before {
    transform: translateX(0);
}

.value-row>* {
    position: relative;
    z-index: 1;
}

.value-index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.35s;
}

.value-row:hover .value-index {
    color: rgba(255, 255, 255, 0.4);
}

.value-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.value-name {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: color 0.35s;
}

.value-row:hover .value-name {
    color: #ffffff;
}

.value-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 550px;
    transition: color 0.35s;
}

.value-row:hover .value-desc {
    color: rgba(255, 255, 255, 0.6);
}

.value-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.35s;
}

.value-row:hover .value-tag {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 768px) {
    .value-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .value-tag {
        display: none;
    }
}



/* =========================================================
   3 PILLARS  Showcase Stack Layout (Premium)
   ========================================================= */

.pillar-showcase-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 3rem;
    align-items: center;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-showcase-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
}

/* Ghost number watermark in the background */
.pillar-showcase-row::after {
    content: attr(data-num);
    position: absolute;
    right: -0.05em;
    bottom: -0.3em;
    font-family: var(--font-serif);
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    color: var(--border);
    pointer-events: none;
    user-select: none;
    transition: color 0.4s;
    letter-spacing: -0.04em;
}

.p-row-01 {
    background: #ffffff;
}

.p-row-01[data-num]::after {
    content: "01";
}

.p-row-02 {
    background: var(--text-main);
}

.p-row-02[data-num]::after {
    content: "02";
    color: rgba(255, 255, 255, 0.06);
}

.p-row-03 {
    background: var(--bg-alt);
}

.p-row-03[data-num]::after {
    content: "03";
}

/* Index number front */
.pillar-showcase-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    align-self: flex-start;
    margin-top: 0.35rem;
    transition: color 0.3s;
}

.pillar-inverted .pillar-showcase-num {
    color: rgba(255, 255, 255, 0.4);
}

/* Body */
.pillar-showcase-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pillar-showcase-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s;
}

.pillar-inverted .pillar-showcase-label {
    color: rgba(255, 255, 255, 0.45);
}

.pillar-showcase-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: color 0.3s;
    max-width: 480px;
}

.pillar-inverted .pillar-showcase-title {
    color: #ffffff;
}

.pillar-showcase-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 500px;
    transition: color 0.3s;
}

.pillar-inverted .pillar-showcase-text {
    color: rgba(255, 255, 255, 0.55);
}

/* Right tag */
.pillar-showcase-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    transition: all 0.3s;
    align-self: center;
}

.pillar-inverted .pillar-showcase-tag {
    color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .pillar-showcase-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }

    .pillar-showcase-row::after {
        display: none;
    }

    .pillar-showcase-tag {
        writing-mode: horizontal-tb;
        transform: none;
    }
}



/* =========================================================
   SCIENCE SHOWCASE  Premium Card Layout
   ========================================================= */

.science-showcase-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

/* Split header */
.science-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 3.5rem;
}

.science-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 0.5rem;
}

/* 3-card grid */
.science-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Base card */
.science-card {
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.science-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.09);
}

.sc-white {
    background: #ffffff;
}

.sc-dark {
    background: var(--text-main);
    border-color: transparent;
}

.sc-tint {
    background: var(--bg-alt);
}

/* Card top row */
.sc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-index {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.sc-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.3rem 0.75rem;
    color: var(--text-muted);
}

/* Title */
.sc-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Description */
.sc-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex-grow: 1;
}

/* Stat block  the BIG number */
.sc-stat-block {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.sc-dark .sc-stat-block {
    border-color: rgba(255, 255, 255, 0.1);
}

.sc-stat-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
    letter-spacing: -0.04em;
}

.sc-stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Proof footer line */
.sc-proof {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .science-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .science-cards-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   MOBILE-FIRST RESPONSIVE OVERRIDES  Major Breakpoints
   ========================================================= */

/* -- Tablet: 768px ---------------------------------------- */
@media (max-width: 768px) {

    /* Container padding */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .hero-animation-wrapper {
        display: none;
    }

    .display {
        font-size: clamp(2.2rem, 8vw, 3rem) !important;
    }

    /* Science Cards */
    .science-cards-grid {
        grid-template-columns: 1fr;
    }

    .science-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Vision/Mission grid */
    .vision-premium-grid {
        grid-template-columns: 1fr !important;
    }

    .vision-cell {
        padding: 2rem !important;
    }

    /* 3 Pillars showcase rows */
    .pillar-showcase-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 1.75rem 1.25rem !important;
    }

    .pillar-showcase-row::after {
        display: none !important;
    }

    .pillar-showcase-tag {
        writing-mode: horizontal-tb;
        transform: none;
        display: inline-block;
    }

    /* Core Values indexed list */
    .value-row {
        grid-template-columns: 48px 1fr !important;
        gap: 0.75rem !important;
    }

    .value-tag {
        display: none;
    }

    .value-name {
        font-size: 1.1rem !important;
    }

    /* Duel comparison table  collapse to stacked rows */
    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Mega menu hide on mobile */
    .mega-menu {
        display: none !important;
    }

    /* Section spacing */
    /* structure-section padding consolidated below */
}

/* -- Mobile: 480px ---------------------------------------- */
@media (max-width: 480px) {

    /* Typography scale down */
    h1.display,
    .display {
        font-size: 2rem !important;
    }

    .headline {
        font-size: 1.6rem !important;
    }

    .sc-stat-num {
        font-size: 2.5rem !important;
    }

    /* Science cards */
    .science-card {
        padding: 1.75rem !important;
    }

    /* Navbar */
    .nav-logo {
        font-size: 0.95rem !important;
    }

    .btn-primary {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
    }

    /* Pillar showcase */
    .pillar-showcase-title {
        font-size: 1.3rem !important;
    }

    .vision-cell-label {
        font-size: 0.6rem !important;
    }

    /* Value rows */
    .value-row {
        gap: 0.5rem !important;
        padding: 1.25rem 0 !important;
    }

    .value-name {
        font-size: 1rem !important;
    }

    .value-desc {
        font-size: 0.82rem !important;
    }

    /* Section header split collapse */
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Duel comparison table single column */
    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* -- Comparison duel table  mobile stacked card layout --- */
@media (max-width: 640px) {
    .duel-row-grid {
        grid-template-columns: 1fr !important;
    }
}



/* =========================================================
   NAVBAR  Mobile Critical Fixes
   ========================================================= */
@media (max-width: 860px) {

    /* Hide main nav links, show only logo + CTA */
    .nav-links {
        display: none !important;
    }

    nav .nav-logo {
        font-size: 1rem !important;
    }

    /* Make hero section not overflow horizontally */
    body {
        ;
    }

    .hero-inner,
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Science header stacks vertically */
    [style*="grid-template-columns:1fr 1fr;"][style*="gap:4rem"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Comparison duel table header bar */
    [style*="grid-template-columns:1fr auto"][style*="align-items:center"] {
        grid-template-columns: 1fr !important;
    }

    /* Duel rows: 3-col -> 1-col stack on mobile */
    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Section paddings tighter on mobile */
    [style*="padding: 6rem 0"] {
        padding: 3rem 0 !important;
    }

    [style*="padding-top:var(--space-xl)"] {
        padding-top: 3rem !important;
    }
}

/* =========================================================
   HAMBURGER MENU  Show on mobile (uses existing JS toggle)
   ========================================================= */
@media (max-width: 860px) {
    .hamburger {
        display: flex !important;
    }

    .mobile-nav-open .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 1.25rem;
        z-index: 999;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }
}



/* =========================================================
   AUDIT FIX  Mobile Elongation & Overflow Pass
   ========================================================= */

/* Remove sticky positioning on mobile (causes elongated problem section) */
@media (max-width: 768px) {
    [style*="position:sticky"] {
        position: relative !important;
        top: auto !important;
    }

    /* Science section: reduce 6rem padding to 3rem */
    [style*="padding: 6rem 0"] {
        padding: 3rem 0 !important;
    }

    /* Problem section 2-col -> 1-col */
    [style*="grid-template-columns:1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }

    /* All 3-col grids collapse */
    [style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* 2-col any: collapse except hero  */
    [style*="grid-template-columns:1fr 1fr"]:not(.hero-grid-layout) {
        grid-template-columns: 1fr !important;
    }

    /* Bento cells: all full width */
    [class*="bento-cell"] {
        grid-column: span 12 !important;
    }

    /* Products section  auto-fit min 300 too wide on mobile */
    [style*="minmax(300px"] {
        grid-template-columns: 1fr !important;
    }

    /* Duel section header padding too large */
    [style*="padding:3rem var(--container-pad"] {
        padding: 2rem 1.25rem !important;
    }

    /* Section heading font sizes */
    .display {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
    }

    .headline {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }

    /* Pillar showcase rows */
    .pillar-showcase-row {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
        gap: 0.75rem !important;
    }

    .pillar-showcase-row::after {
        display: none !important;
    }

    .pillar-showcase-tag {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        display: inline-block !important;
    }

    /* Vision premium grid */
    .vision-premium-grid {
        grid-template-columns: 1fr !important;
    }

    /* Value rows */
    .value-row {
        grid-template-columns: 40px 1fr !important;
        gap: 0.75rem !important;
        padding: 1.25rem 0 !important;
    }

    .value-tag {
        display: none !important;
    }

    /* Products section items */
    .mobile-stack-card {
        padding: 1.5rem 0 !important;
    }

    /* Core section paddings from var(--space-xl) */
    .structure-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Overflow guard */
    body,
    main,
    section {
        max-width: 100vw;
    }

    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* -- 480px: further downscale ----------------------------- */
@media (max-width: 480px) {
    .hero-grid-layout {
        padding-top: 100px !important;
    }

    [style*="padding-top:140px"] {
        padding-top: 100px !important;
    }

    .display {
        font-size: 1.85rem !important;
        letter-spacing: -0.03em !important;
    }

    [style*="font-size:var(--text-6xl)"] {
        font-size: 2.5rem !important;
    }

    [style*="font-size:var(--text-5xl)"] {
        font-size: 2.2rem !important;
    }

    [style*="font-size:3.5rem"] {
        font-size: 2.25rem !important;
    }

    /* Science cards */
    [style*="border-radius:24px"] {
        border-radius: 16px !important;
    }

    [style*="padding:2.5rem"] {
        padding: 1.5rem !important;
    }

    /* CTA section */
    [id="join"] h2 {
        font-size: 2rem !important;
    }

    [id="join"] form {
        max-width: 100% !important;
    }
}



/* =========================================================
   GLOBAL READABILITY PASS
   Darker body text, better line-height, consistent sizing
   ========================================================= */

/* Body paragraphs and list items */
p,
li {
    font-size: max(var(--text-base), 1rem);
    line-height: 1.75;
}

/* Section subtext  use muted but ensure readable */
.subtext,
.editorial-col p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Bento cell text */
.bento-cell p,
.bento-cell span {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Pillar showcase body text */
.pillar-showcase-text {
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* Vision cell body text */
.vision-cell p {
    font-size: 1rem;
    line-height: 1.72;
}

/* Chapter body text in about page */
.chapter-section p {
    font-size: 1.05rem;
    line-height: 1.78;
}

/* Footer body text */
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Fix hero heading tight spacing issue */
h1.display+p.subtext,
h1.display+.subtext {
    margin-top: 2.5rem !important;
}

h1.display {
    padding-bottom: 0.5rem;
}

/* Premium Sub-page Enhancements */
.premium-card-hover {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.premium-card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.mobile-no-border {}

@media(max-width: 768px) {
    .mobile-no-border {
        border-right: none !important;
        border-bottom: 1px solid #333;
    }
}

/* Premium Join Waitlist Button Fix */
.btn-primary,
.desktop-nav>a.btn-primary,
.mobile-menu .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 10px 30px rgba(10, 10, 10, 0.3) !important;
    border-color: #666 !important;
}

/* Premium Contact Input Styles */
.premium-input {
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    background: #fdfdfd;
    border-radius: 8px;
    font-family: var(--font-sans);
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.premium-input:focus {
    border-color: var(--text-main);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.05);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: var(--leading-relaxed);
    text-transform: uppercase;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.05em;
}


/* =========================================================
   STRICT MOBILE NAVIGATION OVERRIDE
========================================================= */
@media (max-width: 900px) {
    .desktop-nav {
        display: none !important;
    }

    .menu-btn {
        display: flex !important;
    }
}


/* =========================================================
   PREMIUM TYPOGRAPHY ORPHAN PROTECTION
========================================================= */
p,
h1,
h2,
h3,
h4,
blockquote {
    text-wrap: pretty;
}

/* =========================================================
   DEEP MOBILE LAYOUT & OVERFLOW FIXES (Final Polish)
========================================================= */
@media (max-width: 768px) {

    /* 1. Fix Product Card Horizontal Overflow (Formula Stacks) */
    .mobile-stack-card {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* 2. Overrule massive inline hero paddings that cause global white-space */
    section.structure-section[style*="padding-top"] {
        /* REMOVED: padding-top: 5rem !important; (Was clipping badges) */
        padding-bottom: 4rem !important;
    }

    .hero-grid-layout {
        padding-top: 5rem !important;
    }

    /* 3. Fix clamp minimums that force giant fonts & horizontal scroll on mobile */
    .display {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        line-height: 1 !important;
        word-wrap: break-word !important;
    }

    .subtext,
    .editorial-col,
    .editorial-col p {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
    }

    /* Fix weird container push on some columns */
    .flow-left {
        max-width: 100% !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 768px) {

    /* 4. Global Mobile Typography & Spacing Fixes */
    /* User requested justification alignment, better spacing, and unpacking of dense text */
    p,
    .editorial-col,
    .editorial-col p {
        text-align: justify !important;
        text-justify: inter-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
        -ms-hyphens: auto !important;
        margin-bottom: 1.75rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Exception for short hero text — never justify short blurbs or titles */
    .subtext,
    .page-hero-badge {
        text-align: left !important;
        /* or natural alignment */
        text-justify: auto !important;
        hyphens: none !important;
        letter-spacing: normal !important;
    }

    /* 5. Improve list spacing for readability */
    ul li,
    ol li {
        margin-bottom: 1.25rem !important;
        text-align: left !important;
        /* Lists shouldn't be fully justified */
    }
}


/* 6. Fix Badge Alignment on wrapped text */
@media (max-width: 768px) {
    .badge {
        align-items: flex-start !important;
        text-align: left !important;
        line-height: 1.4 !important;
        padding: 0.6rem 1rem !important;
    }

    .badge::before {
        margin-top: 0.45rem !important;
        flex-shrink: 0 !important;
    }
}

/* ─────────────────────────────────────────────────────────
   Premium Hero Tags
───────────────────────────────────────────────────────── */
.hero-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
    align-items: center;
}

.premium-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: #f4f4f5;
    color: var(--text-main);
    border: 1px solid #e4e4e7;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.tag-pulse .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    animation: pulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────
   Premium Comparison Table (Responsive Cards)
───────────────────────────────────────────────────────── */
.duel-table-wrapper {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    overflow: hidden;
    margin-bottom: 6rem;
}

.duel-table-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.duel-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    border-bottom: 1px solid var(--border);
}

.duel-row:last-child {
    border-bottom: none;
}

.duel-row.bg-alt {
    background: #fafafa;
}

.duel-category-header,
.duel-us-header,
.duel-them-header {
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.duel-us-header {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.duel-category-header,
.duel-them-header {
    color: var(--text-muted);
}

.duel-category {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    border-right: 1px solid var(--border);
}

.duel-vs-grid {
    display: contents;
}

.duel-us,
.duel-them {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.duel-us {
    background: rgba(255, 255, 255, 0.5);
    border-right: 1px solid var(--border);
}

.duel-us .duel-icon {
    color: #16a34a;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.duel-us .duel-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.duel-them .duel-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.duel-them .duel-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* MOBILE COMPARISON CARDS */
@media (max-width: 768px) {
    .duel-table-header {
        display: none !important;
    }

    .duel-table-wrapper {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin-bottom: 4rem !important;
    }

    .duel-row {
        display: flex !important;
        flex-direction: column !important;
        background: var(--card) !important;
        border: 1px solid var(--border) !important;
        border-radius: 16px !important;
        margin-bottom: 1.25rem !important;
        overflow: hidden !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    }

    .duel-row.bg-alt {
        background: var(--card) !important;
    }

    .duel-category {
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
        background: var(--bg-alt) !important;
        padding: 1rem !important;
        font-size: 0.75rem !important;
        font-family: var(--font-mono) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .duel-vs-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .duel-us,
    .duel-them {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1.5rem 1rem !important;
        border-right: none !important;
        gap: 0.5rem !important;
    }

    .duel-us {
        border-right: 1px dashed var(--border) !important;
        background: transparent !important;
    }

    .duel-us::before {
        content: 'OXYGEN' !important;
        font-family: var(--font-mono) !important;
        font-size: 0.6rem !important;
        letter-spacing: 0.15em !important;
        color: var(--text-muted) !important;
        margin-bottom: 0.25rem !important;
    }

    .duel-them::before {
        content: 'INDUSTRY' !important;
        font-family: var(--font-mono) !important;
        font-size: 0.6rem !important;
        letter-spacing: 0.15em !important;
        color: var(--text-muted) !important;
        margin-bottom: 0.25rem !important;
    }

    .duel-us .duel-text,
    .duel-them .duel-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
}

/* ─────────────────────────────────────────────────────────
   Mobile Apple-Style Reveal Animation for Products
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Disable sticky vertical stacking which ruins mobile height/scroll constraints */
    .apple-slide {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem !important;
        border-radius: 20px !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
        /* Start state for the JS animation */
        opacity: 0;
        transform: translateY(60px) scale(0.95);
        filter: blur(8px);
        transform-origin: center bottom;
        will-change: transform, opacity, filter;
        transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1) !important,
            transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) !important,
            filter 1s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    .apple-slide.is-revealed {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
        filter: blur(0) !important;
    }
}


/* 7. Fix align for Transparency Report stats on Mobile */
@media (max-width: 768px) {
    .mobile-left-align {
        text-align: left !important;
        align-items: flex-start !important;
        margin-top: 1rem !important;
    }
}

/* ─────────────────────────────────────────────────────────
   8. About Us Mobile Overhauls (Typography, Grids, Animations)
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Hard-clamp the massive dynamic headers that break layouts */
    .headline,
    .display,
    h1.display,
    h3.headline {
        font-size: clamp(2rem, 8vw, 2.75rem) !important;
        line-height: 1.1 !important;
        word-break: break-word !important;
    }

    /* Origin Protocol & Vision headers were explicitly overflowing */
    #about-vision h1.display,
    #about-story h1.display {
        font-size: 2.75rem !important;
    }

    #about-vision h3 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    /* Vision Pillars - Fix Number vs Text alignment */
    .vision-pillar-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1rem 0 !important;
    }

    .pillar-index {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        font-size: 0.85rem !important;
        margin-top: 0.2rem !important;
    }

    .pillar-content h5 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .pillar-content p {
        font-size: 0.95rem !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    /* Fix the "Diagnostic Result" Info Container Width */
    /* Many inline styles set arbitrary max-widths that squash content */
    div[style*="max-width:320px"],
    div[style*="max-width: 320px"] {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .chapter-section p {
        text-align: justify !important;
        hyphens: auto !important;
    }

    /* Make Timeline and Archives blocks left flush and fix spacing */
    .development-timeline h3,
    .clinical-data h3 {
        font-size: 2.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Mobile Fade-up Animations for About Sections */
    .reveal,
    .vision-cell,
    .chapter-section,
    .timeline-content,
    .mobile-left-align {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeUpMobile 0.8s forwards;
        /* /* removed: animation-play-state paused */
        */
        /* Will trigger via JS or pseudo class if possible, else just let them run */
    }

    @keyframes fadeUpMobile {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ═══════════════════════════════════════════════════════
   EMERGENCY MOBILE FIXES FOR CAREERS & FORMS
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Fix: "Roles at the bench" grid collapses horizontally */
    .mobile-stack-card {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Fix: Left sticky column padding squishes content */
    .left-sticky-col {
        padding: 2rem 1.5rem !important;
        position: relative !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
    }

    /* Fix: The actual tab content pane getting squished */
    .mobile-stack-card>div:last-child {
        padding: 2rem 1.5rem !important;
    }

    /* Fix: Abstract background elements overflowing on mobile hero */
    .structure-section {
        overflow: hidden !important;
    }

    /* Fix: Internship form Grid collapse */
    .mobile-stack {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Fix: Long Tab row text overlapping / wrapping terribly */
    .side-tab-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        border-top: none !important;
        margin-top: 1rem !important;
        padding-top: 0 !important;
    }

    .side-tab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 0.75rem 1rem !important;
        border: 1px solid var(--border) !important;
        border-radius: 50px !important;
        background: var(--bg) !important;
        font-size: 0.7rem !important;
    }

    .side-tab.active {
        background: var(--text-main) !important;
        color: var(--bg) !important;
        border-color: var(--text-main) !important;
    }

    /* Fix form padding */
    .structure-section .container>div.mobile-stack>div:last-child {
        padding: 1.5rem !important;
    }
}

/* --- UNIFIED PREMIUM HERO BADGE --- */
.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background: transparent;
    margin-bottom: 2rem;
}

/* Cache bust trigger v22 */

@media (max-width: 1024px) {

    .desktop-nav,
    .custom-nav-replaced {
        display: none !important;
    }
}

/* =====================================================
   DEFINITIVE MOBILE OVERRIDES
   This block has final authority - do not add more below
   ===================================================== */
@media (max-width: 768px) {
    section.structure-section[style*="padding-top"] {
        padding-top: 100px !important;
    }

    .display,
    h1.display {
        font-size: clamp(1.8rem, 9vw, 2.8rem) !important;
        line-height: 1.05 !important;
        word-break: break-word !important;
    }

    body {
        overflow-x: hidden !important;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Careers page: tighten the pull quote on mobile */
@media (max-width: 768px) {
    .careers-pull-quote {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }
}

/* ═══════════════════════════════════════════════════════
   NAV LOGO  —  O₂ | Bioinnovations
   ═══════════════════════════════════════════════════════ */
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none !important;
    line-height: 1;
    letter-spacing: 0;
}

.nav-logo:hover {
    text-decoration: none !important;
}

/* "O₂" — bold, chemical monogram */
.logo-o2 {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.logo-o2 sub {
    font-size: 0.6em;
    font-weight: 700;
    vertical-align: sub;
    font-family: var(--font-mono);
    letter-spacing: 0;
    margin-left: 0.05em;
}

/* Thin vertical separator */
.logo-pipe {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: currentColor;
    opacity: 0.25;
    margin: 0 0.55rem;
    vertical-align: middle;
    transition: opacity 0.25s;
}

/* "Bioinnovations" — light, tracked */
.logo-bio {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--text-main);
    opacity: 0.85;
    transition: opacity 0.25s;
}

/* Hover: bio wakes up, pipe solidifies */
.nav-logo:hover .logo-bio {
    opacity: 1;
}

.nav-logo:hover .logo-pipe {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .logo-o2 {
        font-size: 0.95rem;
    }

    .logo-bio {
        font-size: 0.95rem;
    }

    .logo-pipe {
        height: 13px;
        margin: 0 0.4rem;
    }
}

/* ═══════════════════════════════════════════════════════
   PROBLEM SECTION — DARK CINEMATIC PANEL
   ═══════════════════════════════════════════════════════ */
.problem-dark-panel {
    background: #0a0a0a;
    color: #f5f5f5;
    padding: clamp(4rem, 8vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle grain texture overlay */
.problem-dark-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.problem-dark-panel .container {
    position: relative;
    z-index: 1;
}

/* ── STAT CARDS ROW ── */
.problem-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.problem-stat-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    transition: background 0.4s ease;
}

.problem-stat-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.problem-stat-num {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
    margin-bottom: 0.75rem;
}

.problem-stat-danger .problem-stat-num {
    color: #ef4444;
}

.problem-stat-label {
    font-family: var(--font-sans);
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.problem-stat-source {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.3;
}

/* ── HEADLINE BLOCK ── */
.problem-headline-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.problem-label-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.problem-main-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1.5rem;
}

.problem-subtext {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.problem-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.problem-cta:hover {
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
    transform: translateY(-1px);
}

.problem-cta svg {
    transition: transform 0.3s ease;
}

.problem-cta:hover svg {
    transform: translateX(4px);
}

/* ── PROBLEM PANELS (3 tall vertical cards) ── */
.problem-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.problem-panel {
    padding: clamp(2rem, 3vw, 3rem);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    transition: background 0.4s ease;
    position: relative;
}

.problem-panel:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Top border accent on hover */
.problem-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.problem-panel:hover::before {
    opacity: 1;
}

.problem-panel-num {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    transition: color 0.4s ease;
}

.problem-panel:hover .problem-panel-num {
    color: rgba(255, 255, 255, 0.12);
}

.problem-panel-title {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.problem-panel-text {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    flex-grow: 1;
}

/* ── MOBILE STACK ── */
@media (max-width: 768px) {
    .problem-stats-row {
        grid-template-columns: 1fr;
    }

    .problem-panels {
        grid-template-columns: 1fr;
    }

    .problem-stat-card {
        text-align: left;
    }

    .problem-stat-num {
        font-size: 3rem;
    }
}

/* ═══════════════════════════════════════════════════════
   SOLUTION CARDS — HOVER EFFECTS + ANIMATIONS
   ═══════════════════════════════════════════════════════ */

/* Staggered reveal on scroll */
.solution-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep on hover */
.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.07),
            transparent);
    transition: none;
    pointer-events: none;
    z-index: 1;
}

.solution-card:hover::after {
    left: 150%;
    transition: left 0.7s ease;
}

/* Card 01 (white) — lift + shadow */
.solution-card-light:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Card 02 (dark) — lift + green glow */
.solution-card-dark:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(13, 138, 116, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.solution-card-dark::after {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.04),
            transparent);
}

/* Card 03 (alt) — lift + warm shadow */
.solution-card-alt:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(107, 82, 68, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Stagger entrance delays */
.solution-card:nth-child(1) {
    transition-delay: 0s;
}

.solution-card:nth-child(2) {
    transition-delay: 0.1s;
}

.solution-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* Bottom badge — the "proof point" at the bottom of each card */
.card-proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    color: var(--text-muted);
}

.card-proof-badge-dark {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
}

/* Proof badge icon dot */
.proof-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-main);
    display: inline-block;
    opacity: 0.5;
}

@keyframes proofPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* Bottom stat number — animated counter effect */
.solution-stat-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    position: relative;
}

/* Glow pulse behind the big number on hover */
.solution-card:hover .solution-stat-num::after {
    content: attr(data-value);
    position: absolute;
    top: 0;
    left: 0;
    color: inherit;
    filter: blur(12px);
    opacity: 0.3;
    animation: numGlow 1.5s ease-in-out infinite;
}

@keyframes numGlow {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.4;
    }
}

/* ═══════════════════════════════════════════════════════
   MISSION CONTROL DASHBOARD — Journey Timeline
   ═══════════════════════════════════════════════════════ */
.mc-dashboard {
    background: #0a0a0a;
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    overflow: hidden;
}

/* Subtle scan-line overlay */
.mc-dashboard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px);
    pointer-events: none;
    z-index: 0;
}

/* ── Top progress bar ── */
.mc-progress-track {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: visible;
}

.mc-progress-fill {
    height: 100%;
    background: var(--text-main);
    border-radius: 4px;
    position: relative;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tip dot */
.mc-progress-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -4px;
    width: 12px;
    height: 12px;
    background: var(--text-main);
    border-radius: 50%;
}

@keyframes mcPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
        transform: scale(1.2);
    }
}

.mc-progress-label {
    position: absolute;
    right: 0;
    top: 12px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Horizontal scrollable dashboard ── */
.mc-grid {
    display: flex;
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    z-index: 1;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0;
}

.mc-grid::-webkit-scrollbar {
    display: none;
}

/* Horizontal connecting line behind all cards */
.mc-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #22c55e 0%, #22c55e 35%, #f59e0b 50%, #3b82f6 70%, rgba(255, 255, 255, 0.15) 100%);
    z-index: 0;
    pointer-events: none;
}

/* ── Individual cards — fixed width horizontal ── */
.mc-card {
    background: rgba(255, 255, 255, 0.02);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    display: flex;
    flex-direction: column;
    transition: background 0.4s ease, transform 0.3s ease;
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
    z-index: 1;
}

.mc-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

/* Card header row */
.mc-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Status dot */
.mc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mc-dot-green {
    background: var(--text-main);
}

.mc-dot-amber {
    background: var(--text-main);
    opacity: 0.6;
}

.mc-dot-blue {
    background: var(--text-main);
    opacity: 0.4;
}

.mc-dot-grey {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes mcDotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Phase label */
.mc-phase {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
}

/* Status badge */
.mc-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    margin-left: auto;
}

.mc-badge-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.mc-badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.mc-badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.mc-badge-grey {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
}

/* Title */
.mc-title {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

/* Description */
.mc-desc {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    flex-grow: 1;
}

/* Metric block (for completed cards) */
.mc-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-metric-num {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.mc-metric-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* Mini progress bar (for in-progress/active/growing cards) */
.mc-mini-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-top: 1.25rem;
    overflow: hidden;
}

.mc-mini-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-fill-blue {
    background: #3b82f6;
}

.mc-fill-grey {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Mobile: horizontal scroll with smaller cards ── */
@media (max-width: 768px) {
    .mc-grid {
        gap: 1px;
    }

    .mc-card {
        min-width: 220px;
        max-width: 240px;
    }

    .mc-dashboard {
        border-radius: 14px;
        padding: 1rem;
    }

    .mc-progress-label {
        font-size: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════
   PHASE STEPPER — Premium Horizontal Pipeline
   ═══════════════════════════════════════════════════════ */
.phase-stepper {
    position: relative;
    padding-top: 1rem;
}

/* ── Track: horizontal row of nodes ── */
.phase-track {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

/* Connecting line behind nodes */
.phase-line {
    position: absolute;
    top: 22px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
    /* Subtle unfilled line */
    z-index: 0;
    border-radius: 2px;
}

.phase-line-fill {
    height: 100%;
    width: 45%;
    background: #0D8A74;
    /* Brand Green */
    border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(13, 138, 116, 0.5);
    /* Premium glow */
}

/* ── Individual node button ── */
.phase-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    padding: 0;
    outline: none;
}

.phase-node-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: var(--bg);
    color: var(--text-muted);
}

.phase-node-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.4s ease;
    white-space: nowrap;
    opacity: 0.6;
}

/* Status variants */
.phase-node-done .phase-node-num {
    background: #0D8A74;
    border-color: #0D8A74;
    color: #fff;
}

.phase-node-active .phase-node-num {
    border-color: #0D8A74;
    color: #0D8A74;
    background: var(--bg);
}

.phase-node-pending .phase-node-num {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
    opacity: 0.5;
}

.phase-node.is-active .phase-node-num {
    transform: scale(1.25);
    border-color: #0D8A74;
    box-shadow: 0 0 0 6px rgba(13, 138, 116, 0.15), inset 0 0 20px rgba(13, 138, 116, 0.08);
    /* glowing ring + subtle internal tint */
    color: #0D8A74;
}

/* When a done node is actively selected */
.phase-node-done.is-active .phase-node-num {
    color: #fff;
    background: #0D8A74;
}

.phase-node.is-active .phase-node-label {
    color: #0D8A74;
    font-weight: 700;
    opacity: 1;
    transform: translateY(2px);
}

/* Hover Effects */
.phase-node:hover .phase-node-num {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(13, 138, 116, 0.08);
}

.phase-node.is-active:hover .phase-node-num {
    transform: scale(1.25);
    /* Maintain active scale */
}

/* ── Detail panel area ── */
.phase-details {
    position: relative;
}

.phase-detail {
    display: none;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(1.25rem, 2vw, 2rem);
    animation: fadeSlideUp 0.35s ease;
}

.phase-detail.is-visible {
    display: block;
}

.phase-detail-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.phase-badge-green {
    background: var(--bg-alt);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.phase-badge-amber {
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.phase-badge-blue {
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.phase-badge-grey {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.phase-detail-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin: 0 0 0.75rem;
}

.phase-detail-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 1rem;
    max-width: 600px;
}

/* Stat line for completed phases */
.phase-detail-stat {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.phase-stat-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

/* Mini progress bar for in-progress phases */
.phase-detail-bar {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    max-width: 300px;
}

.phase-detail-bar-fill {
    height: 100%;
    background: var(--text-main);
    border-radius: 4px;
    transition: width 1s ease;
    opacity: 0.4;
}

.phase-bar-blue {
    background: var(--text-main);
    opacity: 0.25;
}

.phase-bar-grey {
    background: var(--text-muted);
    opacity: 0.4;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .phase-node-num {
        width: 34px;
        height: 34px;
        font-size: 0.6rem;
    }

    .phase-node-label {
        font-size: 0.5rem;
    }

    .phase-track {
        padding: 0;
    }

    .phase-line {
        left: 20px;
        right: 20px;
        top: 17px;
    }
}