/* ==========================================================================
   NRM CONSTRUCTIONS — PREMIUM ARCHITECTURAL EDITORIAL DESIGN SYSTEM
   Default Theme: LIGHT MODE (#F5F5F2) | Theme Toggle: DARK MODE (#080A0D)
   Typography: Outfit (Headings) & Inter (Body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Theme Variables
   -------------------------------------------------------------------------- */
:root, [data-theme="light"] {
    --bg: #f5f5f2;
    --bg-alt: #ebebe6;
    --surface: #ffffff;
    --surface-card: rgba(255, 255, 255, 0.75);
    --surface-hover: #f1f1eb;
    --navbar-bg: rgba(245, 245, 242, 0.85);
    
    --text: #111111;
    --muted: #555555;
    --text-inverse: #ffffff;
    
    --accent: #e86a17;
    --accent-hover: #cf5609;
    --accent-light: rgba(232, 106, 23, 0.1);
    
    --border: rgba(0, 0, 0, 0.12);
    --border-strong: rgba(0, 0, 0, 0.28);
    --shadow: rgba(0, 0, 0, 0.06);
    
    --bg-grid: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 0);
    --glass-blur: blur(16px);
    
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg: #080a0d;
    --bg-alt: #11151a;
    --surface: #11151a;
    --surface-card: rgba(17, 21, 26, 0.75);
    --surface-hover: #1a2028;
    --navbar-bg: rgba(8, 10, 13, 0.85);
    
    --text: #f5f5f5;
    --muted: #a7a7a7;
    --text-inverse: #080a0d;
    
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-light: rgba(249, 115, 22, 0.12);
    
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.28);
    --shadow: rgba(0, 0, 0, 0.6);
    
    --bg-grid: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 0);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Layout Core
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* --------------------------------------------------------------------------
   3. Master WebGL 3D Canvas & Floating Subtle Badge
   -------------------------------------------------------------------------- */
#webgl-canvas-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#webgl-canvas-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* 3D Real-Time Status Badge (Minimal & Floating) */
.badge-3d-status {
    position: fixed;
    top: 5rem;
    right: 2.5rem;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: var(--surface-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    pointer-events: none;
    transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.badge-3d-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2s infinite ease-in-out;
}

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

/* Floating Canvas User Controls (Bottom Right) */
.canvas-user-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    padding: 0.35rem 0.5rem;
}

.btn-ctrl-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-ctrl-item:hover {
    border-color: var(--border-strong);
    color: var(--accent);
}

/* App Content Overlay Layer */
#app {
    position: relative;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   4. Floating Minimal Glass Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-smooth), padding var(--transition-smooth);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-logo {
    display: block;
    width: 220px;
    height: 58px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.logo-mark {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    padding: 0.2rem 0.5rem;
}

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

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

.brand-estd {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.3rem 0;
}

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

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

.theme-toggle-btn, .mobile-menu-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .mobile-menu-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
}

/* --------------------------------------------------------------------------
   5. Hero Section (Immersive Architectural Editorial)
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.eyebrow-line {
    width: 30px;
    height: 1px;
    background-color: var(--accent);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 1.8rem;
}

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

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--text);
    background-color: var(--surface-hover);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background-color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. General Section Layout & Typography System
   -------------------------------------------------------------------------- */
.section {
    padding: 7rem 0;
    position: relative;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--text);
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. About Section (Editorial Architectural Layout)
   -------------------------------------------------------------------------- */
.about-section {
    background-color: var(--bg);
}

.about-editorial-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-title-massive {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.about-body-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 2rem;
}

.about-meta-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    border-left: 2px solid var(--accent);
    padding-left: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.meta-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   8. 45+ Completed Projects — Typographic Hero Section
   -------------------------------------------------------------------------- */
.completed-hero-section {
    padding: 8rem 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.completed-hero-wrapper {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.completed-massive-number {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 16vw, 14rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--accent);
    display: block;
}

.completed-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text);
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.completed-hero-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   9. Services — Editorial Vertical List
   -------------------------------------------------------------------------- */
.services-editorial-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    padding: 2.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-fast);
    cursor: default;
}

.service-row:hover {
    background-color: var(--surface-hover);
    padding-left: 2.2rem;
}

.service-row:hover .service-row-title {
    color: var(--accent);
}

.service-row-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--muted);
}

.service-row-info {
    display: flex;
    flex-direction: column;
}

.service-row-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.service-row-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.service-row-arrow {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.service-row:hover .service-row-arrow {
    transform: translateX(6px);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   10. Trusted Clients Section
   -------------------------------------------------------------------------- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.client-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.client-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.client-category {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.client-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   11. Projects — Cinematic Presentation
   -------------------------------------------------------------------------- */
.projects-stack {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-cinematic-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: border-color var(--transition-fast);
}

.project-cinematic-card:hover {
    border-color: var(--border-strong);
}

.project-img-wrapper {
    overflow: hidden;
    height: 380px;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.project-cinematic-card:hover .project-img-wrapper img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.project-info {
    display: flex;
    flex-direction: column;
}

.project-num {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.project-category {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. 3D Architectural Showcase Section
   -------------------------------------------------------------------------- */
.showcase-3d-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}

.interactive-3d-viewport {
    width: 100%;
    height: 100%;
}

.showcase-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
}

.btn-3d-control {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-3d-control:hover, .btn-3d-control.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   13. Why NRM — Editorial List / Grid
   -------------------------------------------------------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    transition: all var(--transition-fast);
}

.why-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.why-num {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 1rem;
}

.why-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   14. CTA & Contact Sections
   -------------------------------------------------------------------------- */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contact-address-box {
    margin-bottom: 2.5rem;
}

.contact-address-box h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.contact-address-box p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.contact-direct-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Contact Form Styling */
.contact-form {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
}

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

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background-color: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   15. Minimalist Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    background-color: var(--bg);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: 0.1em;
}

.footer-info {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .nav-container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .nav-links { gap: 1.5rem; }
    .hero-container { grid-template-columns: 1fr 0.8fr; padding: 0 1.5rem; }
    .hero-content { max-width: 600px; }
    .hero-title { font-size: clamp(2.7rem, 5.2vw, 4.2rem); }
    .badge-3d-status { right: 1.5rem; }
}

@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    .hero-container,
    .about-editorial-grid,
    .project-cinematic-card,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-section { min-height: 100svh; padding-top: 5.5rem; }
    .hero-container {
        min-height: auto;
        align-content: center;
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
    .hero-content { max-width: 680px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .why-grid, .clients-grid { grid-template-columns: 1fr; }

    .badge-3d-status {
        top: 5.4rem;
        right: 1rem;
        font-size: 0.62rem;
    }

    .canvas-user-controls {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1.1rem; }
    .nav-container { padding: 0.9rem 1.1rem; }
    .logo { gap: 0; }
    .site-logo { width: 165px; height: 50px; }
    .brand-name { font-size: 0.78rem; }
    .brand-estd { font-size: 0.55rem; }
    .logo-mark { font-size: 0.9rem; }
    .site-logo { width: 150px; height: 46px; }

    .theme-toggle-btn, .mobile-menu-btn {
        font-size: 0.65rem;
        padding: 0.4rem 0.65rem;
    }
    .nav-actions { gap: 0.45rem; }

    .hero-section {
        min-height: 100svh;
        padding-top: 5rem;
    }
    .hero-container {
        padding: 5rem 1.1rem 5rem;
        min-height: 100svh;
        justify-content: start;
    }
    .hero-content {
        width: min(100%, 650px);
        position: relative;
        z-index: 20;
    }
    .hero-eyebrow { margin-bottom: 1rem; font-size: 0.65rem; }
    .hero-title {
        font-size: clamp(2.15rem, 9vw, 3.5rem);
        line-height: 1.02;
        margin-bottom: 1.2rem;
    }
    .hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.55;
        max-width: 500px;
        margin-bottom: 1.5rem;
    }
    .hero-cta { gap: 0.7rem; }
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.15rem;
        font-size: 0.68rem;
    }

    .badge-3d-status {
        top: auto;
        bottom: 4.7rem;
        right: 0.9rem;
        z-index: 25;
    }

    .canvas-user-controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 0.75rem;
        max-width: calc(100vw - 1.5rem);
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 999px;
        padding: 0.25rem 0.35rem;
    }
    .btn-ctrl-item { padding: 0.35rem 0.55rem; font-size: 0.62rem; }

    .hero-scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0.75rem 0.8rem; }
    .logo-text { display: none; }
    .logo-mark { font-size: 0.82rem; }
    .theme-toggle-btn { padding: 0.38rem 0.55rem; }
    .mobile-menu-btn { padding: 0.38rem 0.55rem; }

    .hero-container { padding: 4.5rem 0.9rem 4.5rem; }
    .hero-title {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
        letter-spacing: -0.03em;
    }
    .hero-subtitle { font-size: 0.86rem; }
    .hero-cta { width: 100%; }
    .btn-primary, .btn-secondary {
        flex: 1 1 100%;
        width: 100%;
        min-height: 44px;
    }

    .badge-3d-status {
        bottom: 4.6rem;
        right: 0.7rem;
        padding: 0.3rem 0.65rem;
        font-size: 0.55rem;
    }

    .canvas-user-controls {
        width: calc(100vw - 1rem);
        justify-content: center;
        gap: 0.15rem;
    }
}

@media (max-width: 360px) {
    .theme-toggle-btn, .mobile-menu-btn { font-size: 0.58rem; }
    .hero-title { font-size: 1.78rem; }
    .hero-subtitle { font-size: 0.82rem; }
    .btn-ctrl-item { padding: 0.32rem 0.42rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   17. Final 3D Layout Refinements
   -------------------------------------------------------------------------- */
/* Keep the hero 3D canvas clean: interaction happens in the dedicated showcase. */
.canvas-user-controls,
.showcase-controls {
    display: none !important;
}

/* Dedicated architectural showcase: text + independent interactive model. */
.showcase-3d-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
    background: var(--bg);
}

.showcase-3d-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(480px, 1.22fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
}

.showcase-3d-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.showcase-3d-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.2vw, 5.6rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    color: var(--text);
    margin: 1.1rem 0 1.5rem;
}

.showcase-3d-title span {
    color: var(--accent);
}

.showcase-3d-description {
    max-width: 500px;
    color: var(--muted);
    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    line-height: 1.8;
}

.showcase-3d-note {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.showcase-note-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.showcase-3d-wrapper {
    position: relative;
    width: 100%;
    height: clamp(480px, 48vw, 650px);
    min-height: 430px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
}

.interactive-3d-viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.interactive-3d-viewport:active {
    cursor: grabbing;
}

.interactive-3d-viewport canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.showcase-live-badge {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.showcase-live-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulseDot 2s infinite ease-in-out;
}

/* Floating quick actions. */
.floating-whatsapp,
.floating-top {
    position: fixed;
    z-index: 1200;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--surface-card);
    color: var(--text);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 12px 35px var(--shadow);
    transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast), visibility var(--transition-fast);
}

.floating-whatsapp {
    left: 1.35rem;
    bottom: 1.35rem;
}

.floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: #25D366;
    color: #25D366;
}

.whatsapp-icon {
    width: 23px;
    height: 23px;
    display: inline-flex;
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.floating-top {
    right: 1.35rem;
    bottom: 1.35rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    font-family: var(--font-body);
    flex-direction: column;
    gap: 0.05rem;
}

.floating-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-top:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    color: var(--accent);
}

.floating-top > span:first-child {
    font-size: 1rem;
    line-height: 1;
}

.floating-top > span:last-child {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

@media (max-width: 1100px) {
    .showcase-3d-grid {
        grid-template-columns: 1fr 1.15fr;
        gap: 2.5rem;
    }

    .showcase-3d-title {
        font-size: clamp(2.7rem, 6vw, 4.6rem);
    }
}

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

    .showcase-3d-copy {
        max-width: 720px;
    }

    .showcase-3d-wrapper {
        height: min(72vw, 600px);
        min-height: 430px;
    }
}

@media (max-width: 768px) {
    .showcase-3d-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .showcase-3d-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-top: 0.8rem;
    }

    .showcase-3d-description {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .showcase-3d-wrapper {
        height: 460px;
        min-height: 0;
    }

    .showcase-live-badge {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 0.55rem;
    }

    .floating-whatsapp,
    .floating-top {
        width: 46px;
        height: 46px;
        bottom: 0.9rem;
    }

    .floating-whatsapp { left: 0.8rem; }
    .floating-top { right: 0.8rem; }
}

@media (max-width: 480px) {
    .showcase-3d-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .showcase-3d-title {
        font-size: clamp(2.15rem, 11vw, 3.2rem);
    }

    .showcase-3d-note {
        font-size: 0.56rem;
        letter-spacing: 0.09em;
    }

    .showcase-3d-wrapper {
        height: 390px;
    }

    .showcase-live-badge {
        padding: 0.35rem 0.5rem;
    }
}

/* Final 3D reliability */
#webgl-canvas-container, #webgl-canvas-container canvas { pointer-events:none; }
.interactive-3d-viewport { z-index:1; }
.interactive-3d-viewport canvas { position:absolute; inset:0; }
\n\n/* --------------------------------------------------------------------------\n   Final responsive corrections: right-positioned 3D + mobile menu\n   -------------------------------------------------------------------------- */\n@media (min-width: 1101px) {\n    #webgl-canvas-container {\n        transform: translateX(1.5vw);\n    }\n}\n\n@media (max-width: 1100px) {\n    #webgl-canvas-container {\n        transform: translateX(0.8vw);\n    }\n}\n\n@media (max-width: 992px) {\n    .nav-links {\n        position: fixed;\n        top: 72px;\n        left: 1rem;\n        right: 1rem;\n        display: flex;\n        flex-direction: column;\n        align-items: stretch;\n        gap: 0;\n        padding: 0.65rem;\n        background: var(--surface-card);\n        border: 1px solid var(--border);\n        box-shadow: 0 18px 50px rgba(0,0,0,.16);\n        opacity: 0;\n        visibility: hidden;\n        transform: translateY(-10px);\n        pointer-events: none;\n        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;\n        z-index: 1200;\n    }\n    .nav-links.active {\n        opacity: 1;\n        visibility: visible;\n        transform: translateY(0);\n        pointer-events: auto;\n    }\n    .nav-links .nav-link {\n        display: block;\n        width: 100%;\n        padding: .9rem 1rem;\n    }\n    .mobile-menu-btn.open {\n        border-color: var(--accent);\n        color: var(--accent);\n    }\n}\n\n@media (max-width: 768px) {\n    #webgl-canvas-container {\n        height: 64dvh;\n        min-height: 0;\n        top: 15dvh;\n        bottom: auto;\n        transform: translateX(0);\n    }\n    .hero-section {\n        min-height: 100svh;\n        padding-top: 5rem;\n        overflow: hidden;\n    }\n    .hero-container {\n        min-height: 100svh;\n        padding: 4.2rem 1.1rem 3.5rem;\n    }\n    .hero-content {\n        max-width: 100%;\n    }\n    .hero-title {\n        font-size: clamp(2.05rem, 10vw, 3.4rem);\n        line-height: .98;\n        max-width: 96%;\n    }\n    .hero-subtitle {\n        max-width: 92%;\n        font-size: .9rem;\n        line-height: 1.55;\n    }\n    .hero-cta {\n        position: relative;\n        z-index: 30;\n    }\n    .badge-3d-status {\n        top: auto;\n        bottom: 1rem;\n        right: 1rem;\n    }\n}\n\n@media (max-width: 480px) {\n    #webgl-canvas-container {\n        height: 58dvh;\n        top: 18dvh;\n    }\n    .nav-links {\n        top: 67px;\n        left: .75rem;\n        right: .75rem;\n    }\n    .hero-container {\n        padding-left: .9rem;\n        padding-right: .9rem;\n    }\n    .hero-title {\n        font-size: 2.15rem;\n    }\n    .hero-subtitle {\n        font-size: .82rem;\n    }\n    .hero-cta .btn-primary,\n    .hero-cta .btn-secondary {\n        width: 100%;\n    }\n}\n
/* Stable 3D architectural showcase */
.showcase-3d-wrapper {
    background:
        radial-gradient(circle at 70% 28%, rgba(115, 151, 181, 0.16), transparent 34%),
        linear-gradient(145deg, #08131f 0%, #0d1c2a 52%, #152635 100%);
}
.interactive-3d-viewport canvas {
    position: absolute;
    inset: 0;
}

/* --------------------------------------------------------------------------
   PROJECTS — Auto-scrolling image gallery with fixed project information
   -------------------------------------------------------------------------- */
.projects-showcase-section {
    overflow: hidden;
}

.projects-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 3rem;
    align-items: stretch;
}

.project-gallery-panel {
    position: relative;
    min-width: 0;
    height: 500px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0b1722;
    outline: none;
}

.project-gallery-panel:focus-visible {
    border-color: var(--accent);
}

.project-gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition: opacity .85s ease, transform 1.15s cubic-bezier(.22,.61,.36,1), visibility .85s ease;
}

.project-gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.project-gallery-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4,10,16,.05) 35%, rgba(4,10,16,.52) 100%);
    pointer-events: none;
}

.project-gallery-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project-gallery-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(5,13,21,.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.project-gallery-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, width .25s ease;
}

.project-gallery-dot:hover {
    background: rgba(255,255,255,.85);
}

.project-gallery-dot.is-active {
    width: 26px;
    border-radius: 999px;
    background: var(--accent);
    transform: scale(1.02);
}

.project-fixed-info {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    border: 1px solid var(--border);
    background: var(--surface);
}

.project-fixed-info .project-title {
    margin: 0 0 .45rem;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    line-height: 1.02;
}

.project-fixed-info .project-category {
    margin: 0;
}

.project-fixed-rule {
    width: 72px;
    height: 2px;
    margin: 1.75rem 0;
    background: var(--accent);
}

.project-fixed-copy {
    max-width: 390px;
    color: var(--muted);
    line-height: 1.8;
    font-size: .95rem;
}

/* --------------------------------------------------------------------------
   AREAS WE SERVE
   -------------------------------------------------------------------------- */
.areas-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.areas-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.areas-heading .section-title {
    margin-bottom: 1rem;
}

.areas-heading p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

.areas-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.areas-list span {
    padding: 1.35rem 1.5rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: .02em;
    transition: background-color .25s ease, color .25s ease;
}

.areas-list span:hover {
    background: var(--surface-hover);
    color: var(--accent);
}

.areas-list .area-wide {
    grid-column: 1 / -1;
    color: var(--accent);
}

@media (max-width: 992px) {
    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-gallery-panel,
    .project-fixed-info {
        height: 440px;
        min-height: 0;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .project-gallery-panel {
        height: 330px;
    }

    .project-fixed-info {
        height: auto;
        min-height: 300px;
        padding: 2rem 1.5rem;
    }

    .project-fixed-info .project-title {
        font-size: 2rem;
    }

    .project-gallery-dots {
        bottom: .8rem;
    }

    .areas-list {
        grid-template-columns: 1fr;
    }

    .areas-list .area-wide {
        grid-column: auto;
    }
}

/* PRN page: compact typography + reliable responsive navigation */
@media (max-width: 992px) {
    .navbar .nav-links#nav-links {
        display: flex;
    }
    .navbar .mobile-menu-btn {
        display: none;
    }
    .navbar .nav-links#nav-links:not(.active) {
        display: flex;
    }
}
@media (max-width: 992px) {
    .navbar .nav-links#nav-links {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .navbar .nav-links#nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .navbar .mobile-menu-btn {
        display: block;
    }
}


/* Global compact typography scale — applied site-wide */
html { font-size: 15px; }
body { font-size: 0.94rem; line-height: 1.55; }

/* Keep large display headings refined rather than oversized */
.hero-title { font-size: clamp(2.55rem, 5.1vw, 4.45rem); }
.section-title { font-size: clamp(1.85rem, 3.25vw, 2.75rem); }
.about-title-massive { font-size: clamp(2.8rem, 5.6vw, 5.1rem); }
.completed-hero-title { font-size: clamp(1.7rem, 3.25vw, 2.8rem); }

/* --------------------------------------------------------------------------
   FINAL INDEX RESPONSIVE STABILITY PATCH
   -------------------------------------------------------------------------- */

/* Keep the page from creating horizontal overflow on phones. */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile navigation: always controlled by .active, never by display:none. */
@media (max-width: 992px) {
    .navbar {
        z-index: 5000;
    }

    .nav-container {
        width: 100%;
        min-height: 64px;
        padding: .8rem 1rem;
    }

    .nav-actions {
        margin-left: auto;
        gap: .5rem;
    }

    .theme-toggle-btn,
    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        white-space: nowrap;
    }

    .mobile-menu-btn {
        position: relative;
        z-index: 5002;
    }

    .navbar .nav-links#nav-links {
        position: fixed;
        top: 70px;
        left: .75rem;
        right: .75rem;
        width: auto;
        max-height: calc(100svh - 85px);
        overflow-y: auto;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem;
        margin: 0;
        background: var(--surface-card, #fff);
        border: 1px solid var(--border);
        box-shadow: 0 18px 50px rgba(0,0,0,.18);
        border-radius: 10px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        z-index: 5001;
    }

    .navbar .nav-links#nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar .nav-links#nav-links .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: .75rem 1rem;
        border-radius: 7px;
    }

    .navbar .nav-links#nav-links .nav-link:hover,
    .navbar .nav-links#nav-links .nav-link.active {
        background: var(--surface-hover);
    }

    .navbar .nav-links#nav-links .nav-link::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .logo {
        gap: .5rem;
        min-width: 0;
    }

    .logo-mark {
        font-size: .95rem;
        padding: .18rem .4rem;
    }

    .brand-name {
        font-size: .72rem;
        letter-spacing: .08em;
    }

    .brand-estd {
        font-size: .55rem;
    }

    .theme-toggle-btn {
        padding: .38rem .55rem;
        font-size: .62rem;
    }

    .mobile-menu-btn {
        padding: .38rem .65rem;
        font-size: .62rem;
    }

    .navbar .nav-links#nav-links {
        top: 64px;
        left: .6rem;
        right: .6rem;
    }
}

/* KEY PROJECTS: prevent the gallery/info cards from collapsing. */
.projects-showcase-section .container {
    width: 100%;
    min-width: 0;
}

.projects-showcase-section .projects-showcase {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr);
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.projects-showcase-section .project-gallery-panel {
    width: 100%;
    min-width: 0;
    height: 500px;
    min-height: 360px;
    display: block;
    overflow: hidden;
    position: relative;
}

.projects-showcase-section .project-gallery-track {
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
}

.projects-showcase-section .project-gallery-slide {
    width: 100%;
    height: 100%;
}

/* JS enhancement is optional: first image remains visible even if JS is delayed. */
.projects-showcase-section .project-gallery-slide:first-child {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.projects-showcase-section .project-gallery-slide.is-active {
    z-index: 2;
}

.projects-showcase-section .project-gallery-slide img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.projects-showcase-section .project-fixed-info {
    width: 100%;
    min-width: 0;
    min-height: 500px;
    height: auto;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .projects-showcase-section .projects-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .projects-showcase-section .project-gallery-panel {
        height: clamp(280px, 58vw, 440px);
        min-height: 280px;
    }

    .projects-showcase-section .project-fixed-info {
        min-height: 0;
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .projects-showcase-section .projects-showcase {
        gap: .9rem;
        margin-bottom: 1.5rem;
    }

    .projects-showcase-section .project-gallery-panel {
        height: 280px;
        min-height: 280px;
    }

    .projects-showcase-section .project-fixed-info {
        min-height: 250px;
        padding: 1.5rem;
    }

    .projects-showcase-section .project-fixed-info .project-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .projects-showcase-section .project-fixed-copy {
        font-size: .88rem;
        line-height: 1.65;
    }
}
