﻿/*
 * ============================================
 *  AM CAMPUS MRA â€” Design System V3
 *  100-Point Rewrite
 * ============================================
 */

/* === LAYER 1: DESIGN SYSTEM TOKENS === */
:root {
    /* --- Containers --- */
    --container-reading: 720px;
    --container-max: 1200px;
    --container-lg: 1400px;
    --grid-gutter: 24px;

    /* --- Typography --- */
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    /* Target Scale: Body 18px, Sub 24px, Section 40px, Hero 64px */
    --text-xs: 0.8rem;
    --text-sm: 0.95rem;
    --text-body: clamp(1rem, 1.1vw + 0.5rem, 1.125rem);
    /* ~16-18px */
    --text-md: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
    /* ~20-24px */
    --text-h3: clamp(1.3rem, 2vw + 0.8rem, 1.7rem);
    --text-h2: clamp(2rem, 3vw + 0.5rem, 2.5rem);
    /* ~32-40px */
    --text-h1: clamp(3rem, 5vw + 1rem, 4rem);
    /* ~48-64px */

    --lh-tight: 0.98;
    --lh-heading: 1.08;
    --lh-body: 1.65;

    /* --- Spacing (8px System) --- */
    /* Component spacing */
    --s-1: 0.25rem;
    /* 4 */
    --s-2: 0.5rem;
    /* 8 */
    --s-3: 0.75rem;
    /* 12 */
    --s-4: 1rem;
    /* 16 */
    --s-5: 1.5rem;
    /* 24 */
    --s-6: 2rem;
    /* 32 */
    --s-7: 3rem;
    /* 48 */
    --s-8: 4rem;
    /* 64 */

    /* Section rhythm */
    --spacing-sm: 40px;
    --spacing-md: 80px;
    --spacing-lg: 120px;
    --spacing-xl: 140px;

    /* --- Component Tokens --- */
    --card-padding: 32px;
    --card-radius: 0px;
    --card-elevation: 0px 12px 24px rgba(0, 0, 0, 0.04);
    --card-hover-elevation: 0px 16px 40px rgba(0, 0, 0, 0.08);

    /* --- Colors --- */
    --c-bg: #ffffff;
    --c-surface: #f0f0ea;
    --c-dark: #050505;
    --c-text: #141414;
    --c-body: #3a3a3a;
    --c-muted: #636363;
    --c-border: #e0e0de;
    --c-accent: #D4880F;
    --c-accent-dim: #7a4e0a;
    --c-accent-glow: rgba(212, 136, 15, 0.45);

    /* --- Radius --- */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-full: 9999px;

    /* --- Transitions --- */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.2s;
    --t-normal: 0.4s;
    --t-slow: 0.8s;
}


/* === LAYER 2: RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Selection */
::selection {
    background: var(--c-accent);
    color: var(--c-dark);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--s-4);
    background: var(--c-dark);
    color: var(--c-bg);
    padding: var(--s-3) var(--s-5);
    z-index: 9999;
    font-size: var(--text-sm);
    border-radius: var(--r-sm);
}

.skip-link:focus {
    top: var(--s-4);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}


/* === LAYER 8: STRUCTURE === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(var(--s-5), 5vw, var(--s-8));
    /* Increased bleeding edge padding */
}

.section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    position: relative;
}

/* Institutional Rhythm Backgrounds */
.bg-light {
    background: var(--c-surface);
    /* Light grey */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Crisp divider */
}

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

.bg-dark {
    background: var(--c-dark);
    color: #fff;
    /* Brand Signature: subtle manufacturing grid */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Section Anchors (Phase 1) */
.section-head {
    max-width: var(--container-reading);
    margin: 0 auto var(--spacing-md) auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-accent);
    margin-bottom: var(--s-3);
}

.section-label--light {
    color: var(--c-accent-glow);
}

.section-intro {
    font-size: var(--text-md);
    color: var(--c-muted);
    line-height: var(--lh-body);
    margin: var(--s-4) auto 0 auto;
    max-width: 65ch;
}

.bg-dark .section-intro {
    color: rgba(255, 255, 255, 0.7);
}

.section--tight {
    padding: var(--s-9) 0;
}

/* Positioning Statement â€” decisive, monumental */
.section--statement {
    background: var(--c-dark);
    color: #fff;
    padding: var(--s-11) 0;
    text-align: center;
}

.statement-block {
    max-width: 720px;
    margin: 0 auto;
}

.statement-line {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
    margin-bottom: var(--s-3);
    max-width: none;
    letter-spacing: -0.02em;
}

.statement-main {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-top: var(--s-6);
    margin-bottom: 0;
    max-width: none;
    letter-spacing: -0.03em;
}

/* Section closing line */
.section-closing {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--c-muted);
    text-align: center;
    margin-top: var(--s-8);
    margin-bottom: 0;
    max-width: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}


/* === LAYER 4: TYPOGRAPHY â€” authority hierarchy === */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    /* Tighter line-height for massive text */
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: -0.02em;
    margin-bottom: var(--s-4);
}

h1 {
    font-size: var(--text-h1);
    letter-spacing: -0.04em;
    /* Tighter tracking for hero */
}

h2 {
    font-size: var(--text-h2);
    letter-spacing: -0.03em;
}

h3 {
    font-size: var(--text-md);
    /* Linked to Subsection scale */
}

p {
    margin-bottom: var(--s-5);
    max-width: 65ch;
}

strong {
    color: var(--c-text);
    font-weight: 600;
}

.text-white {
    color: #fff;
}


/* === LAYER 5: COMPONENTS === */

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-4) var(--s-6);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    transition: all var(--t-fast) var(--ease-smooth);
    text-decoration: none;
    cursor: pointer;
}

.btn-dark {
    background: var(--c-dark);
    color: #fff;
    border-color: var(--c-dark);
}

.btn-dark:hover {
    background: #333;
    /* Removed translate transform to make it feel more solid/decisive */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-bright {
    background: var(--c-accent);
    color: var(--c-dark);
    border-color: var(--c-accent);
    font-weight: 700;
}

.btn-bright:hover {
    background: #e8a020;
    box-shadow: 0 4px 12px var(--c-accent-glow);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn:active {
    background: var(--c-accent-dim) !important;
}

/* Focus visible for accessibility (Standardized WCAG) */
:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2.5px solid var(--c-accent) !important;
    outline-offset: 3px !important;
    border-radius: var(--r-sm);
}

/* --- TAGS --- */
.tag {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-muted);
    padding: var(--s-1) var(--s-3);
    background: var(--c-surface);
    border-radius: var(--r-full);
    display: inline-block;
}

.tag--active {
    color: #16a34a;
    background: #f0fdf4;
}

.tag--active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    margin-right: 6px;
    vertical-align: middle;
}

.tag--planned {
    color: #d97706;
    background: #fffbeb;
}

.tag--planned::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid #d97706;
    margin-right: 6px;
    vertical-align: middle;
}

/* --- LINK ARROW --- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 2px;
    transition: all var(--t-fast) ease;
    margin-top: var(--s-4);
}

.link-arrow:hover {
    border-color: var(--c-accent);
    color: var(--c-accent-dim);
}

/* --- CARDS & GRIDS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--s-6);
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Fixed: Infrastructure balanced 2x2 layout inside the large media query */
    .card-grid--infra {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 1000px;
        margin: 0 auto;
    }
}

/* Strategic Application Domains needs 5 cards? Oh wait, it drops the 5th strangely on large grids. Let's make it auto-fit but limit its stretch */
#sectors .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
}

/* Removed redundant .card-grid--infra from here as it's now inside media queries */

.card {
    background: var(--c-surface);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--card-padding);
    border-radius: var(--card-radius);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--t-normal) var(--ease-out);
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-elevation);
    border-color: rgba(0, 0, 0, 0.1);
}

.card-image-wrap {
    margin: calc(var(--card-padding) * -1);
    margin-bottom: var(--s-4);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}

.card:hover .card-image-wrap img {
    transform: scale(1.04);
}

.card-icon {
    font-size: var(--text-md);
    margin-bottom: var(--s-3);
    color: var(--c-accent);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-md);
    margin-bottom: var(--s-2);
    color: var(--c-text);
}

.card-text {
    color: var(--c-muted);
    font-size: var(--text-sm);
    margin: 0;
    line-height: var(--lh-body);
    flex-grow: 1;
    /* Allow up to 4 lines before clipping */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-primary {
    background: var(--c-dark);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.card-primary .card-title {
    color: #fff;
}

.card-primary .card-text {
    color: rgba(255, 255, 255, 0.7);
}

.card-primary {
    /* Make it slightly wider if it's primary in entry grid */
    min-width: 320px;
}


/* === LAYER 6: SCROLL PROGRESS === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--c-accent);
    z-index: 10001;
    width: 0%;
    transition: none;
}


/* === LAYER 7: SMART HEADER === */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--s-5) 0;
    transition: all var(--t-normal) var(--ease-smooth);
    background: transparent;
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--s-3) 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--s-3);
}

.brand-logo {
    transition: max-width var(--t-normal) var(--ease-smooth);
    max-width: 240px;
    width: 100%;
}

#main-header.scrolled .brand-logo {
    max-width: 180px;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--c-text);
}

.logo-light {
    font-weight: 400;
}

/* Invert on hero (dark bg) */
#main-header:not(.scrolled) .logo,
#main-header:not(.scrolled) .header-context,
#main-header:not(.scrolled) .menu-trigger {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

#main-header:not(.scrolled) .header-slash {
    background: rgba(255, 255, 255, 0.25);
}

#main-header:not(.scrolled) .menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-slash {
    width: 1px;
    height: 20px;
    background: var(--c-border);
    transform: rotate(15deg);
}

.header-context {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-muted);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--t-normal) var(--ease-out);
    white-space: nowrap;
}

.header-context.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Language Toggle */
.lang-toggle {
    background: none;
    border: 1px solid var(--c-border);
    padding: 2px;
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: var(--r-full);
    cursor: pointer;
    z-index: 1002;
    position: relative;
    transition: border-color var(--t-normal) ease;
    min-height: 44px;
}

.lang-option {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: var(--r-full);
    color: var(--c-muted);
    transition: all var(--t-normal) ease;
    line-height: 1;
}

.lang-option--active {
    background: var(--c-dark);
    color: #fff;
}

#main-header:not(.scrolled) .lang-toggle {
    border-color: rgba(255, 255, 255, 0.25);
}

#main-header:not(.scrolled) .lang-option {
    color: rgba(255, 255, 255, 0.45);
}

#main-header:not(.scrolled) .lang-option--active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lang-toggle:hover {
    border-color: var(--c-accent);
}

/* Menu Trigger */
.menu-trigger {
    background: none;
    border: 1px solid var(--c-border);
    padding: var(--s-2) var(--s-4);
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--r-sm);
    transition: all var(--t-fast) ease;
    color: var(--c-text);
    z-index: 1002;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    position: relative;
}

.menu-trigger:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 16px;
    height: 12px;
}

.menu-icon .bar {
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform var(--t-normal) var(--ease-out);
    transform-origin: center;
}

/* Open State */
body.menu-open .menu-trigger {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

body.menu-open .menu-icon .bar:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

body.menu-open .menu-icon .bar:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}


/* === LAYER 8: OVERLAY NAV === */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    z-index: 1001;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-normal) var(--ease-smooth);
}

body.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: all;
}

body.menu-open {
    overflow: hidden;
}

/* Lock scroll */

.overlay-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: var(--s-8);
}

.overlay-nav {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    padding: var(--s-8) 0;
    margin: auto 0;
}

.overlay-link {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3.25rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    transition: all var(--t-normal) var(--ease-out);
    display: block;
    padding: var(--s-2) 0;
    transform: translateX(0);
    position: relative;
}

.overlay-link:hover {
    color: #fff;
    transform: translateX(var(--s-6));
}

.overlay-link.active-section {
    color: #fff;
    transform: translateX(var(--s-4));
}

.overlay-link.active-section::before {
    content: '';
    position: absolute;
    left: calc(var(--s-5) * -1);
    top: 50%;
    transform: translateY(-50%);
    width: var(--s-3);
    height: 4px;
    background: var(--c-accent);
    border-radius: var(--r-full);
}

.overlay-cta {
    color: var(--c-accent) !important;
    font-family: var(--font-mono);
    font-size: 1.25rem !important;
    margin-top: var(--s-7);
    padding: var(--s-4) var(--s-6);
    border: 1px solid var(--c-accent);
    display: inline-block;
    border-radius: var(--r-sm);
}

.overlay-cta:hover {
    background: var(--c-accent);
    color: var(--c-dark) !important;
    transform: none;
}

.overlay-footer {
    padding: var(--s-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding-bottom: var(--s-10);
}

.overlay-footer .lang-toggle {
    border-color: rgba(255, 255, 255, 0.25);
}

.overlay-footer .lang-option {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    padding: var(--s-3) var(--s-5);
}

.overlay-footer .lang-toggle {
    min-height: 56px;
}

.overlay-footer .lang-option--active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}


/* === LAYER 9: HERO â€” commanding, structural === */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: var(--c-dark);
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.65) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    /* 12 columns max */
    padding-top: clamp(7rem, 16vh, 12rem);
    padding-bottom: clamp(5rem, 12vh, 10rem);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-accent);
    margin-bottom: var(--s-6);
    display: block;
    font-weight: 500;
}

.hero-title {
    color: #fff;
    margin-bottom: var(--s-5);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    font-size: var(--text-h1);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 100%;
    /* 12 coll max */
}

.hero-intro {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: var(--text-h3);
    max-width: 600px;
    /* 6-col max */
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.credibility-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: var(--s-8);
    padding-top: var(--s-5);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
    width: 100%;
}

/* Credibility items â€” architectural fact row */
.credibility-item {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--t-fast) ease;
    padding: var(--s-2) var(--s-5);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 1.4;
}

.credibility-item:first-child {
    padding-left: 0;
}

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

.credibility-item:hover {
    color: var(--c-accent);
}

.hero-ctas {
    display: flex;
    gap: var(--s-5);
    align-items: center;
    flex-wrap: wrap;
    margin: var(--s-6) 0 var(--s-8) 0;
    max-width: 480px;
    /* 4-col max */
}

.hero-ctas .btn-bright {
    padding: var(--s-5) var(--s-7);
    font-size: var(--text-sm);
}

.hero-ctas .btn-ghost {
    padding: var(--s-4) var(--s-6);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: var(--s-7);
    left: var(--s-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}


/* === LAYER 10: SECTIONS === */

/* Section Head */
.section-head {
    margin-bottom: var(--s-8);
    max-width: 700px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--c-accent-dim);
    margin-bottom: var(--s-3);
    display: block;
}

.section-head h2 {
    margin-bottom: var(--s-5);
}

.section-label--light {
    color: var(--c-accent);
}

.section-intro {
    font-size: 1.15rem;
    color: var(--c-body);
    max-width: 65ch;
    line-height: 1.55;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--s-8);
}

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-accent);
    margin-bottom: var(--s-3);
}

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

.section-cta {
    margin-top: var(--s-9);
    text-align: center;
}

/* --- TRUST STRIPS (Logos) --- */
.trust-strip {
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: var(--s-6) 0;
    background: transparent;
}

.trust-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-5);
}

@media (min-width: 768px) {
    .trust-inner {
        flex-direction: row;
        justify-content: center;
        gap: var(--s-10);
    }
}

.trust-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-muted);
    white-space: nowrap;
    opacity: 0.8;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--s-6);
}

@media (min-width: 768px) {
    .trust-logos {
        gap: var(--s-8);
    }
}

.trust-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--c-body);
    opacity: 0.7;
    transition: opacity var(--t-fast) ease, transform var(--t-fast) ease;
    cursor: default;
    position: relative;
}

@media (min-width: 768px) {
    .trust-logo:not(:last-child)::after {
        content: "";
        position: absolute;
        right: calc(var(--s-4) * -1);
        top: 20%;
        height: 60%;
        width: 1px;
        background: var(--c-border);
        opacity: 0.5;
    }
}

.trust-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Light mode overrides if needed */
@media (prefers-color-scheme: light) {
    .trust-strip {
        border-color: rgba(0, 0, 0, 0.05);
    }

    .trust-logo {
        color: var(--c-dark);
    }
}

/* --- MODEL GRAPHIC --- */
.model-frame {
    background: var(--c-dark);
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 5vw, 6rem);
    border-radius: var(--r-md);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-8);
    position: relative;
    overflow: hidden;
    /* Soften the inner box to not look cut-off */
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

@media (min-width: 900px) {
    .model-frame {
        grid-template-columns: 1fr 1fr;
    }
}

.model-bg-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background: url('assets/images/context-bg.jpg') center/cover;
    opacity: 0.15;
    mix-blend-mode: luminosity;
    mask-image: linear-gradient(to right, transparent, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
}

.model-content {
    position: relative;
    z-index: 2;
    align-self: center;
}

.model-title {
    color: #fff;
    margin-bottom: var(--s-6);
}

.model-lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-md);
    line-height: 1.6;
    max-width: 45ch;
    margin: 0;
}

.model-stack {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    position: relative;
    padding-left: var(--s-5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    align-self: center;
    z-index: 2;
}

.model-layer {
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform var(--t-fast) var(--ease-out);
}

.model-layer::before {
    content: '';
    position: absolute;
    left: calc(var(--s-5) * -1 - 1px);
    top: 50%;
    width: var(--s-5);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.model-layer--dominant {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--c-accent);
    transform: scale(1.02) translateX(var(--s-2));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.model-layer--dominant::before {
    background: var(--c-accent);
    width: calc(var(--s-5) + var(--s-2));
    left: calc((var(--s-5) + var(--s-2)) * -1 - 1px);
}

.model-layer-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--s-2);
}

.model-layer--dominant .model-layer-label {
    color: var(--c-accent);
}

.model-layer-title {
    font-size: var(--text-lg);
    margin-bottom: var(--s-1);
    color: #fff;
    font-family: var(--font-display);
}

.model-layer--dominant .model-layer-title {
    font-size: var(--text-xl);
}

.model-layer-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.model-layer--dominant .model-layer-text {
    color: rgba(255, 255, 255, 0.8);
}

/* --- PILOT TO PROCUREMENT --- */
.engine-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-10);
    align-items: center;
}

.engine-visual {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.engine-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    display: block;
}

.engine-steps {
    display: flex;
    flex-direction: column;
    gap: var(--s-8);
}

.step-module {
    position: relative;
    padding-left: var(--s-8);
}

.step-marker {
    position: absolute;
    left: 0;
    top: -4px;
    font-family: var(--font-mono);
    color: var(--c-accent);
    font-size: var(--text-h3);
    font-weight: 300;
}

.step-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: var(--s-2);
    color: var(--c-text);
}

.step-desc {
    color: var(--c-muted);
    font-size: var(--text-md);
    line-height: var(--lh-body);
    margin: 0;
    max-width: 45ch;
}

/* --- IMPACT METRICS --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
    text-align: center;
}

.impact-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-value {
    font-size: 72px;
    font-family: var(--font-display);
    line-height: 1;
    color: var(--c-accent);
    margin-bottom: var(--s-3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- FOOTER --- */
#contact {
    background: var(--c-dark);
    color: #fff;
    padding: var(--s-11) 0 var(--s-6) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--s-8);
    margin-bottom: var(--s-10);
}

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

.footer-brand .logo {
    color: #fff;
    margin-bottom: var(--s-4);
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--lh-body);
    font-size: var(--text-sm);
    max-width: 40ch;
}

.footer-links h4,
.footer-contact h4,
.newsletter h4 {
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-md);
    margin-bottom: var(--s-5);
}

.footer-links a,
.footer-contact-item {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--s-3);
    transition: color var(--t-fast) ease;
    text-decoration: none;
    font-size: var(--text-sm);
}

.footer-links a:hover,
a.footer-contact-item:hover {
    color: var(--c-accent);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-sm);
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--s-6);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- PROSE CONTENT --- */
.prose-content {
    max-width: 65ch;
    margin-bottom: var(--s-8);
}

.prose-content p {
    margin-bottom: var(--s-5);
}


/* --- SCROLL TO TOP --- */
.scroll-top {
    position: fixed;
    bottom: var(--s-6);
    right: var(--s-6);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-fast) ease, visibility var(--t-fast) ease, transform var(--t-fast) ease;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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


/* --- CARD HOVER STATES --- */
.card {
    transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}

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


/* --- STATEMENT SECTION --- */
.section--statement {
    text-align: center;
}

.statement-main {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.3;
    font-weight: 600;
    color: var(--c-text);
}


/* --- EYEBROW / META --- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    display: block;
    margin-bottom: var(--s-3);
}

.card-primary .eyebrow {
    color: var(--c-accent);
}


/* === RESPONSIVE OVERRIDES === */
@media (max-width: 900px) {
    .engine-layout {
        grid-template-columns: 1fr;
        gap: var(--s-6);
    }

    .engine-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-6);
        padding: var(--s-7) 0;
    }

    .metric-value {
        font-size: 48px;
    }

    .trust-inner {
        flex-direction: column;
        text-align: center;
    }
}

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


/* --- CARD CTA (engagement buttons) --- */
.card-cta {
    margin-top: var(--s-5);
    align-self: flex-start;
}


/* --- FOOTER SOCIAL --- */
.footer-social {
    margin-top: var(--s-4);
}


/* --- SECTION STATEMENT --- */
.section--statement {
    padding: var(--s-8) 0;
    background: var(--c-surface);
}