/* ==========================================================================
   Signature Properties & Design Studio — main stylesheet
   Palette: warm ivory, soft sand, antique gold, terracotta (see tokens below)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
    --bg:          #FDFBF7;
    --surface:     #FFFFFF;
    --sand:        #F5EFE6;
    --ink:         #2E2A26;
    --muted:       #6B635A;
    --accent:      #C0853F;
    --accent-dark: #A96F2F;
    --terracotta:  #B4653F;
    --border:      #E8E0D3;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Open Sans', 'Segoe UI', sans-serif;

    --radius: 12px;
    --shadow: 0 2px 14px rgba(46, 42, 38, .07);
    --shadow-lg: 0 18px 40px rgba(46, 42, 38, .12);

    --container: 1200px;
    --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .6em;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p  { margin: 0 0 1em; }

a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 3. Helpers ---------- */
.container {
    width: min(var(--container), calc(100% - 2.5rem));
    margin-inline: auto;
}
.container-narrow { width: min(820px, calc(100% - 2.5rem)); }

.section       { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-sand  { background: var(--sand); }

.eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--accent);
}
.eyebrow-light { color: #d9b07a; }
.eyebrow-light::before { background: #d9b07a; }

.lead    { font-size: 1.12rem; color: var(--muted); }
.lead-sm { font-size: 1rem;  color: var(--muted); }

.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); max-width: 620px; }
.section-head.center p { margin-inline: auto; }
.section-head:not(.center) {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary        { background: var(--accent); color: #fff; }
.btn-primary:hover  { background: var(--accent-dark); color: #fff; }

.btn-outline        { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover  { background: var(--accent); color: #fff; }

.btn-light          { background: #fff; color: var(--accent-dark); }
.btn-light:hover    { background: var(--sand); color: var(--accent-dark); }

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

.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

.btn:focus-visible,
.filter-btn:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.faq-list summary:focus-visible {
    outline: 3px solid rgba(192, 133, 63, .45);
    outline-offset: 2px;
}

/* ---------- 5. Top bar ---------- */
.topbar {
    background: var(--sand);
    border-bottom: 1px solid var(--border);
    font-size: .82rem;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .45rem 0;
}
.topbar-item { color: var(--muted); }
.topbar-links { display: flex; gap: 1.2rem; }
.topbar-links a { color: var(--ink); font-weight: 600; }
.topbar-links a:hover { color: var(--accent); }

/* ---------- 6. Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
    flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .01em;
    display: block;
    line-height: 1.1;
}
.brand-sub {
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
}

/* Nav is one flex row: links + CTA button (never wraps to a new line) */
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
.site-nav ul { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul a {
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    position: relative;
    padding: .4rem 0;
    display: inline-block;
    white-space: nowrap;
}
.site-nav ul a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width .25s;
}
.site-nav ul a:hover::after,
.site-nav ul a.active::after { width: 100%; }
.site-nav ul a.active { color: var(--accent); }
.site-nav .nav-cta { flex-shrink: 0; color: #fff; }
.site-nav .nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--ink);
    transition: transform .25s, opacity .25s;
}

/* ---------- 7. Hero (home) ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 4rem;
    align-items: center;
}
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 1.6rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); font-size: .9rem; }
.hero-trust li { font-weight: 600; }

.hero-media { position: relative; margin: 0; }
.hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4/3.4;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.hero-media::before {
    content: '';
    position: absolute;
    top: -18px; right: -18px;
    width: 130px; height: 130px;
    background: var(--sand);
    border-radius: var(--radius);
    z-index: 0;
}
.hero-badge {
    position: absolute;
    left: -1.2rem; bottom: 2rem;
    background: var(--sand);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem 1.1rem;
    display: flex;
    gap: .7rem;
    align-items: center;
    box-shadow: var(--shadow);
    font-size: .82rem;
    line-height: 1.35;
    color: var(--muted);
}
.hero-badge-num {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
}

/* ---------- 8. Stats band ---------- */
.stats { background: var(--sand); border-block: 1px solid var(--border); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2.4rem 0;
    text-align: center;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--accent);
}
.stat-label { font-size: .88rem; color: var(--muted); }

/* ---------- 9. Split (image + copy) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-media img {
    width: 100%;
    aspect-ratio: 4/3.2;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.split-sign { margin-top: .5rem; }
.split-sign span { color: var(--muted); font-size: .92rem; }

.ph-portrait {
    aspect-ratio: 4/4.4;
    background: linear-gradient(135deg, var(--sand), #EEE5D5);
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
    padding: 1rem;
}
.ph-portrait .mono {
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    background: rgba(253, 251, 247, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
}
.ph-portrait .mono-cap { max-width: 190px; line-height: 1.4; }
.split-reverse .split-copy { order: 1; }
/* About page: keep the CEO portrait upright inside the split layout */
.split-media .ceo-img { aspect-ratio: 4 / 4.6; }

/* ---------- 10. Check list ---------- */
.check-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .55rem;
    color: var(--ink);
}
.check-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: .85rem;
}

/* ---------- 11. Services grid (home) ---------- */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.svc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.9rem 1.6rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: #E3C9A4; /* visible fallback when text-stroke is unsupported */
    display: block;
    margin-bottom: .7rem;
}
@supports (-webkit-text-stroke: 1px #000) {
    .svc-num {
        color: transparent;
        -webkit-text-stroke: 1.5px var(--accent);
    }
}
.svc-card h3 { font-size: 1.06rem; }
.svc-card p  { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.svc-link { font-size: .88rem; font-weight: 700; }

.svc-card-cta {
    background: var(--ink);
    color: #fff;
    border: 0;
}
.svc-card-cta h3 { color: #fff; }
.svc-card-cta p  { color: #CFC8BE; }
.svc-card-cta .btn { margin-top: .4rem; }

/* ---------- 12. Service detail (services page) ---------- */
.svc-detail-list { display: grid; gap: 2.2rem; }
.svc-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.4rem;
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.svc-num-lg { font-size: 3rem; margin-bottom: .4rem; }
.svc-detail h2 { font-size: 1.5rem; }
.svc-detail-body p { color: var(--muted); }
.svc-detail-body .btn { margin-top: 1rem; }

/* ---------- 13. Projects ---------- */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.proj-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s, opacity .3s;
}
.proj-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.proj-card.hidden { display: none; }

.proj-thumb {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--sand), #EEE5D5);
}
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-art {
    position: absolute;
    right: .9rem; bottom: .9rem;
    background: rgba(253, 251, 247, .9);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .6rem;
    border-radius: 999px;
}
.proj-cat {
    position: absolute;
    top: .9rem; left: .9rem;
    background: rgba(46,42,38,.78);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
}
.proj-info { padding: 1.1rem 1.3rem 1.3rem; }
.proj-info h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.proj-info p  { color: var(--muted); font-size: .85rem; margin: 0; }

.grid-note { text-align: center; color: var(--muted); margin-top: 2.4rem; }

/* Filter bar */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 999px;
    padding: .5rem 1.2rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 14. Quote band (founder tagline) ---------- */
.quote-band {
    background: var(--ink);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.quote-band blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.4;
    max-width: 860px;
    margin: 0 auto 1.2rem;
}
.quote-band cite { color: #CFC8BE; font-style: normal; font-size: .95rem; }

/* ---------- 15. Process steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
    counter-reset: step;
}
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    position: relative;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--sand);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.step h3 { font-size: 1.1rem; }
.step p  { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- 16. Testimonials ---------- */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.quote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.9rem 1.7rem;
    margin: 0;
}
.stars { color: var(--accent); letter-spacing: .15em; margin-bottom: .8rem; }
.quote-card blockquote { font-size: .95rem; color: var(--ink); margin: 0 0 1.1rem; }
.quote-card figcaption { font-weight: 700; font-size: .9rem; }
.quote-card figcaption span { color: var(--muted); font-weight: 400; display: block; }

/* ---------- 17. FAQ ---------- */
.faq-list { display: grid; gap: .9rem; }
.faq-list details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    padding: 1.1rem 1.4rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
    padding: 0 1.4rem 1.2rem;
    color: var(--muted);
    margin: 0;
}

/* ---------- 18. CTA band ---------- */
.cta-band {
    background: var(--ink);
    color: #fff;
    padding: 72px 0;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p  { color: #CFC8BE; margin: 0; }
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- 19. Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #CFC8BE;
    padding-top: 72px;
    font-size: .92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer a { color: #CFC8BE; }
.site-footer a:hover { color: var(--accent); }
.footer-col li { margin-bottom: .55rem; }

.brand-light .brand-name { color: #fff; }
.footer-brand p { margin: 1rem 0; max-width: 340px; }
.footer-social { display: flex; gap: 1.1rem; }
.footer-social a { font-weight: 700; color: var(--accent); }

.footer-contact li { margin-bottom: .6rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 0;
    font-size: .82rem;
}
.footer-bottom p { margin: 0; }

/* ---------- 20. Floating WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 1.4rem; bottom: 1.4rem;
    z-index: 90;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }

/* ---------- 21. Page hero (inner pages) ---------- */
.page-hero {
    padding: 80px 0 64px;
    background: var(--sand);
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: .8rem; }

/* ---------- 22. Values (about page) ---------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}
.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    text-align: center;
}
.value-icon { font-size: 2rem; display: block; margin-bottom: .8rem; }
.value-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- 23. Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}
.contact-info { display: grid; gap: 1.1rem; }
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.info-card p  { color: var(--muted); font-size: .92rem; margin: 0; }
.info-card-map {
    min-height: 180px;
    background: linear-gradient(135deg, var(--sand), #EEE5D5);
    border: 1px dashed var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); text-align: center; font-size: .88rem;
}

.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.2rem;
}
.contact-form-wrap h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }
.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .35rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 133, 63, .18);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Alerts */
.alert {
    border-radius: 8px;
    padding: .9rem 1.1rem;
    margin-bottom: 1.2rem;
    font-size: .92rem;
}
.alert-success { background: #EDF3E7; border: 1px solid #B9CFA6; color: #4C6440; }
.alert-warn    { background: #FBF3E4; border: 1px solid #E3D2A6; color: #7A6217; }
.alert-error   { background: #FBEAE4; border: 1px solid #E8B9A6; color: #8A452F; }
.alert a { font-weight: 700; }

/* ---------- 24. Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .proj-card:hover, .svc-card:hover { transform: none; }
}

/* ---------- 25. Responsive ---------- */

/* Tighten the nav before it collapses to a hamburger */
@media (max-width: 1150px) {
    .site-nav          { gap: 1rem; }
    .site-nav ul       { gap: 1rem; }
    .site-nav ul a     { font-size: .9rem; }
    .site-nav .nav-cta { padding: .5rem .95rem; font-size: .82rem; }
}

/* Mobile navigation */
@media (max-width: 960px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1.2rem 1.4rem 1.6rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .site-nav ul a { display: block; padding: .55rem 0; }
    .site-nav .nav-cta { margin: .9rem 0 0; align-self: flex-start; }
}

@media (max-width: 1024px) {
    .svc-grid   { grid-template-columns: repeat(3, 1fr); }
    .proj-grid  { grid-template-columns: repeat(2, 1fr); }
    .steps      { grid-template-columns: 1fr 1fr; }
    .footer-grid{ grid-template-columns: 1fr 1fr; gap: 2.2rem; }
}

@media (max-width: 860px) {
    .section { padding: 72px 0; }

    .hero      { padding: 48px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }

    .stats-grid   { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
    .split        { grid-template-columns: 1fr; gap: 2.4rem; }

    .svc-grid   { grid-template-columns: repeat(2, 1fr); }
    .steps      { grid-template-columns: 1fr 1fr; }
    .quote-grid { grid-template-columns: 1fr; }
    .values-grid{ grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .svc-detail { grid-template-columns: 1fr; gap: .8rem; }
}

@media (max-width: 560px) {
    .topbar-inner { justify-content: center; }
    .topbar-links { display: none; }

    .svc-grid  { grid-template-columns: 1fr; }
    .proj-grid { grid-template-columns: 1fr; }
    .steps     { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: .3rem; }
    .hero-badge { left: .8rem; }
}

/* ---------- 26. Project cards as links ---------- */
a.proj-card { display: block; color: inherit; text-decoration: none; }
.proj-thumb img { transition: transform .5s ease; }
.proj-card:hover .proj-thumb img { transform: scale(1.04); }
.proj-info h3 { transition: color .2s; }
.proj-card:hover h3 { color: var(--accent-dark); }
.proj-view {
    position: absolute;
    left: .9rem; bottom: .9rem;
    background: rgba(253, 251, 247, .94);
    border: 1px solid var(--border);
    color: var(--accent-dark);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .7rem;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
}
.proj-card:hover .proj-view,
.proj-card:focus-visible .proj-view { opacity: 1; transform: none; }

/* ---------- 27. Project detail page ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

.project-head { padding: 64px 0 48px; background: var(--sand); border-bottom: 1px solid var(--border); }
.project-head h1 { margin-bottom: .7rem; }
.meta-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.meta-chips span {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .3rem .9rem;
    font-size: .82rem;
    color: var(--muted);
}

.project-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.project-text p { font-size: 1.05rem; }
.project-subhead { margin-top: 2.2rem; font-size: 1.4rem; }

.project-quote {
    margin: 2.2rem 0;
    padding: 1.6rem 1.9rem;
    background: var(--sand);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.5;
}
.project-quote cite {
    display: block;
    margin-top: .7rem;
    font-family: var(--font-body);
    font-size: .9rem;
    font-style: normal;
    color: var(--muted);
}

.project-side {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.project-side h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.project-side dl { margin: 0; }
.project-side dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 1rem; }
.project-side dd { margin: .15rem 0 0; font-weight: 600; font-size: .95rem; }
.project-side .btn { margin-top: 1.5rem; width: 100%; }

/* Lightbox caption + counter */
.lb-count {
    position: absolute;
    top: 1.5rem;
    left: 1.7rem;
    margin: 0;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .08em;
}
.lb-caption {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    margin: 0;
    max-width: min(900px, 90vw);
    text-align: center;
    color: #fff;
    font-size: .95rem;
    opacity: .92;
}

.proj-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 1.6rem;
}
.proj-nav a { color: var(--ink); max-width: 46%; }
.proj-nav a:hover { color: var(--accent-dark); }
.proj-nav .dir { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .25rem; }
.proj-nav .ttl { font-family: var(--font-display); font-size: 1.15rem; }
.proj-nav .next { text-align: right; margin-left: auto; }

/* ---------- 28. Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(46, 42, 38, .93);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox video { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000; }
.lightbox img[hidden],
.lightbox video[hidden] { display: none; }
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: rgba(253, 251, 247, .92);
    border: 0;
    width: 46px; height: 46px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-close { top: 1.1rem; right: 1.1rem; }
.lb-prev  { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #fff; }

@media (max-width: 860px) {
    .project-body { grid-template-columns: 1fr; gap: 2rem; }
    .project-side { position: static; }
    .proj-nav a { max-width: 100%; }
}

/* ---------- 29. CEO statement (home) ---------- */
.ceo {
    display: grid;
    grid-template-columns: minmax(300px, 420px) 1fr;
    gap: 3.5rem;
    align-items: center;
}
.ceo-portrait { aspect-ratio: 4/4.6; max-width: 420px; margin: 0 auto; }
.ceo-img {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/4.6;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}
.ceo-quote {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.6;
    margin: 0 0 1.4rem;
}
.ceo-quote p { margin: 0 0 1em; }
.ceo-quote p:last-child { margin-bottom: 0; }
.ceo-quote-mark {
    display: block;
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: .9;
    color: var(--accent);
    margin-bottom: .35rem;
}
.ceo-sign { color: var(--muted); margin: 0; }
.ceo-sign strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

/* ---------- 30. Project media viewer (stage + album cards) ---------- */
.media-viewer { display: flex; flex-direction: column; gap: 1rem; }

.media-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 340px;
}
.media-stage img,
.media-stage video {
    display: block;
    width: 100%;
    max-height: 76vh;
    object-fit: contain;      /* plans and photos stay complete — never cropped */
    background: var(--sand);
}
.media-stage video { background: #000; }
.media-stage img[hidden],
.media-stage video[hidden] { display: none; }
.media-stage .proj-art { position: absolute; right: 1rem; bottom: 1rem; }

.stage-preview {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(253, 251, 247, .94);
    color: var(--accent-dark);
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.stage-preview:hover { background: #fff; color: var(--accent-dark); }
.stage-preview[hidden] { display: none; }

.media-rail {
    display: flex;
    gap: .7rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
}
.media-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 132px;
    height: 92px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb:hover { transform: translateY(-2px); }
.media-thumb.is-active { border-color: var(--accent); }
.media-thumb:focus-visible { outline: 3px solid rgba(192, 133, 63, .45); outline-offset: 2px; }

.thumb-label {
    position: absolute;
    left: .4rem;
    bottom: .4rem;
    background: rgba(46, 42, 38, .78);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .15rem .45rem;
    border-radius: 999px;
}
.thumb-video-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 100%;
    height: 100%;
    background: var(--ink);
    color: var(--accent);
}
.thumb-video-tile em {
    font-style: normal;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #CFC8BE;
}

@media (max-width: 860px) {
    .ceo { grid-template-columns: 1fr; gap: 2rem; }
    .ceo-portrait, .ceo-img { max-width: 300px; }
    .media-stage { min-height: 240px; }
    .media-thumb { width: 108px; height: 76px; }
}

/* ---------- Contact map (Leaflet / OpenStreetMap) ---------- */
.map-wrap {
    position: relative;
    isolation: isolate; /* keep Leaflet controls below the sticky header */
}
.map-wrap .contact-map {
    width: 100%;
    height: 420px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
}
.map-wrap .leaflet-popup-content { font-family: var(--font-body); }
.map-wrap .leaflet-popup-content a { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) {
    .map-wrap .contact-map { height: 320px; }
}

/* ---------- Preloader: brand mark + clean fade-out ---------- */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    will-change: transform;
    /* No-JS safety net — never block the page for more than ~5.5s */
    animation: preloader-timeout 0s linear 5.5s forwards;
}
@keyframes preloader-timeout { to { visibility: hidden; pointer-events: none; } }

/* Exit: the logo lifts out first, then the whole screen slides up and
   dissolves — a soft curtain rise (pure CSS, no library). */
.site-preloader.is-done {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform .7s cubic-bezier(.65, 0, .35, 1) .12s,
        opacity   .5s ease .3s;
}
.site-preloader.is-done .pre-loader-inner {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity .22s ease, transform .3s ease;
}

.pre-loader-inner {
    position: relative;
    text-align: center;
}

/* The brand mark breathes softly — the only "motion" on the screen */
.pre-mark {
    display: block;
    margin: 0 auto 1.2rem;
    animation: pre-breathe 2.2s ease-in-out infinite;
}
@keyframes pre-breathe {
    0%, 100% { opacity: .5;  transform: scale(.985); }
    50%      { opacity: 1;   transform: scale(1); }
}

.pre-brand {
    margin: 0 0 .3rem;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--ink);
}
.pre-brand-sub {
    margin: 0 0 1.2rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: var(--muted);
}
.pre-caption {
    margin: 0;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .35em;
    color: var(--muted);
}
.pre-caption::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: baseline;
    animation: pre-dots 1.2s ease-in-out infinite;
}
@keyframes pre-dots {
    0%, 20% { opacity: .25; }
    50%     { opacity: 1; }
    80%, 100% { opacity: .25; }
}

/* Reduced-motion visitors never see the loading screen */
@media (prefers-reduced-motion: reduce) {
    .site-preloader { display: none; }
}

/* ---------- Reveal variants & stagger (animate on scroll) ---------- */
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(.94) translateY(12px); }

/* Cascade children of a grid one after another */
.stagger > * { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .08s; }
.stagger > *:nth-child(3) { transition-delay: .16s; }
.stagger > *:nth-child(4) { transition-delay: .24s; }
.stagger > *:nth-child(5) { transition-delay: .32s; }
.stagger > *:nth-child(6) { transition-delay: .40s; }
.stagger > *:nth-child(7) { transition-delay: .48s; }
.stagger > *:nth-child(8) { transition-delay: .56s; }
.stagger > *:nth-child(9) { transition-delay: .64s; }
.stagger > *:nth-child(10) { transition-delay: .72s; }

@media (prefers-reduced-motion: reduce) {
    .reveal-left, .reveal-right, .reveal-scale { transform: none; }
}

/* ---------- Hero backdrop: projects inside a gradient ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(118deg, var(--sand) 0%, var(--bg) 48%, #F4E8D4 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    opacity: .16;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.hero-bg-copy { display: flex; gap: 1.2rem; justify-content: center; width: 100%; }
.hero-bg-copy img {
    width: 210px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.hero-grid { position: relative; z-index: 1; }
@media (max-width: 560px) {
    .hero-bg { display: none; }
}

/* Hero media: a slanted cascade of project photos, left → right */
.hero-collage {
    position: relative;
    height: clamp(300px, 32vw, 460px);
}
.hero-collage .collage-img {
    position: absolute;
    width: 46%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 6px solid var(--surface);
    box-shadow: var(--shadow-lg);
}
.hero-collage .c1 { left: 0;    bottom: 6%;  transform: rotate(-7deg); }
.hero-collage .c2 { left: 20%;  bottom: 26%; transform: rotate(-2deg); z-index: 2; }
.hero-collage .c3 { left: 42%;  bottom: 46%; transform: rotate(3deg);  z-index: 3; }
.hero-collage .c4 { left: 58%;  bottom: 22%; transform: rotate(7deg);  z-index: 1; }
.hero-collage .hero-badge { z-index: 4; }
@media (max-width: 560px) {
    .hero-collage { height: 280px; }
    .hero-collage .c4 { display: none; }
    .hero-collage .c1, .hero-collage .c2, .hero-collage .c3 { width: 52%; }
}

/* ---------- Stats ribbon (auto-scrolls left → right) ---------- */
.stats-ribbon {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
    padding: 1.15rem 0;
}
.stats-inner {
    display: flex;
    align-items: center;
    gap: 3.4rem;
    width: max-content;
    animation: stats-marquee 26s linear infinite;
}
.stats-inner .stat { display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.stats-ribbon:hover .stats-inner { animation-play-state: paused; }
@keyframes stats-marquee {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
.stats-ribbon .stat-num   { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.stats-ribbon .stat-label { color: rgba(255, 255, 255, .85); }
@media (max-width: 560px) {
    .stats-inner { gap: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .stats-inner {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: .6rem 1.6rem;
    }
    .stats-ribbon:hover .stats-inner { animation-play-state: running; }
}