/* DL Realty Group — Institutional Design System v12 */

:root {
    --ink: #0a1020;
    --ink-elevated: #121a2e;
    --ink-muted: #1c2640;
    --paper: #f8f7f4;
    --paper-dark: #e8e6e0;
    --gold: #96784a;
    --gold-light: #b8956a;
    --slate: #5c6478;
    --mist: rgba(248, 247, 244, 0.76);
    --graphite: var(--ink);
    --graphite-soft: var(--ink-elevated);
    --graphite-muted: var(--ink-muted);
    --limestone: var(--paper-dark);
    --limestone-dark: #d4d1c9;
    --chalk: var(--paper);
    --copper: var(--gold);
    --copper-light: var(--gold-light);
    --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: var(--font-body);
    --header-h: 72px;
    --container: min(1180px, 92vw);
    --section-y: clamp(2.75rem, 5vw, 4rem);
    --section-head-gap: 1.5rem;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-lift: 0 16px 48px rgba(10, 16, 32, 0.16);
    --rule: rgba(150, 120, 74, 0.2);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark light;
}

@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;
    }
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--ink);
    color: var(--paper);
    line-height: 1.65;
    letter-spacing: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--copper-light);
    outline-offset: 3px;
}

.container { width: var(--container); margin-inline: auto; }

[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.label-mono {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.skip-link {
    position: absolute; top: -100px; left: 1rem; z-index: 9999;
    background: var(--copper); color: var(--chalk);
    padding: 0.75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ── Header ── */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 1000;
    height: var(--header-h);
    transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.site-header.scrolled {
    background: rgba(10, 16, 32, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.logo-link { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.logo-link:hover .logo-img {
    border-color: var(--gold-light);
    box-shadow: 0 6px 18px rgba(150, 120, 74, 0.28);
}
.logo-img {
    display: block;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(184, 149, 106, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.logo-img--footer { width: 52px; height: 52px; }
.logo-mark {
    display: grid; place-items: center;
    width: 40px; height: 40px; flex-shrink: 0;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 0.875rem; font-weight: 700;
}
.logo-name {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 700; line-height: 1.1;
    color: var(--paper);
    letter-spacing: -0.01em;
}
.logo-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em;
    color: var(--mist);
}
.main-nav { display: flex; align-items: center; gap: 2.25rem; }
.main-nav a {
    font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em;
    text-transform: none; color: var(--mist);
    position: relative;
}
.main-nav a.is-active { color: var(--paper); }
.main-nav a.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--gold-light);
}
.main-nav a:hover { color: var(--paper); }
.nav-cta {
    min-height: 2.35rem !important;
    padding: 0.5rem 1.1rem !important;
    border: 1.5px solid rgba(184, 149, 106, 0.55) !important;
    border-radius: var(--btn-radius, 12px) !important;
    font-family: var(--font-display) !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--paper) !important;
    background: rgba(150, 120, 74, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out),
        background 0.25s var(--ease-out),
        border-color 0.25s var(--ease-out) !important;
}
.nav-cta:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%) !important;
    border-color: transparent !important;
    color: var(--paper) !important;
    box-shadow: 0 8px 22px rgba(150, 120, 74, 0.35);
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 1.5px;
    background: var(--copper-light);
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.scroll-progress {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: rgba(157, 115, 72, 0.12);
}
.scroll-progress-bar {
    display: block; height: 100%; width: 0%;
    background: var(--copper-light);
    transition: width 0.1s linear;
}

/* ── Hero ── */
.hero {
    position: relative; min-height: 92svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 2.5rem) 0 4rem;
    overflow: hidden;
}
.hero-visual {
    position: absolute; inset: 0; z-index: 0;
}
.hero-media {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.02);
    animation: heroZoom 1.2s var(--ease-out) forwards;
}
@keyframes heroZoom {
    to { transform: scale(1); }
}
.hero-visual::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 16, 32, 0.55) 0%,
        rgba(10, 16, 32, 0.72) 50%,
        rgba(10, 16, 32, 0.88) 100%
    );
}
.hero-layout {
    position: relative; z-index: 2;
    max-width: 920px;
    margin-inline: auto;
    text-align: center;
}
.hero-copy {
    animation: fadeUp 0.8s var(--ease-out) 0.1s both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
    color: var(--paper);
    margin-bottom: 1.25rem;
    letter-spacing: 0.14em;
    font-weight: 500;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: var(--paper);
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    font-weight: 400; color: var(--mist);
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: 2rem;
    line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Credentials bar */
.credentials-bar {
    background: var(--ink-elevated);
    border-block: 1px solid var(--rule);
    padding: 1.75rem 0;
}
.credentials-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.credential {
    text-align: center;
    padding: 0 1.5rem;
    border-right: 1px solid var(--rule);
}
.credential:last-child { border-right: none; }
.credential-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--gold-light); line-height: 1;
}
.credential-label {
    display: block; margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem; font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--mist);
}

/* ── Buttons ── */
.btn {
    --btn-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.875rem;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    border-radius: var(--btn-radius);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    transition:
        transform 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out),
        background 0.25s var(--ease-out),
        border-color 0.25s var(--ease-out),
        color 0.25s var(--ease-out);
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #a88455 100%);
    color: var(--paper);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(150, 120, 74, 0.32);
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--paper);
    box-shadow: 0 12px 28px rgba(150, 120, 74, 0.4);
}
.btn-ghost {
    background: rgba(248, 247, 244, 0.06);
    color: var(--paper);
    border-color: rgba(248, 247, 244, 0.35);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--gold-light);
    background: rgba(150, 120, 74, 0.14);
    color: var(--paper);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.btn-full { width: 100%; }
.btn-arrow,
.contact-form-submit-icon,
.project-sidebar-cta-icon {
    display: inline-flex;
    font-size: 1em;
    line-height: 1;
    transition: transform 0.25s var(--ease-out);
}
.btn:hover .btn-arrow,
.btn:hover .contact-form-submit-icon,
.btn:hover .project-sidebar-cta-icon {
    transform: translateX(4px);
}

.text-link {
    display: inline-block; margin-top: 1.5rem;
    font-size: 0.85rem; font-weight: 500;
    color: var(--copper); letter-spacing: 0.02em;
}
.text-link:hover { color: var(--graphite); }

/* ── Sections ── */
.section { padding-block: var(--section-y); }
.section-light { background: var(--chalk); color: var(--graphite); }
.section-dark { background: var(--graphite); color: var(--chalk); }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: var(--section-head-gap);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
}
.section-header--split {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: end;
    gap: 1.5rem 2rem;
}
.section-header-text { min-width: 0; }

/* Legacy alias */
.section-head { max-width: 640px; margin-bottom: var(--section-head-gap); }
.section-head--split {
    max-width: none;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem; align-items: end;
    margin-bottom: var(--section-head-gap);
}

.section-eyebrow { color: var(--copper); margin-bottom: 0.5rem; }
.section-dark .section-eyebrow { color: var(--copper-light); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700; line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.section-intro { color: var(--mist); font-size: 1rem; line-height: 1.65; margin: 0; }
.section-light .lead { font-size: 1.0625rem; line-height: 1.7; color: var(--ink); margin-bottom: 0.85rem; font-weight: 500; }
.section-light .body-text { color: var(--slate); margin-bottom: 0.85rem; line-height: 1.7; }

.section-projects { padding-block: var(--section-y); }
.section-contact {
    background: var(--graphite);
    padding-block: var(--section-y);
}

/* About */
.section-about {
    background: var(--paper);
    padding-block: var(--section-y);
}
.section-about .section-eyebrow { color: var(--gold); }

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.about-header {
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--gold);
}
.about-header .section-title { color: var(--ink); margin-top: 0.35rem; }
.about-prose { margin-bottom: 1.5rem; max-width: 52ch; }
.about-prose .body-text { margin-bottom: 0; }

.about-pillars {
    list-style: none;
    display: grid;
    gap: 0;
    margin-bottom: 1.75rem;
    border: 1px solid var(--paper-dark);
    background: var(--chalk);
}
.about-pillar {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--paper-dark);
}
.about-pillar:last-child { border-bottom: none; }
.about-pillar-title {
    font-size: 0.9375rem; font-weight: 600;
    color: var(--ink);
}
.about-pillar-desc {
    font-size: 0.875rem; line-height: 1.55;
    color: var(--slate);
}
.about-actions {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
}

.btn-outline-dark {
    background: rgba(255, 255, 255, 0.65);
    color: var(--ink);
    border-color: rgba(10, 16, 32, 0.18);
    box-shadow: inset 0 1px 2px rgba(10, 16, 32, 0.04);
}
.btn-outline-dark:hover {
    transform: translateY(-2px);
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
    box-shadow: 0 10px 24px rgba(10, 16, 32, 0.18);
}

.about-visual { margin: 0; position: sticky; top: calc(var(--header-h) + 1.25rem); }
.about-visual-frame {
    position: relative;
    border: 1px solid var(--paper-dark);
    background: var(--paper-dark);
    padding: 0.65rem;
    box-shadow: var(--shadow-lift);
}
.about-visual-frame::before {
    content: '';
    position: absolute; top: 0.65rem; left: 0.65rem;
    width: 48px; height: 48px;
    border-top: 2px solid var(--gold-light);
    border-left: 2px solid var(--gold-light);
    pointer-events: none; z-index: 1;
}
.about-visual img {
    width: 100%;
    aspect-ratio: 5/6;
    object-fit: cover;
    display: block;
}
.about-visual-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--paper-dark);
    font-size: 0.8125rem;
}
.about-visual-location {
    font-weight: 600; color: var(--ink);
}
.about-visual-note {
    color: var(--slate); text-align: right;
}

/* Trajectory */
.section-trajectory {
    padding-block: var(--section-y);
    background: var(--ink);
}
.section-trajectory .section-header {
    border-bottom-color: var(--rule);
}
.trajectory-header { margin-bottom: var(--section-head-gap); }

.trajectory-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--rule);
    background: var(--ink-elevated);
}
.trajectory-entry {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    transition: background 0.25s var(--ease-out);
}
.trajectory-entry:nth-child(2n) { border-right: none; }
.trajectory-entry:nth-last-child(-n+2) { border-bottom: none; }
.trajectory-entry:hover { background: rgba(150, 120, 74, 0.06); }

.trajectory-index {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
}
.trajectory-entry-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}
.trajectory-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--paper);
    line-height: 1.35;
}
.trajectory-status {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mist);
}

/* Projects — cinematic portfolio grid */
.section-projects {
    position: relative;
    overflow: hidden;
}
.section-projects::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(150, 120, 74, 0.08), transparent 70%);
}

.projects-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.project-card {
    position: relative;
    transition: transform 0.45s var(--ease-out);
}
.project-card:hover {
    transform: translateY(-6px);
}
.project-card--featured {
    grid-column: span 2;
    margin-top: 0 !important;
}
.project-card-link {
    display: block;
    color: inherit;
    height: 100%;
}
.project-card-link:hover { color: inherit; }

.project-card-media {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--graphite-muted);
    isolation: isolate;
}
.project-card--featured .project-card-media {
    aspect-ratio: 21/9;
    min-height: clamp(280px, 42vw, 460px);
}
.project-card-index {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    z-index: 4;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--paper);
    opacity: 0.18;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.project-card:hover .project-card-index {
    opacity: 0.32;
    transform: translateY(-4px);
}
.project-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out), filter 0.5s var(--ease-out);
}
.project-card:hover .project-card-media img {
    transform: scale(1.1);
    filter: brightness(0.92);
}
.project-card-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(10, 16, 32, 0.95) 0%,
        rgba(10, 16, 32, 0.55) 38%,
        rgba(10, 16, 32, 0.08) 68%,
        transparent 100%
    );
    transition: opacity 0.35s var(--ease-out);
}
.project-card--featured .project-card-shade {
    background: linear-gradient(
        to top,
        rgba(10, 16, 32, 0.96) 0%,
        rgba(10, 16, 32, 0.35) 45%,
        rgba(10, 16, 32, 0.05) 100%
    );
}
.project-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.15rem 1.25rem 1.35rem;
    pointer-events: none;
}
.project-card-overlay-top {
    display: flex;
    justify-content: flex-start;
}
.project-status {
    padding: 0.35rem 0.75rem;
    background: rgba(10, 16, 32, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(196, 154, 108, 0.55);
    color: var(--gold-light);
}
.project-card-overlay-bottom {
    transform: translateY(0.35rem);
    transition: transform 0.45s var(--ease-out);
}
.project-card:hover .project-card-overlay-bottom {
    transform: translateY(0);
}
.project-type {
    color: var(--gold-light);
    display: block;
    margin-bottom: 0.45rem;
}
.project-card-overlay-bottom h3 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--paper);
    margin-bottom: 0.55rem;
    text-wrap: balance;
}
.project-card--featured .project-card-overlay-bottom h3 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    max-width: 16ch;
}
.project-card-overlay-bottom p {
    font-size: 0.9rem;
    color: var(--mist);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 52ch;
    opacity: 0.92;
    transition: opacity 0.35s var(--ease-out);
}
.project-card:hover .project-card-overlay-bottom p {
    opacity: 1;
}
.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(184, 149, 106, 0.35);
}
.project-location {
    font-size: 0.8125rem;
    color: var(--mist);
}
.project-cta {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-light);
    white-space: nowrap;
    transition: color 0.25s var(--ease-out), letter-spacing 0.25s var(--ease-out);
}
.project-card:hover .project-cta {
    color: var(--paper);
    letter-spacing: 0.08em;
}
.project-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.55s var(--ease-out);
}
.project-card:hover .project-card-accent {
    width: 100%;
}

/* Contact */
.contact-shell {
    background: var(--ink-elevated);
    border: 1px solid var(--rule);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}
.contact-shell-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--rule);
}
.contact-shell-header .section-title { color: var(--paper); margin-top: 0.25rem; }
.contact-shell-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--mist);
    line-height: 1.55;
    max-width: 52ch;
}
.contact-shell-header .section-eyebrow { color: var(--gold-light); }
.contact-shell-grid {
    display: grid; grid-template-columns: 1fr 1.05fr;
    gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start;
}
.contact-intro .section-eyebrow { color: var(--copper-light); }
.contact-lead {
    color: var(--mist); font-size: 1rem; line-height: 1.65;
    max-width: 420px; margin-bottom: 1.25rem;
}
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.contact-chip {
    --chip-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 3.125rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(150, 120, 74, 0.22);
    border-radius: var(--chip-radius);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
    transition:
        border-color 0.25s var(--ease-out),
        background 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out),
        transform 0.25s var(--ease-out);
}
a.contact-chip {
    color: inherit;
    text-decoration: none;
}
a.contact-chip:hover {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
        0 0 0 3px rgba(150, 120, 74, 0.12),
        inset 0 1px 2px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    color: inherit;
}
a.contact-chip:hover .contact-chip-action {
    transform: translateX(3px);
    color: var(--gold-light);
}
.contact-chip-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc(var(--chip-radius) - 2px);
    border: 1.5px solid rgba(150, 120, 74, 0.28);
    background: rgba(150, 120, 74, 0.1);
    color: var(--gold-light);
}
.contact-chip-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}
.contact-chip-label {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(184, 149, 106, 0.85);
}
.contact-chip-value {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--paper);
    word-break: break-word;
}
.contact-chip-action {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(184, 149, 106, 0.55);
    transition: transform 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.contact-chip--static {
    cursor: default;
}
.contact-form {
    --form-radius: 12px;
    --form-control-h: 3.125rem;
    position: relative;
    background: linear-gradient(165deg, #fff 0%, #f6f4ef 100%);
    color: var(--ink);
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(150, 120, 74, 0.14);
    border-radius: calc(var(--form-radius) + 4px);
    box-shadow:
        0 24px 56px rgba(10, 16, 32, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    overflow: hidden;
}
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.contact-form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(10, 16, 32, 0.08);
}
.contact-form-eyebrow {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.45rem;
}
.contact-form-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.contact-form-note {
    font-size: 0.875rem;
    color: var(--slate);
    line-height: 1.55;
    max-width: 36ch;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.contact-form .form-row .form-field {
    margin-bottom: 0;
}
.contact-form .form-field {
    margin-bottom: 1rem;
}
.contact-form .form-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(10, 16, 32, 0.62);
}
.contact-form .form-field .req { color: var(--gold); }
.contact-form .form-field input,
.contact-form .form-field select,
.contact-form .form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(10, 16, 32, 0.1);
    border-radius: var(--form-radius);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(10, 16, 32, 0.04);
    transition:
        border-color 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out),
        background 0.25s var(--ease-out);
}
.contact-form .form-field input,
.contact-form .form-field select {
    min-height: var(--form-control-h);
}
.contact-form .form-field input::placeholder,
.contact-form .form-field textarea::placeholder {
    color: rgba(92, 100, 120, 0.72);
}
.contact-form .form-field input:hover,
.contact-form .form-field select:hover,
.contact-form .form-field textarea:hover {
    border-color: rgba(150, 120, 74, 0.35);
    background: #fff;
}
.contact-form .form-field input:focus,
.contact-form .form-field select:focus,
.contact-form .form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(150, 120, 74, 0.14),
        inset 0 1px 2px rgba(10, 16, 32, 0.03);
}
.contact-form .form-field textarea {
    resize: vertical;
    min-height: 7.5rem;
    padding-top: 0.95rem;
}
.contact-form .form-control-wrap--select {
    position: relative;
}
.contact-form .form-control-wrap--select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}
.contact-form .form-control-wrap--select select {
    appearance: none;
    padding-right: 2.75rem;
    cursor: pointer;
}
.contact-form-submit {
    margin-top: 0.35rem;
    min-height: 3.25rem;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.15rem; }
.form-field label {
    display: block; margin-bottom: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.8125rem; font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--slate);
}
.form-field .req { color: var(--copper-light); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.85rem 1rem;
    background: var(--graphite-soft);
    border: 1px solid rgba(157, 115, 72, 0.2);
    color: var(--chalk); font-family: var(--font-body); font-size: 0.95rem;
    transition: border-color 0.25s var(--ease-out);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--copper-light); outline: none;
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* Reveal */
[data-reveal] {
    opacity: 1; transform: none;
}
html.js [data-reveal]:not(.is-visible) {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-visible {
    opacity: 1; transform: translateY(0);
}

/* ── Project detail page ── */
.project-page { background: var(--ink); }

.project-hero {
    position: relative;
    min-height: clamp(420px, 72vh, 640px);
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 1.5rem) 0 0;
    overflow: hidden;
}
.project-hero-image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.project-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to top,
        rgba(10, 16, 32, 0.96) 0%,
        rgba(10, 16, 32, 0.55) 45%,
        rgba(10, 16, 32, 0.2) 100%
    );
}
.project-hero-inner {
    position: relative; z-index: 2;
    padding-bottom: 2rem;
}
.project-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem; color: var(--mist);
}
.project-breadcrumb a { color: var(--mist); }
.project-breadcrumb a:hover { color: var(--paper); }
.project-breadcrumb span[aria-current="page"] { color: var(--paper); font-weight: 500; }
.project-hero-card { max-width: 780px; }
.project-hero-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.project-hero-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.8125rem; font-weight: 600;
}
.project-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700; line-height: 1.1;
    color: var(--paper); margin-bottom: 0.5rem;
}
.project-hero-location {
    font-size: 1.0625rem; color: var(--mist);
}

/* Fact strip — signature dossier bar */
.project-facts {
    background: var(--ink-elevated);
    border-block: 1px solid var(--rule);
    padding: 1.25rem 0;
}
.project-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0;
    list-style: none;
}
.project-fact {
    padding: 0.75rem 1.25rem;
    border-right: 1px solid var(--rule);
    text-align: center;
}
.project-fact:last-child { border-right: none; }
.project-fact dt {
    font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold-light); margin-bottom: 0.35rem;
}
.project-fact dd {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700; color: var(--paper); line-height: 1.2;
}

.project-body { padding-block: var(--section-y); }
.project-body-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.85fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
}
.project-section-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}
.project-section-header--dark .section-intro { max-width: 280px; text-align: right; }
.project-lead {
    font-size: 1.125rem; line-height: 1.7; font-weight: 500;
    color: var(--ink); margin-bottom: 1.25rem;
}
.project-long-desc {
    color: var(--slate); line-height: 1.75;
    margin-bottom: 2rem;
}
.project-amenities { margin-top: 0.5rem; }
.project-amenities-title {
    font-family: var(--font-display);
    font-size: 1.375rem; font-weight: 700;
    color: var(--ink); margin-bottom: 1rem;
}
.project-amenities-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
}
.project-amenities-list li {
    padding: 0.85rem 1rem;
    background: var(--paper);
    border: 1px solid var(--paper-dark);
    border-left: 3px solid var(--gold);
    font-size: 0.9375rem; color: var(--ink);
}

.project-sidebar-card {
    --form-radius: 12px;
    --form-control-h: 3.125rem;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    background: linear-gradient(165deg, #fff 0%, #f6f4ef 100%);
    color: var(--ink);
    border: 1px solid rgba(150, 120, 74, 0.14);
    border-radius: calc(var(--form-radius) + 4px);
    overflow: hidden;
    box-shadow:
        0 24px 56px rgba(10, 16, 32, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.project-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.project-sidebar-head {
    padding: clamp(1.35rem, 2.5vw, 1.65rem) clamp(1.35rem, 2.5vw, 1.65rem) 1.15rem;
    border-bottom: 1px solid rgba(10, 16, 32, 0.08);
}
.project-sidebar-eyebrow {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.45rem;
}
.project-sidebar-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.55rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.project-spec-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid rgba(150, 120, 74, 0.45);
    background: rgba(150, 120, 74, 0.08);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.project-sidebar-specs {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.15rem clamp(1.15rem, 2.5vw, 1.35rem);
    margin: 0;
}
.spec-item {
    margin: 0;
}
.spec-item-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: var(--form-control-h, 3.125rem);
    margin: 0;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(10, 16, 32, 0.1);
    border-radius: var(--form-radius);
    box-shadow: inset 0 1px 2px rgba(10, 16, 32, 0.04);
    transition:
        border-color 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out),
        background 0.25s var(--ease-out);
}
.spec-item-label:hover {
    border-color: rgba(150, 120, 74, 0.35);
    background: #fff;
}
.spec-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc(var(--form-radius) - 2px);
    border: 1.5px solid rgba(150, 120, 74, 0.28);
    background: rgba(150, 120, 74, 0.08);
    color: var(--gold);
}
.spec-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
}
.spec-label-text {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(10, 16, 32, 0.58);
}
.spec-item-value {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}
.project-sidebar-foot {
    padding: 0  clamp(1.15rem, 2.5vw, 1.35rem) clamp(1.25rem, 2.5vw, 1.5rem);
}
.project-sidebar-cta {
    margin-bottom: 0.75rem;
    min-height: 3.25rem;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
}
.project-sidebar-note {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--slate);
    text-align: center;
    margin: 0;
}

/* Gallery mosaic */
.project-gallery-section { padding-block: var(--section-y); }
.project-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.gallery-tile {
    position: relative;
    border: none; padding: 0; margin: 0;
    cursor: pointer; overflow: hidden;
    background: var(--ink-muted);
    aspect-ratio: 4/3;
    transition: opacity 0.25s var(--ease-out);
}
.gallery-tile--lead {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}
.gallery-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}
.gallery-tile:hover img { transform: scale(1.03); }
.gallery-tile-caption {
    position: absolute; inset: auto 0 0 0;
    padding: 2rem 1rem 0.85rem;
    background: linear-gradient(to top, rgba(10, 16, 32, 0.85), transparent);
    font-size: 0.8125rem; font-weight: 500;
    color: var(--paper); text-align: left;
    pointer-events: none;
}

/* CTA band */
.project-cta-band {
    background: var(--ink-elevated);
    border-top: 1px solid var(--rule);
    padding: clamp(2rem, 5vw, 3rem) 0;
}
.project-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.project-cta-copy { max-width: 560px; }
.project-cta-copy .section-eyebrow { color: var(--gold-light); margin-bottom: 0.5rem; }
.project-cta-copy .section-title { color: var(--paper); margin-bottom: 0.65rem; }
.project-cta-text { color: var(--mist); line-height: 1.65; font-size: 1rem; }
.project-cta-actions {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    flex-shrink: 0;
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(10, 16, 32, 0.96);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem; overscroll-behavior: contain;
}
.lightbox[hidden] { display: none; }
.lightbox-content { max-width: 90vw; max-height: 85vh; text-align: center; }
.lightbox-content img { max-height: 75vh; margin: 0 auto; }
.lightbox-content figcaption { margin-top: 1rem; color: var(--mist); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: none; border: none;
    color: var(--gold-light); font-size: 2.5rem; cursor: pointer;
    padding: 1rem; line-height: 1;
}
.lightbox-close { top: 1rem; right: 1.5rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Legacy aliases (home gallery if reused) */
.gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}
.gallery-item {
    border: none; padding: 0; cursor: pointer;
    overflow: hidden; aspect-ratio: 4/3;
    background: var(--graphite-muted);
    transition: opacity 0.3s var(--ease-out);
}
.gallery-item:hover { opacity: 0.85; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.site-footer {
    background: var(--graphite-soft);
    border-top: 1px solid rgba(157, 115, 72, 0.12);
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem; padding: 2.75rem 0 2rem;
}
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-name {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem;
}
.footer-desc { color: var(--mist); font-size: 0.9rem; max-width: 260px; }
.footer-col h3 { color: var(--copper-light); margin-bottom: 1rem; }
.footer-col a, .footer-col p {
    display: block; color: var(--mist);
    font-size: 0.9rem; margin-bottom: 0.45rem;
}
.footer-col a:hover { color: var(--chalk); }

.footer-col--social { max-width: 280px; }
.footer-social-lead {
    font-size: 0.875rem;
    color: var(--mist);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.footer-social-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.footer-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 5.5rem;
    padding: 0.85rem 0.65rem;
    border: 1px solid var(--rule);
    background: rgba(150, 120, 74, 0.06);
    color: var(--gold-light);
    text-align: center;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
                color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.footer-social-link:hover {
    color: var(--ink);
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}
.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(10, 16, 32, 0.35);
    transition: background 0.25s var(--ease-out);
}
.footer-social-link:hover .footer-social-icon {
    background: rgba(10, 16, 32, 0.12);
}
.footer-social-name {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.footer-social-link--instagram:hover { color: var(--ink); }
.footer-social-link--linkedin:hover { color: var(--ink); }
.footer-social-link--facebook:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(157, 115, 72, 0.1); }
.footer-bottom-inner {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
    padding: 1.25rem 0;
}
.footer-bottom p { color: var(--mist); font-size: 0.8rem; }

/* WhatsApp float — único punto de contacto rápido */
.whatsapp-float {
    position: fixed; bottom: max(1.5rem, env(safe-area-inset-bottom));
    right: max(1.5rem, env(safe-area-inset-right));
    z-index: 1500; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.32);
    color: #fff;
}

/* Error */
.error-section {
    min-height: 60vh; display: flex; align-items: center;
    text-align: center; background: var(--graphite);
}
.error-content h1 {
    font-family: var(--font-display);
    font-size: 6rem; color: var(--copper-light);
}
.error-content p { color: var(--mist); margin: 1rem 0 2rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
    .about-layout, .contact-shell-grid,
    .project-body-grid, .footer-grid,
    .section-head--split, .section-header--split { grid-template-columns: 1fr; }
    .about-visual { position: static; }
    .project-fact { border-right: none; border-bottom: 1px solid var(--rule); }
    .project-fact:last-child { border-bottom: none; }
    .project-sidebar-card { position: static; }
    .project-cta-inner { flex-direction: column; align-items: flex-start; }
    .projects-bento { grid-template-columns: 1fr; }
    .project-card--featured { grid-column: span 1; }
    .project-card--featured .project-card-media {
        aspect-ratio: 16/10;
        min-height: auto;
    }
    .project-gallery-mosaic { grid-template-columns: 1fr; }
    .gallery-tile--lead { aspect-ratio: 16/10; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .about-visual-caption { flex-direction: column; align-items: flex-start; }
    .about-visual-note { text-align: left; }
    .trajectory-grid { grid-template-columns: 1fr; }
    .trajectory-entry { border-right: none !important; }
    .trajectory-entry:not(:last-child) { border-bottom: 1px solid var(--rule); }
    .trajectory-entry:last-child { border-bottom: none; }
    .project-section-header--dark .section-intro { text-align: left; max-width: none; }
    .credential { border-right: none; border-bottom: 1px solid var(--rule); padding: 1rem 0; }
    .credential:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: var(--header-h); left: 0; right: 0;
        background: rgba(14, 17, 23, 0.98);
        flex-direction: column; align-items: stretch;
        padding: 1.5rem 5vw; gap: 0;
        transform: translateY(-120%); opacity: 0;
        transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
        pointer-events: none;
        border-bottom: 1px solid rgba(157, 115, 72, 0.15);
    }
    .main-nav a { padding: 1rem 0; border-bottom: 1px solid rgba(157, 115, 72, 0.08); }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .credentials-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media { animation: none; transform: none; }
    html.js [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}
