/*
 * RM Stone Design — global stylesheet ("Quarry", 2026-09 studio revision)
 * ============================================================================
 * The one sheet every page loads: tokens, type scale, page chrome (header,
 * footer, sticky bar) and every shared section component. The contact form
 * ships its own scoped CSS from includes/contact-form.php.
 *
 * Full contract: Website/docs/DESIGN-SYSTEM.md. Summary:
 *   - Dark throughout, no light-ground page. Colour TOKENS ARE FROZEN — the
 *     revision only adds tints/shades derived from them (alpha of --ink and
 *     --paper), never a new hue.
 *   - Archivo Black (display, 400 only, uppercase, >= 24px) + Chivo
 *     (variable 300-700, everything else).
 *   - --accent is a FILL (buttons, rules, ticks, icons). Any accent-coloured
 *     TEXT uses --accent-lt (--accent measures ~3.6:1 on --ink: fails AA text).
 *   - Structure and photography are square. Actions (buttons, phone, toggles)
 *     are pills — one shape for "you can press this".
 *   - Multi-item grids are BALANCED: `.bal` is a 12-track grid and each item
 *     carries per-breakpoint span classes computed in includes/sections.php
 *     (rm_bal_classes), so no row ever strands a lone card.
 *   - The only gradients are photographic scrims (hero, gallery none now) —
 *     they exist to make text legible over an image, nothing else.
 * ========================================================================= */

:root {
  /* ── Frozen colour tokens (do not change) ─────────────────────────────── */
  --ink: #0c0c0d;
  --raised: #141416;
  --rule: #33332d;
  --rule-lt: #46463f;
  --paper: #f2f0ec;
  --muted: #c9c5bd;
  --dim: #8a8781;
  --accent: #c4322b;
  --accent-lt: #e0554b;
  --ok: #4f9d6e;        /* form success only; never a decorative colour */

  /* Derived tints — alpha of existing tokens only, no new hues. */
  --ink-a: 12, 12, 13;              /* --ink as an rgb triple, for scrims */
  --paper-04: rgba(242, 240, 236, .04);
  --paper-08: rgba(242, 240, 236, .08);
  --paper-16: rgba(242, 240, 236, .16);
  --paper-32: rgba(242, 240, 236, .32);

  /* Legacy alias: contact/index.php sets `color:var(--slate)` inline. */
  --slate: var(--muted);
  --radius: 0;
  --pill: 999px;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s7: 56px; --s8: 64px; --s9: 80px; --s10: 112px; --s11: 144px;

  --display: 'Archivo Black', Georgia, 'Times New Roman', serif;
  --body: 'Chivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1440px;
  --measure: 68ch;
  --grid-gap: clamp(20px, 2.4vw, 36px);

  --hdr-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  interpolate-size: allow-keywords; /* lets <details> animate to height:auto where supported */
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 350 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: hidden; /* belt-and-braces; real overflow is fixed at source */
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
/* accent-lt ring: 5.2:1 on --ink, 4.9:1 on --raised (1.4.11 needs 3:1). */
:focus-visible { outline: 2px solid var(--accent-lt); outline-offset: 3px; }
/* Anything sitting on an accent fill gets a paper ring instead. */
.cta-band :focus-visible,
.section--accent :focus-visible,
.sticky-bar .is-accent:focus-visible,
.btn--primary:focus-visible,
.hdr__tel:focus-visible { outline-color: var(--paper); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 14px 22px; font-weight: 700; text-decoration: none; border-radius: var(--pill);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Type ──────────────────────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: -.025em; line-height: .98; margin: 0 0 var(--s3); color: var(--paper);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); line-height: .94; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
/* h3 is Chivo, sentence case: the contrast with the uppercase display face
   is what makes the hierarchy read as editorial rather than shouted. */
h3 {
  font-family: var(--body); font-weight: 600; font-size: 1.25rem; letter-spacing: -.005em;
  line-height: 1.3; margin: 0 0 var(--s2); color: var(--paper); text-wrap: balance;
}
h4 { font-family: var(--body); font-weight: 600; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 0 0 var(--s3); }
p { margin: 0 0 var(--s3); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-size: .72rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-lt); margin: 0 0 var(--s3);
}
/* The short red rule before every eyebrow: a fill, so --accent is allowed. */
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); flex: 0 0 auto; }
.lead { font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.6; font-weight: 300; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

/* Long-form prose (DESIGN-SYSTEM.md §3): readability solved inside the dark
   system with measure, size and a muted-on-ink pairing (~11:1). */
.prose { max-width: var(--measure); font-size: 17.5px; line-height: 1.75; }
.prose p, .prose li { color: var(--muted); text-wrap: pretty; }
.prose h2 { margin-top: var(--s8); }
.prose h2:first-child, .prose .eyebrow + h2 { margin-top: 0; }
.prose h3 { margin-top: var(--s6); margin-bottom: var(--s2); }
.prose ul, .prose ol { margin: 0 0 var(--s3); padding-left: 1.2em; }
.prose li { margin-bottom: var(--s1); }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a:not(.btn) {
  color: var(--accent-lt); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; transition: text-decoration-thickness .15s ease, color .15s ease;
}
.prose a:not(.btn):hover { text-decoration-thickness: 2px; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.prose { max-width: calc(var(--measure) + var(--gutter) * 2); }
.section { background: var(--ink); padding-block: clamp(80px, 10vw, 144px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
/* `.section--sand` / `.section--dark` are legacy names page files hard-code;
   both alias to the one alternate ground the system allows. */
.section--raised, .section--sand, .section--dark { background: var(--raised); --rule: var(--rule-lt); }
.section--raised + .section--raised, .section--raised + .section--sand, .section--sand + .section--raised,
.section--raised + .section--dark, .section--dark + .section--raised, .section--sand + .section--sand,
.section--dark + .section--dark, .section--sand + .section--dark, .section--dark + .section--sand { border-top: 1px solid var(--rule-lt); }
.section + .section:not(.section--raised):not(.section--sand):not(.section--dark):not(.section--accent) { border-top: 1px solid var(--rule); }
.section--accent { background: var(--accent); color: #fff; }
.section--accent h1, .section--accent h2, .section--accent h3 { color: #fff; }
.section--flush { padding-inline: 0; }

.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { margin-bottom: 0; max-width: 20ch; }
.section-head .eyebrow { margin-bottom: var(--s3); }
.section-head p, .section-head__intro { color: var(--muted); font-size: 1.08rem; line-height: 1.65; margin: var(--s3) 0 0; max-width: 58ch; text-wrap: pretty; }
/* Wide sections: title left, intro right, baselines meeting — the editorial
   head of a studio site. Not inside `.wrap.prose`, which is too narrow. */
@media (min-width: 1024px) {
  .wrap:not(.prose) > .section-head--split {
    max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s5) clamp(40px, 6vw, 96px); align-items: end;
  }
  .wrap:not(.prose) > .section-head--split .section-head__intro { margin: 0; justify-self: end; }
}

/* ── Balanced grid ─────────────────────────────────────────────────────────
 * Every multi-item component renders `.bal` and gives each item span classes
 * for three breakpoints (bl- ≥1024, bm- 640–1023, bs- <640). The spans are
 * computed in includes/sections.php from the item count: a row of k items
 * gives each 12/k tracks, rows differ by at most one item, and a single item
 * left on a row spans all 12. Without a class an item spans the full row.
 * ------------------------------------------------------------------------- */
.bal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); list-style: none; margin: 0; padding: 0; }
.bal > * { grid-column: span 12; min-width: 0; }
@media (max-width: 639px) {
  .bs-2 { grid-column: span 2; } .bs-3 { grid-column: span 3; } .bs-4 { grid-column: span 4; }
  .bs-6 { grid-column: span 6; } .bs-12 { grid-column: span 12; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .bm-2 { grid-column: span 2; } .bm-3 { grid-column: span 3; } .bm-4 { grid-column: span 4; }
  .bm-6 { grid-column: span 6; } .bm-12 { grid-column: span 12; }
}
@media (min-width: 1024px) {
  .bl-2 { grid-column: span 2; } .bl-3 { grid-column: span 3; } .bl-4 { grid-column: span 4; }
  .bl-6 { grid-column: span 6; } .bl-12 { grid-column: span 12; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px; border: 1px solid transparent; border-radius: var(--pill); cursor: pointer;
  font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:not([href^="tel:"])::after { content: '\2192'; font-size: 1.1em; letter-spacing: 0; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; }           /* white on accent 5.5:1 */
.btn--primary:hover { background: #a92a24; }                          /* --accent shaded: 7.1:1 */
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper-32); }
.btn--ghost:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Site header ───────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(var(--ink-a), .9);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
/* Homepage: out of flow, transparent over the full-viewport hero, whose top
   scrim band is what keeps the nav legible. */
.hdr--overlay {
  position: absolute; inset-inline: 0; top: 0; z-index: 40;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid var(--paper-16);
}
.hdr--overlay .hdr__nav > a, .hdr--overlay .hdr__dd > button { color: var(--paper); }
.hdr__in { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: var(--hdr-h); padding-block: 12px; }
.hdr__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: 0 0 auto; min-width: 0; }
.hdr__logo img { width: 44px; height: 44px; object-fit: contain; }
.hdr__logo b { font-family: var(--display); font-weight: 400; font-size: .95rem; letter-spacing: .02em; line-height: 1; text-transform: uppercase; display: block; color: var(--paper); }
.hdr__logo b + span { display: block; margin-top: 6px; font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.hdr__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hdr__nav > a, .hdr__dd > button {
  position: relative; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  padding: 12px 14px; text-decoration: none;
  font-family: var(--body); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: color .18s ease;
}
/* Underline bar: a fill, grows from the left on hover, stays on the current page. */
.hdr__nav > a::after, .hdr__dd > button::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.hdr__nav > a:hover, .hdr__dd > button:hover, .hdr__nav > a[aria-current="page"], .hdr__dd.is-ancestor > button { color: var(--paper); }
.hdr__nav > a:hover::after, .hdr__nav > a[aria-current="page"]::after, .hdr__dd.is-ancestor > button::after { transform: scaleX(1); }
.hdr__dd { position: static; }
.hdr__dd > button svg { width: 10px; height: 10px; transition: transform .2s ease; }
.hdr__dd[data-open="true"] > button svg { transform: rotate(180deg); }
.hdr__panel {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%) translateY(-8px);
  width: min(760px, calc(100vw - 40px)); background: var(--raised); border: 1px solid var(--rule-lt);
  padding: var(--s2);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
}
.hdr__dd[data-open="true"] .hdr__panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.hdr__panel a { display: block; padding: 16px 18px; text-decoration: none; transition: background-color .15s ease; }
.hdr__panel a:hover, .hdr__panel a[aria-current="page"] { background: var(--ink); }
.hdr__panel strong { display: block; font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--paper); margin-bottom: 4px; }
.hdr__panel small { display: block; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.hdr__panel .hdr__panel-all {
  grid-column: 1 / -1; margin-top: 4px; padding: 16px 18px; border-top: 1px solid var(--rule-lt);
  color: var(--accent-lt); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.hdr__panel .hdr__panel-all::after { content: ' \2192'; }
.hdr__cta { display: flex; align-items: center; gap: var(--s2); margin-left: auto; min-width: 0; }
.hdr__tel {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--accent); color: #fff; border-radius: var(--pill); padding: 12px 22px; min-height: 46px;
  font-family: var(--body); font-weight: 600; font-size: .86rem; letter-spacing: .04em; white-space: nowrap;
  transition: background-color .18s ease;
}
.hdr__tel:hover { background: #a92a24; }
.hdr__tel svg { width: 15px; height: 15px; }
.hdr__burger {
  display: none; width: 46px; height: 46px; padding: 0; place-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--paper-32); border-radius: var(--pill); cursor: pointer;
  transition: border-color .18s ease;
}
.hdr__burger:hover { border-color: var(--paper); }
.hdr__burger span:not(.screen-reader-text) { display: block; width: 18px; height: 1.5px; background: var(--paper); }
.hdr__burger span + span { margin-top: 0; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; z-index: 95; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); background: var(--ink); z-index: 96;
  border-left: 1px solid var(--rule);
  transform: translateX(100%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 18px var(--s3); border-bottom: 1px solid var(--rule); }
.drawer__close {
  width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center;
  background: none; border: 1px solid var(--paper-32); border-radius: var(--pill);
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--paper);
}
.drawer__body { padding: var(--s2) var(--s3) var(--s4); flex: 1; }
.drawer__body a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0; text-decoration: none;
  font-family: var(--body); font-weight: 500; font-size: 1.15rem; letter-spacing: -.005em; color: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.drawer__body a[aria-current="page"] { color: var(--accent-lt); }
.drawer__body .drawer__sub { padding: 10px 0 10px var(--s3); font-weight: 350; font-size: .96rem; color: var(--muted); border-bottom-color: transparent; }
.drawer__group { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin: var(--s4) 0 var(--s1); }
.drawer__foot { padding: var(--s3); border-top: 1px solid var(--rule); display: grid; gap: 10px; padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 1180px) {
  .hdr__nav, .hdr__cta .btn { display: none; }
  .hdr__burger { display: grid; }
}
@media (max-width: 560px) { .hdr__tel span { display: none; } .hdr__tel { padding: 0; width: 46px; justify-content: center; } }
@media (max-width: 480px) { .hdr__logo b + span { display: none; } }
@media (max-width: 400px) {
  .hdr__logo { flex: 0 1 auto; }
  .hdr__logo > span { display: none; }
  .hdr__in { gap: var(--s2); }
}

/* ── Hero ──────────────────────────────────────────────────────────────────
 * Full-viewport on the home page (.hero--full), shorter on interior pages
 * (.hero--page). The scrim is three layers built from --ink:
 *   1. a top band under the header (keeps the overlay nav legible),
 *   2. a bottom "floor" sized in px so it always covers the copy block,
 *   3. a left→right wash behind the copy column.
 * Measured against the actual photographs (DESIGN-SYSTEM.md §2.4): every hero
 * text run clears WCAG AA on its worst-case pixel. Change a stop here and you
 * must re-measure.
 * ------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; display: flex; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: center; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(var(--ink-a), .62) 0, rgba(var(--ink-a), .26) 120px, rgba(var(--ink-a), 0) 240px),
    linear-gradient(to top, rgba(var(--ink-a), .86) 0, rgba(var(--ink-a), .68) 200px, rgba(var(--ink-a), .38) 420px, rgba(var(--ink-a), .1) 620px, rgba(var(--ink-a), 0) 740px),
    linear-gradient(to right, rgba(var(--ink-a), .8) 0, rgba(var(--ink-a), .6) 32%, rgba(var(--ink-a), .26) 60%, rgba(var(--ink-a), .06) 80%, rgba(var(--ink-a), 0) 92%);
}
.hero__in { position: relative; display: flex; align-items: flex-end; }
.hero__c { max-width: 1040px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s4); }
.hero__rule { width: 40px; height: 2px; background: var(--accent); flex: 0 0 auto; display: block; }
.hero__kicker .eyebrow { margin: 0; color: var(--paper); letter-spacing: .26em; }
.hero__kicker .eyebrow::before { display: none; } /* the kicker draws its own rule */
.hero h1 { max-width: 14ch; margin-bottom: var(--s4); text-shadow: 0 2px 28px rgba(var(--ink-a), .5); }
.hero .lead { color: var(--paper); opacity: .9; margin-bottom: var(--s5); max-width: 52ch; text-shadow: 0 1px 14px rgba(var(--ink-a), .6); }
.hero .btn--ghost { background: rgba(var(--ink-a), .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: rgba(242, 240, 236, .5); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.hero--full { min-height: 100vh; min-height: 100svh; }
.hero--full .hero__in { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--hdr-h) + 48px); padding-bottom: clamp(56px, 10vh, 120px); }
.hero--full h1 { font-size: clamp(3rem, 7.4vw, 7rem); line-height: .9; letter-spacing: -.03em; }

.hero--page .hero__in { min-height: clamp(440px, 60vh, 640px); width: 100%; padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero--page h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); max-width: 16ch; }
.hero--page .hero__bg::after {
  background:
    linear-gradient(to top, rgba(var(--ink-a), .95) 0, rgba(var(--ink-a), .86) 200px, rgba(var(--ink-a), .62) 400px, rgba(var(--ink-a), .3) 560px, rgba(var(--ink-a), .12) 100%),
    linear-gradient(to right, rgba(var(--ink-a), .84) 0, rgba(var(--ink-a), .7) 36%, rgba(var(--ink-a), .3) 64%, rgba(var(--ink-a), 0) 86%);
}

/* Load-in: the photo settles from a slight zoom, the copy rises in. Motion
   only when the visitor has not asked for less of it. */
@media (prefers-reduced-motion: no-preference) {
  .hero--full .hero__bg picture { animation: rm-settle 2.4s var(--ease) both; }
  .hero--page .hero__bg picture { animation: rm-settle 1.8s var(--ease) both; }
  .hero__c > * { animation: rm-rise .9s var(--ease) both; }
  .hero__c > :nth-child(2) { animation-delay: .08s; }
  .hero__c > :nth-child(3) { animation-delay: .16s; }
  .hero__c > :nth-child(4) { animation-delay: .24s; }
}
@keyframes rm-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes rm-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero video (phones only; portrait footage) sits over the hero <picture>,
   whose phone source is the clip's first frame, so nothing shifts when it
   starts. Attached by the script in includes/hero.php. */
.hero__video { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Its Pause/Play (WCAG 2.2.2) is the rm_film() toggle, moved to the top-right
   corner under the header — clear of the copy and the sticky bar. `display`
   on .film__toggle beats the UA's [hidden], so restate it. Scoped under
   .hero because .film__toggle comes later in this file and would otherwise
   win on equal specificity. */
.hero .hero__toggle { left: auto; bottom: auto; top: calc(var(--hdr-h) + 12px); right: 16px; }
.hero .hero__toggle[hidden] { display: none; }
.hero.is-playing .film__icon::before { left: 1px; width: 3px; height: 12px; border: 0; background: var(--paper); box-shadow: 6px 0 0 var(--paper); }
@media (min-width: 768px) { .hero .hero__toggle { display: none; } }

@media (max-width: 767px) {
  .hero--video .hero__video { display: block; }
  /* Portrait: one vertical scrim — a band under the header, a clear window
     through the middle where the footage reads, then a deep floor under the
     copy. */
  .hero__bg::after {
    background:
      linear-gradient(to bottom, rgba(var(--ink-a), .78) 0, rgba(var(--ink-a), .4) 110px, rgba(var(--ink-a), 0) 210px),
      linear-gradient(to top, rgba(var(--ink-a), .95) 0, rgba(var(--ink-a), .9) 320px, rgba(var(--ink-a), .8) 480px,
        rgba(var(--ink-a), .68) 620px, rgba(var(--ink-a), .3) 760px, rgba(var(--ink-a), 0) 880px);
  }
  .hero--page .hero__bg::after {
    background:
      linear-gradient(to bottom, rgba(var(--ink-a), .5) 0, rgba(var(--ink-a), .3) 30%, rgba(var(--ink-a), 0) 60%),
      linear-gradient(to top, rgba(var(--ink-a), .95) 0, rgba(var(--ink-a), .88) 260px, rgba(var(--ink-a), .74) 400px, rgba(var(--ink-a), .5) 520px, rgba(var(--ink-a), .3) 100%);
  }
  .hero--full .hero__in { padding-top: calc(var(--hdr-h) + 32px); padding-bottom: calc(40px + 56px + env(safe-area-inset-bottom, 0px)); }
  .hero--full h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .hero .lead { font-size: 1.04rem; margin-bottom: var(--s4); }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero__kicker { margin-bottom: var(--s3); }
}

/* ── Breadcrumbs ───────────────────────────────────────────────────────── */
.crumbs { border-bottom: 1px solid var(--rule); background: var(--ink); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; list-style: none; margin: 0; padding: 14px 0; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.crumbs a { text-decoration: none; transition: color .15s ease; }
.crumbs a:hover { color: var(--paper); }
.crumbs li + li::before { content: '/'; margin-right: 10px; color: var(--rule-lt); }
.crumbs [aria-current="page"] { color: var(--muted); }

/* ── Service grid ──────────────────────────────────────────────────────── */
.svc-card { position: relative; display: flex; flex-direction: column; }
.svc-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.svc-card__img picture, .svc-card__img img { width: 100%; height: 100%; }
.svc-card__img img { object-fit: cover; transition: transform .8s var(--ease), opacity .3s ease; }
.svc-card:hover .svc-card__img img { transform: scale(1.045); }
.svc-card__body { padding-top: var(--s3); display: flex; flex-direction: column; flex: 1; }
.svc-card h3 {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2);
  font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase;
  margin-bottom: 12px;
}
.svc-card h3::after { content: '\2192'; font-family: var(--body); font-size: 1.1rem; color: var(--accent-lt); transition: transform .25s var(--ease); }
.svc-card:hover h3::after { transform: translateX(5px); }
.svc-card p { color: var(--muted); font-size: 1rem; margin-bottom: var(--s3); font-weight: 300; max-width: 52ch; }
.svc-card__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; }
.svc-card__links a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px;
  font-size: .76rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; color: var(--muted); border: 1px solid var(--rule-lt); border-radius: var(--pill);
  transition: color .16s ease, border-color .16s ease;
}
.svc-card__links a:hover { border-color: var(--paper); color: var(--paper); }
/* Stretched title link: the whole card is one target; sub-links sit above it. */
.svc-card__link { text-decoration: none; }
.svc-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.svc-card__link:focus-visible { outline: none; }
.svc-card:has(.svc-card__link:focus-visible) { outline: 2px solid var(--accent-lt); outline-offset: 6px; }
/* A card alone on its row turns horizontal rather than becoming a giant photo. */
@media (min-width: 640px) and (max-width: 1023px) {
  .svc-grid > .bm-12 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
  .svc-grid > .bm-12 .svc-card__body { padding-top: 0; justify-content: center; }
  .svc-grid > .bm-12 .svc-card__links { margin-top: var(--s1); }
}
@media (min-width: 1024px) {
  .svc-grid > .bl-12 { display: grid; grid-template-columns: 7fr 5fr; gap: var(--grid-gap); }
  .svc-grid > .bl-12 .svc-card__body { padding-top: 0; justify-content: center; }
  .svc-grid > .bl-12 .svc-card__links { margin-top: var(--s1); }
  .svc-grid > .bl-6 .svc-card__img { aspect-ratio: 16 / 10; }
}

/* ── Features ──────────────────────────────────────────────────────────────
 * No numerals (they ranked nothing). Each item hangs from a hairline with a
 * short red tick at its left end — the accent as a fill, not as text. */
.features { row-gap: clamp(40px, 4.5vw, 64px); }
.features__item { position: relative; padding-top: var(--s4); border-top: 1px solid var(--rule); }
.features__item::before { content: ''; position: absolute; left: 0; top: -1px; width: 32px; height: 2px; background: var(--accent); }
.features h3 { margin-bottom: 12px; }
.features p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; font-weight: 300; max-width: 60ch; }

/* ── Word band ─────────────────────────────────────────────────────────────
 * Service-word index row. Gap-as-hairline: the grid's own background shows
 * through 1px gaps, which draws a complete ruled grid at any span pattern. */
.wordband { border-block: 1px solid var(--rule); }
.wordband__grid { gap: 1px; background: var(--rule); }
.section--flush .wordband__grid { padding-inline: 0; }
.wordband__cell {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: clamp(28px, 3.4vw, 48px) var(--gutter); background: var(--ink);
  text-decoration: none; transition: background-color .25s ease; overflow: hidden;
}
.section--raised .wordband__cell, .section--sand .wordband__cell, .section--dark .wordband__cell { background: var(--raised); }
.wordband__cell::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.wordband__cell:hover { background: var(--raised); }
.wordband__cell:hover::after, .wordband__cell:focus-visible::after { transform: scaleX(1); }
.wordband__cell:focus-visible { outline-offset: -4px; }
.wordband__label { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.7vw, 2.5rem); letter-spacing: -.02em; text-transform: uppercase; line-height: 1; color: var(--paper); }
.wordband__arrow { color: var(--accent-lt); font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease); }
.wordband__cell:hover .wordband__arrow { transform: translateX(6px); }
@media (max-width: 639px) {
  .wordband__cell { padding: 24px 16px; }
  .wordband__label { font-size: 1.5rem; }
  .wordband__arrow { font-size: 1.1rem; }
}

/* ── Pull-quote ────────────────────────────────────────────────────────── */
.pullquote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pullquote__side { padding-top: 14px; }
.pullquote__rule { display: block; width: 100%; max-width: 220px; height: 2px; background: var(--accent); margin-bottom: var(--s3); }
.pullquote__label { display: block; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pullquote__quote {
  font-family: var(--display); font-weight: 400; text-transform: none; letter-spacing: -.02em;
  font-size: clamp(1.75rem, 3.3vw, 3.1rem); line-height: 1.12; color: var(--paper); margin: 0 0 var(--s5); text-wrap: balance;
}
.pullquote__quote::before { content: '\201C'; color: var(--accent); margin-right: .04em; }
.pullquote__quote::after { content: '\201D'; color: var(--accent); margin-left: .02em; }
.pullquote__body { font-size: 1.08rem; line-height: 1.7; color: var(--muted); max-width: 62ch; font-weight: 300; margin: 0; }
@media (max-width: 820px) {
  .pullquote { grid-template-columns: 1fr; gap: var(--s3); }
  .pullquote__side { padding-top: 0; }
  .pullquote__rule { width: 40px; }
}

/* ── Split (text + photograph) ─────────────────────────────────────────────
 * The figure stretches to the text column's height; its frame is sticky and
 * capped at the viewport. Short text → the photo is exactly as tall as the
 * text; long text → the photo travels with the reader instead of being
 * stranded at the top beside a wall of words. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: stretch; }
.split__text { align-self: center; padding-block: var(--s2); }
.split--flip .split__media { order: -1; }
.split__media { margin: 0; min-height: 0; }
.split__frame {
  position: sticky; top: calc(var(--hdr-h) + 24px);
  display: flex; flex-direction: column; gap: 14px;
  height: min(100%, calc(100vh - var(--hdr-h) - 48px)); min-height: 420px;
}
.split__img { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--raised); }
.split__img picture, .split__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.split__img img { object-fit: cover; }
.split figcaption { flex: 0 0 auto; font-size: .82rem; line-height: 1.5; color: var(--dim); max-width: 60ch; }
.section--raised .split figcaption, .section--sand .split figcaption, .section--dark .split figcaption { color: var(--muted); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__frame { position: static; height: auto; min-height: 0; }
  .split__img { aspect-ratio: 4 / 3; flex: none; }
}

/* ── Process steps ─────────────────────────────────────────────────────────
 * A genuine sequence, so it keeps an order indicator — a quiet "Step 01"
 * label on a timeline rule, not a red display numeral. */
.steps { counter-reset: step; row-gap: clamp(40px, 4.5vw, 64px); }
.steps > li { counter-increment: step; position: relative; padding-top: var(--s5); border-top: 1px solid var(--rule); }
.steps > li::before {
  content: 'Step ' counter(step, decimal-leading-zero); position: absolute; top: 14px; left: 0;
  font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.section--raised .steps > li::before, .section--sand .steps > li::before, .section--dark .steps > li::before { color: var(--muted); }
.steps > li::after { content: ''; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--accent); }
.steps h3 { margin-top: var(--s2); margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.7; max-width: 60ch; font-weight: 300; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { max-width: 920px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  cursor: pointer; list-style: none; padding: var(--s3) 0;
  font-family: var(--body); font-weight: 500; font-size: clamp(1.06rem, 1.6vw, 1.25rem); line-height: 1.4; letter-spacing: -.005em; color: var(--paper);
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--muted); }
.faq summary:focus-visible { outline-offset: 4px; }
/* Plus/minus icon from two bars — accent fill, ≥3:1 as a non-text graphic. */
.faq__icon { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--rule-lt); border-radius: var(--pill); transition: border-color .2s ease, transform .3s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--accent-lt); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon { border-color: var(--accent); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a, .faq details > div { padding: 0 var(--s8) var(--s4) 0; color: var(--muted); font-weight: 300; font-size: 1.02rem; line-height: 1.75; max-width: 72ch; }
.faq details > div p:last-child { margin-bottom: 0; }
/* Smooth open where ::details-content is supported; harmless elsewhere. */
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
@media (max-width: 639px) { .faq__a, .faq details > div { padding-right: 0; } }

/* ── Gallery ───────────────────────────────────────────────────────────────
 * Balanced photo grid; captions sit BELOW the photograph (the gallery-page
 * captions run to a hundred words — overlaying that on a photo was never
 * going to read). Pulled out to the edges of the content column. */
.gal { row-gap: clamp(32px, 3.5vw, 48px); column-gap: 12px; }
.wrap .gal { margin-inline: calc(var(--gutter) * -0.5); }
.gal figure { margin: 0; }
.gal__img { overflow: hidden; background: var(--raised); }
.gal__img picture, .gal__img img { width: 100%; }
.gal__img img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .9s var(--ease); }
.gal figure:hover .gal__img img { transform: scale(1.035); }
.gal figcaption { padding: var(--s2) 6px 0; }
.gal figcaption strong { display: block; font-family: var(--body); font-weight: 600; font-size: 1.02rem; color: var(--paper); margin-bottom: 6px; }
.gal figcaption span { display: block; font-size: .94rem; line-height: 1.65; color: var(--muted); font-weight: 300; max-width: 70ch; }
/* A photo alone on its row goes panoramic instead of 4:3 at full width. */
@media (min-width: 1024px) { .gal > .bl-12 .gal__img img { aspect-ratio: 21 / 9; } .gal > .bl-6 .gal__img img { aspect-ratio: 3 / 2; } }
@media (min-width: 640px) and (max-width: 1023px) { .gal > .bm-12 .gal__img img { aspect-ratio: 16 / 9; } }

/* ── Related pages ─────────────────────────────────────────────────────── */
.links { row-gap: var(--grid-gap); }
.links a {
  position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3);
  min-height: 100%; padding: var(--s4) 0 var(--s2); border-top: 1px solid var(--rule); text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--paper);
}
.links a::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.links a:hover::before, .links a:focus-visible::before { transform: scaleX(1); }
.links a small { display: block; font-weight: 300; font-size: .95rem; line-height: 1.6; color: var(--muted); margin-top: 8px; }
.links__t { display: block; }
.links a em { flex: 0 0 auto; font-style: normal; font-size: 1.25rem; line-height: 1.2; color: var(--accent-lt); transition: transform .3s var(--ease); }
.links a:hover em { transform: translateX(6px); }

/* ── Areas served ──────────────────────────────────────────────────────── */
.areas--single .areas__group h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.areas__group h3 { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.areas__list { gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.areas__list li { background: var(--ink); }
.section--raised .areas__list li, .section--sand .areas__list li, .section--dark .areas__list li { background: var(--raised); }
.areas__list a, .areas__list li > span {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2); height: 100%;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--paper);
  transition: background-color .25s ease;
}
.areas__list a:hover { background: var(--paper-04); }
.areas__list a:focus-visible { outline-offset: -4px; }
.areas__list em { font-style: normal; font-family: var(--body); font-size: 1.2rem; color: var(--accent-lt); transition: transform .3s var(--ease); }
.areas__list a:hover em { transform: translateX(6px); }
@media (max-width: 639px) { .areas__list a, .areas__list li > span { font-size: 1.5rem; padding: 22px 14px; } }

/* ── Film (owner video beside text) ────────────────────────────────────── */
.film { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.film--landscape { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.film--flip .film__media { order: 2; }
.film__media { display: flex; justify-content: center; }
.film--portrait .film__frame { width: min(100%, 440px, calc((100vh - var(--hdr-h) - 64px) * .5625)); min-width: min(100%, 280px); }
.film--landscape .film__frame { width: 100%; }
.film__frame { position: relative; overflow: hidden; background: var(--raised); }
.film__poster, .film__poster img, .film__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.film.is-playing .film__video, .film__video[controls] { opacity: 1; }
.film__toggle {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px 10px 14px;
  background: rgba(var(--ink-a), .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--paper); border: 1px solid var(--paper-32); border-radius: var(--pill); cursor: pointer;
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease;
}
.film__toggle:hover { background: var(--ink); border-color: var(--paper); }
/* Play triangle / pause bars, drawn from borders. */
.film__icon { position: relative; width: 12px; height: 12px; }
.film__icon::before { content: ''; position: absolute; left: 2px; top: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--paper); }
.film.is-playing .film__icon::before { left: 1px; width: 3px; height: 12px; border: 0; background: var(--paper); box-shadow: 6px 0 0 var(--paper); }
.film__text { max-width: 60ch; }
.film__text p { color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.film__title { max-width: 18ch; }
.film__link { margin-top: var(--s4); }
@media (max-width: 900px) {
  .film, .film--landscape { grid-template-columns: 1fr; }
  .film--flip .film__media { order: 0; }
  .film--portrait .film__frame { width: min(100%, 360px); }
}
@media (max-width: 767px) { .film--desk { display: none; } }

/* ── Closing CTA ───────────────────────────────────────────────────────── */
.cta-band { background: var(--accent); color: #fff; }
.cta-band .wrap {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end;
  gap: var(--s5) clamp(40px, 6vw, 96px); padding-block: clamp(72px, 9vw, 128px);
}
.cta-band h2 { color: #fff; margin-bottom: var(--s3); max-width: 14ch; font-size: clamp(2.2rem, 4.8vw, 4.25rem); line-height: .94; }
.cta-band p { color: #fff; max-width: 48ch; margin: 0; font-weight: 350; font-size: 1.08rem; line-height: 1.65; }
.cta-band__side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding-top: var(--s4); border-top: 1px solid rgba(255, 255, 255, .45); }
.cta-band__tel { font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 3.2vw, 2.9rem); letter-spacing: -.02em; line-height: 1; color: #fff; text-decoration: none; white-space: nowrap; }
.cta-band__tel:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cta-band__btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px;
  background: var(--ink); color: #fff; padding: 14px 30px; border-radius: var(--pill);
  font-family: var(--body); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.cta-band__btn::after { content: '\2192'; font-size: 1.1em; transition: transform .25s var(--ease); }
.cta-band__btn:hover { background: #fff; color: var(--ink); }
.cta-band__btn:hover::after { transform: translateX(4px); }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 380px) { .cta-band__tel { font-size: 1.6rem; } }

/* ── Contact details block ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-card { background: var(--raised); border: 1px solid var(--rule-lt); padding: clamp(28px, 3vw, 44px); position: sticky; top: calc(var(--hdr-h) + 24px); }
.contact-card dl { margin: 0; display: grid; gap: var(--s3); }
.contact-card dt { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.contact-card dd { margin: 0; font-weight: 600; color: var(--paper); line-height: 1.5; }
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { color: var(--accent-lt); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { position: static; } }

/* ── Site footer ───────────────────────────────────────────────────────── */
.ft { background: var(--ink); color: var(--muted); padding-block: clamp(72px, 8vw, 112px) var(--s5); font-size: .95rem; border-top: 1px solid var(--rule); }
.ft__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.ft__brand img { width: 56px; height: 56px; object-fit: contain; margin-bottom: var(--s3); }
.ft__brand p { max-width: 40ch; color: var(--muted); font-weight: 300; line-height: 1.7; }
.ft__brand p + p { margin-top: var(--s3); }
.ft__brand strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.01em; color: var(--paper); display: inline-block; margin-bottom: 6px; }
.ft h3 { font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin: 6px 0 var(--s3); }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin-bottom: 12px; line-height: 1.45; }
.ft a { text-decoration: none; color: var(--muted); transition: color .16s ease; }
.ft a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.ft__bar { margin-top: clamp(56px, 6vw, 88px); padding-top: var(--s3); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; font-size: .8rem; letter-spacing: .03em; color: var(--dim); }
.ft__bar p { margin: 0; }
.ft__bar nav { display: flex; flex-wrap: wrap; gap: var(--s3); }
.ft__bar a { color: var(--dim); }
@media (max-width: 1023px) { .ft__grid { grid-template-columns: 1fr 1fr; } .ft__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ft__grid { grid-template-columns: 1fr; } }

/* ── Sticky mobile action bar ──────────────────────────────────────────── */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(var(--ink-a), .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
}
.sticky-bar a, .sticky-bar button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  min-height: 44px; padding: 10px; border: 1px solid var(--paper-32); border-radius: var(--pill);
  background: transparent; color: var(--paper); text-decoration: none;
  font-family: var(--body); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.sticky-bar .is-accent { background: var(--accent); border-color: var(--accent); color: #fff; flex: 1.6; }
@media (max-width: 760px) {
  .sticky-bar { display: flex; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .hdr, .sticky-bar, .cta-band, .drawer, .drawer-backdrop, .film { display: none !important; }
  body { background: #fff; color: #000; }
}
