/* VIX Painting — site.css (all styles for index.html, privacy.html, thank-you.html and 404.html)

   Order matters (later rules override earlier ones):
     1. Foundation: tokens, reset, buttons, form fields, pop-ups, project pop-up,
        before/after slider, mobile action bar, placeholder markers
     2. The page: font, colours, header, sections top to bottom
     3. Responsive rules: below 1024px (phones and tablets), below 700px (phones)
     4. Small pages (privacy, thank-you, 404)
   Colours and sizes live in the :root variables near the top of part 2.
   docs/06-design.md describes the design; HANDOFF.md Part 5 says how to edit safely. */

/* ==================== 1. FOUNDATION ==================== */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #13273F;
  --text: #3A4352;
  --muted: #5F6874;
  --line: #E2E5E9;
  --navy: #13273F;
  --cream: #F9E5C6;
  --accent: #C2531F;        /* orange-ink: 4.6:1 with white text */
  --accent-hover: #A7461A;
  --on-accent: #ffffff;
  --field-bg: #ffffff;
  --field-line: #CDD3DA;
  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-field: 8px;
  --radius-modal: 16px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --col-gap: clamp(16px, 2vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--cream); color: var(--navy); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; 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: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius-btn); font-weight: 500; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Form ---------- */
.qf { position: relative; }
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.qf-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--accent); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: var(--radius-field);
  background: var(--field-bg); color: var(--ink); font-size: 16px; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235F6874' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input::placeholder, .field textarea::placeholder { color: #8A929D; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(19, 39, 63, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B42318; }
.field-error { margin: 0; font-size: 13.5px; color: #B42318; }
.qf-note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.qf-note a, .qf-alt a { color: inherit; }
.qf .btn[type="submit"] { margin-top: 18px; }
.qf-alt { margin-top: 14px; font-size: 15px; color: var(--muted); }
.qf-status { margin: 10px 0 0; font-size: 14px; min-height: 0; }
.qf-status:empty { display: none; }
.qf-status.is-error { color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qf-success { display: none; padding: 8px 0 4px; outline: none; }
.qf.is-sent > :not(.qf-success) { display: none; }
.qf.is-sent .qf-success { display: block; }
.qf-success .check { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; margin-bottom: 18px; }
.qf-success h3 { font-size: 24px; margin-bottom: 8px; }
.qf-success p { color: var(--muted); }
.qf-preview { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(194, 83, 31, .08); color: var(--ink) !important; font-size: 14px; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 34, .56); opacity: 0; transition: opacity .22s ease; }
.modal-panel { position: relative; width: min(100%, 640px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; background: var(--surface); color: var(--text); border-radius: var(--radius-modal); box-shadow: 0 32px 80px rgba(10, 20, 34, .3); opacity: 0; transform: translateY(16px); transition: opacity .22s ease, transform .26s var(--ease); }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.modal-close:hover { background: var(--ink); color: #fff; }

/* Quote modal */
.quote-panel { padding: clamp(28px, 5vw, 48px); }
.quote-panel h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; margin: 22px 0 10px; }
.quote-panel .lead { color: var(--muted); margin-bottom: 26px; max-width: 46ch; }
.person { display: flex; align-items: center; gap: 14px; }
.person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.person strong { display: block; color: var(--ink); font-weight: 500; line-height: 1.3; }
.person span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.person a { color: inherit; }

/* Project modal */
.project-panel { width: min(100%, 1180px); height: min(860px, calc(100dvh - 48px)); padding: 0; overflow: hidden; }
.project-panel [data-pm-root] { height: 100%; }
.pm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); height: 100%; }
.pm-media { position: relative; display: flex; flex-direction: column; min-height: 0; background: #0E1A2A; }
.pm-stage { position: relative; flex: 1; min-height: 0; }
.pm-stage > img, .pm-stage > .ba { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-main { object-fit: contain; }
.pm-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #0E1A2A; }
.pm-thumbs button { flex: none; width: 72px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .65; }
.pm-thumbs button[aria-current="true"] { border-color: #fff; opacity: 1; }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm-body { min-height: 0; padding: clamp(28px, 4vw, 48px); overflow: auto; overscroll-behavior: contain; }
.pm-cat { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.pm-body h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.pm-where { margin-top: 6px; color: var(--muted); }
.pm-summary { margin-top: 18px; }
.pm-facts { display: flex; gap: 32px; margin: 22px 0 0; padding: 16px 0; border-block: 1px solid var(--line); }
.pm-facts dt { font-size: 13.5px; color: var(--muted); }
.pm-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }
.pm-h { font-size: 15px; font-weight: 600; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.pm-scope { list-style: none; display: grid; gap: 6px; }
.pm-scope li { position: relative; padding-left: 20px; }
.pm-scope li::before { content: ""; position: absolute; left: 1px; top: calc(.8em - 1px); width: 9px; height: 2px; background: var(--accent); }
.pm-steps { display: grid; gap: 8px; padding-left: 20px; }
.pm-steps strong { color: var(--ink); font-weight: 500; }
.pm-quote { margin-top: 26px; padding: 18px 20px; border-left: 2px solid var(--accent); background: rgba(19, 39, 63, .04); }
.pm-quote blockquote { margin: 0; color: var(--ink); }
.pm-quote figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pm-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Before / after */
.ba { --pos: 50%; position: relative; overflow: hidden; user-select: none; background: #0E1A2A; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.ba-label { position: absolute; bottom: 14px; z-index: 2; padding: 5px 10px; border-radius: 4px; background: rgba(14, 26, 42, .7); color: #fff; font-size: 13px; }
.ba-l { left: 14px; } .ba-r { right: 14px; }
.ba input[type="range"] { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input[type="range"]:focus-visible + .ba-handle, .ba:focus-within .ba-handle::after { box-shadow: 0 0 0 3px var(--accent); }

/* ---------- Mobile action bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(10, 20, 34, .08); transform: translateY(110%); transition: transform .28s var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { min-height: 50px; padding: 12px 16px; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Placeholder markers (hidden when SHOW_PLACEHOLDER_MARKERS is false) ---------- */
.ph-badge, .sample-tag { display: none; }
.show-ph .ph-badge { display: inline-block; position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 9px; border-radius: 4px; background: rgba(14, 26, 42, .78); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.show-ph .sample-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(194, 83, 31, .12); color: var(--accent); font-size: 12px; font-weight: 600; }
.show-ph [data-ph] { text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Responsive shared bits ---------- */
@media (max-width: 899px) {
  /* The content scrolls inside the sheet, so the close button stays in view */
  .project-panel { display: flex; flex-direction: column; height: auto; overflow: hidden; }
  .project-panel [data-pm-root] { flex: 1 1 auto; height: auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .pm { grid-template-columns: minmax(0, 1fr); height: auto; } /* minmax(0,…) stops the thumbnail strip from widening the sheet */
  .pm-media, .pm-body { min-width: 0; }
  .pm-stage { flex: none; aspect-ratio: 4 / 3; }
  .pm-body { overflow: visible; }
}
@media (max-width: 640px) {
  .modal { padding: 0; align-items: end; }
  .modal-panel { width: 100%; max-height: 94dvh; border-radius: var(--radius-modal) var(--radius-modal) 0 0; transform: translateY(40px); }
  .qf-grid { grid-template-columns: 1fr; }
  .quote-panel { padding: 28px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==================== 2. THE PAGE ==================== */
/* Design (chosen 10 Nov 2026, after the Domesta template): white page, one typeface (Geist) with tight
   tracking, rounded photos, one orange for actions, navy for the few dark surfaces. See docs/06-design.md. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #FFFFFF;
  --mist: #F3F4F5;
  --surface: #FFFFFF;
  --ink: #13273F;
  --text: #3B4554;
  --muted: #626B78;
  --line: #E3E6EA;
  --navy: #13273F;
  --deep: #0E1D30;
  --cream: #F9E5C6;
  --accent: #C2531F;
  --accent-hover: #A7461A;
  --field-line: #D3D8DE;
  --radius-btn: 12px;
  --radius-card: 20px;
  --radius-field: 10px;
  --radius-modal: 20px;
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1320px;
  --col-gap: clamp(16px, 2vw, 28px);
  --section: clamp(88px, 9vw, 136px);
  --header-h: 76px;
}

html { scroll-padding-top: calc(var(--header-h) + 8px); }
body { font-size: 17px; line-height: 1.6; letter-spacing: -.005em; }
.section { padding-block: var(--section); }
h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.04em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; }
.btn { letter-spacing: -.01em; }
.btn-secondary { color: var(--ink); border-color: var(--field-line); }
.btn-secondary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; margin-bottom: clamp(40px, 4.5vw, 64px); }
.section-head h2 { grid-column: 1 / span 6; }
.section-head p { grid-column: 8 / -1; color: var(--muted); max-width: 52ch; }
.section-head .btn { grid-column: 10 / -1; justify-self: end; }

/* ---------- Top bar ---------- */
.topbar { padding-top: 10px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 0 20px; border-radius: 12px; background: var(--navy); color: rgba(255, 255, 255, .86); font-size: 14px; }
.topbar ul { display: flex; gap: 28px; list-style: none; }
.topbar li, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 16px; height: 16px; color: var(--cream); }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
/* No backdrop-filter on the header: it would trap the fixed mobile menu inside it. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .98); transition: box-shadow .25s ease; }
.site-header.is-solid { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand img { height: 42px; width: auto; }
.brand-light { display: none; }
.site-nav { display: flex; gap: clamp(20px, 2.6vw, 36px); margin: 0 auto; }
.site-nav a { font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-cta { min-height: 46px; padding: 11px 22px; font-size: 15.5px; }
.header-call, .menu-toggle { display: none; }
.site-menu { display: none; }

@media (max-width: 1023px) {
  :root { --header-h: 66px; }
  .topbar { display: none; }
  /* Phones and tablets: the header floats over the dark photo hero, then turns white once you scroll */
  .site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; color: #fff; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
  .site-header.is-solid, .site-header.menu-open { background: #fff; color: var(--ink); }
  .site-header:not(.is-solid):not(.menu-open) .brand-dark { display: none; }
  .site-header:not(.is-solid):not(.menu-open) .brand-light { display: block; }
  .site-nav, .header-cta { display: none; }
  .brand img { height: 36px; }
  .header-actions { margin-left: auto; }
  .header-call, .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer; }
  .header-call .icon { width: 21px; height: 21px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: rgba(255, 255, 255, .16); transition: background-color .25s ease; }
  .is-solid .menu-toggle, .menu-open .menu-toggle { background: var(--mist); }
  .menu-toggle span { display: block; width: 20px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.3px) rotate(-45deg); }
  .site-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: #fff; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
  .site-menu.is-open { opacity: 1; visibility: visible; }
  .site-menu nav { display: flex; flex-direction: column; }
  .site-menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 500; letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
  .site-menu-foot { display: grid; gap: 10px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; padding-bottom: clamp(48px, 6vw, 88px); }
.hero-copy { grid-column: 1 / span 7; padding-right: clamp(0px, 3vw, 48px); }
.hero-note { display: none; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 15px; font-weight: 500; color: var(--ink); }
.hero-note .icon { color: var(--accent); }
.hero h1 { font-size: clamp(44px, 5.9vw, 86px); line-height: .98; letter-spacing: -.046em; font-weight: 500; max-width: 12ch; }
.hero-lead { margin-top: 26px; max-width: 44ch; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-person { margin-top: 44px; }
.hero-person img { width: 46px; height: 46px; }

.hero-card { grid-column: 8 / -1; padding: clamp(24px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; box-shadow: 0 24px 60px rgba(19, 39, 63, .08); }
.card-person { display: none; }
.hero-card-title { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.hero-card-lead { margin: 8px 0 20px; font-size: 15px; color: var(--muted); }
.hero-card .qf-grid { gap: 12px; }
.hero-card .field label { font-size: 13.5px; }
.hero-card .field textarea { min-height: 88px; }
.hero-card .qf .btn[type="submit"] { margin-top: 16px; }
.hero-card .qf-note { margin-top: 12px; font-size: 13px; }

.hero-bg { display: none; } /* phones and tablets only, see the responsive block */

.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: clamp(300px, 44vw, 660px); object-fit: cover; object-position: 50% 62%; }
.hero-photo figcaption { padding-top: 14px; font-size: 14px; color: var(--muted); }

/* One load moment: copy and form rise once. */
.js .hero [data-in] { opacity: 0; transform: translateY(12px); transition: opacity .8s ease var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js.is-loaded .hero [data-in] { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
.about-copy { grid-column: 1 / span 5; }
.about-copy p { margin-top: 20px; max-width: 48ch; }
.about-copy h2 + p { margin-top: 28px; }
.about-copy .btn { margin-top: 36px; }
.about-photos { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); align-items: start; }
.about-photo .img-wrap { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-card); background: var(--mist); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-photo figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.about-photo-low { margin-top: clamp(48px, 7vw, 96px); }
.about-photo .prep-crop { object-position: 66% 50%; }

/* ---------- Why band ---------- */
.why { background: var(--mist); padding-block: clamp(36px, 4vw, 52px); }
.why-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--col-gap); }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--accent); }
.why-list h3 { font-size: 17px; letter-spacing: -.015em; }
.why-list p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Services ---------- */
.service-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.service-card { position: relative; aspect-ratio: 10 / 11; overflow: hidden; border-radius: var(--radius-card); background: var(--deep); color: #fff; isolation: isolate; }
.service-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 29, 48, .9) 0%, rgba(14, 29, 48, .55) 34%, rgba(14, 29, 48, 0) 62%); }
.service-card > div { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2vw, 28px); }
.service-card h3 { color: #fff; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.15; letter-spacing: -.03em; }
.service-card p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 34ch; }

/* ---------- Work ---------- */
.work { background: var(--mist); }
.work-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 21vw, 300px); gap: var(--col-gap); }
.work-grid > li { min-width: 0; }
.work-grid .w-big { grid-column: span 2; grid-row: span 2; }
.work-grid .w-wide { grid-column: span 2; }
.work-card { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius-card); overflow: hidden; background: var(--deep); color: #fff; text-align: left; cursor: pointer; isolation: isolate; }
.work-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 29, 48, .78) 0%, rgba(14, 29, 48, 0) 46%); pointer-events: none; }
.work-card:hover img { transform: scale(1.03); }
.work-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 2px; padding: 18px 20px; }
.work-cap span { font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.work-cap strong { font-size: 18px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.w-big .work-cap { padding: 26px 28px; }
.w-big .work-cap strong { font-size: 24px; }
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--mist); }
.work-pair .pair-half { position: relative; overflow: hidden; }
.work-pair .pair-half img { z-index: 0; }
.work-pair::after { z-index: 1; }
.work-pair .work-cap { z-index: 2; }
.work-pair em { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12.5px; font-style: normal; font-weight: 500; }

/* ---------- Who (switcher) ---------- */
.switcher { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.switcher-tabs { grid-column: 1 / span 4; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.switcher-tabs [role="tab"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--muted); font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.03em; text-align: left; cursor: pointer; transition: color .18s ease; }
.switcher-tabs [role="tab"]::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity .18s ease; flex: none; }
.switcher-tabs [role="tab"]:hover { color: var(--ink); }
.switcher-tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.switcher-tabs [role="tab"][aria-selected="true"]::after { opacity: 1; }
.switcher-panels { grid-column: 6 / -1; }
.panel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.panel[hidden] { display: none; }
.panel.is-active { animation: panel-in .35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: var(--radius-card); }
.panel-card { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius-card); background: var(--navy); color: rgba(255, 255, 255, .8); }
.panel-card h3 { color: #fff; font-size: clamp(22px, 2vw, 27px); line-height: 1.15; letter-spacing: -.03em; }
.panel-card p { margin-top: 14px; font-size: 15.5px; }
.panel-card ul { list-style: none; display: grid; gap: 10px; margin: 22px 0 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); }
.panel-card li { position: relative; padding-left: 26px; color: #fff; font-size: 15.5px; }
.panel-card li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 1.75px solid var(--cream); border-bottom: 1.75px solid var(--cream); transform: rotate(-45deg); }
.panel-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Areas ---------- */
.areas { background: var(--mist); }
.areas-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.areas-copy { grid-column: 1 / span 5; }
.areas-copy p { margin-top: 20px; max-width: 42ch; color: var(--muted); }
.areas-copy .areas-note { margin-top: 14px; }
.areas-note a { color: var(--ink); text-underline-offset: 4px; }
.region-list { grid-column: 7 / -1; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; padding: 8px 28px; border-radius: var(--radius-card); background: #fff; }
.region-list li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17.5px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.region-list li:nth-last-child(-n + 2) { border-bottom: 0; }
.region-list .icon { width: 18px; height: 18px; color: var(--accent); }
.map-frame { margin-top: clamp(40px, 4.5vw, 64px); height: clamp(320px, 34vw, 460px); overflow: hidden; border-radius: var(--radius-card); background: #E1E4E8; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq-title { text-align: center; }
.faq-list { max-width: 880px; margin: clamp(36px, 4vw, 56px) auto 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--field-line); border-radius: 50%; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.faq-icon .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.faq-list details[open] .faq-icon { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-list details[open] .faq-icon .icon { transform: rotate(45deg); }
.faq-a { padding: 0 60px 24px 0; color: var(--muted); }

/* ---------- Quote ---------- */
.quote { padding-top: 0; }
.quote-panel-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; padding: clamp(28px, 5vw, 72px); border-radius: 28px; background: var(--navy); color: rgba(255, 255, 255, .8); }
.quote-copy { grid-column: 1 / span 5; padding-top: 8px; }
.quote-copy h2 { color: #fff; }
.quote-copy > p { margin-top: 20px; max-width: 40ch; }
.quote-copy .person { margin-top: 40px; }
.quote-copy .person strong { color: #fff; }
.quote-copy .person span { color: rgba(255, 255, 255, .64); }
.quote-lines { list-style: none; display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.quote-lines li { display: flex; align-items: center; gap: 12px; color: #fff; }
.quote-lines .icon { color: var(--cream); }
.quote-lines a { text-decoration: none; }
.quote-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.quote-card { grid-column: 7 / -1; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-card); background: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 6vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: clamp(40px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 84px; }
.footer-brand p { max-width: 24ch; color: var(--ink); font-weight: 500; line-height: 1.35; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--col-gap); padding-block: clamp(40px, 4vw, 56px); }
.site-footer h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-links { display: flex; gap: 24px; }

/* ==================== 3. RESPONSIVE ==================== */
/* Below 1024px: phones and tablets (stacked layout, dark photo first screen). Below 700px: phones. */
@media (max-width: 1023px) {
  /* Dark photo hero: white text over the Barden Ridge dusk photo, the quote card overlapping its bottom edge */
  .hero { padding-top: 0; }
  .hero-grid { padding-bottom: clamp(48px, 8vw, 72px); }
  .hero-copy, .hero-card { grid-column: 1 / -1; }
  .hero-copy { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 100vh; min-height: 100svh; margin-inline: calc(var(--gutter) * -1); padding: calc(var(--header-h) + 56px) var(--gutter) 120px; background: var(--deep); color: #fff; }
  /* The photo box is taller than the hero and pinned to its bottom, so the sky is trimmed and the house sits higher */
  .hero-bg { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 124%; z-index: -2; }
  .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
  /* Two scrims: a short one under the header, and one rising from the bottom (in px, so it tracks the text on any screen height) */
  .hero-copy::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(180deg, rgba(14, 29, 48, .6) 0, rgba(14, 29, 48, 0) 150px),
    linear-gradient(0deg, rgba(14, 29, 48, .94) 0, rgba(14, 29, 48, .86) 260px, rgba(14, 29, 48, .72) 470px, rgba(14, 29, 48, .26) 600px, rgba(14, 29, 48, .12) 100%); }
  .hero-note { display: inline-flex; color: #fff; } /* the facts bar is hidden on phones and tablets */
  .hero-note .icon { color: var(--cream); }
  .hero h1 { color: #fff; }
  .hero-lead { color: rgba(255, 255, 255, .86); }
  .hero-actions .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .55); }
  .hero-actions .btn-secondary:hover { background: #fff; color: var(--ink); border-color: #fff; }
  .hero-person { display: none; }
  .card-person { display: flex; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .card-person img { width: 44px; height: 44px; }
  .hero-card { position: relative; z-index: 1; margin-top: -72px; box-shadow: 0 20px 50px rgba(14, 29, 48, .16); }
  .hero-photo { display: none; }
  .section-head h2 { grid-column: 1 / -1; }
  .section-head p { grid-column: 1 / -1; margin-top: 16px; }
  .section-head .btn { grid-column: 1 / -1; justify-self: start; margin-top: 24px; }
  .about-copy, .about-photos { grid-column: 1 / -1; }
  .about-photos { margin-top: 48px; }
  .why-list { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .switcher-tabs, .switcher-panels { grid-column: 1 / -1; }
  .switcher-tabs { margin-bottom: 28px; }
  .areas-copy, .region-list { grid-column: 1 / -1; }
  .region-list { margin-top: 32px; }
  .quote-copy, .quote-card { grid-column: 1 / -1; }
  .quote-card { margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 699px) {
  .hero h1 { font-size: clamp(40px, 11.6vw, 56px); letter-spacing: -.048em; }
  .hero-actions .btn { flex: 1 1 0; padding-inline: 14px; } /* both buttons on one line down to ~370px, stacked below that */
  .hero-lead { font-size: 17px; }
  .hero-photo img { height: 300px; }
  .why-list { grid-template-columns: 1fr; gap: 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16 / 11; }
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 12px; }
  .work-grid .w-big { grid-column: 1 / -1; grid-row: span 2; }
  .work-grid .w-wide { grid-column: 1 / -1; }
  .work-cap { padding: 14px; }
  .work-cap strong { font-size: 16px; }
  .switcher-tabs { flex-direction: row; overflow-x: auto; gap: 8px; border-top: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .switcher-tabs::-webkit-scrollbar { display: none; }
  .switcher-tabs [role="tab"] { flex: none; padding: 10px 16px; border: 1px solid var(--field-line); border-radius: 999px; font-size: 15.5px; letter-spacing: -.01em; }
  .switcher-tabs [role="tab"]::after { display: none; }
  .switcher-tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .panel { grid-template-columns: 1fr; }
  .panel > img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .region-list { grid-template-columns: 1fr; padding: 4px 20px; }
  .region-list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .faq-a { padding-right: 0; }
  .quote-panel-wrap { border-radius: 22px; margin-inline: calc(var(--gutter) * -.5); }
  .quote-card { padding: 20px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-actions { width: 100%; }
  .footer-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ==================== 4. SMALL PAGES (privacy, thank-you, 404) ==================== */
.page-header { border-bottom: 1px solid var(--line); }
.page-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.page-header .brand img { height: 40px; width: auto; }
.page-main { padding-block: clamp(48px, 7vw, 96px); }
.page-main .narrow { max-width: 760px; }
.page-main > .wrap > .brand { display: inline-block; margin-bottom: 32px; }
.page-main > .wrap > .brand img { height: 52px; width: auto; }
.page-main h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -.045em; }
.page-main h2 { margin: 36px 0 0; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.page-main p { margin-top: 14px; }
.page-main .lead { margin-top: 18px; font-size: 19px; color: var(--muted); }
.page-main a:not(.btn) { color: var(--ink); text-underline-offset: 3px; }
.page-main .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.page-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.page-footer p { margin: 0; }
