/* ==========================================================================
   RRD TECH & BOTANICALS SERVICES LIMITED - LIVING ATELIER 2.0 DESIGN SYSTEM
   Domain: rrdtechbotanicals.com
   Theme: Luxury Botanical Architecture × Spatial Engineering × Botanical Intelligence
   ========================================================================== */

:root {
    /* 1. 70/20/7/3 Strict Luxury Palette Allocation */
    /* 70% Foundation: Forest Base & Forest Onyx */
    --bg-base: #040d0a;              /* Deep Forest Black */
    --bg-surface: #071712;           /* Forest Onyx */
    --bg-elevated: #0b221b;          /* Royal Pine Base */
    --surface-solid: #091a14;
    --surface-solid-hover: #0f2c22;

    /* 20% Neutral Architectural Accents: Travertine & Alabaster */
    --travertine: #ede7dc;           /* Travertine Cream */
    --travertine-light: #f7f5f0;     /* Warm Alabaster */
    --travertine-dim: #cfc8bc;
    --text-pure: #ffffff;
    --text-main: #f7f5f0;           /* Warm Alabaster */
    --text-cream: #ede7dc;          /* Travertine Cream */
    --text-muted: #94aaa1;          /* Soft Sage Grey */
    --text-dim: #5c746b;            /* Deep Pine Grey */

    /* 7% Botanical Emerald */
    --emerald-botanical: #52b788;
    --emerald-vibrant: #74c69d;
    --emerald-deep: #2d6a4f;
    --emerald-glow: rgba(82, 183, 136, 0.28);
    --emerald-glow-strong: rgba(82, 183, 136, 0.55);

    /* 3% Champagne Gold (Reserved strictly for precision, active states, key numbers & primary CTAs) */
    --gold: #d4af37;
    --gold-bright: #e5c07b;
    --gold-light: #f3e8c9;
    --gold-deep: #997a23;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --gold-glow-strong: rgba(212, 175, 55, 0.50);

    /* 2. Three Primary Material Surface Families */
    --surface-frosted-bg: rgba(7, 23, 18, 0.72);
    --surface-frosted-border: rgba(255, 255, 255, 0.08);
    --surface-frosted-border-active: rgba(212, 175, 55, 0.45);
    --surface-hud-bg: rgba(4, 13, 10, 0.85);
    --surface-hud-border: rgba(82, 183, 136, 0.3);

    /* 3. Typography Hierarchy */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* 4. Radii & Shadows */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-glass: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --shadow-gold: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px var(--gold-glow);
    --shadow-emerald: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px var(--emerald-glow);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    --container-max: 1280px;

    /* 5. Fluid Spacing System */
    --space-3xs: clamp(0.25rem, 0.5vw, 0.375rem);
    --space-2xs: clamp(0.375rem, 0.8vw, 0.5rem);
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 1.5vw, 1rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2.25rem);
    --space-xl: clamp(2rem, 4vw, 3.25rem);
    --space-2xl: clamp(3rem, 6vw, 4.75rem);
    --space-3xl: clamp(4rem, 8vw, 6.5rem);
}

/* Light / Day Garden Mode */
html.light-theme {
    --bg-base: #f9f8f5;
    --bg-surface: #ffffff;
    --bg-elevated: #f2efe9;
    --surface-solid: #ffffff;
    --surface-solid-hover: #f5f2eb;
    --surface-frosted-bg: rgba(255, 255, 255, 0.88);
    --surface-frosted-border: rgba(0, 0, 0, 0.08);
    --surface-hud-bg: rgba(245, 242, 235, 0.95);

    --text-pure: #0e1c16;
    --text-main: #142820;
    --text-cream: #284438;
    --text-muted: #4e6a5f;
    --text-dim: #789287;

    --gold: #b38b1f;
    --gold-bright: #997412;
    --gold-glow: rgba(179, 139, 31, 0.2);
    --shadow-glass: 0 20px 45px rgba(18, 38, 29, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-base);
    overflow-x: clip;
    max-width: 100vw;
    line-height: 1.65;
    position: relative;
    touch-action: pan-y;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================================================
   3 PRIMARY MATERIAL SURFACE CLASSES
   ========================================================================== */
.surface-solid {
    background: var(--surface-solid);
    border: 1px solid var(--surface-frosted-border);
    border-radius: var(--radius-lg);
    position: relative;
}

.surface-frosted {
    background: var(--surface-frosted-bg);
    backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid var(--surface-frosted-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    position: relative;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.surface-frosted:hover {
    border-color: var(--surface-frosted-border-active);
}

.surface-hud {
    background: var(--surface-hud-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-hud-border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
}

/* ==========================================================================
   CONTROLLED AMBIENT BOTANICAL LIGHTING
   ========================================================================== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    max-width: 80vw;
    max-height: 80vw;
    transition: all 1s ease;
}

.glow-orb-1 {
    top: -8%;
    left: -5%;
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    background: radial-gradient(circle, rgba(45, 106, 79, 0.3) 0%, rgba(11, 46, 36, 0.1) 50%, transparent 75%);
}

.glow-orb-2 {
    top: 35%;
    right: -6%;
    width: min(550px, 80vw);
    height: min(550px, 80vw);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.glow-orb-3 {
    bottom: 5%;
    left: 10%;
    width: min(650px, 80vw);
    height: min(650px, 80vw);
    background: radial-gradient(circle, rgba(82, 183, 136, 0.2) 0%, transparent 70%);
}

/* ==========================================================================
   DATA PROVENANCE & CREDIBILITY BADGES
   ========================================================================== */
.badge-provenance-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(82, 183, 136, 0.15);
    border: 1px solid var(--emerald-botanical);
    color: var(--emerald-vibrant);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-provenance-simulated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-provenance-documented {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(237, 231, 220, 0.12);
    border: 1px solid var(--travertine-dim);
    color: var(--travertine);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-provenance-amended {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(235, 140, 52, 0.15);
    border: 1px solid #eb8c34;
    color: #ffaa5a;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   TOP ATELIER STATUS BAR & HEADER
   ========================================================================== */
.top-hud-bar {
    background: rgba(4, 13, 10, 0.9);
    border-bottom: 1px solid var(--surface-frosted-border);
    backdrop-filter: blur(16px);
    font-size: 0.75rem;
    padding: 8px 0;
    position: relative;
    z-index: 100;
}

.top-hud-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-cream);
}

.live-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-botanical);
    box-shadow: 0 0 10px var(--emerald-botanical);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.hud-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hud-location {
    color: var(--text-muted);
}

.hud-contact-link {
    color: var(--gold-bright);
    font-family: var(--font-mono);
}

.hud-contact-link:hover {
    color: var(--travertine-light);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(4, 13, 10, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-frosted-border);
    transition: all var(--transition-fast);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--space-md);
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol img {
    width: 34px;
    height: 34px;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-pure);
}

.brand-tagline {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Product Navigation Model */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-cream);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-bright);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle-btn {
    background: var(--surface-solid);
    border: 1px solid var(--surface-frosted-border);
    color: var(--text-cream);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

.theme-toggle-btn svg { width: 18px; height: 18px; }
.sun-icon { display: block; }
.moon-icon { display: none; }
html.light-theme .sun-icon { display: none; }
html.light-theme .moon-icon { display: block; }

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-pure);
    transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(4, 13, 10, 0.96);
    backdrop-filter: blur(28px);
    border-bottom: 1px solid var(--surface-frosted-border);
    padding: 24px var(--space-md);
    flex-direction: column;
    gap: 16px;
    z-index: 98;
}

.mobile-drawer.open { display: flex; }

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-cream);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
    color: var(--gold-bright);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: #040d0a;
}

.btn-primary:hover {
    background: var(--gold-bright);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--surface-frosted-border);
    color: var(--text-pure);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background: #20ba59;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
}

.btn-sm { padding: 8px 16px; font-size: 0.78rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

/* ==========================================================================
   LIFECYCLE BANNER
   ========================================================================== */
.lifecycle-rail {
    background: rgba(7, 23, 18, 0.85);
    border-bottom: 1px solid var(--surface-frosted-border);
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.lifecycle-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.lifecycle-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-cream);
}

.lifecycle-step.active {
    color: var(--gold-bright);
    font-weight: 700;
}

.lifecycle-arrow {
    color: var(--emerald-botanical);
    opacity: 0.6;
}

/* ==========================================================================
   REALM 01: THE ARRIVAL (HERO SECTION)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: calc(var(--space-3xl) + 20px) 0 var(--space-2xl);
    min-height: 85vh;
    min-height: 85dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-backdrop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    z-index: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 13, 10, 0.5) 0%, rgba(4, 13, 10, 0.92) 85%, #040d0a 100%);
    z-index: 1;
}

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

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(11, 34, 27, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw + 0.5rem, 4.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-pure);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.02rem, 1.6vw, 1.28rem);
    color: var(--travertine-light);
    max-width: 780px;
    margin: 0 auto var(--space-lg);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.hero-cinematic-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: var(--space-lg);
}

.hero-strip-card {
    padding: 14px 16px;
    text-align: left;
}

.hero-strip-card .strip-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-bright);
    display: block;
    margin-bottom: 4px;
}

.hero-strip-card .strip-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-pure);
}

/* ==========================================================================
   REALM 02: THE RRD CONTROL SURFACE
   ========================================================================== */
.control-surface-deck {
    padding: var(--space-xl) var(--space-md);
}

.control-surface-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--surface-frosted-border);
    flex-wrap: wrap;
    gap: 16px;
}

.control-site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.site-switch-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-frosted-border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.site-switch-pill:hover, .site-switch-pill.active {
    background: rgba(212, 175, 55, 0.16);
    border-color: var(--gold);
    color: var(--gold-light);
}

.control-metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 24px;
}

.metric-tile {
    padding: 16px;
    background: rgba(4, 13, 10, 0.75);
    border: 1px solid var(--surface-frosted-border);
    border-radius: var(--radius-md);
    position: relative;
}

.metric-tile-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.metric-tile-value {
    font-family: var(--font-mono);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-pure);
    display: block;
}

.metric-tile-status {
    font-size: 0.72rem;
    color: var(--emerald-vibrant);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

/* ==========================================================================
   REALM 03: ARCHITECTURAL BENTO GRID (NON-UNIFORM HIERARCHY)
   ========================================================================== */
.architectural-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: var(--space-lg);
}

.bento-hero {
    grid-column: span 8;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.bento-feature {
    grid-column: span 4;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-stat {
    grid-column: span 3;
    padding: 22px;
}

.bento-spec {
    grid-column: span 5;
    padding: 24px;
}

.bento-evidence {
    grid-column: span 4;
    padding: 24px;
}

.bento-thumb-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.6s ease;
}

.bento-hero:hover .bento-thumb-bg {
    transform: scale(1.03);
}

.bento-overlay-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 13, 10, 0.92) 80%);
}

/* ==========================================================================
   REALM 04: BOTANICAL INTELLIGENCE DIAGNOSTIC ENGINE
   ========================================================================== */
.botanical-intelligence-matrix {
    padding: var(--space-xl) 0;
}

.bio-diag-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    margin-top: var(--space-lg);
}

.bio-input-panel {
    padding: 28px;
}

.bio-form-row {
    margin-bottom: 18px;
}

.bio-form-row label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-cream);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bio-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(4, 13, 10, 0.8);
    border: 1px solid var(--surface-frosted-border);
    border-radius: var(--radius-md);
    color: var(--text-pure);
    font-family: var(--font-body);
    font-size: 0.92rem;
}

.bio-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
}

.bio-result-terminal {
    padding: 28px;
    background: #030a08;
    border: 1px solid var(--surface-hud-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(82, 183, 136, 0.2);
    margin-bottom: 20px;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--emerald-vibrant);
}

.bio-outputs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.bio-output-cell {
    background: rgba(7, 23, 18, 0.7);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-cell-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.bio-cell-val {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-pure);
}

.bio-provenance-box {
    padding: 12px 16px;
    background: rgba(4, 13, 10, 0.85);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ==========================================================================
   REALM 05: BIM DIGITAL TWIN & LAYER MATRIX
   ========================================================================== */
.twin-studio-frame {
    padding: var(--space-lg);
    overflow: hidden;
}

.twin-layer-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: rgba(4, 13, 10, 0.85);
    border-bottom: 1px solid var(--surface-frosted-border);
}

.twin-layer-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--surface-frosted-border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.twin-layer-btn.active {
    background: rgba(82, 183, 136, 0.2);
    border-color: var(--emerald-botanical);
    color: var(--emerald-vibrant);
}

.twin-viewport-deck {
    position: relative;
    height: 480px;
    background: #020604;
    overflow: hidden;
}

.twin-canvas {
    width: 100%;
    height: 100%;
}

.twin-hud-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

/* ==========================================================================
   REALM 06: 4-STAGE TRANSFORMATION ENGINE
   ========================================================================== */
.transformation-engine-card {
    padding: 0;
    overflow: hidden;
    margin-top: var(--space-lg);
}

.transformation-stage-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(4, 13, 10, 0.9);
    border-bottom: 1px solid var(--surface-frosted-border);
}

.stage-nav-pill {
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--surface-frosted-border);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.stage-nav-pill:last-child { border-right: none; }

.stage-nav-pill:hover, .stage-nav-pill.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    border-bottom: 2px solid var(--gold);
}

.stage-nav-pill .stage-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold);
    display: block;
    margin-bottom: 2px;
}

.transformation-viewport-box {
    position: relative;
    min-height: 420px;
    background: #020705;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.stage-display-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

.stage-meta-strip {
    position: relative;
    z-index: 2;
    padding: 24px 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 13, 10, 0.92) 75%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.stage-annotation-chip {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(4, 13, 10, 0.85);
    border: 1px solid var(--surface-frosted-border);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-cream);
}

/* ==========================================================================
   REALM 07: ARCHITECTURAL PROJECT DOSSIERS (CASE STUDIES)
   ========================================================================== */
.dossiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: var(--space-lg);
}

.dossier-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dossier-thumb-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.dossier-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dossier-card:hover .dossier-thumb-img {
    transform: scale(1.05);
}

.dossier-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dossier-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--text-pure);
    margin-bottom: 8px;
}

.dossier-location {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-bright);
    margin-bottom: 14px;
}

.dossier-specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ==========================================================================
   REALM 08: EXECUTIVE PROJECT CONFIGURATOR
   ========================================================================== */
.configurator-suite {
    padding: var(--space-2xl) 0;
}

.configurator-wizard-card {
    padding: 32px;
    margin-top: var(--space-lg);
}

.wizard-steps-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--surface-frosted-border);
    padding-bottom: 16px;
    overflow-x: auto;
}

.wizard-step-node {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-step-node.active {
    color: var(--gold-bright);
    font-weight: 700;
}

.config-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.config-option-card {
    padding: 18px;
    background: rgba(4, 13, 10, 0.7);
    border: 1px solid var(--surface-frosted-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.config-option-card:hover, .config-option-card.selected {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.config-estimate-output {
    padding: 24px;
    background: #030806;
    border: 1px solid var(--surface-frosted-border-active);
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

/* ==========================================================================
   FOOTER (HAUTE-COUTURE ARCHITECTURAL)
   ========================================================================== */
.site-footer {
    background: rgba(4, 13, 10, 0.98);
    border-top: 1px solid var(--surface-frosted-border);
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--surface-frosted-border);
    margin-bottom: 30px;
}

.footer-nav-col h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-cream);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-nav-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-col a {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-nav-col a:hover { color: var(--gold-bright); }

.office-location {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================================
   FINE-POINTER DESKTOP 3D TILT ISOLATION
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    .surface-frosted[data-tilt] {
        transform: perspective(1000px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg));
        will-change: transform;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (EXHAUSTIVE MOBILE-FIRST HARDENING)
   ========================================================================== */
@media (max-width: 1200px) {
    .architectural-bento-grid { grid-template-columns: repeat(6, 1fr); }
    .bento-hero { grid-column: span 6; }
    .bento-feature { grid-column: span 6; }
    .bento-stat { grid-column: span 3; }
    .bento-spec { grid-column: span 3; }
    .bento-evidence { grid-column: span 6; }
    .control-metrics-grid { grid-template-columns: repeat(3, 1fr); }
    .dossiers-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .bio-diag-grid { grid-template-columns: 1fr; }
    .transformation-stage-nav { grid-template-columns: repeat(2, 1fr); }
    .stage-nav-pill { border-bottom: 1px solid var(--surface-frosted-border); }
    .config-options-grid { grid-template-columns: 1fr; }
}

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

    .hero-title { font-size: 2.2rem; }
    .hero-cinematic-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
    .control-metrics-grid { grid-template-columns: 1fr 1fr; }
    .architectural-bento-grid { grid-template-columns: 1fr; }
    .bento-hero, .bento-feature, .bento-stat, .bento-spec, .bento-evidence { grid-column: span 1; }
    .dossiers-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .top-hud-bar { display: none; }
    .twin-viewport-deck { height: 360px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .control-metrics-grid { grid-template-columns: 1fr; }
    .transformation-stage-nav { grid-template-columns: 1fr; }
    .bio-outputs-grid { grid-template-columns: 1fr; }
    .hero-cinematic-strip { grid-template-columns: 1fr; }
}
