/* =========================================================================
   Rajaram Marmo — design system
   Ported from the original hand-written stylesheet. No framework required:
   the small grid and spacing helpers used by the Blade views live at the end.
   ========================================================================= */

:root {
    --ink: #202326;
    --deep: #1e2022;
    --paper: #f7f6f2;
    --soft: #eeece6;
    --line: #d9d6ce;
    --line-strong: #c3beb3;
    --gold: #bd9460;
    --gold-deep: #946e3d;
    --muted: #777671;
    --white: #fff;
    --success: #4f6b47;
    --success-bg: #eef1e9;
    --warning: #8e7854;
    --warning-bg: #f1eee8;
    --danger: #8d4032;
    --danger-bg: #f6ecea;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0 0 1rem; }
h1:last-child, h2:last-child, h3:last-child, h4:last-child, p:last-child { margin-bottom: 0; }

:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 3px;
}

[x-cloak] { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--deep); color: var(--white); padding: 12px 18px;
    font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- layout -- */

.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.section-space { padding: 104px 0; }

.eyebrow {
    font-size: 10px; font-weight: 700; letter-spacing: 2.8px;
    text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow.on-dark { color: var(--gold); }

.section-heading {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(32px, 3.6vw, 54px); line-height: 1.14;
    margin: 18px 0 24px;
}

.section-copy { color: var(--muted); line-height: 1.9; max-width: 570px; }

.section-top {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 30px; margin-bottom: 40px;
}

/* --------------------------------------------------------------- buttons -- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px;
    border: 1px solid var(--gold); background: var(--gold); color: var(--deep);
    padding: 15px 24px; cursor: pointer;
    font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
    transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }

.btn-dark { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }

.btn-outline { background: transparent; color: var(--white); border-color: #dad3c8; }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }

.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline-dark:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn-sm { padding: 10px 16px; font-size: 10px; letter-spacing: 1.4px; gap: 8px; }

.text-link {
    display: inline-flex; align-items: center; gap: 20px;
    padding-bottom: 9px; border-bottom: 1px solid var(--gold);
    font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
}
.text-link:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.text-link.on-dark { color: var(--white); }

/* ---------------------------------------------------------------- header -- */

.site-header { position: relative; z-index: 20; background: var(--deep); color: var(--white); }
.header-main {
    min-height: 76px; display: flex; align-items: center;
    justify-content: space-between; gap: 30px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 212px; }
.brand-icon { width: 49px; height: 49px; flex: none; object-fit: cover; border-radius: 50%; }
.brand-copy { display: flex; flex-direction: column; }
.brand-name {
    font-family: var(--font-serif); font-size: 20px; line-height: 1;
    letter-spacing: 2px; color: #e8c887;
}
.brand-sub { margin-top: 6px; font-size: 8px; letter-spacing: 3px; color: #bdad91; }

.desktop-nav { display: flex; align-items: center; gap: 32px; }
.desktop-nav a {
    font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px;
    color: #dfddd8; white-space: nowrap; padding-bottom: 2px;
}
.desktop-nav a.is-active, .desktop-nav a:hover { color: var(--gold); }
.desktop-nav a.is-active { border-bottom: 1px solid var(--gold); }

.header-action { display: flex; align-items: center; gap: 14px; }
.header-action .btn { padding: 12px 17px; font-size: 9px; }

.nav-toggle {
    display: none; border: 0; background: none; color: var(--white);
    font-size: 26px; line-height: 1; cursor: pointer; padding: 6px 10px;
}

.mobile-nav { background: #292b2d; padding: 12px 24px 24px; }
.mobile-nav a {
    display: block; padding: 13px 0; border-bottom: 1px solid #414345;
    color: var(--white); font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase;
}
.mobile-nav a.is-active { color: var(--gold); }

/* ------------------------------------------------------------------ hero -- */

.hero {
    position: relative; display: flex; align-items: center; color: var(--white);
    min-height: 650px; height: min(75vh, 760px);
    background: #4c4843 center 53% / cover no-repeat;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(17, 18, 19, .68), rgba(17, 18, 19, .29) 44%, rgba(17, 18, 19, .02) 78%);
}
.hero-content { position: relative; width: 100%; padding-top: 42px; }
.hero h1 {
    max-width: 690px; margin: 26px 0 25px;
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(44px, 6.3vw, 96px); line-height: 1.06;
}
.hero h1 em { font-style: italic; color: #dfc3a0; }
.hero p { max-width: 470px; color: #e4e1db; line-height: 1.8; }
.hero .btn { margin-top: 28px; }
.hero-bottom {
    position: absolute; bottom: 32px; left: 0; width: 100%;
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #e8e2d8;
}
.hero-bottom-inner { display: flex; justify-content: space-between; }

/* ------------------------------------------------------------ intro band -- */

.intro-band { background: var(--deep); color: var(--white); padding: 33px 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.band-item { display: flex; align-items: center; gap: 18px; padding: 5px 35px; border-right: 1px solid #535354; }
.band-item:first-child { padding-left: 0; }
.band-item:last-child { border-right: 0; }
.band-item .symbol { font-family: var(--font-serif); font-size: 27px; color: var(--gold); }
.band-item strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 16px; margin-bottom: 4px; }
.band-item small { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #afaaa3; }

/* -------------------------------------------------------------- editorial -- */

.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; }
.editorial-visual { position: relative; }
.editorial-visual img { width: 100%; height: 560px; object-fit: cover; }
.editorial-stamp {
    position: absolute; bottom: -25px; right: -25px; width: 170px; height: 130px;
    background: var(--deep); color: var(--gold); padding: 25px;
    font-family: var(--font-serif); font-size: 19px; line-height: 1.3;
}
.editorial-text h2 { margin: 21px 0 26px; }
.editorial-text .text-link { margin-top: 25px; }

/* ----------------------------------------------------------- collections -- */

.collection-section { background: var(--soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { display: block; }
.product-image {
    position: relative; height: 440px; overflow: hidden; background: #d4d1c9;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.product-card:hover .product-image img { transform: scale(1.045); }
.product-number {
    position: absolute; top: 19px; left: 19px; color: var(--white);
    font-size: 11px; letter-spacing: 1px; text-shadow: 0 1px 5px #333;
}
.product-info {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; padding-top: 19px;
}
.product-info h3 { margin: 0 0 5px; font-family: var(--font-serif); font-weight: 400; font-size: 24px; }
.product-info span { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.product-info b { font-weight: 400; font-size: 22px; }

/* ------------------------------------------------------------ dark feature -- */

.dark-feature { background: var(--deep); color: var(--white); padding: 105px 0; }
.dark-feature .section-heading { color: var(--white); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 40px; }
.pillar h3 { margin: 14px 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.pillar p { color: #bcbab5; line-height: 1.9; }
.feature-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: center; }
.feature-layout > img { width: 100%; height: 450px; object-fit: cover; }
.feature-layout p { color: #bcbab5; line-height: 1.9; }
.feature-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 42px; }
.feature-points > div { border-top: 1px solid #686761; padding-top: 19px; }
.feature-points strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 19px; margin-bottom: 8px; }
.feature-points small { color: #a9a59e; line-height: 1.7; }
.feature-layout .text-link { margin-top: 35px; }

/* ---------------------------------------------------------- contact strip -- */

.contact-strip { background: #d9c5a6; padding: 65px 0; }
.contact-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact-strip h2 {
    margin: 8px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 42px;
}

/* ------------------------------------------------------------- page banner -- */

.page-banner {
    position: relative; display: flex; align-items: center; overflow: hidden;
    height: 340px; background: var(--deep); color: var(--white);
}
.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--banner-image, none);
    background-position: center 48%;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .28;
}
.page-banner > .container-wide { position: relative; width: 100%; }
.page-banner h1 {
    margin: 17px 0 13px; font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(38px, 5vw, 72px); line-height: 1.12;
}
.page-banner p { max-width: 530px; color: #d2d0cb; line-height: 1.8; }
.breadcrumb { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #bbb7ae; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- gallery -- */

.gallery-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
    border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
    padding: 11px 19px; cursor: pointer;
    font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase;
    transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--deep); }
.filter-btn.is-active { background: var(--deep); border-color: var(--deep); color: var(--white); }
.filter-count { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 24px; }
.gallery-card img { width: 100%; height: 410px; object-fit: cover; }
.gallery-card .product-info { border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.gallery-card .item-meta { color: var(--muted); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }

.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8%; align-items: start; }
.detail-image { width: 100%; height: 620px; object-fit: cover; }
.spec-list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spec-list li {
    display: flex; justify-content: space-between; gap: 20px;
    border-bottom: 1px solid var(--line); padding: 15px 0; color: var(--muted);
}
.spec-list strong { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------------- footer -- */

.site-footer { background: #181a1c; color: var(--white); padding: 78px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 50px; }
.footer-brand p { max-width: 300px; margin-top: 20px; color: #999a99; line-height: 1.8; }
.site-footer h4 {
    margin: 8px 0 22px; color: #d6bd94; font-size: 10px;
    letter-spacing: 2px; text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 12px 0; color: #a9a9a7; font-size: 13px; }
.site-footer li a:hover { color: var(--gold); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 20px;
    margin-top: 65px; padding-top: 21px; border-top: 1px solid #393b3b;
    color: #8b8f8e; font-size: 11px;
}

/* ------------------------------------------------------------ newsletter -- */

.newsletter-panel { background: var(--deep); color: var(--white); padding: 42px; }
.newsletter-panel h3 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; margin-bottom: 12px; }
.newsletter-panel p { color: #bcbab5; line-height: 1.8; }
.newsletter-form { display: flex; gap: 10px; margin-top: 22px; }
.newsletter-form input {
    flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line-strong);
    background: var(--white); color: var(--ink);
}
.newsletter-inline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; max-width: 460px; }
.newsletter-inline input {
    flex: 1 1 100%; min-width: 0; padding: 12px 14px; border: 1px solid #454747;
    background: #232526; color: var(--white);
}
.newsletter-inline input::placeholder { color: #8f9190; }
.newsletter-inline .newsletter-name { flex: 1 1 170px; }
.newsletter-inline .btn { flex: 0 0 auto; }

/* ----------------------------------------------------------------- forms -- */

.form-label {
    display: block; margin-bottom: 9px; color: #5f5e59;
    font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.form-control {
    width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong);
    border-radius: 0; background: var(--white); color: var(--ink); font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: #9c9a94; }
.form-control:focus {
    outline: none; border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(189, 148, 96, .18);
}
textarea.form-control { min-height: 140px; resize: vertical; line-height: 1.7; }
select.form-control {
    appearance: none; -webkit-appearance: none; padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235f5e59'%3E%3Cpath d='M8 11.5 2.5 5.9l1.1-1.1L8 9.3l4.4-4.5 1.1 1.1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 13px;
}
.form-control:disabled { background: var(--soft); color: var(--muted); }
.form-control.is-invalid { border-color: var(--danger); }
.form-error { display: block; margin-top: 7px; color: var(--danger); font-size: 12px; }
.form-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.form-field { margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 22px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.checkbox input { margin-top: 3px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-aside { background: var(--deep); color: var(--white); padding: 42px; }
.contact-aside h3 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; margin-bottom: 30px; }
.contact-line { padding: 18px 0; border-top: 1px solid #414244; }
.contact-line small {
    display: block; margin-bottom: 8px; color: var(--gold);
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
}
.contact-line p { margin: 0; color: #d2cfca; line-height: 1.7; }

/* ------------------------------------------------------ alerts and pills -- */

.alert {
    padding: 14px 18px; border-left: 3px solid var(--gold);
    background: var(--warning-bg); color: var(--warning); font-size: 14px;
}
.alert-success { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.alert-danger { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.alert-info { border-color: var(--gold); background: var(--warning-bg); color: var(--warning); }

.badge {
    display: inline-block; padding: 5px 10px; font-size: 10px;
    letter-spacing: .8px; text-transform: uppercase; background: var(--soft); color: var(--muted);
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-new { background: #eae3f1; color: #59426b; }
.badge-read { background: var(--soft); color: #5f5e59; }
.badge-muted { background: var(--soft); color: var(--muted); }

.notice {
    margin-top: 26px; padding: 13px 17px; border-left: 2px solid var(--gold);
    background: var(--warning-bg); color: var(--warning); font-size: 13px;
}

/* ------------------------------------------------------------ pagination -- */

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; }
.pagination .page-link, .pagination span[aria-current] > span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
    font-size: 12px;
}
.pagination .page-link:hover { border-color: var(--deep); }
.pagination .is-active span { background: var(--deep); border-color: var(--deep); color: var(--white); }
.pagination .is-disabled span { color: #b6b3ac; border-color: var(--line); }

/* ------------------------------------------------------- empty and 404 -- */

.empty-state { padding: 70px 24px; text-align: center; }
.empty-state .empty-icon { font-size: 46px; color: var(--gold); display: block; margin-bottom: 14px; }
.empty-state h2 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }

/* ------------------------------------------------------- grid helpers -- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1100px) {
    .desktop-nav { gap: 18px; }
    .header-action { display: none; }
    .product-image { height: 360px; }
    .gallery-card img { height: 340px; }
    .footer-grid { gap: 30px; }
    .detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .detail-image { height: 480px; }
}

@media (max-width: 1024px) {
    .product-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-visual img { height: 440px; }
    .feature-layout > img { height: 380px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .container-wide { padding: 0 22px; }
    .section-space { padding: 66px 0; }

    .desktop-nav { display: none; }
    .nav-toggle { display: block; }
    .header-main { min-height: 68px; }
    .brand { min-width: auto; }
    .brand-icon { width: 40px; height: 40px; }
    .brand-name { font-size: 17px; }
    .brand-sub { font-size: 7px; }

    .hero { min-height: 520px; height: calc(85svh - 68px); max-height: 730px; background-position: 61% center; }
    .hero::before { background: linear-gradient(90deg, rgba(16, 17, 18, .76), rgba(16, 17, 18, .28)); }
    .hero-content { padding-top: 0; }
    .hero h1 { font-size: clamp(40px, 12vw, 64px); margin: 17px 0; }
    .hero p { font-size: 14px; max-width: 330px; }
    .hero-bottom { bottom: 22px; }
    .hero-bottom-inner span:last-child { display: none; }

    .intro-band { padding: 22px 0; }
    .band-grid { grid-template-columns: repeat(2, 1fr); gap: 17px; }
    .band-item { padding: 5px 0; border: 0; gap: 10px; }
    .band-item:last-child { display: none; }
    .band-item strong { font-size: 14px; }
    .band-item small { font-size: 8px; }

    .editorial-grid, .feature-layout, .form-grid, .grid-2, .grid-3, .grid-4, .pillars { grid-template-columns: 1fr; }
    .editorial-grid, .feature-layout { gap: 45px; }
    .editorial-visual img { height: 390px; }
    .editorial-stamp { right: 0; width: 135px; height: 100px; padding: 17px; font-size: 16px; }
    .section-top { flex-direction: column; align-items: flex-start; gap: 17px; }
    .product-grid, .gallery-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-image { height: 420px; }
    .gallery-card img { height: 400px; }
    .dark-feature { padding: 65px 0; }
    .feature-layout > img { height: 330px; }
    .feature-points { grid-template-columns: 1fr; }
    .contact-strip { padding: 48px 0; }
    .contact-strip-inner { display: block; }
    .contact-strip h2 { font-size: 34px; margin-bottom: 25px; }
    .newsletter-panel, .contact-aside { padding: 26px; }
    .newsletter-form { flex-direction: column; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .site-footer { padding-top: 55px; }
    .footer-bottom { display: block; line-height: 2; margin-top: 32px; }

    .page-banner { height: 300px; }
    .page-banner h1 { font-size: 42px; }
    .spec-list li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   Contact map embed
   ========================================================================= */

.map-embed { max-width: 980px; margin: 0 auto; }

.map-frame {
    aspect-ratio: 16 / 9;
    background: var(--deep);
    border: 1px solid var(--line);
}

.map-caption {
    margin: 14px 0 0;
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--muted);
}

.map-caption .text-link { font-size: 13px; }

@media (max-width: 700px) {
    .map-frame { aspect-ratio: 4 / 3; }
}

/* =========================================================================
   Digital visiting cards
   ========================================================================= */

.vcard {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    border: 1px solid var(--line);
    background: var(--white);
}

.vcard-main { padding: 46px; }

.vcard-side {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 46px;
    background: var(--deep);
    color: var(--white);
}

.vcard-identity { display: flex; align-items: center; gap: 20px; }

.vcard-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-deep);
    font-family: var(--font-serif);
    font-size: 27px;
}

.vcard-name { margin: 10px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 38px; }

.vcard-role {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.vcard-bio { margin: 26px 0 0; max-width: 46ch; color: var(--muted); line-height: 1.8; }

.vcard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.vcard-details { margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.vcard-details > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.vcard-details dt {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.vcard-details dd { margin: 0; text-align: right; }

.vcard-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }

.vcard-qr { text-align: center; }
.vcard-qr p { margin: 16px 0 12px; color: #bcbab5; font-size: 13px; line-height: 1.7; }
.vcard-qr .text-link { color: var(--white); font-size: 11px; }

/* QRs need a light background to stay readable. */
.card-qr {
    display: inline-block;
    padding: 14px;
    background: var(--white);
    line-height: 0;
}
.card-qr svg { display: block; width: 100%; height: auto; max-width: 220px; }

.vcard-cta { margin-top: auto; padding-top: 26px; border-top: 1px solid #414345; }
.vcard-cta h2 { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.vcard-cta p { margin: 0 0 18px; color: #bcbab5; font-size: 13px; line-height: 1.8; }

@media (max-width: 900px) {
    .vcard { grid-template-columns: 1fr; }
    .vcard-main, .vcard-side { padding: 30px; }
    .vcard-name { font-size: 30px; }
}

/* ------------------------------------------------------ staff celebrations -- */

.celebrations { margin: 0; padding: 0; list-style: none; }
.celebrations li {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid #eeece7;
}
.celebrations li:last-child { border-bottom: 0; }
.celebrations li > span:last-child { margin-left: auto; text-align: right; white-space: nowrap; }

/* =========================================================================
   Profile section on the home page
   Renders the same .vcard markup as the card page, on a tinted band.
   ========================================================================= */

.profile-section { background: var(--soft); }

/* The card panel is white on a tinted band, so it needs the border a plain
   page background would have supplied. */
.profile-section .vcard { border-color: var(--line-strong); }

@media (max-width: 900px) {
    .profile-section .vcard-main { padding: 26px; }
    .profile-section .vcard-name { font-size: 30px; }
}

/* =========================================================================
   Team directory (/team)
   ========================================================================= */

.team-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px; margin-top: 34px;
}

.team-card {
    display: flex; flex-direction: column;
    padding: 28px; background: var(--white); border: 1px solid var(--line);
}

.team-avatar {
    display: grid; place-items: center; width: 58px; height: 58px;
    margin-bottom: 18px; border-radius: 50%;
    background: var(--deep); color: var(--gold);
    font-family: var(--font-serif); font-size: 21px; line-height: 1;
}

.team-card h3 { margin: 0 0 5px; font-family: var(--font-serif); font-weight: 400; font-size: 23px; }
.team-role {
    margin: 0 0 14px; color: var(--gold-deep);
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
}
.team-bio { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* Pushed to the bottom so the buttons line up across a row of different
   length biographies. */
.team-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.team-empty { max-width: 620px; margin: 0 auto; text-align: center; }
.team-empty h2 { font-family: var(--font-serif); font-weight: 400; font-size: 30px; margin-bottom: 14px; }
.team-empty .btn { margin-top: 26px; }

/* The link back to the directory, under the share row on a card. */
.vcard-team { margin-top: 20px; font-size: 13px; }

@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .team-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
    .team-card { padding: 24px; }
}

/* =========================================================================
   Social profiles and the WhatsApp bubble
   ========================================================================= */

.footer-social { margin-top: 22px; padding-top: 20px; border-top: 1px solid #393b3b; }

.social-row { display: flex; flex-wrap: wrap; gap: 10px; }

.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line-strong); color: var(--ink);
    transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.social-link svg { width: 17px; height: 17px; }
.social-link:hover {
    background: var(--gold); border-color: var(--gold); color: var(--white);
    transform: translateY(-2px);
}

/* The footer, the contact aside and the card panel are all dark surfaces, so
   the icons need a lighter ring and a paler glyph to read at all. */
.site-footer .social-link,
.contact-aside .social-link,
.vcard-side .social-link { border-color: #454749; color: #d8d5cf; }
.site-footer .social-link:hover,
.contact-aside .social-link:hover,
.vcard-side .social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--deep); }

/* ------------------------------------------------------------ chat bubble -- */

/* Shrink-wrapped around the button so the dismiss control can hang off its
   corner rather than floating beside it as a second circle. */
.wa-bubble {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    line-height: 0;
}

/* The call button is its own element, not a child of the chat bubble: it answers
   to the phone number alone, so a site with the chat switched off still offers a
   call. It shares the corner and sits clear of the bubble when there is one.
   Light on purpose — a white circle reads as the quieter, secondary action
   beside the green WhatsApp pill. */
.call-bubble {
    position: fixed; right: 22px; bottom: 82px; z-index: 60;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--white, #fff); color: var(--deep, #1e2022);
    border: 1px solid rgba(20, 22, 24, .12);
    box-shadow: 0 10px 26px rgba(20, 22, 24, .22);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.call-bubble:hover {
    background: var(--soft, #eeece6); transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(20, 22, 24, .28);
}
.call-bubble svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* With no chat bubble beneath it there is nothing to clear, so it drops into the
   corner. Asked only where the browser can answer. */
@supports selector(:has(*)) {
    body:not(:has(.wa-bubble)) .call-bubble { bottom: 22px; }
}

.wa-bubble-button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 20px 13px 15px;
    border-radius: 999px;
    /* WhatsApp green on purpose: the colour is what makes the button obvious
       at a glance, which is the whole point of putting it there. */
    background: #25d366; color: #fff;
    font-size: 13px; font-weight: 500; letter-spacing: .3px;
    box-shadow: 0 10px 26px rgba(20, 22, 24, .28);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.wa-bubble-button:hover {
    background: #1eb955; transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(20, 22, 24, .32);
}
.wa-bubble-button svg { width: 22px; height: 22px; flex: 0 0 auto; }
.wa-bubble-icon { display: inline-flex; line-height: 0; }

.wa-bubble-close {
    position: absolute; top: -8px; right: -8px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; padding: 0;
    border: 1px solid rgba(20, 22, 24, .12); border-radius: 50%;
    background: var(--white); color: #55524c;
    font-size: 14px; line-height: 1; cursor: pointer;
    box-shadow: 0 4px 12px rgba(20, 22, 24, .2);
    transition: background .2s, color .2s;
}
.wa-bubble-close:hover { background: var(--deep); color: var(--white); }

@media (max-width: 700px) {
    /* Two footer columns leave little room, and four 38px circles wrap to a
       ragged 3 + 1. Smaller circles keep the row on one line. */
    .social-row { gap: 8px; }
    .social-link { width: 34px; height: 34px; }
    .social-link svg { width: 15px; height: 15px; }

    .wa-bubble { right: 20px; bottom: 20px; }
    .wa-bubble-close { top: -6px; right: -6px; }
    .wa-bubble-button {
        width: 56px; height: 56px; padding: 0; justify-content: center;
        border-radius: 50%;
    }
    .wa-bubble-label { display: none; }

    /* A 48px circle over a 56px one reads as a pair of equals; matching the
       width squares them up on a phone. */
    .call-bubble { right: 20px; bottom: 86px; width: 56px; height: 56px; }

    @supports selector(:has(*)) {
        body:not(:has(.wa-bubble)) .call-bubble { bottom: 20px; }
    }
}

/* Scrolled to the very bottom the bubble lands on the last row of the footer,
   which holds the imprint. Reserve that space, but only on pages that actually
   render a bubble — :has() keeps the footer untouched when it is switched off. */
@supports selector(:has(*)) {
    body:has(.wa-bubble) .footer-bottom,
    body:has(.call-bubble) .footer-bottom { padding-right: 232px; }

    @media (max-width: 700px) {
        body:has(.wa-bubble) .footer-bottom,
        body:has(.call-bubble) .footer-bottom { padding-right: 0; padding-bottom: 64px; }

        /* Stacked, the corner needs room for both circles. */
        body:has(.wa-bubble):has(.call-bubble) .footer-bottom { padding-bottom: 140px; }
    }

    /* The quote button lives bottom-left, so the footer needs the other side
       reserved too when it is on. */
    body:has(.quote-cta) .footer-bottom { padding-left: 196px; }

    @media (max-width: 700px) {
        body:has(.quote-cta) .footer-bottom { padding-left: 0; }
    }
}

/* ------------------------------------------------------------ trust band -- */

/* Four figures on a dark strip, low enough in the page that a visitor has
   already decided whether to keep reading before they reach them. */
.stats-band {
    background: var(--deep, #1e2022); color: #f4f1ec;
    padding: 46px 0;
}

.stats-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px; text-align: center;
}

.stat-counter strong {
    display: block;
    font-family: var(--display, Georgia, serif);
    font-size: clamp(30px, 4.4vw, 48px); font-weight: 400; line-height: 1;
}

.stat-counter span {
    display: block; margin-top: 10px;
    font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(244, 241, 236, .62);
}

/* --------------------------------------------------------- testimonials -- */

.testimonial-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-card {
    display: flex; flex-direction: column; gap: 16px;
    margin: 0; padding: 26px 24px;
    background: var(--white, #fff);
    border: 1px solid rgba(20, 22, 24, .08);
}

.testimonial-stars { display: flex; gap: 3px; font-size: 14px; color: rgba(20, 22, 24, .2); }
.testimonial-stars .is-filled { color: var(--gold-deep, #9a7b3f); }

.testimonial-card blockquote {
    flex: 1 1 auto; margin: 0;
    font-family: var(--display, Georgia, serif);
    font-size: 16px; line-height: 1.7; color: #3a3733;
}

.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex: 0 0 auto;
    border-radius: 50%; background: var(--deep, #1e2022); color: #f4f1ec;
    font-size: 13px; letter-spacing: .08em;
}

.testimonial-who { display: flex; flex-direction: column; line-height: 1.4; }
.testimonial-who strong { font-size: 14px; font-weight: 500; }
.testimonial-who small { font-size: 12px; color: #7b756c; }

/* ------------------------------------------------------------- projects -- */

.project-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.project-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.project-card {
    display: flex; flex-direction: column;
    background: var(--white, #fff);
    border: 1px solid rgba(20, 22, 24, .08);
}

.project-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.project-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-tag {
    position: absolute; top: 12px; left: 12px;
    padding: 5px 12px; background: rgba(30, 32, 34, .82); color: #f4f1ec;
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}

.project-info { padding: 20px 22px 24px; }
.project-info h3 { margin: 0; font-size: 18px; font-weight: 500; }
.project-caption { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9a7b3f; }
.project-info p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: #5a554e; }
.project-detail { color: #7b756c; }

/* ------------------------------------------------------------ quote CTA -- */

/* Bottom-left, the mirror of the chat bubble, so a phone never shows the two
   on top of one another. */
.quote-cta {
    position: fixed; left: 22px; bottom: 22px; z-index: 60;
    display: flex; align-items: center; gap: 8px;
}

.quote-cta-button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--deep, #1e2022); color: #f4f1ec;
    font-size: 13px; font-weight: 500; letter-spacing: .3px;
    box-shadow: 0 10px 26px rgba(20, 22, 24, .28);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.quote-cta-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 22, 24, .32); background: #2a2d30; }
.quote-cta-mark { color: var(--gold-deep, #9a7b3f); }

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
    .testimonial-grid, .project-grid, .project-grid-wide { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
    .quote-cta { left: 20px; bottom: 20px; gap: 6px; }
    .quote-cta-button { padding: 0; width: 56px; height: 56px; justify-content: center; border-radius: 50%; }
    .quote-cta-label { display: none; }
}

/* ------------------------------------------------------------------ blog -- */

/* The index is an article grid beside a narrow rail of topics; below 1000px the
   rail drops underneath rather than squeezing the cards. */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.blog-pager { margin-top: 36px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.post-grid-three { margin-top: 26px; }

.post-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; }
.post-card-media { display: block; overflow: hidden; }
.post-card-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-cat {
    align-self: flex-start; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--gold-deep); text-decoration: none; font-weight: 600;
}
.post-card h3 { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: 20px; line-height: 1.3; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-deep); }
.post-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.post-card-meta { margin-top: auto; padding-top: 10px; font-size: 11px; letter-spacing: .5px; color: var(--muted); }

.blog-sidebar { display: grid; gap: 26px; }
.blog-widget { border: 1px solid var(--line); padding: 22px; background: var(--white); }
.blog-widget h3 {
    margin: 0 0 14px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
}
.blog-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.blog-widget li a { color: var(--ink); text-decoration: none; font-size: 14px; }
.blog-widget li a:hover { color: var(--gold-deep); }
.blog-widget p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.blog-search { display: grid; gap: 10px; border: 1px solid var(--line); padding: 22px; background: var(--white); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
    padding: 6px 12px; border: 1px solid var(--line-strong); font-size: 12px;
    color: var(--ink); text-decoration: none; background: var(--white);
}
.tag-chip:hover { border-color: var(--gold); color: var(--gold-deep); }

/* A single piece: the prose has to be readable at a phone width and not run the
   full width of a large monitor, which is what the narrow container is for. */
.post-body-wrap { padding-top: 44px; padding-bottom: 20px; }
.post-byline { font-size: 13px; letter-spacing: .4px; color: rgba(255, 255, 255, .82); }
.post-hero { margin: 0 0 34px; }
.post-hero img { display: block; width: 100%; height: auto; }
.post-standfirst { font-family: var(--font-serif); font-size: 21px; line-height: 1.6; color: var(--ink); margin: 0 0 28px; }

.prose { color: var(--ink); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--font-serif); font-weight: 500; font-size: 27px; line-height: 1.3; margin-top: 1.9em; }
.prose h3 { font-family: var(--font-serif); font-weight: 500; font-size: 21px; margin-top: 1.6em; }
.prose a { color: var(--gold-deep); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.prose img { display: block; max-width: 100%; height: auto; }
.prose video { display: block; max-width: 100%; height: auto; }
.prose code { background: var(--soft); padding: 2px 6px; font-size: .9em; }
.prose pre { background: var(--deep); color: var(--paper); padding: 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.post-attachments { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.post-attachments h2 { margin: 0 0 16px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.post-attachments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.post-attachments a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.post-attachments a:hover { color: var(--gold-deep); }
.post-attachments .muted { margin-left: auto; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }

.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.share-label { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.share-link {
    display: inline-grid; place-items: center; width: 36px; height: 36px;
    border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
    cursor: pointer; text-decoration: none; font-size: 14px;
}
.share-link:hover { border-color: var(--gold); color: var(--gold-deep); }
.share-link svg { width: 16px; height: 16px; display: block; }

@media (min-width: 1000px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
