/* ==========================================================================
   STUDIO VESPER — ARCHITECTURAL PRACTICE
   Design System & Editorial Tectonic Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    /* Primary Slate & Architectural Core */
    --bg-deep: #0e0e11;
    --bg-surface: #141418;
    --bg-card: #1a1a21;
    --bg-elevated: #22222c;
    --bg-overlay: rgba(14, 14, 17, 0.88);

    /* Limestone, Ashlar & Tectonic Mineral Tones */
    --stone-limestone: #f4efe6;
    --stone-ashlar: #e7e0d3;
    --stone-sand: #d8cebe;
    --stone-travertine: #c8b9a2;
    --stone-slate: #7d7a75;
    
    /* Architectural Brass & Ochre Accents */
    --gold: #c8a265;
    --gold-bright: #dfba7c;
    --gold-dim: #987844;
    --gold-glow: rgba(200, 162, 101, 0.14);
    --gold-border: rgba(200, 162, 101, 0.3);

    /* Linework & Blueprint Grid */
    --line-subtle: rgba(244, 239, 230, 0.08);
    --line-mid: rgba(244, 239, 230, 0.16);
    --line-bright: rgba(244, 239, 230, 0.3);
    --grid-blueprint: rgba(244, 239, 230, 0.04);
    --grid-accent: rgba(200, 162, 101, 0.09);

    /* Typography Shades */
    --text-main: #f7f5f0;
    --text-muted: #a39f97;
    --text-dim: #6d6a64;
    --text-inverse: #0e0e11;

    /* Fonts */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-monument: 'Cinzel', serif;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Mono', 'IBM Plex Mono', monospace;

    /* Transitions & Curves */
    --ease-out-arch: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s var(--ease-out-arch);
    --transition-fast: 0.2s ease;

    /* Spacing & Layout */
    --container-max: 1360px;
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;
}

/* CAD Technical Blueprint Mode Theme Overrides */
[data-blueprint-mode="true"] {
    --bg-deep: #071324;
    --bg-surface: #0b1c36;
    --bg-card: #0f2547;
    --bg-elevated: #15325c;
    --bg-overlay: rgba(7, 19, 36, 0.92);

    --text-main: #e2f0fb;
    --text-muted: #8cb2d6;
    --text-dim: #4d7a9e;

    --gold: #4aa3df;
    --gold-bright: #7bc3f8;
    --gold-dim: #2d6b96;
    --gold-glow: rgba(74, 163, 223, 0.18);
    --gold-border: rgba(74, 163, 223, 0.4);

    --line-subtle: rgba(74, 163, 223, 0.15);
    --line-mid: rgba(74, 163, 223, 0.28);
    --line-bright: rgba(74, 163, 223, 0.5);
    --grid-blueprint: rgba(74, 163, 223, 0.08);
    --grid-accent: rgba(74, 163, 223, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-deep);
    color: var(--text-main);
}

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Blueprint Grid */
.blueprint-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-size: 40px 40px, 40px 40px, 200px 200px, 200px 200px;
    background-image: 
        linear-gradient(to right, var(--grid-blueprint) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-blueprint) 1px, transparent 1px),
        linear-gradient(to right, var(--grid-accent) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-accent) 1px, transparent 1px);
    opacity: 0.85;
}

/* Technical Drafting Coordinate Stamp Bar (Fixed Bottom-Left) */
.drafting-coordinates-stamp {
    position: fixed;
    bottom: 1.25rem;
    left: 2rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    background: rgba(14, 14, 17, 0.75);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

@media (max-width: 900px) {
    .drafting-coordinates-stamp {
        display: none;
    }
}

/* Universal Typography Classes */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 400;
    letter-spacing: -0.015em;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.section-subtext {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.6;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.85rem;
}

.eyebrow-num {
    font-weight: 700;
}

.eyebrow-line {
    width: 28px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   03. HEADER & ARCHITECTURAL MASTHEAD
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-overlay);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-subtle);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-symbol {
    color: var(--gold);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.brand-link:hover .brand-symbol {
    transform: rotate(45deg);
}

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

.brand-name {
    font-family: var(--font-monument);
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--text-main);
}

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

/* Studio Telemetry Ticker */
.studio-telemetry {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: pulseGlow 2s infinite ease-in-out;
}

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

.telemetry-sep {
    color: var(--line-bright);
}

@media (max-width: 1100px) {
    .studio-telemetry {
        display: none;
    }
}

/* Primary Nav */
.primary-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-item {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.25s ease;
}

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

.nav-item:hover::after {
    width: 100%;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Blueprint CAD Mode Button */
.btn-blueprint-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid var(--line-mid);
    color: var(--text-muted);
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-blueprint-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
}

[data-blueprint-mode="true"] .btn-blueprint-toggle {
    background: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold-bright);
}

.btn-cta-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: #000;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}

.btn-cta-nav:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
}

@media (max-width: 580px) {
    .btn-cta-nav span {
        display: none;
    }
    .btn-cta-nav {
        padding: 0.55rem 0.75rem;
    }
}

/* Mobile Menu Hamburger Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

@media (max-width: 960px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--line-mid);
    z-index: 1050;
    transition: right 0.4s var(--ease-out-arch);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-drawer.is-open {
    right: 0;
}

.mobile-drawer-inner {
    padding: 6rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
}

.mobile-nav-link:hover {
    color: var(--gold);
    transform: translateX(6px);
}

.drawer-contact-snippet {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--line-subtle);
    padding-top: 1.5rem;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   04. HERO SECTION — MONOGRAPH STATEMENT
   -------------------------------------------------------------------------- */
.hero-stage {
    min-height: 100vh;
    padding: 9.5rem 0 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=85');
    background-size: cover;
    background-position: center 35%;
    opacity: 0.28;
    filter: grayscale(40%) contrast(110%);
}

.hero-gradient-scrim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 75% 30%, rgba(20, 20, 24, 0.4) 0%, var(--bg-deep) 85%);
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line-subtle);
}

.blueprint-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    color: var(--gold);
}

.doc-sep {
    color: var(--line-bright);
}

.doc-title {
    color: var(--text-muted);
}

.drafting-scale-indicator {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.scale-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.scale-bar-line {
    width: 60px;
    height: 3px;
    background: repeating-linear-gradient(
        to right,
        var(--gold),
        var(--gold) 10px,
        transparent 10px,
        transparent 20px
    );
    border: 1px solid var(--line-mid);
}

@media (max-width: 768px) {
    .drafting-scale-indicator {
        display: none;
    }
}

.hero-body {
    max-width: 980px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 5.2rem);
    line-height: 1.08;
    color: var(--text-main);
    margin-bottom: 1.75rem;
    font-weight: 400;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.28rem);
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.65;
    margin-bottom: 2.75rem;
}

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

.btn-primary-arch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-main);
    color: var(--text-inverse);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--text-main);
}

.btn-primary-arch:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-secondary-arch {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--line-mid);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1rem 1.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-secondary-arch:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    background: rgba(200, 162, 101, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
}

/* Metrics Benchmarks Bar */
.hero-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--line-subtle);
}

@media (max-width: 900px) {
    .hero-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 520px) {
    .hero-metrics-bar {
        grid-template-columns: 1fr;
    }
}

.metric-block {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    line-height: 1;
    color: var(--gold-bright);
    margin-bottom: 0.35rem;
}

.accent-glyph {
    font-family: var(--font-sans);
    font-size: 0.7em;
    color: var(--gold);
    margin-left: 2px;
}

.metric-label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.metric-caption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Scroll Crosshair Indicator */
.scroll-crosshair {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 2.5rem auto 0;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.crosshair-icon {
    animation: rotateSlow 16s linear infinite;
    display: flex;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   05. SELECTED WORKS — ARCHITECTURAL ARCHIVE (GALLERY & CAD FLOORPLANS)
   -------------------------------------------------------------------------- */
.section-works {
    padding: 8rem 0;
    border-top: 1px solid var(--line-subtle);
    position: relative;
}

.works-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.filter-controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

@media (max-width: 860px) {
    .filter-controls-wrapper {
        align-items: flex-start;
        width: 100%;
    }
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--line-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
}

.filter-pill:hover,
.filter-pill.active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
}

.global-view-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-sm);
}

.toggle-caption {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    padding-left: 0.4rem;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: var(--gold);
    color: #000;
    font-weight: 600;
}

/* Projects Grid Layout */
.projects-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

@media (max-width: 960px) {
    .projects-grid-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.project-arch-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out-arch), border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.project-arch-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-bright);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Card Visual Container (Dual Layer: Photo + Blueprint CAD) */
.card-visual-container {
    height: 420px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-deep);
}

.visual-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s var(--ease-out-arch), transform 0.6s var(--ease-out-arch);
}

.layer-photo {
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 2;
}

.project-arch-card:hover .layer-photo {
    transform: scale(1.03);
}

.photo-overlay-tag {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(14, 14, 17, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-subtle);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--text-main);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
}

/* CAD Blueprint Layer (SVG Floorplan / Elevation) */
.layer-blueprint {
    opacity: 0;
    z-index: 3;
    background: #08121f;
    color: #4aa3df;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s var(--ease-out-arch);
}

.cad-drawing-svg {
    width: 100%;
    height: 100%;
    color: #5bb3eb;
}

.cad-text-room {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    fill: #7bc5f8;
}

.cad-text-dim {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    fill: #3e88ba;
    letter-spacing: 0.05em;
}

.cad-text-stamp {
    font-family: 'Space Mono', monospace;
    font-size: 8px;
    fill: #447498;
    letter-spacing: 0.1em;
}

.blueprint-stamp-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(8, 18, 31, 0.9);
    border: 1px solid rgba(74, 163, 223, 0.4);
    color: #7bc5f8;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 0.75rem;
}

/* Hover & Mode Reveal Interactions */
.hover-plan-hint {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 4;
    background: rgba(14, 14, 17, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-subtle);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.project-arch-card:hover .hover-plan-hint {
    opacity: 1;
    transform: translateY(0);
}

/* When Hovering or when Global CAD Plan is active */
.project-arch-card:hover .layer-blueprint,
.project-arch-card.mode-plan .layer-blueprint {
    opacity: 1;
}

.project-arch-card.mode-plan .layer-photo {
    opacity: 0;
}

/* Card Meta Information */
.card-meta-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.arch-type-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-transform: uppercase;
}

.location-stamp {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.project-title-link {
    margin-bottom: 0.75rem;
}

.project-title-link button {
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1.85rem;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
}

.project-title-link button:hover {
    color: var(--gold);
}

.project-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-spec-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-subtle);
    gap: 1rem;
}

.spec-col {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spec-value {
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 500;
}

.btn-monograph-action {
    background: transparent;
    border: 1px solid var(--line-mid);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-monograph-action:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
}

.arrow-char {
    transition: transform 0.2s ease;
}

.btn-monograph-action:hover .arrow-char {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   06. TACTILE MATERIALITY EXPLORER (THE TACTILE ARCHIVE)
   -------------------------------------------------------------------------- */
.section-materiality {
    padding: 8rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
}

.materiality-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.mat-legend {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

.materiality-explorer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 3.5rem;
    align-items: start;
}

@media (max-width: 960px) {
    .materiality-explorer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Material Swatches List */
.material-swatch-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mat-swatch-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: all 0.25s var(--ease-out-arch);
    width: 100%;
}

.mat-swatch-item:hover {
    border-color: var(--line-bright);
    transform: translateX(4px);
}

.mat-swatch-item.active {
    border-color: var(--gold);
    background: rgba(200, 162, 101, 0.08);
}

.swatch-number {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 700;
}

.swatch-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: 1px solid var(--line-mid);
    flex-shrink: 0;
}

.swatch-info {
    flex-grow: 1;
}

.swatch-info h4 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.swatch-origin {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.swatch-arrow {
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mat-swatch-item.active .swatch-arrow,
.mat-swatch-item:hover .swatch-arrow {
    color: var(--gold);
    transform: translateX(3px);
}

/* Material Detail Pane */
.material-detail-pane {
    position: sticky;
    top: 6.5rem;
}

.mat-display-card {
    background: var(--bg-deep);
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}

.mat-hero-visual {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.4s ease;
}

.mat-visual-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mat-badge {
    background: rgba(14, 14, 17, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-subtle);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.1em;
}

.mat-zoom-label {
    background: rgba(14, 14, 17, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-subtle);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
}

.mat-content-body {
    padding: 2.25rem;
}

.mat-category-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.4rem;
}

.mat-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.95rem;
}

.mat-description {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* Material Performance Matrix */
.mat-spec-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
    margin-bottom: 1.75rem;
}

.mat-matrix-item {
    display: flex;
    flex-direction: column;
}

.matrix-key {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.matrix-val {
    font-size: 0.92rem;
    color: var(--text-main);
    font-weight: 500;
    margin-top: 0.15rem;
}

.mat-application-footer {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-label {
    color: var(--text-dim);
    text-transform: uppercase;
}

.app-project {
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   07. RIBA 1-6 PLAN OF WORK STAGE TIMELINE
   -------------------------------------------------------------------------- */
.section-riba {
    padding: 8rem 0;
    position: relative;
}

.riba-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.riba-status-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    background: var(--gold-glow);
    border: 1px solid var(--gold-border);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.08em;
}

.riba-crown-icon {
    font-size: 1rem;
}

/* Stage Navigation Tabs */
.riba-stage-navigator {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .riba-stage-navigator {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 540px) {
    .riba-stage-navigator {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stage-nav-btn {
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    padding: 1.15rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.25s ease;
}

.stage-nav-btn:hover {
    border-color: var(--line-bright);
    background: var(--bg-card);
}

.stage-nav-btn.active {
    border-color: var(--gold);
    background: var(--gold-glow);
}

.stage-code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.stage-name {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Stage Display Card */
.stage-display-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-md);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 960px) {
    .stage-display-card {
        grid-template-columns: 1fr;
        padding: 2.25rem;
        gap: 2.5rem;
    }
}

.stage-card-left {
    display: flex;
    flex-direction: column;
}

.stage-hero-stamp {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.stage-big-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--gold);
}

.stage-phase-type {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.stage-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.stage-narrative {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.stage-deliverables-box {
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
}

.deliverables-heading {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.deliverables-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deliverables-list li {
    font-size: 0.92rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.deliverables-list li::before {
    content: '▪';
    color: var(--gold);
    font-size: 0.9rem;
}

/* Stage Card Right */
.stage-card-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.stage-meta-panel {
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stage-meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meta-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-data {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.stage-quote-callout {
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
}

.stage-quote-callout p {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.quote-author {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    display: block;
}

/* --------------------------------------------------------------------------
   08. SPATIAL PHILOSOPHY & MONOGRAPH ESSAY
   -------------------------------------------------------------------------- */
.section-philosophy {
    padding: 8rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--line-subtle);
    border-bottom: 1px solid var(--line-subtle);
}

.philosophy-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 960px) {
    .philosophy-layout-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.phil-quote-main {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.2;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.phil-author-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--gold);
}

.author-name {
    display: block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
}

.author-role {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
}

.phil-pillars-col {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.pillar-accordion-item {
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    padding: 2rem;
    border-radius: var(--radius-sm);
    transition: border-color 0.25s ease;
}

.pillar-accordion-item:hover {
    border-color: var(--line-bright);
}

.pillar-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.pillar-idx {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 700;
}

.pillar-header h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.pillar-accordion-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   09. BESPOKE COMMISSION BRIEF CONFIGURATOR (£1M+ BUILDS)
   -------------------------------------------------------------------------- */
.section-brief-builder {
    padding: 8rem 0;
    position: relative;
}

.brief-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.brief-notice {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.12em;
    background: rgba(200, 162, 101, 0.1);
    border: 1px solid var(--gold-border);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
}

.brief-configurator-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

@media (max-width: 960px) {
    .brief-configurator-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.configurator-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .configurator-card {
        padding: 2rem 1.5rem;
    }
}

/* Form Steps */
.form-step-group {
    display: none;
    animation: fadeInStep 0.35s ease;
}

.form-step-group.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-badge-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.step-counter {
    color: var(--gold);
    font-weight: 700;
}

.step-guide {
    color: var(--text-dim);
}

.step-question {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.25;
}

/* Option Cards (Step 1 Radios) */
.option-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.option-select-card {
    cursor: pointer;
    position: relative;
}

.option-select-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card-inner {
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.option-select-card:hover .option-card-inner {
    border-color: var(--line-bright);
}

.option-select-card.active .option-card-inner,
.option-select-card input[type="radio"]:checked + .option-card-inner {
    border-color: var(--gold);
    background: rgba(200, 162, 101, 0.08);
}

.opt-icon {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.option-card-inner h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.option-card-inner p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Inputs & Form Elements */
.form-dual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-field-group label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.arch-input,
.arch-select,
.arch-textarea {
    background: var(--bg-deep);
    border: 1px solid var(--line-mid);
    color: var(--text-main);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.arch-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c8a265' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.arch-select option {
    background: var(--bg-surface);
    color: var(--text-main);
}

.arch-textarea {
    resize: vertical;
    min-height: 85px;
}

.arch-input:focus,
.arch-select:focus,
.arch-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-glow);
}

/* Stepper Navigation Controls */
.stepper-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line-subtle);
}

.stepper-dots {
    display: flex;
    gap: 0.5rem;
}

.stepper-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-mid);
    transition: all 0.25s ease;
}

.stepper-dots .dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

.btn-step-prev {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.6rem 1rem;
    transition: color 0.2s ease;
}

.btn-step-prev:hover {
    color: var(--text-main);
}

.btn-step-next,
.btn-step-submit {
    background: var(--gold);
    color: #000;
    border: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-step-next:hover,
.btn-step-submit:hover {
    background: var(--gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

/* Sidebar Live Configuration Scope */
.sidebar-sticky-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    position: sticky;
    top: 6.5rem;
    box-shadow: 0 16px 36px rgba(0,0,0,0.3);
}

.sidebar-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.35rem;
}

.sidebar-header h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-subtle);
}

.live-scope-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.scope-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.88rem;
}

.scope-label {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.scope-val {
    color: var(--text-main);
    text-align: right;
    font-weight: 500;
}

.program-estimate-box {
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.75rem;
}

.estimate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.estimate-header strong {
    color: var(--gold);
    font-size: 0.88rem;
}

.progress-bar-arch {
    width: 100%;
    height: 4px;
    background: var(--line-subtle);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gold-dim), var(--gold-bright));
}

.estimate-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.private-direct-contact {
    border-top: 1px solid var(--line-subtle);
    padding-top: 1.25rem;
    font-size: 0.85rem;
}

.private-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.private-email {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
    margin-top: 0.15rem;
    margin-bottom: 0.85rem;
}

.confidential-badge {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   10. PRACTICE OFFICES & ACCOLADES DIRECTORY
   -------------------------------------------------------------------------- */
.section-practice {
    padding: 8rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--line-subtle);
}

.practice-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4.5rem;
}

@media (max-width: 960px) {
    .practice-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

.locations-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-top: 2.75rem;
}

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

.location-box {
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    padding: 2rem;
    border-radius: var(--radius-sm);
}

.loc-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.location-box h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.loc-address {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.loc-contacts {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.loc-contacts strong {
    color: var(--text-muted);
}

.accolades-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-subtle);
}

.accolades-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accolades-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.pub-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 700;
    padding-top: 0.15rem;
}

.accolades-list li strong {
    font-size: 0.95rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.15rem;
}

.accolades-list li p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--line-subtle);
    padding: 6rem 0 3rem;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3.5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--line-subtle);
}

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

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

.footer-brand-title {
    font-family: var(--font-monument);
    font-size: 1.15rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1.25rem;
}

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

.footer-nav-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-nav-col a:hover {
    color: var(--text-main);
}

.footer-geo {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. PROJECT MONOGRAPH MODAL (DEEP DIVE DIALOG)
   -------------------------------------------------------------------------- */
.monograph-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.monograph-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 13, 0.88);
    backdrop-filter: blur(16px);
}

.modal-dialog {
    position: relative;
    z-index: 2010;
    width: 92%;
    max-width: 1100px;
    max-height: 88vh;
    background: var(--bg-surface);
    border: 1px solid var(--line-mid);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    transform: scale(0.96) translateY(12px);
    transition: transform 0.35s var(--ease-out-arch);
}

.monograph-modal.is-active .modal-dialog {
    transform: scale(1) translateY(0);
}

.btn-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2020;
    background: rgba(14, 14, 17, 0.8);
    border: 1px solid var(--line-mid);
    color: var(--text-main);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: var(--gold);
    color: #000;
}

.modal-scroll-body {
    overflow-y: auto;
    max-height: 88vh;
}

.modal-hero-banner {
    height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.modal-banner-overlay {
    position: relative;
    z-index: 2;
}

.modal-hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--bg-surface) 0%, rgba(20,20,24,0.4) 60%, rgba(20,20,24,0.7) 100%);
}

.modal-ref-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.4rem;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.modal-location {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.modal-details-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3.5rem;
    padding: 3rem;
}

@media (max-width: 860px) {
    .modal-details-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

.modal-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.modal-lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.modal-text-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Modal Drawing Section */
.modal-drawing-section {
    margin-top: 2.5rem;
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.modal-drawing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-subtle);
}

.drawing-scale-tag {
    color: var(--text-dim);
}

.modal-drawing-viewport {
    height: 240px;
}

.modal-drawing-viewport svg {
    width: 100%;
    height: 100%;
}

/* Modal Sidebar Specs */
.modal-spec-card {
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    padding: 2rem;
    margin-bottom: 1.75rem;
}

.modal-spec-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-subtle);
}

.spec-table-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
}

.spec-table-row span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.spec-table-row strong {
    color: var(--text-main);
    text-align: right;
    font-weight: 500;
}

.modal-cta-box {
    background: var(--bg-deep);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    text-align: center;
}

.modal-cta-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.modal-inquire-btn {
    width: 100%;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   13. BRIEF DISPATCH TOAST CONFIRMATION
   -------------------------------------------------------------------------- */
.brief-confirm-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.35s var(--ease-out-arch);
}

.brief-confirm-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-card {
    background: var(--bg-surface);
    border: 1px solid var(--gold);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 420px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-text strong {
    font-size: 0.95rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.2rem;
}

.toast-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-toast-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

.btn-toast-close:hover {
    color: var(--text-main);
}
