/* ==========================================================================
   Newlook Upholstery — brand stylesheet
   Ink, olive and tan from the logo on ivory. DM Serif Display + DM Sans.
   Signatures: the running stitch (dashed tan line) and deep-button tufting on dark panels.
   ========================================================================== */

:root {
    --ink:         #1B1A17;
    --charcoal:    #2A2823;
    --olive:       #55632A;   /* text-safe olive */
    --olive-light: #8A9A48;   /* decorative olive from the logo */
    --olive-soft:  #EEF0E2;
    --tan:         #C39A5A;   /* logo tan, decorative + on dark */
    --tan-deep:    #8A6A33;   /* text-safe tan */
    --tan-soft:    #F3EADB;
    --ivory:       #F8F5EE;
    --parchment:   #EFE9DD;
    --stone:       #D6CDBC;
    --body:        #2E2B26;
    --muted:       #6B655A;
    --white:       #FFFFFF;

    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

    --container: 1180px;
    --radius: 6px;
    --radius-lg: 14px;
    --shadow: 0 24px 50px -26px rgba(27, 26, 23, 0.4);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--body); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---------- type ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; margin: 0 0 0.45em; color: var(--ink); letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--tan-deep); }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); margin: 0 0 1.1rem; }
.eyebrow-light { color: var(--tan); }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 60ch; }
a { color: var(--tan-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--tan-deep); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--tan); padding: 10px 18px; }
.skip-link:focus { left: 12px; top: 12px; }

/* the running stitch */
.stitch { display: inline-block; width: 44px; height: 0; border-top: 2px dashed var(--tan); flex: none; }
.stitch-wide { display: block; width: 100%; border-top: 2px dashed var(--stone); margin: 0; }
.stitch-rule { display: block; width: 100%; height: 0; border-top: 2px dashed var(--tan); opacity: 0.6; }

/* deep-button tufting on dark panels */
.tufted { position: relative; }
.tufted::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
    background-image: radial-gradient(circle at center, rgba(195, 154, 90, 0.9) 1.5px, transparent 2px);
    background-size: 56px 56px; background-position: 0 0, 28px 28px;
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.tufted > .container { position: relative; }

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

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer; font-family: inherit; transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover { transform: translateY(-2px); }
.btn-tan { background: var(--tan); color: var(--ink); }
.btn-tan:hover { background: #D4AB6B; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--ivory); }
.btn-ink:hover { background: var(--charcoal); color: var(--tan); }
.btn-olive { background: var(--olive); color: var(--ivory); }
.btn-olive:hover { background: #46521F; color: var(--ivory); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: rgba(248, 245, 238, 0.45); }
.btn-ghost-light:hover { border-color: var(--tan); color: var(--tan); }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.text-link .icon { transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- topbar + header ---------- */

.topbar { background: var(--ink); color: var(--stone); font-size: 0.8rem; font-weight: 500; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 7px; }
.topbar-note { margin: 0; }
.topbar-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.topbar-links a { color: var(--ivory); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.topbar-links a:hover { color: var(--tan); }

.site-header { background: rgba(248, 245, 238, 0.97); border-bottom: 1px solid rgba(27, 26, 23, 0.08); position: sticky; top: 0; z-index: 50; transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(27, 26, 23, 0.4); }
.header-inner { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: block; line-height: 0; }
.brand-logo { width: 150px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: 9px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: background 0.2s, color 0.2s; }
.site-nav a:hover { background: var(--parchment); }
.site-nav a.active { background: var(--ink); color: var(--ivory); }
.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > a { padding-right: 6px; }
.sub-toggle { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); display: inline-flex; border-radius: 999px; }
.sub-toggle .icon { transform: rotate(90deg); transition: transform 0.25s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
.sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid rgba(27, 26, 23, 0.08); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s; z-index: 60; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.sub-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { border-radius: 8px; padding: 9px 12px; font-size: 0.9rem; font-weight: 500; }
.sub-menu a[aria-current="page"] { background: var(--olive-soft); color: var(--olive); }
.sub-menu .sub-all { font-weight: 700; color: var(--tan-deep); border-bottom: 1px dashed var(--stone); border-radius: 0; margin-bottom: 4px; }
.nav-mobile-only { display: none; }
.nav-toggle { display: none; }
.header-cta { padding: 11px 20px; font-size: 0.86rem; }

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

.hero { position: relative; color: var(--ivory); overflow: hidden; isolation: isolate; min-height: min(88vh, 840px); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 26, 23, 0.3) 0%, rgba(27, 26, 23, 0.05) 30%, rgba(27, 26, 23, 0.8) 100%), linear-gradient(90deg, rgba(27, 26, 23, 0.75) 0%, rgba(27, 26, 23, 0.3) 55%, rgba(27, 26, 23, 0) 100%); }
.hero-inner { padding-block: 120px 72px; width: 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 48px; align-items: end; }
.hero .eyebrow { color: var(--tan); }
.hero h1 { color: var(--ivory); max-width: 14ch; text-wrap: balance; }
.hero h1 em { color: var(--tan); }
.hero .lede { color: rgba(248, 245, 238, 0.88); margin: 1.3rem 0 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card { background: rgba(248, 245, 238, 0.97); color: var(--body); border-radius: var(--radius-lg); padding: 28px 30px; box-shadow: var(--shadow); justify-self: end; max-width: 360px; width: 100%; position: relative; }
.hero-card .roundel { position: absolute; top: -56px; right: 22px; }
.hero-card .eyebrow { padding-right: 100px; font-size: 0.66rem; letter-spacing: 0.16em; }
.hero-card h2 { font-size: 1.6rem; margin: 0.3rem 0 0.4rem; }
.hero-card ul { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; font-weight: 600; }
.hero-card li { display: flex; align-items: center; gap: 10px; }
.hero-card li .icon { color: var(--olive); flex: none; }
.hero-card .btn { width: 100%; justify-content: center; }

.proof { background: var(--olive); color: var(--ivory); }
.proof-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 22px 20px; border-left: 1px dashed rgba(248, 245, 238, 0.3); display: flex; gap: 14px; align-items: center; }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item .icon { color: var(--tan); flex: none; }
.proof-item strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.1; }
.proof-item span { font-size: 0.82rem; color: rgba(248, 245, 238, 0.8); }

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-parchment { background: var(--parchment); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: var(--stone); }
.section-ink h2, .section-ink h3 { color: var(--ivory); }
.section-ink .step h3, .section-ink .promise h3, .section-ink .masonry figcaption strong { color: var(--ink); }
.section-ink h2 em { color: var(--tan); }
.section-ink .eyebrow { color: var(--tan); }
.section-ink .lede { color: rgba(248, 245, 238, 0.75); }
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head h2 { text-wrap: balance; }

/* ---------- two-lane split (domestic / commercial) ---------- */

.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lane { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: var(--ivory); min-height: 520px; display: flex; align-items: flex-end; text-decoration: none; isolation: isolate; }
.lane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.lane::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 26, 23, 0) 30%, rgba(27, 26, 23, 0.85) 100%); }
.lane:hover img { transform: scale(1.05); }
.lane-body { padding: 36px; }
.lane-body .eyebrow { color: var(--tan); margin-bottom: 0.6rem; }
.lane-body h3 { color: var(--ivory); font-size: 2.2rem; }
.lane-body p { color: rgba(248, 245, 238, 0.85); margin-bottom: 1rem; max-width: 46ch; }
.lane-body .text-link { color: var(--tan); }

/* ---------- service cards ---------- */

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--body); border: 1px solid rgba(27, 26, 23, 0.07); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 0.9s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover img { transform: scale(1.04); }
.service-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.service-body p { font-size: 0.95rem; color: var(--muted); margin: 0 0 14px; flex: 1; }
.service-body .text-link { color: var(--tan-deep); font-size: 0.88rem; }

/* ---------- split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split-media .roundel { position: absolute; right: -26px; bottom: -26px; filter: drop-shadow(0 14px 24px rgba(27, 26, 23, 0.35)); }
.split-media .swoosh { position: absolute; left: -36px; top: -40px; }
.split h2 { text-wrap: balance; }
.split-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6rem; }
.tick-list { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick-list .icon { color: var(--olive); flex: none; margin-top: 4px; }
.quote-panel { margin-top: 1.6rem; padding: 24px 28px; border-left: 3px dashed var(--tan); background: var(--white); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.quote-panel h3 { font-size: 1.4rem; margin-bottom: 0.3em; }
.quote-panel p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding: 32px 28px 28px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(27, 26, 23, 0.07); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-style: italic; font-size: 3rem; line-height: 1; color: var(--stone); position: absolute; top: 16px; right: 22px; }
.step .icon { color: var(--tan-deep); margin-bottom: 16px; }
.step h3 { font-size: 1.45rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- feature (promise) cards ---------- */

.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.promise { padding: 28px 28px 26px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(27, 26, 23, 0.07); }
.promise .icon { color: var(--olive); margin-bottom: 12px; }
.promise h3 { font-size: 1.45rem; }
.promise p { margin: 0; color: var(--muted); font-size: 0.95rem; }

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

.masonry { columns: 3; column-gap: 20px; }
.masonry figure { break-inside: avoid; margin: 0 0 20px; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid rgba(27, 26, 23, 0.07); }
.masonry a { display: block; }
.masonry img { width: 100%; transition: transform 0.9s var(--ease); }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { padding: 12px 16px 14px; font-size: 0.88rem; color: var(--muted); }
.masonry figcaption strong { display: block; color: var(--ink); font-weight: 700; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gallery-filter a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--stone); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.86rem; }
.gallery-filter a[aria-current] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(27, 26, 23, 0.92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox figure { margin: 0; max-width: 1200px; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; border-radius: var(--radius); }
.lightbox figcaption { color: var(--stone); margin-top: 12px; font-size: 0.95rem; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--ivory); font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(27, 26, 23, 0.07); }
.team-card img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.team-card div { padding: 16px 18px 18px; }
.team-card h3 { font-size: 1.3rem; margin-bottom: 0.15em; }
.team-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

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

.page-hero { position: relative; color: var(--ivory); overflow: hidden; isolation: isolate; min-height: 500px; display: flex; align-items: flex-end; }
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 26, 23, 0.35), rgba(27, 26, 23, 0.15) 40%, rgba(27, 26, 23, 0.85) 100%); }
.page-hero-inner { padding-block: 96px 56px; }
.page-hero .eyebrow { color: var(--tan); }
.page-hero h1 { color: var(--ivory); max-width: 16ch; text-wrap: balance; font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
.page-hero h1 em { color: var(--tan); }
.page-hero .lede { color: rgba(248, 245, 238, 0.88); }
.page-hero.plain { min-height: 0; background: var(--ink); }
.page-hero.plain::before { display: none; }
.breadcrumb { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; font-weight: 600; color: rgba(248, 245, 238, 0.7); }
.breadcrumb a { color: var(--stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--tan); text-decoration: underline; }

/* ---------- prose + article ---------- */

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 2rem; }
.prose h3 { font-size: 1.4rem; margin-top: 1.6rem; }
.prose h4 { font-size: 1.15rem; margin-top: 1.4rem; font-family: var(--font-body); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: var(--radius-lg); margin: 1.6rem 0; }
.prose figure { margin: 1.6rem 0; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.prose blockquote { margin: 1.6rem 0; padding: 18px 24px; border-left: 3px dashed var(--tan); background: var(--white); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1.4rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--stone); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--parchment); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 64px; align-items: start; }
.sticky-aside { position: sticky; top: 110px; }
.aside-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid rgba(27, 26, 23, 0.07); }
.aside-card h3 { font-size: 1.45rem; margin-top: 16px; }
.aside-card p { color: var(--muted); font-size: 0.95rem; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.aside-links { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px dashed var(--stone); }
.aside-links li { border-bottom: 1px dashed var(--stone); }
.aside-links a { display: block; padding: 10px 2px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.aside-links a:hover, .aside-links a[aria-current] { color: var(--tan-deep); }
.contact-inline { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contact-inline a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.notice { padding: 16px 20px; border-radius: var(--radius-lg); background: var(--tan-soft); border: 1px solid var(--tan); font-weight: 600; margin-bottom: 1.6rem; }

/* FAQ */
.faq { border-top: 1px dashed var(--stone); }
.faq details { border-bottom: 1px dashed var(--stone); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tan-deep); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* type cards (e.g. styles) */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type-card { background: var(--white); border-radius: var(--radius-lg); padding: 30px 28px; border-top: 4px solid var(--olive-light); }
.type-card:nth-child(3n+2) { border-top-color: var(--tan); }
.type-card:nth-child(3n) { border-top-color: var(--ink); }
.type-card h3 { font-size: 1.6rem; }
.type-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.type-card .tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }

/* ---------- news ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(27, 26, 23, 0.07); display: flex; flex-direction: column; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive); margin: 0 0 8px; }
.post-card h2, .post-card h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--tan-deep); }
.post-card p { font-size: 0.93rem; color: var(--muted); margin: 0 0 12px; flex: 1; }
.post-card.feature { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card.feature img { aspect-ratio: auto; height: 100%; }
.post-card.feature .post-card-body { padding: 40px; justify-content: center; }
.post-card.feature h2 { font-size: 2.2rem; }
.article-hero { background: var(--ink); color: var(--ivory); }
.article-hero-inner { padding-block: 72px 48px; max-width: 820px; }
.article-hero h1 { color: var(--ivory); font-size: clamp(2.2rem, 4.4vw, 3.6rem); text-wrap: balance; }
.article-hero .post-meta { color: var(--tan); }
.article-figure { margin: -40px auto 0; max-width: 980px; padding-inline: 24px; position: relative; }
.article-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.article-body { max-width: 760px; margin-inline: auto; padding-block: 56px 24px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; max-width: 760px; margin: 40px auto 0; padding-top: 24px; border-top: 1px dashed var(--stone); }
.article-nav a { text-decoration: none; font-weight: 700; max-width: 45%; }
.article-nav span { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

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

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 18px; padding: 20px 22px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(27, 26, 23, 0.07); }
.contact-card .icon { color: var(--tan-deep); flex: none; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 0.2em; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.map-panel { margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(27, 26, 23, 0.1); background: var(--parchment); }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }
.form-card { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 38px 40px; border: 1px solid rgba(27, 26, 23, 0.07); box-shadow: var(--shadow); }
.form-card h2 { font-size: 2.1rem; }
.form-card > p { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--body); padding: 13px 15px; border: 1.5px solid var(--stone); border-radius: var(--radius); background: var(--ivory); transition: border-color 0.2s, box-shadow 0.2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(85, 99, 42, 0.18); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.form-check input { width: auto; margin: 0; accent-color: var(--olive); }
.form-hint { font-size: 0.82rem; color: var(--muted); margin: -10px 0 18px; }
.form-extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 16px 18px; border-radius: var(--radius); font-weight: 600; margin-bottom: 18px; }
.form-notice.ok { background: var(--olive-soft); color: var(--olive); }
.form-notice.err { background: #F6E3E1; color: #7A2B22; }

/* ---------- CTA band + footer ---------- */

.cta-band { background: var(--charcoal); color: var(--ivory); overflow: hidden; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; padding-block: 72px; }
.cta-band h2 { color: var(--ivory); font-size: clamp(2rem, 3.6vw, 3rem); text-wrap: balance; }
.cta-band h2 em { color: var(--tan); }
.cta-lede { color: rgba(248, 245, 238, 0.8); max-width: 56ch; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { justify-content: center; }

.site-footer { background: var(--ink); color: var(--stone); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr; gap: 40px; padding-block: 64px 44px; }
.footer-logo { width: 180px; height: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 0.95rem; line-height: 1.65; max-width: 320px; margin: 0 0 18px; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.footer-social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(214, 205, 188, 0.3); align-items: center; justify-content: center; color: var(--ivory); }
.footer-social a:hover { border-color: var(--tan); color: var(--tan); }
.footer-heading { font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tan); margin: 0 0 14px; }
.footer-heading-gap { margin-top: 26px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-list a { color: var(--stone); text-decoration: none; }
.footer-list a:hover { color: var(--ivory); text-decoration: underline; }
.footer-list-areas { columns: 2; column-gap: 16px; }
.footer-address { font-style: normal; font-size: 0.92rem; }
.footer-address p { margin: 0 0 8px; }
.footer-address a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.footer-address a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px dashed rgba(214, 205, 188, 0.25); padding: 18px 0; }
.footer-legal-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-legal p { margin: 0; font-size: 0.82rem; color: rgba(214, 205, 188, 0.75); }
.footer-legal a { color: var(--stone); }
.footer-legal a:hover { color: var(--tan); }

/* ---------- motion ---------- */

.roundel-ring { transform-origin: 75px 75px; animation: turn 30s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }
.service-grid [data-reveal]:nth-child(2), .post-grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.service-grid [data-reveal]:nth-child(3), .post-grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.hero-in { animation: hero-in 1s var(--ease) both; }
.hero-in.d1 { animation-delay: 0.12s; }
.hero-in.d2 { animation-delay: 0.24s; }
.hero-in.d3 { animation-delay: 0.4s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal], .hero-in { opacity: 1; transform: none; transition: none; animation: none; }
    .roundel-ring { animation: none; }
    .btn:hover, .service-card:hover, .post-card:hover { transform: none; }
    .service-card:hover img, .lane:hover img, .masonry figure:hover img { transform: none; }
}

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

@media (max-width: 1100px) {
    .service-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-card.feature { grid-column: span 2; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .steps.five { grid-template-columns: repeat(3, 1fr); }
    .header-cta { display: none; }
    .site-nav a { padding: 9px 9px; font-size: 0.86rem; }
}

@media (max-width: 900px) {
    .hero { min-height: 0; }
    .hero-inner { grid-template-columns: 1fr; padding-block: 88px 56px; gap: 40px; }
    .hero-card { justify-self: start; max-width: 100%; margin-top: 44px; }
    .proof-inner { grid-template-columns: repeat(2, 1fr); }
    .proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .proof-item:nth-child(-n+2) { border-bottom: 1px dashed rgba(248, 245, 238, 0.3); }
    .lanes { grid-template-columns: 1fr; }
    .lane { min-height: 380px; }
    .split, .split.reverse { grid-template-columns: 1fr; gap: 44px; }
    .split.reverse > :first-child { order: 0; }
    .split-media { max-width: 560px; }
    .split-media .roundel { right: 10px; }
    .steps, .steps.five, .type-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 44px; }
    .sticky-aside { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-inner { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: row; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .masonry { columns: 2; }
    .post-card.feature { grid-template-columns: 1fr; }
    .post-card.feature img { aspect-ratio: 16 / 9; height: auto; }

    .site-nav { position: fixed; inset: 0; z-index: 60; background: var(--ivory); padding: 100px 28px 32px; transform: translateX(100%); transition: transform 0.4s var(--ease), visibility 0.4s; margin-left: 0; overflow-y: auto; visibility: hidden; }
    .site-nav.open { transform: translateX(0); visibility: visible; }
    .site-nav > ul { flex-direction: column; gap: 2px; align-items: stretch; }
    .site-nav a { font-size: 1.15rem; padding: 14px 8px; border-radius: 10px; border-bottom: 1px dashed rgba(27, 26, 23, 0.15); }
    .has-sub { flex-wrap: wrap; }
    .has-sub > a { flex: 1; }
    .sub-toggle { width: 48px; height: 48px; justify-content: center; align-items: center; }
    .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--parchment); width: 100%; padding: 6px 10px; display: none; }
    .has-sub.sub-open .sub-menu { display: block; }
    .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
    .has-sub.sub-open:hover .sub-menu, .has-sub.sub-open:focus-within .sub-menu { display: block; }
    .sub-menu a { font-size: 1rem; border-bottom: 0; }
    .nav-mobile-only { display: block; }
    .nav-mobile-only a { color: var(--tan-deep); }
    .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; z-index: 70; position: relative; width: 46px; height: 46px; padding: 10px; background: none; border: none; cursor: pointer; }
    .nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .topbar-inner { justify-content: center; }
    .topbar-note { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .section { padding: 64px 0; }
    .brand-logo { width: 124px; }
    .service-grid, .post-grid, .promise-grid, .team-grid { grid-template-columns: 1fr; }
    .post-card.feature { grid-column: span 1; }
    .proof-inner { grid-template-columns: 1fr; }
    .proof-item { border-left: 0; padding-left: 0; border-bottom: 1px dashed rgba(248, 245, 238, 0.3); }
    .proof-item:last-child { border-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .form-card { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; }
    .hero-card .roundel { width: 110px; height: 110px; top: -48px; right: 14px; }
    .cta-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .masonry { columns: 1; }
    .lane-body { padding: 24px; }
    .lane-body h3 { font-size: 1.8rem; }
    .article-figure { margin-top: -24px; }
}

/* ---------- extras ---------- */
.section-head-gap { margin-top: 64px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chips .btn { padding: 11px 20px; font-size: 0.9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
