/* ===========================================
   SCALARIAN GLOBAL STYLES
   =========================================== */

:root {
    /* Typography */
    --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type Scale */
    --text-display: clamp(72px, 10vw, 180px);
    --text-h1: 64px;
    --text-h2: 48px;
    --text-h3: 36px;
    --text-h4: 28px;
    --text-h5: 22px;
    --text-lead: 24px;
    --text-body-lg: 20px;
    --text-body: 17px;
    --text-body-sm: 15px;
    --text-label: 17px;
    --text-stat: 96px;
    --text-caption: 13px;
    --text-micro: 12px;

    /* Clamp Headline Tokens */
    --clamp-h1: clamp(44px, 5vw, 64px);
    --clamp-h2: clamp(36px, 4vw, 48px);
    --clamp-h3: clamp(28px, 3vw, 36px);

    /* Line Heights */
    --leading-display: 0.9;
    --leading-tight: 1.0;
    --leading-snug: 1.1;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;
    --leading-loose: 1.65;

    /* Letter Spacing */
    --tracking-tightest: -0.04em;
    --tracking-tighter: -0.03em;
    --tracking-tight: -0.02em;
    --tracking-wide: 0.04em;
    --tracking-wider: 0.08em;

    /* --- BRAND COLORS --- */

    /* Blues */
    --color-scalarian-blue: #000449;
    /* Primary Brand Blue */
    --color-dark-blue: #0124A0;
    --color-accent: #0052FF;
    --color-accent-light: #3168FF;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-bright-snow: #F8F8F7;
    --color-platinum: #EEF0F3;
    --color-onyx: #0E0E11;
    --color-ink-black: #000614;

    /* Semantic Mappings */
    --color-bg-light: var(--color-bright-snow);
    --color-bg-dark: var(--color-ink-black);
    --color-surface-white: var(--color-white);

    --color-text: var(--color-onyx);
    --color-text-secondary: #5E5855;
    /* Kept for softer body text */
    --color-text-inverse: var(--color-white);
    --color-text-inverse-secondary: rgba(255, 255, 255, 0.75);
    --color-text-muted: rgba(14, 14, 17, 0.5);

    --color-border: rgba(0, 6, 20, 0.1);
    --color-border-inverse: rgba(255, 255, 255, 0.15);

    /* Spacing & Layout */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --container-max: 1400px;
    --radius-pill: 100px;
    --radius-card: 4px;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-normal: 0.4s;

    /* Legacy fallback */
    --color-bg: var(--color-bright-snow);

    /* Expanded Neutral Scale */
    --color-silver: #C8CBD0;
    --color-steel: #8A8F96;
    --color-graphite: #3A3A3D;

    /* Accent Tint */
    --color-accent-soft: #E8EEFF;

    /* Services Section */
    --color-services-blue: #0024F8;

    /* Semantic Colors */
    --color-error: #D94444;
    --color-error-bg: #FEF2F2;
    --color-success: #16A34A;
    --color-success-bg: #F0FDF4;
    --color-warning: #D97706;
    --color-warning-bg: #FFFBEB;

    /* Extended Spacing */
    --space-24: 96px;
    --space-32: 128px;
    --space-36: 144px;
    --space-40: 160px;

    /* Animation Durations */
    --duration-instant: 0.15s;
    --duration-fast: 0.25s;
    --duration-smooth: 0.6s;
    --duration-dramatic: 0.8s;
    --duration-cinematic: 1.2s;
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}


/* ===========================================
   TYPOGRAPHY UTILITIES (Design System V2)
   =========================================== */

.text-display {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: 500;
    line-height: var(--leading-display);
    letter-spacing: var(--tracking-tightest);
}

/* Prevent hero headlines from wrapping mid-phrase */
.hero-line {
    white-space: nowrap;
}

.hero-accent {
    color: var(--color-accent);
}

/* Hero Layout */
.hero-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    margin-bottom: auto;
    padding-top: 28vh;
}

.hero-headline-group {
    margin-bottom: 0;
    align-self: flex-start;
}

.hero-line-indent {
    padding-left: 12vw;
}



/* Hero Descriptor */
.hero-descriptor-group {
    margin-top: auto;
    padding-bottom: var(--space-16);
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
}

.hero-descriptor {
    font-family: var(--font-body);
    font-size: var(--text-lead);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--color-text-secondary);
    max-width: 520px;
}

/* Hero Video Background */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, var(--color-surface-white));
    z-index: 2;
    pointer-events: none;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-10);
    right: var(--space-20);
    color: rgba(14, 14, 17, 0.3);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

.text-h1 {
    font-size: var(--text-h1);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
}

.text-h2 {
    font-size: var(--text-h2);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tighter);
}

.text-h3 {
    font-size: var(--text-h3);
    line-height: 1.15;
    letter-spacing: var(--tracking-tight);
}

.text-h4 {
    font-size: var(--text-h4);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.text-h5 {
    font-size: var(--text-h5);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.text-lead {
    font-family: var(--font-body);
    font-size: var(--text-lead);
    font-weight: 400;
    line-height: var(--leading-normal);
    letter-spacing: 0;
}

.text-body-lg {
    font-size: var(--text-body-lg);
    line-height: var(--leading-relaxed);
}

.text-body {
    font-size: var(--text-body);
    line-height: var(--leading-loose);
}

.text-body-sm {
    font-size: var(--text-body-sm);
    line-height: var(--leading-relaxed);
}

.text-stat {
    font-family: var(--font-display);
    font-size: var(--text-stat);
    font-weight: 500;
    line-height: 1;
    letter-spacing: var(--tracking-tighter);
}

.stat-suffix {
    font-weight: 400;
    opacity: 0.5;
}


/* Color utilities */
.text-primary {
    color: var(--color-text);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-inverse {
    color: var(--color-text-inverse);
}

.text-accent {
    color: var(--color-accent);
}

/* Layout utilities */
.max-w-prose {
    max-width: 65ch;
}

/* ===========================================
   BACKGROUND UTILITIES (Design System V2)
   =========================================== */

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.bg-white {
    background-color: var(--color-surface-white);
}

.bg-accent {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
}

/* Dark background text overrides */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark .text-display,
.bg-dark .text-stat {
    color: var(--color-text-inverse);
}

.bg-dark p,
.bg-dark .text-body,
.bg-dark .text-lead {
    color: var(--color-text-inverse-secondary);
}

.bg-dark .section-label {
    color: rgba(255, 255, 255, 0.6);
}

/* Accent background overrides */
.bg-accent h1,
.bg-accent h2,
.bg-accent h3 {
    color: var(--color-text-inverse);
}

.bg-accent p,
.bg-accent .text-lead {
    color: var(--color-text-inverse-secondary);
}

/* ===========================================
   BUTTON STYLES (Design System V2)
   =========================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 40px;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 40px;
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    border: 1px solid var(--color-text);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-secondary:hover {
    background: var(--color-text);
    color: white;
}

.bg-dark .btn-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
}

.bg-dark .btn-secondary:hover {
    background: white;
    color: var(--color-text);
}

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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global Typography - V4.1 Rules */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Instrument Sans', sans-serif;
    color: var(--color-text);
    margin: 0;
}

h2 {
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 500;
}

h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.font-display {
    font-family: 'Instrument Sans', sans-serif;
}

/* ===========================================
   UTILITIES
   =========================================== */

/* Film Grain Overlay */
.site-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    will-change: transform;
}

/* Standard Container - Enforcing 1400px limit */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-12);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-20);
    }
}



/* Custom Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-white);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-silver);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-steel);
}

/* ===========================================
   SECTION 1: NAVIGATION & HERO
   =========================================== */

/* Navigation */
#navbar {
    transition: background-color var(--duration-normal) var(--ease-out), padding var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

#navbar.scrolled {
    background: rgba(248, 248, 247, 0.9);
    /* #F8F8F7 with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

#navbar.transparent {
    background: transparent;
    border-bottom: 1px solid transparent;
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}



.nav-wordmark {
    text-decoration: none;
    transition: opacity var(--duration-fast) var(--ease-out);
    display: flex;
    align-items: center;
}

.nav-wordmark:hover {
    opacity: 0.7;
}

.nav-logo {
    height: 18px;
    width: auto;
    display: block;
}

.nav-link {
    position: relative;
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--color-text);
    text-decoration: none;
    padding: var(--space-2) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-accent);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-link:hover::after {
    opacity: 1;
}

/* Nav CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--color-text);
    text-decoration: none;
    border: 1px solid var(--color-text);
    border-radius: var(--radius-pill);
    transition: all var(--duration-normal) var(--ease-out);
    margin-left: var(--space-2);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--color-text);
    color: white;
}

/* Hero Typography */
.hero-line-wrap {
    overflow: hidden;
}

.hero-line {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(52px, 9vw, 132px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--color-onyx);
    display: block;
    transform: translateY(100%);
}

/* ===========================================
   SECTION 2: ABOUT
   =========================================== */
.section-about {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 8rem;
    align-items: start;
}

.about-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h2);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
    margin-bottom: 0;
}

.about-body {
    font-family: var(--font-body);
    font-size: var(--text-body-lg);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    color: var(--color-text-secondary);
    padding-top: var(--space-2);
}

/* ===========================================
   SECTION 3: SERVICES (BOLD ARCHITECTURAL STYLE)
   =========================================== */

.section-services-bold {
    position: relative;
    padding: 9rem 0;
    background-color: var(--color-platinum);
    color: var(--color-onyx);
}


.services-header-bold {
    margin-bottom: var(--space-16);
    border: none;
    position: relative;
    z-index: 2;
}

.section-services-bold .section-label {
    color: rgba(14, 14, 17, 0.4);
}

.services-footer-cta {
    margin-top: var(--space-12);
    border: none;
    position: relative;
    z-index: 2;
}

/* Services CTA - white button on blue background */
.btn-services-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 40px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-services-cta:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.service-row-inner {
    padding: 0 var(--space-6);
}

.service-row.is-active .service-row-inner {
    padding: 0 var(--space-6);
}

@media (min-width: 768px) {
    .service-row-inner,
    .service-row.is-active .service-row-inner {
        padding: 0 var(--space-12);
    }
}

@media (min-width: 1024px) {
    .service-row-inner,
    .service-row.is-active .service-row-inner {
        padding: 0 var(--space-20);
    }
}

.services-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h2);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 500;
    color: var(--color-onyx);
    margin-bottom: 0;
    text-align: left;
}

.services-header-desc {
    font-family: var(--font-body);
    font-size: var(--text-body-lg);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    color: var(--color-text-secondary);
    max-width: 750px;
    margin-top: 24px;
}

.services-list-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- THE ROW --- */
.service-row {
    position: relative;
    cursor: pointer;
    /* The Divider Line */
    border-top: 1px solid var(--color-border);
    /* Transition for the Lightbox Effect */
    transition: background-color var(--duration-smooth) var(--ease-out);
}

.service-row:last-child {
    border-bottom: 1px solid var(--color-border);
}

.service-row:first-child {
    border-top: 1px solid var(--color-border);
}

.service-row:not(.is-active):hover {
    background-color: rgba(0, 6, 20, 0.03);
}

/* --- ACTIVE STATE (The Lightbox) --- */
.service-row.is-active {
    background-color: var(--color-white);
    border-color: transparent;
    border-radius: var(--radius-card);
}

.service-row.is-active:last-child {
    border-bottom-color: transparent;
}

/* Text Color Swap on Active (Text Only) */
.service-row.is-active .service-title {
    color: var(--color-onyx);
    background-color: transparent;
}

/* Icon Line Color Swap (Background Only) */
.service-row.is-active .icon-line {
    background-color: var(--color-onyx);
}

.service-row.is-active .service-desc-text,
.service-row.is-active .service-bullets li {
    color: var(--color-onyx);
    /* Ensures text is visible on light background */
}


/* --- INNER PADDING --- */

/* --- ROW HEADER (Flexbox) --- */
.service-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-10) 0;
}

.service-row.is-active .service-row-header {
    padding: var(--space-10) 0 0 0;
    align-items: flex-start;
}

.service-title-col {
    display: flex;
    align-items: center;
}



.service-title {
    font-family: var(--font-display);
    font-size: var(--clamp-h3);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--color-onyx);
    transition: color var(--duration-normal) var(--ease-out);
}

/* --- ICON (+) --- */
.service-icon-col {
    display: flex;
    align-items: center;
}

.service-icon-wrap {
    width: 24px;
    height: 24px;
    position: relative;
}

.icon-line {
    position: absolute;
    background-color: var(--color-onyx);
    transition: transform var(--duration-normal) var(--ease-out), background-color var(--duration-normal) var(--ease-out);
}

.line-h {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.line-v {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Active Icon Animation (Plus to Minus) */
.service-row.is-active .line-v {
    transform: translateX(-50%) rotate(90deg);
    /* Rotates to merge with horizontal */
    opacity: 0;
}

/* --- ROW BODY (The Asymmetric Grid) --- */
.service-row-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-smooth) var(--ease-out);
}

.service-row.is-active .service-row-body {
    grid-template-rows: 1fr;
}

.service-body-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
    transition-delay: 0.2s;
}

.service-row.is-active .service-body-grid {
    opacity: 1;
    transform: translateY(0);
    display: grid;
    grid-template-columns: 1fr;
    padding-top: var(--space-4);
    padding-bottom: var(--space-16);
}


/* Content Styling */
.service-desc-text {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.65;
    font-weight: 400;
    color: var(--color-onyx);
    margin-bottom: var(--space-8);
    max-width: 750px;
}

.service-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-bullets li {
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    display: block;
    padding-left: var(--space-4);
    position: relative;
}
.service-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(14, 14, 17, 0.3);
}

/* ===========================================
   SECTION 4: IMPACT
   =========================================== */
.section-impact {
    padding: 9rem 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-8);
}

.impact-card {
    background-color: var(--color-white);
    border-radius: var(--radius-card);
    padding: var(--space-12) var(--space-10);
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    min-height: 520px;
    border: 1px solid var(--color-border);
}

.impact-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h2);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-16);
}

/* Alignment Fixes */
.impact-number-wrap {
    display: flex;
    align-items: flex-start;
}

.impact-content-wrap {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    min-height: 140px;
}

/* Animation class for Impact cards */
.impact-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.impact-card:nth-child(1) {
    animation-delay: 0s;
}

.impact-card:nth-child(2) {
    animation-delay: 0.1s;
}

.impact-card:nth-child(3) {
    animation-delay: 0.2s;
}

.impact-title {
    font-family: var(--font-display);
    font-size: var(--text-h5);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-3);
    min-height: 48px;
}

.impact-desc {
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: 1.65;
}

/* ===========================================
   SECTION 5: TRANSITION (Growth)
   =========================================== */
.section-transition {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: 0;
}
.transition-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('Assets/Images/tr-bg3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    filter: saturate(0.3);
    z-index: 1;
}
.transition-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.transition-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h1);
    line-height: 1.0;
    letter-spacing: -0.03em;
    font-weight: 500;
    color: white;
    margin: 0;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.3em;
}
.transition-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}


/* ===========================================
   SECTION 6: APPROACH (V2 - Protocol)
   =========================================== */
.section-approach {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 9rem 0;
    background-color: var(--color-surface-white);
    box-sizing: border-box;
}

.approach-headline-v2 {
    font-family: var(--font-display);
    font-size: var(--clamp-h2);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 500;
    color: var(--color-text);
    max-width: 1200px;
    margin-bottom: var(--space-20);
    margin-top: 0;
}

.approach-divider {
    width: 100%;
    height: 2px;
    background-color: var(--color-border);
    margin-bottom: var(--space-20);
    transform-origin: left;
}

.approach-protocol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16) var(--space-24);
    align-items: start;
}

.protocol-module {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    opacity: 0;
    transform: translateY(30px);
}

.protocol-module::before {
    content: attr(data-step);
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 140px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-text);
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    letter-spacing: -0.04em;
}

.protocol-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-6);
    min-height: var(--space-5);
}

.protocol-anchor {
    width: 18px;
    height: 18px;
    background-color: var(--color-accent);
    flex-shrink: 0;
}

.protocol-title {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    line-height: 1.15;
    letter-spacing: var(--tracking-tight);
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    white-space: nowrap;
}

.protocol-body {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.65;
    color: var(--color-text-secondary);
    font-weight: 400;
    max-width: 520px;
    margin: 0;
    padding-left: 42px;
}

/* ===========================================
   SECTION 7: FAQ
   =========================================== */
.section-faq {
    padding: 9rem 0;
    min-height: auto;
    background-color: var(--color-platinum);
}

.faq-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h2);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-16);
}

.faq-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-12);
}

.faq-col {
    border-top: 1px solid var(--color-border);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item.is-open {
    background-color: var(--color-white);
    border-radius: var(--radius-card);
    margin: var(--space-2) calc(-1 * var(--space-6));
    padding: 0 var(--space-6);
    border-bottom-color: transparent;
}

.faq-item.is-open + .faq-item {
    border-top: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.faq-text {
    font-family: var(--font-display);
    font-size: var(--text-h5);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-text);
    transition: color var(--duration-fast) var(--ease-out);
    padding-right: var(--space-4);
}

.faq-question:hover .faq-text {
    color: var(--color-graphite);
}

.faq-toggle-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle-icon {
    color: var(--color-text-muted);
    transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.faq-item.is-open .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--color-text);
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-normal) var(--ease-out);
}

.faq-item.is-open .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-content {
    padding-bottom: var(--space-6);
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    font-size: var(--text-body);
    line-height: 1.65;
}

.faq-answer-content p + p {
    margin-top: var(--space-3);
}

/* ===========================================
   SHARED TYPOGRAPHY
   =========================================== */
.section-label {
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(14, 14, 17, 0.4);
    display: block;
    margin-bottom: var(--space-4);
}


/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================================
   LAPTOP/SMALL DESKTOP RESPONSIVENESS (1025px - 1366px)
   =========================================== */
@media (min-width: 1025px) and (max-width: 1366px) {

    /* 1. Reduce indentation so the text has more room */
    .hero-line-indent {
        padding-left: 5vw;
        /* Reduced from 10vw */
    }
}

/* ===========================================
   TABLET RESPONSIVENESS (768px - 1024px)
   =========================================== */
@media (min-width: 768px) and (max-width: 1024px) {

    /* 1. Container Padding - tighter on tablet so content has room */
    .container {
        padding: 0 var(--space-12);
    }

    .hero-line-indent {
        padding-left: 5vw;
    }

    /* 3. Section Vertical Spacing - Compact the rhythm */
    .section-services-bold,
    .section-impact,
    .section-approach {
        padding: var(--space-20) 0;
    }

    .section-about {
        min-height: 100vh;
        padding: var(--space-20) 0;
    }

    .about-grid {
        gap: var(--space-16);
    }

    /* 4. Impact Grid - Switch to 2 columns (2 top, 1 bottom) */
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    /* Make the 3rd card span full width to look intentional */
    .impact-card:nth-child(3) {
        grid-column: span 2;
    }

    /* 5. Approach Grid - Stack on tablet */
    .approach-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
}

/* Mobile Menu Styles */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 40;
    /* Below navbar (z-50) but above content */
    padding: 100px var(--space-6) var(--space-10);
    transform: translateY(-100%);
    transition: transform var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav-overlay.is-active {
    transform: translateY(0);
}

.mobile-nav-link {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 32px;
    color: var(--color-text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
}

.mobile-nav-overlay.is-active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-cta {
    font-family: var(--font-body);
    display: inline-block;
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-8);
    font-size: 18px;
    border: 1px solid var(--color-text);
    border-radius: var(--radius-pill);
    transition: all var(--duration-normal) var(--ease-out);
}

.mobile-nav-cta:hover {
    background: var(--color-text);
    color: white;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-2);
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 60;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all var(--duration-fast) var(--ease-out);
}

@media (max-width: 1023px) {
    .hamburger-btn {
        display: flex;
    }
}

/* Hamburger Animation State */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===========================================
   FINAL STATEMENT SECTION
   =========================================== */
.section-final {
    position: relative;
    padding: var(--space-40) 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.final-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

.final-headline-group {
    margin-bottom: var(--space-12);
}

.final-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h1);
    line-height: 1.0;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.final-headline-dark {
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.final-headline-white {
    color: white;
    margin-bottom: var(--space-4);
}

.final-headline-accent {
    color: var(--color-accent);
}

.final-headline,
.final-body,
.section-final .btn-primary {
    opacity: 0;
    transform: translateY(20px);
}

.final-headline.animate-in,
.final-body.animate-in,
.section-final .btn-primary.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.final-headline-accent.animate-in {
    animation-delay: 0.15s;
}

.final-body.animate-in {
    animation-delay: 0.25s;
}

.section-final .btn-primary.animate-in {
    animation-delay: 0.35s;
}

.final-body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-12);
}

/* ===========================================
   FOOTER STYLES
   =========================================== */
.site-footer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-scalarian-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Footer Hero */
.footer-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 100px 0 80px;
}

.footer-hero-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h2);
    font-weight: 500;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.footer-hero-desc {
    font-family: var(--font-body);
    font-size: var(--text-body);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    max-width: 480px;
}

/* Footer Rows */
.footer-rows {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-12) 0;
}

.footer-row-label {
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: 400;
    color: var(--color-text-inverse-secondary);
    letter-spacing: 0;
    text-transform: none;
    flex-shrink: 0;
}

.footer-row-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-row-content a {
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    color: white;
    text-decoration: none;
    line-height: 2.2;
    transition: opacity var(--duration-instant) var(--ease-out);
    width: fit-content;
}

.footer-row-content a:hover {
    opacity: 0.7;
}

.footer-email-copy {
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    color: white;
    line-height: 2;
    cursor: pointer;
    display: inline-block;
    position: relative;
    border: none;
    background: none;
    padding: 0;
    transition: opacity var(--duration-instant) var(--ease-out);
}

.footer-email-copy:hover {
    opacity: 0.7;
}

/* Footer Brand */
.footer-brand {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    padding: var(--space-16) 0 var(--space-10);
}

.footer-brand-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-8);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color var(--duration-instant) var(--ease-out);
}

.footer-bottom-links a:hover {
    color: var(--color-text-inverse);
}

.footer-bottom-copy {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* ===========================================
   CONTACT PAGE
   =========================================== */

/* Page Layout */
.page-contact {
    padding-top: 220px;
    padding-bottom: 120px;
    min-height: 100vh;
    background: var(--color-bright-snow);
}

/* Headline area */
.contact-header {
    margin-bottom: var(--space-24);
    text-align: left;
}

.contact-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h1);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--color-text);
    text-align: left;
}

/* Form description — body text, left-aligned, F-pattern */
.contact-form-desc {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-8);
}

/* Main grid: form left, info card right */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 7fr 4fr;
        gap: var(--space-20);
    }
}

/* Info Card (sidebar) */
.contact-info-card {
    background-color: var(--color-dark-blue);
    border-radius: var(--radius-card);
    padding: var(--space-8) var(--space-6);
    position: sticky;
    top: 120px;
}

.info-card-label {
    font-family: var(--font-body);
    font-size: var(--text-label);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: var(--space-5);
}

.info-card-email {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: color var(--duration-instant) var(--ease-out);
    border: none;
    background: none;
    padding: 0;
}

.info-card-email:hover {
    color: var(--color-white);
}

.info-card-note {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    margin-top: var(--space-5);
    line-height: var(--leading-relaxed);
    letter-spacing: 0;
}

.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--color-accent);
    color: white;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.copy-tooltip.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile: card goes below form, doesn't stretch */
@media (max-width: 1023px) {
    .contact-info-card {
        position: static;
        order: 2;
        align-self: start;
        justify-self: start;
        width: auto;
        display: inline-block;
    }
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

/* Question text */
.form-question {
    font-family: var(--font-body);
    font-size: var(--text-body-lg);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--color-text);
    margin-bottom: var(--space-6);
}

/* Sub-question (inside conditional sections) — replaces inline styles */
.form-question-sub {
    font-size: var(--text-body-lg);
    margin-bottom: var(--space-5);
    margin-top: var(--space-2);
}

/* Form row spacing utility — replaces inline margin-bottom: 24px */
.form-block-spacing {
    margin-bottom: var(--space-6);
}

/* Toggle buttons (Yes / No) */
.toggle-group {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.toggle-btn {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    padding: var(--space-4) var(--space-10);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    min-width: 120px;
    text-align: center;
}

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

.toggle-btn.is-active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* Conditional sections */
.conditional-section {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease-out), margin 0.5s var(--ease-out);
    margin-top: 0;
}

.conditional-section.is-visible {
    grid-template-rows: 1fr;
    margin-top: var(--space-8);
}

.conditional-inner {
    overflow: hidden;
}

/* Input fields — bottom-border-only */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.form-row-2col {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-field label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(14, 14, 17, 0.4);
    margin-bottom: var(--space-1);
    opacity: 1;
    height: 16px;
}

.form-input {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: var(--space-4) 0;
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out);
    width: 100%;
}

.form-input::placeholder {
    color: rgba(14, 14, 17, 0.3);
}

.form-input:focus {
    border-bottom-color: var(--color-text);
}

.form-input.has-error {
    border-bottom-color: var(--color-error);
}

/* Select / Dropdown */
.form-select {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: var(--space-4) 0;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230E0E11' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: var(--space-8);
    transition: border-color var(--duration-fast) var(--ease-out);
    width: 100%;
}

.form-select:focus {
    border-bottom-color: var(--color-text);
}

.form-select.is-placeholder {
    color: rgba(14, 14, 17, 0.3);
}

.form-select option {
    color: var(--color-text);
    background: var(--color-white);
}

.form-select option[value=""] {
    color: rgba(14, 14, 17, 0.3);
}

/* Textarea */
.form-textarea {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: var(--space-5) var(--space-6);
    outline: none;
    resize: vertical;
    min-height: 180px;
    width: 100%;
    transition: border-color var(--duration-fast) var(--ease-out);
}

.form-textarea::placeholder {
    color: rgba(14, 14, 17, 0.3);
}

.form-textarea:focus {
    border-color: var(--color-text);
}

/* Optional tag */
.optional-tag {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: rgba(14, 14, 17, 0.4);
    margin-left: var(--space-2);
    letter-spacing: 0;
    text-transform: none;
}

/* Submit Button */
.btn-submit {
    align-self: flex-start;
}

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

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit .btn-arrow {
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-submit:hover .btn-arrow {
    transform: translateX(3px);
}

/* Validation Error */
.field-error {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-error);
    margin-top: var(--space-2);
    display: none;
}

.field-error.is-visible {
    display: block;
}

/* Success State */
.form-success {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    padding: var(--space-16) 0;
}

.form-success.is-visible {
    display: flex;
}

.success-headline {
    font-family: var(--font-display);
    font-size: var(--clamp-h2);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.success-body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 480px;
}



/* ===========================================
   SHARED NAV — replaces Tailwind utilities
   =========================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

.nav-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.nav-center-spacer {
    display: block;
}

.nav-links-desktop {
    display: none;
    align-items: center;
    gap: var(--space-8);
    justify-self: end;
    white-space: nowrap;
}

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

    .hamburger-btn {
        display: none;
    }
}

@media (max-width: 1023px) {
    .nav-grid {
        grid-template-columns: 1fr auto;
    }

    .nav-center-spacer {
        display: none;
    }

    .hamburger-btn {
        display: flex;
        justify-self: end;
    }
}

/* ===========================================
   RESPONSIVE: TABLET (max-width: 1024px)
   =========================================== */
@media (max-width: 1024px) {

    /* :root variable overrides */
    :root {
        --text-h1: 52px;
        --text-h2: 40px;
        --text-h3: 32px;
        --text-h4: 24px;
        --text-h5: 20px;
        --text-lead: 20px;
        --text-body-lg: 18px;
        --text-body: 16px;
        --text-stat: 64px;
    }

    /* Typography utility class overrides */
    .text-h1 {
        font-size: var(--text-h1);
    }

    .text-h2 {
        font-size: var(--text-h2);
    }

    .text-h3 {
        font-size: var(--text-h3);
    }

    .text-stat {
        font-size: var(--text-stat);
    }

    /* Hero */
    .hero-line-indent {
        padding-left: 8vw;
    }

    /* Impact */
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-card {
        min-height: auto;
    }

    /* Approach */
    .approach-headline-v2 {
        margin-bottom: var(--space-16);
    }

    .approach-divider {
        margin-bottom: var(--space-16);
    }

    .approach-protocol-grid {
        gap: var(--space-12) var(--space-16);
    }

    /* Footer */
    .site-footer {
        min-height: auto;
    }

    .footer-hero {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: var(--space-16) 0 var(--space-12);
    }

    .footer-hero-desc {
        max-width: 100%;
    }

    .footer-row {
        padding: var(--space-12) 0;
    }
}

/* ===========================================
   RESPONSIVE: MOBILE (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {

    /* :root variable overrides */
    :root {
        --text-display: clamp(48px, 11vw, 72px);
        --text-h1: 44px;
        --text-h2: 36px;
        --text-h3: 28px;
        --text-h4: 24px;
        --text-h5: 20px;
        --text-lead: 20px;
        --text-body-lg: 18px;
        --text-body: 16px;
        --text-stat: 56px;
        --text-label: 15px;
    }

    /* Typography utility class overrides */
    .text-display {
        font-size: clamp(48px, 11vw, 72px);
    }

    .text-h1 {
        font-size: var(--text-h1);
    }

    .text-h2 {
        font-size: var(--text-h2);
    }

    .text-h3 {
        font-size: var(--text-h3);
    }

    .text-h4 {
        font-size: var(--text-h4);
    }

    .text-h5 {
        font-size: var(--text-h5);
    }

    .text-lead {
        font-size: var(--text-lead);
    }

    .text-body-lg {
        font-size: var(--text-body-lg);
    }

    .text-body {
        font-size: var(--text-body);
    }

    .text-stat {
        font-size: var(--text-stat);
    }

    /* Hero */
    .hero-headline-group {
        margin-bottom: var(--space-12);
    }

    .hero-line-indent {
        padding-left: 5vw;
    }

    .hero-content {
        padding-top: 0;
        margin-bottom: 0;
    }

    .hero-layout {
        min-height: 100svh;
        justify-content: center;
    }

    .hero-descriptor-group {
        margin-top: var(--space-12);
        padding-bottom: var(--space-8);
        gap: var(--space-6);
    }

    .hero-descriptor {
        font-size: var(--text-lead);
        max-width: 100%;
    }

    .hero-scroll-indicator {
        right: var(--space-6);
        bottom: var(--space-6);
    }

    section#hero[id] {
        min-height: 100svh;
    }

    section#hero[id] > .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* About */
    .section-about {
        min-height: auto;
        padding: var(--space-16) 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-body {
        max-width: 100%;
    }

    /* Services */
    .section-services-bold {
        padding: var(--space-16) 0;
    }

    .service-body-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }


    .service-row-header {
        padding: var(--space-8) 0;
    }


    .service-row-inner {
        padding: 0 var(--space-4);
    }

    .service-row.is-active .service-row-inner {
        padding: 0 var(--space-4);
    }

    .service-row.is-active .service-body-grid {
        display: block;
        padding-left: 0;
        padding-right: 0;
        margin-top: 0;
        padding-top: var(--space-6);
        padding-bottom: var(--space-10);
    }


    /* Impact */
    .section-impact {
        padding: var(--space-16) 0;
    }

    .impact-card {
        padding: var(--space-8) var(--space-6);
        min-height: auto;
    }

    .impact-headline {
        margin-bottom: var(--space-12);
    }

    .impact-number-wrap {
        margin-bottom: var(--space-6);
    }

    .impact-content-wrap {
        margin-top: 0;
        min-height: auto;
    }

    /* Transition */
    .section-transition {
        min-height: 60vh;
        padding: var(--space-24) 0;
    }

    /* Approach */
    .section-approach {
        min-height: auto;
        padding: var(--space-16) 0;
    }

    .approach-headline-v2 {
        margin-bottom: var(--space-12);
    }

    .approach-divider {
        margin-bottom: var(--space-12);
    }

    .approach-protocol-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .protocol-body {
        font-size: var(--text-body);
        max-width: 100%;
        padding-left: 0;
    }

    .protocol-module::before {
        font-size: var(--space-16);
        left: -5px;
    }

    .protocol-title {
        white-space: normal;
    }

    .protocol-header {
        align-items: flex-start;
    }

    .protocol-anchor {
        margin-top: var(--space-2);
    }

    /* FAQ */
    .section-faq {
        padding: var(--space-16) 0;
    }

    .faq-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-col + .faq-col {
        border-top: none;
    }

    .faq-headline {
        margin-bottom: var(--space-12);
    }

    .faq-question {
        padding: var(--space-4) 0;
    }

    .faq-item.is-open {
        margin: var(--space-1) calc(-1 * var(--space-4));
        padding: 0 var(--space-4);
    }

    /* Final Statement */
    .section-final {
        padding: var(--space-24) 0;
    }

    .final-body {
        font-size: var(--text-body-lg);
    }

    /* Footer */
    .footer-hero {
        padding: var(--space-12) 0 var(--space-10);
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: var(--space-8) 0;
    }

    .footer-brand {
        padding: var(--space-12) 0 var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
        padding-bottom: var(--space-8);
    }

    /* Contact */
    .page-contact {
        padding-top: var(--space-32);
        padding-bottom: var(--space-16);
    }

    .contact-header {
        margin-bottom: var(--space-16);
    }

    .contact-form-desc {
        margin-bottom: var(--space-6);
    }

    .contact-form {
        gap: var(--space-10);
    }

    .contact-info-card {
        padding: var(--space-6) var(--space-5);
    }
}

/* ===========================================
   RESPONSIVE: SMALL MOBILE (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {

    /* Hero adjustments */
    .hero-line-indent {
        padding-left: 3vw;
    }

    .hero-line.text-display {
        font-size: clamp(36px, 10vw, 56px);
    }

    .hero-descriptor-group {
        padding-bottom: var(--space-6);
        gap: var(--space-6);
    }

    .hero-descriptor {
        font-size: var(--text-body);
    }

    #hero .text-lead {
        font-size: var(--text-body-lg);
    }

    .hero-content {
        padding-top: 0;
    }

    /* Transition adjustments */
    .section-transition {
        min-height: 50vh;
        padding: var(--space-16) 0;
    }
}
