/* =========================================================
   ATELIER PENUMBRA — Design System
   Dark moody, editorial interior design studio site
   ========================================================= */

:root {
    --carbon:        #0B0C10;
    --carbon-deep:    #0E0F13;
    --graphite:       #1A1C24;
    --slate:          #262A36;
    --surface:        #14161D;
    --brass:          #B8925A;
    --brass-soft:     rgba(184, 146, 90, 0.35);
    --mauve:          #7A6B8F;
    --bone:           #E8E4DC;
    --muted:          #9A968C;
    --hairline:       #2E313B;

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;

    --container: 1240px;
    --gutter: clamp(24px, 5vw, 96px);

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font-family: inherit; }

body {
    background: var(--carbon);
    color: var(--bone);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

::selection { background: var(--brass); color: var(--carbon); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    color: var(--bone);
    letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }

.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    color: var(--brass);
    font-weight: 500;
    margin-bottom: 18px;
}

.section-lede {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* ---------- Grain overlay ---------- */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

section { position: relative; padding: 120px 0; }
section + section { border-top: 1px solid var(--hairline); }

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.12s; }
.reveal-delay-2.is-visible { transition-delay: 0.24s; }
.reveal-delay-3.is-visible { transition-delay: 0.36s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 17px 34px;
    border: 1px solid var(--brass);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s var(--ease);
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brass);
    transform: translateX(-101%);
    transition: transform 0.45s var(--ease);
    z-index: -1;
}
.btn:hover::before { transform: translateX(0); }

.btn-outline { color: var(--bone); }
.btn-outline:hover { color: var(--carbon); }

.btn-solid { background: transparent; color: var(--carbon-deep); }
.btn-solid::before { transform: translateX(0); }
.btn-solid span { position: relative; z-index: 2; color: var(--carbon-deep); }
.btn-solid { color: var(--carbon-deep); background: var(--brass); }
.btn-solid:hover { color: var(--carbon-deep); }

.btn-ghost {
    border-color: var(--hairline);
    color: var(--muted);
}
.btn-ghost::before { background: transparent; }
.btn-ghost:hover { color: var(--brass); border-color: var(--brass); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    padding: 28px 0;
    background: linear-gradient(to bottom, rgba(11,12,16,0.55), rgba(11,12,16,0));
    transition: background 0.5s var(--ease), padding 0.4s var(--ease), border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(11, 12, 16, 0.92);
    backdrop-filter: blur(10px);
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    color: var(--bone);
    font-weight: 500;
}
.logo span { color: var(--brass); }

.main-nav { display: flex; align-items: center; gap: 48px; }
.main-nav ul { display: flex; gap: 38px; }
.main-nav a:not(.btn) {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s var(--ease);
}
.main-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).is-active { color: var(--bone); }
.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn).is-active::after { transform: scaleX(1); }

.nav-cta { padding: 12px 26px; font-size: 0.72rem; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}
.menu-toggle span {
    display: block;
    height: 1px;
    background: var(--bone);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--carbon-deep);
    z-index: 450;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
    pointer-events: none;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--bone);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 0 0 110px;
    background-size: cover;
    background-position: center;
    border-top: none;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,12,16,0.92) 0%, rgba(11,12,16,0.55) 55%, rgba(11,12,16,0.75) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}
.hero h1 { max-width: 820px; }
.hero-sub {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.1rem;
    margin-top: 26px;
}
.hero-actions { display: flex; gap: 20px; margin-top: 46px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}
.hero-scroll-line {
    width: 1px;
    height: 46px;
    background: var(--hairline);
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0; width: 100%; height: 100%;
    background: var(--brass);
    animation: scrollDrop 2.2s var(--ease) infinite;
}
@keyframes scrollDrop {
    0% { top: -100%; }
    60% { top: 100%; }
    100% { top: 100%; }
}

.hero-fade-in > * { opacity: 0; transform: translateY(24px); animation: heroFade 1s var(--ease) forwards; }
.hero-fade-in .eyebrow { animation-delay: 0.1s; }
.hero-fade-in h1 { animation-delay: 0.28s; }
.hero-fade-in .hero-sub { animation-delay: 0.46s; }
.hero-fade-in .hero-actions { animation-delay: 0.64s; }
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }

/* Secondary page hero (shorter) */
.page-hero {
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 0 0 90px;
    background-size: cover;
    background-position: center;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,12,16,0.94) 10%, rgba(11,12,16,0.6) 60%, rgba(11,12,16,0.8) 100%);
}
.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}
.page-hero h1 { max-width: 760px; }

/* ---------- Stat strip ---------- */
.stat-strip {
    padding: 70px 0;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid var(--hairline);
}
.stat-item:first-child { border-left: none; }
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--brass);
    font-weight: 500;
}
.stat-label {
    margin-top: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

/* ---------- Section heading blocks ---------- */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 70px;
    flex-wrap: wrap;
}
.section-head .heading-block { max-width: 640px; }

/* ---------- Services grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--hairline);
    border: 1px solid var(--hairline);
}
.service-card {
    background: var(--carbon);
    padding: 48px 34px;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
    position: relative;
}
.service-card:hover { background: var(--surface); }
.service-card i {
    font-size: 2rem;
    color: var(--brass);
    margin-bottom: 28px;
    display: block;
}
.service-card h3 { margin-bottom: 14px; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; }
.service-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brass);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s var(--ease);
}
.service-link:hover { gap: 14px; }

/* ---------- Asymmetric preview (About / Atelier) ---------- */
.preview-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 0 90px;
    align-items: center;
}
.preview-media {
    position: relative;
    margin-left: calc(var(--gutter) * -1);
}
.preview-media img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    filter: brightness(0.82) saturate(0.9);
}
.preview-media::after {
    content: "";
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 130px;
    height: 130px;
    border: 1px solid var(--brass);
    z-index: -1;
}
.preview-text .eyebrow { margin-bottom: 20px; }
.preview-text p { color: var(--muted); margin: 26px 0; max-width: 520px; }
.text-link {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--bone);
    border-bottom: 1px solid var(--brass);
    padding-bottom: 6px;
    display: inline-block;
    transition: color 0.3s var(--ease);
}
.text-link:hover { color: var(--brass); }

/* ---------- Projects mosaic ---------- */
.mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}
.mosaic-item { grid-column: span 2; grid-row: span 1; position: relative; overflow: hidden; }
.mosaic-item.tall { grid-row: span 2; }
.mosaic-item.wide { grid-column: span 3; }
.mosaic-item img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.8) saturate(0.9);
    transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.mosaic-item:hover img { transform: scale(1.06); filter: brightness(0.55) saturate(0.9); }
.mosaic-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px;
    background: linear-gradient(to top, rgba(11,12,16,0.9), rgba(11,12,16,0));
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mosaic-item:hover .mosaic-caption { opacity: 1; transform: translateY(0); }
.mosaic-caption h4 { font-size: 1.15rem; margin-bottom: 4px; }
.mosaic-caption span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brass);
}
.mosaic-item[data-category] { display: block; }
.mosaic-item.is-hidden { display: none; }

/* ---------- Process steps ---------- */
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-strip.process-five { grid-template-columns: repeat(5, 1fr); }
.process-step {
    padding: 0 30px;
    border-left: 1px solid var(--hairline);
    position: relative;
}
.process-step:first-child { border-left: none; }
.process-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--brass);
    display: block;
    margin-bottom: 20px;
}
.process-step h4 { margin-bottom: 12px; }
.process-step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--hairline);
    padding: 44px 38px;
    position: relative;
}
.testimonial-quote-mark {
    font-family: var(--font-display);
    font-size: 3.2rem;
    color: var(--brass);
    line-height: 1;
    display: block;
    margin-bottom: 18px;
}
.testimonial-card p.quote { color: var(--bone); font-size: 1rem; margin-bottom: 30px; }
.testimonial-name { font-family: var(--font-display); font-size: 1.05rem; }
.testimonial-role { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* ---------- Lead form section ---------- */
.lead-section {
    background: var(--carbon-deep);
}
.lead-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.lead-copy h2 { margin-bottom: 22px; }
.lead-text { color: var(--muted); max-width: 440px; }
.lead-points { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.lead-points li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.92rem; }
.lead-points i { color: var(--brass); }

.lead-form {
    background: var(--surface);
    border: 1px solid var(--hairline);
    padding: 46px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { margin-bottom: 22px; }
.form-field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 10px;
}
.form-field label span { color: var(--brass); }
.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--hairline);
    color: var(--bone);
    padding: 10px 2px;
    font-size: 0.95rem;
    transition: border-color 0.3s var(--ease);
}
.form-field select option { background: var(--carbon-deep); color: var(--bone); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--brass);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #5c5952; }
.form-field textarea { resize: vertical; }

.form-field.field-error input,
.form-field.field-error select,
.form-field.field-error textarea { border-bottom-color: #a8674a; }

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.form-consent input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brass); }
.form-consent label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.82rem;
    color: var(--muted);
}
.form-consent a { color: var(--brass); border-bottom: 1px solid var(--brass-soft); }

.btn-submit { width: 100%; justify-content: center; margin-top: 6px; }

.form-success {
    display: none;
    margin-top: 20px;
    color: var(--brass);
    font-size: 0.9rem;
    text-align: center;
}
.form-success.is-visible { display: block; }
.form-error-message {
    display: none;
    margin-top: 16px;
    color: #c47f5e;
    font-size: 0.85rem;
}
.form-error-message.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding-top: 90px; }
.footer-top {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter) 70px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 50px;
}
.footer-brand p { color: var(--muted); margin-top: 22px; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--bone);
    margin-bottom: 24px;
    font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--brass); }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.footer-contact i { color: var(--brass); margin-top: 3px; }

.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding: 28px var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-nif { color: var(--muted); letter-spacing: 0.04em; }

/* ---------- About page specifics ---------- */
.philosophy-block { max-width: 780px; }
.philosophy-block p { color: var(--muted); margin-bottom: 22px; font-size: 1.02rem; }
.philosophy-block p:first-of-type { color: var(--bone); font-size: 1.15rem; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.value-item i { font-size: 1.8rem; color: var(--brass); margin-bottom: 20px; display: block; }
.value-item p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.team-card figure { overflow: hidden; margin-bottom: 22px; }
.team-card img { width: 100%; height: 340px; object-fit: cover; filter: brightness(0.85) saturate(0.85) sepia(0.08); transition: transform 0.6s var(--ease); }
.team-card:hover img { transform: scale(1.04); }
.team-card h4 { font-size: 1.15rem; }
.team-role { color: var(--brass); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 8px 0 12px; }
.team-bio { color: var(--muted); font-size: 0.88rem; }

.materials-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.material-item { background: var(--carbon); padding: 40px 30px; }
.material-item img { width: 100%; height: 140px; object-fit: cover; margin-bottom: 22px; filter: brightness(0.85) saturate(0.9); }
.material-item h4 { font-size: 1rem; margin-bottom: 10px; }
.material-item p { color: var(--muted); font-size: 0.85rem; }

/* ---------- Services page specifics ---------- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
    padding: 90px 0;
}
.service-detail:not(:last-child) { border-bottom: 1px solid var(--hairline); }
.service-detail.reverse .service-detail-media { order: 2; }
.service-detail.reverse .service-detail-text { order: 1; }
.service-detail-media img { width: 100%; height: 460px; object-fit: cover; filter: brightness(0.82) saturate(0.9); }
.service-detail-index {
    font-family: var(--font-display);
    color: var(--brass);
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    display: block;
}
.service-detail-text p { color: var(--muted); margin: 22px 0; }
.service-detail-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.service-detail-list li { display: flex; gap: 12px; color: var(--muted); font-size: 0.92rem; }
.service-detail-list i { color: var(--brass); margin-top: 3px; }

.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-align: left;
    color: var(--bone);
}
.faq-question i { color: var(--brass); transition: transform 0.35s var(--ease); flex-shrink: 0; margin-left: 20px; }
.faq-item.is-open .faq-question i { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
}
.faq-answer p { color: var(--muted); padding-bottom: 30px; max-width: 720px; }

/* ---------- Projects page specifics ---------- */
.filter-bar { display: flex; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.filter-btn {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 1px solid transparent;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.filter-btn:hover { color: var(--bone); }
.filter-btn.is-active { color: var(--brass); border-color: var(--brass); }

.case-study {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    align-items: center;
}
.case-study-media img { width: 100%; height: 520px; object-fit: cover; filter: brightness(0.82) saturate(0.9); }
.case-study-text .eyebrow { margin-bottom: 20px; }
.case-block { margin-bottom: 26px; }
.case-block h4 { color: var(--brass); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; font-family: var(--font-body); }
.case-block p { color: var(--muted); }

/* ---------- Contact page specifics ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; }
.contact-info h2 { margin: 20px 0 8px; }
.lead-form--inline { align-self: start; }
.contact-info-item { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.contact-info-item i { font-size: 1.4rem; color: var(--brass); margin-top: 4px; }
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 8px; }
.contact-info-item p { color: var(--muted); font-size: 0.92rem; }
.contact-map { margin-top: 40px; border: 1px solid var(--hairline); height: 260px; overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.6) invert(0.92) brightness(0.9) contrast(0.9); }

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    padding: 70px 0;
}
.trust-item i { font-size: 1.7rem; color: var(--brass); margin-bottom: 18px; display: block; }
.trust-item p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 { margin-top: 50px; margin-bottom: 18px; font-size: 1.5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); margin-bottom: 16px; }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-content strong { color: var(--bone); font-weight: 500; }
.legal-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.legal-table th, .legal-table td {
    text-align: left;
    padding: 14px 18px;
    border: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 0.9rem;
}
.legal-table th { color: var(--bone); font-weight: 500; }
.legal-updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 50px; font-style: italic; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .materials-strip { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; gap: 30px; }
    .process-strip, .process-strip.process-five { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
    .process-step { border-left: none; padding-left: 0; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
    .stat-item:nth-child(3) { border-left: none; }
}

@media (max-width: 992px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .preview-split, .lead-inner, .service-detail, .service-detail.reverse, .case-study, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .service-detail.reverse .service-detail-media,
    .service-detail.reverse .service-detail-text { order: initial; }
    .preview-media { margin-left: 0; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .mosaic { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .services-grid, .values-grid, .team-grid, .materials-strip { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; }
    .mosaic { grid-template-columns: repeat(2, 1fr); }
    .mosaic-item, .mosaic-item.wide, .mosaic-item.tall { grid-column: span 2; grid-row: span 1; }
    .trust-strip { grid-template-columns: 1fr; }
    .hero, .page-hero { min-height: 78vh; }
}

@media (max-width: 576px) {
    .lead-form { padding: 30px 24px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .filter-bar { gap: 24px; }
}
