/* ==========================================================================
   B&P SEAL CRAWL — TOKEN LAYER & SHARED COMPONENTS
   Concept: damp, unseen, uncertain  →  sealed, verified, dry.
   Two colours plus neutrals. No gradients. Motion: heavy and physical,
   fires once, never loops. See BUILD-PROMPT.md Phase 1 for the full brief.
   ========================================================================== */

/* ---------------------------------- fonts ------------------------------- */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-variable-latin.woff2') format('woff2-variations'),
       url('../fonts/fraunces-variable-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-variable-latin.woff2') format('woff2-variations'),
       url('../fonts/archivo-variable-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 100%;
}

/* ---------------------------------- tokens ------------------------------- */

:root {
  /* colour — re-keyed to the client's real logo (a blue house-in-a-water-drop
     mark, #3F9ED6 sampled from the actual file). #3F9ED6 itself fails text/UI
     contrast at 2.4-2.8:1, so --seal below is a deeper, AA-passing shade in
     the same hue family (6:1+ on barrier and as a button fill) rather than
     the raw logo hex. The logo file is never recoloured — only this site
     accent is derived from it. Copper stands for drainage hardware, used
     sparingly, never as a large fill. */
  --ink:        #15120F;   /* warm off-black — text, dark field */
  --ink-soft:   #2A241D;   /* lifted surface on dark sections */
  --barrier:    #EFE9DD;   /* warm bone-white — light field, "sealed" */
  --barrier-dim:#E4DCCB;   /* recessed surface on light sections */
  --clay:       #46392C;   /* damp earth brown — depth, shadow, "before" */
  --seal:       #2A5B7A;   /* deep water-blue from the logo — primary accent, "after" */
  --seal-lift:  #366F91;   /* seal hover/active state */
  --copper:     #9C6B45;   /* oxidised copper — secondary accent, sparing */
  --copper-light: #C99569; /* lighter copper tint — labels on dark/photo fields, 7:1 on ink */
  --white-line: #FAF7F0;   /* near-white, for text on dark only */

  --text-on-barrier:       #1E1A15;
  --text-on-barrier-muted: #5B5044;
  --text-on-ink:           #EFE9DD;
  --text-on-ink-muted:     #B4A996;

  --border-on-barrier: rgba(30, 26, 21, 0.12);
  --border-on-ink:     rgba(239, 233, 221, 0.14);

  /* type */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --size-display-xl: clamp(2.75rem, 2.1rem + 3.2vw, 6.5rem);
  --size-display-lg: clamp(2.25rem, 1.8rem + 2.2vw, 4.5rem);
  --size-display-md: clamp(1.75rem, 1.5rem + 1.2vw, 2.75rem);
  --size-body:       1.125rem;   /* 18px */
  --size-body-sm:    0.9375rem; /* 15px */
  --size-label:      0.6875rem; /* 11px, uppercase, tracked */

  --lh-display: 1.02;
  --lh-body:    1.7;
  --measure:    38em; /* ~ characters at body size */

  --tracking-tight: -0.03em;
  --tracking-label: 0.18em;

  /* space */
  --space-section-desktop: 176px;
  --space-section-mobile:  88px;
  --gutter-desktop: 48px;
  --gutter-mobile:  20px;
  --radius: 2px; /* corner language: sharp, no rounded language anywhere */

  /* motion — durations & easings, locked. Animate transform/opacity only. */
  --ease-micro:    cubic-bezier(0.33, 1, 0.68, 1);
  --ease-reveal:   cubic-bezier(0.16, 1, 0.30, 1);
  --ease-mask:     cubic-bezier(0.76, 0, 0.24, 1);
  --dur-micro:  240ms;
  --dur-reveal: 900ms;
  --dur-mask:   1200ms;
  --stagger-heading: 80ms;
  --stagger-grid:    110ms;

  /* z-index scale — never 9999 */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  --shadow-contact: 0 1px 2px rgba(21, 18, 15, 0.32);
  --shadow-ambient: 0 32px 64px -24px rgba(21, 18, 15, 0.28);
  --shadow-lifted:  var(--shadow-contact), var(--shadow-ambient);
}

/* ---------------------------------- reset -------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; padding: 0; cursor: pointer; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  color: var(--text-on-barrier);
  background: var(--barrier);
  padding-bottom: 0; /* set to 56px + safe-area via JS class on mobile */
}

body.has-sticky-bar {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 769px) {
  body.has-sticky-bar { padding-bottom: 0; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-display);
  color: var(--text-on-barrier);
}

h1 { font-size: var(--size-display-xl); }
h2 { font-size: var(--size-display-lg); }
h3 { font-size: var(--size-display-md); }
h4 { font-size: 1.375rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { max-width: var(--measure); }
p.lead { font-size: 1.25rem; color: var(--text-on-barrier-muted); }

.label {
  display: inline-block;
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--seal);
}

.on-ink .label { color: var(--copper); }

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

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}

@media (min-width: 769px) {
  .container { padding-inline: var(--gutter-desktop); }
}

section[class^="section-"], .section {
  padding-block: var(--space-section-mobile);
}

@media (min-width: 769px) {
  section[class^="section-"], .section {
    padding-block: var(--space-section-desktop);
  }
}

.section--tight { padding-block: calc(var(--space-section-mobile) * 0.6); }
@media (min-width: 769px) {
  .section--tight { padding-block: calc(var(--space-section-desktop) * 0.55); }
}

.on-ink { background: var(--ink); color: var(--text-on-ink); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--text-on-ink); }
.on-ink p { color: var(--text-on-ink-muted); }

.on-clay { background: var(--clay); color: var(--white-line); }
.on-clay h1, .on-clay h2, .on-clay h3, .on-clay h4 { color: var(--white-line); }
.on-clay p { color: var(--text-on-ink-muted); }

/* problem band — full-bleed photo with text overlapping it directly,
   replacing a small floating portrait crop lost in a sea of flat ink. */
.problem-band {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.problem-band__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.problem-band__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.problem-band__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21,18,15,0.94) 0%, rgba(21,18,15,0.82) 38%, rgba(21,18,15,0.35) 68%, rgba(21,18,15,0.1) 100%);
}
.problem-band__text {
  position: relative;
  z-index: 1;
  padding-block: 96px;
}
.problem-band__text > div { max-width: 44ch; }
@media (min-width: 769px) {
  .problem-band { min-height: 720px; }
}

.grid {
  display: grid;
  gap: var(--gutter-mobile);
}

@media (min-width: 769px) {
  .grid { gap: var(--gutter-desktop); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--asymmetric { grid-template-columns: 1.15fr 0.85fr; }
  .grid--asymmetric-rev { grid-template-columns: 0.85fr 1.15fr; }
}

.visually-hidden {
  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;
  background: var(--seal);
  color: var(--white-line);
  padding: 12px 20px;
  z-index: var(--z-toast);
  transition: top var(--dur-micro) var(--ease-micro);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------- focus & motion ------------------------ */

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-line, .reveal-mask { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* scroll-triggered reveals — final state present in DOM; JS adds .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-reveal) var(--ease-reveal),
              transform var(--dur-reveal) var(--ease-reveal);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-mask {
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--dur-mask) var(--ease-mask);
}
.reveal-mask.is-visible { clip-path: inset(0 0 0 0); }

.reveal-line {
  overflow: hidden;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform var(--dur-reveal) var(--ease-reveal);
}
.reveal-line.is-visible > span { transform: translateY(0); }

.no-js .reveal,
.no-js .reveal-mask,
.no-js .reveal-line > span {
  opacity: 1; transform: none; clip-path: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-body);
  font-size: var(--size-body-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  min-height: 44px;
  transition: background-color var(--dur-micro) var(--ease-micro),
              color var(--dur-micro) var(--ease-micro),
              border-color var(--dur-micro) var(--ease-micro),
              box-shadow var(--dur-micro) var(--ease-micro);
}

.btn-primary {
  background: var(--seal);
  color: var(--white-line);
}
.btn-primary:hover, .btn-primary:focus-visible { background: var(--seal-lift); }
.btn-primary:active { background: var(--ink); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-on-barrier);
  color: var(--text-on-barrier);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--seal);
  color: var(--seal);
}

.on-ink .btn-ghost, .on-clay .btn-ghost {
  border-color: var(--border-on-ink);
  color: var(--white-line);
}
.on-ink .btn-ghost:hover, .on-clay .btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

/* ---------------------------------- top bar -------------------------------- */

.topbar {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  font-size: 0.8125rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}
.topbar__contact { display: flex; align-items: center; gap: 20px; }
.topbar__contact a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-on-ink);
  transition: color var(--dur-micro) var(--ease-micro);
}
.topbar__contact a:hover, .topbar__contact a:focus-visible { color: var(--copper); }
.topbar__social { display: flex; align-items: center; gap: 14px; }
.topbar__social a {
  display: inline-flex; width: 30px; height: 30px;
  align-items: center; justify-content: center;
  color: var(--text-on-ink);
  transition: color var(--dur-micro) var(--ease-micro);
}
.topbar__social a:hover, .topbar__social a:focus-visible { color: var(--copper); }
.topbar__social svg { width: 16px; height: 16px; }

.topbar__hours { white-space: nowrap; }

@media (max-width: 768px) {
  .topbar__social, .topbar__email, .topbar__hours { display: none; }
  .topbar .container { justify-content: center; }
  .topbar__contact { gap: 0; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--barrier);
  border-bottom: 1px solid var(--border-on-barrier);
  transition: box-shadow var(--dur-micro) var(--ease-micro),
              padding-block var(--dur-micro) var(--ease-micro);
}
.site-header.is-scrolled { box-shadow: var(--shadow-contact); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  transition: padding-block var(--dur-micro) var(--ease-micro);
}
.site-header.is-scrolled .container { padding-block: 12px; }

.site-header__logo {
  display: block;
  height: 44px;
}
.site-header__logo img {
  height: 100%;
  width: auto;
  display: block;
}

.site-nav {
  display: none;
}
@media (min-width: 1025px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
  }
  .site-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    padding-block: 6px;
  }
  .site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 1px;
    background: var(--seal);
    transition: right var(--dur-micro) var(--ease-micro);
  }
  .site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { right: 0; }
}

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone {
  display: none;
  font-family: var(--font-display);
  font-size: 1.0625rem;
}
@media (min-width: 1025px) { .header__phone { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
}
@media (min-width: 1025px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 26px; height: 26px; }

/* mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 24px 24px 40px;
  transform: translateX(100%);
  transition: transform var(--dur-reveal) var(--ease-reveal);
}
.nav-overlay.is-open { transform: translateX(0); }
.nav-overlay__top { display: flex; justify-content: flex-end; }
.nav-overlay__close { width: 44px; height: 44px; color: var(--white-line); }
.nav-overlay__close svg { width: 24px; height: 24px; }
.nav-overlay__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-overlay__list a {
  display: block;
  padding-block: 16px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white-line);
  border-bottom: 1px solid var(--border-on-ink);
}
.nav-overlay__cta { margin-top: auto; padding-top: 32px; }
@media (min-width: 1025px) { .nav-overlay { display: none; } }

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

.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  padding-block: 96px 40px;
}
.footer__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 769px) {
  .footer__grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 32px; }
}
.footer__logo img { height: 40px; width: auto; margin-bottom: 20px; }
.footer__desc { font-size: 0.9375rem; max-width: 34em; }
.footer__social { display: flex; gap: 14px; margin-top: 24px; }
.footer__social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-on-ink);
  color: var(--text-on-ink);
  transition: border-color var(--dur-micro) var(--ease-micro), color var(--dur-micro) var(--ease-micro);
}
.footer__social a:hover, .footer__social a:focus-visible { border-color: var(--copper); color: var(--copper); }
.footer__social svg { width: 17px; height: 17px; }

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
  font-weight: 700;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { font-size: 0.9375rem; color: var(--text-on-ink); transition: color var(--dur-micro) var(--ease-micro); }
.footer__list a:hover, .footer__list a:focus-visible { color: var(--copper); }

.footer address { font-style: normal; font-size: 0.9375rem; line-height: 1.8; }

.footer__map {
  margin-top: 18px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-on-ink);
  background: var(--ink-soft);
}
.footer__map iframe { width: 100%; height: 100%; border: 0; }

.footer__bottom {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border-on-ink);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}
.footer-credit { font-size: 0.8125rem; color: var(--text-on-ink-muted); line-height: 1.6; }
.footer-credit a { color: var(--text-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--copper); }
.footer__legal-links { display: flex; gap: 20px; }
.footer__legal-links a:hover, .footer__legal-links a:focus-visible { color: var(--copper); }

/* ---------------------------------- sticky mobile bar ----------------------- */

.sticky-mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--ink);
  border-top: 1px solid var(--border-on-ink);
}
@media (max-width: 768px) {
  .sticky-mobile-bar { display: grid; grid-template-columns: 1fr 1fr; }
}
.sticky-mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white-line);
}
.sticky-mobile-bar a svg { width: 19px; height: 19px; }
.sticky-mobile-bar a.bar-call { background: var(--seal); }
.sticky-mobile-bar a.bar-whatsapp { background: var(--copper); }
.sticky-mobile-bar a:active { filter: brightness(0.92); }

/* ---------------------------------- breadcrumbs ----------------------------- */

.breadcrumbs {
  padding-block: 20px;
  font-size: 0.8125rem;
  color: var(--text-on-barrier-muted);
  border-bottom: 1px solid var(--border-on-barrier);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs a { color: var(--text-on-barrier-muted); }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--seal); }
.breadcrumbs li[aria-current] { color: var(--text-on-barrier); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--border-on-barrier); }

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

.card {
  background: var(--barrier);
  border: 1px solid var(--border-on-barrier);
  box-shadow: var(--shadow-contact);
  padding: 36px;
}

.service-card {
  padding: 40px 32px;
  background: var(--barrier);
  border-top: 2px solid var(--seal);
  box-shadow: var(--shadow-contact);
  transition: box-shadow var(--dur-micro) var(--ease-micro), transform var(--dur-micro) var(--ease-micro);
}
.service-card:hover, .service-card:focus-within { box-shadow: var(--shadow-lifted); transform: translateY(-4px); }

/* subtle stagger — breaks the flat identical-column rhythm without a
   sequence marker (01/02/03 is banned unless genuinely sequential; this
   isn't, so the variation is purely spatial). */
@media (min-width: 769px) {
  .service-card--02 { margin-top: -28px; }
  .service-card--03 { margin-top: 20px; }
}
.service-card__icon { width: 40px; height: 40px; color: var(--seal); margin-bottom: 24px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card a.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-weight: 600; font-size: 0.9375rem; color: var(--seal);
  cursor: pointer;
}
.service-card a.card-link svg { width: 16px; height: 16px; transition: transform var(--dur-micro) var(--ease-micro); }
.service-card a.card-link:hover svg, .service-card a.card-link:focus-visible svg { transform: translateX(4px); }

/* ---------------------------------- placeholder media (Phase 0 assets) ------ */
/* Honest, clearly-labelled placeholders. Never a stock photo, never a
   stretched wordmark. Swap the background-image the moment real assets
   arrive; the label and ratio classes can then be deleted. */

.media-placeholder {
  position: relative;
  width: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--barrier-dim),
    var(--barrier-dim) 14px,
    var(--border-on-barrier) 14px,
    var(--border-on-barrier) 15px
  );
  border: 1px dashed var(--text-on-barrier-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.on-ink .media-placeholder, .on-clay .media-placeholder {
  background: repeating-linear-gradient(
    135deg, var(--ink-soft), var(--ink-soft) 14px, var(--border-on-ink) 14px, var(--border-on-ink) 15px
  );
  border-color: var(--text-on-ink-muted);
}
.media-placeholder__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px 20px;
  color: var(--text-on-barrier-muted);
  background: rgba(239, 233, 221, 0.88);
  max-width: 80%;
}
.on-ink .media-placeholder__label, .on-clay .media-placeholder__label {
  color: var(--text-on-ink);
  background: rgba(21, 18, 15, 0.72);
}
.ratio-hero    { aspect-ratio: 16 / 10; }
.ratio-wide    { aspect-ratio: 16 / 9; }
.ratio-square  { aspect-ratio: 1 / 1; }
.ratio-portrait{ aspect-ratio: 4 / 5; }
.ratio-logo    { width: 168px; height: 44px; }

/* ---------------------------------- before/after signature ------------------ */

.signature-section { padding-top: 88px; }
@media (min-width: 769px) { .signature-section { padding-top: 96px; } }

.signature-section__intro { max-width: 46ch; }
@media (min-width: 769px) {
  .signature-section__intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    max-width: none;
  }
  .signature-section__intro .label { grid-column: 1; }
  .signature-section__intro h2 { grid-column: 1; max-width: 16ch; }
  .signature-section__intro p {
    grid-column: 2;
    grid-row: 1 / 3;
    max-width: 36ch;
    margin-top: 0 !important;
    align-self: end;
    padding-bottom: 6px;
  }
}

.beforeafter {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  margin-top: 56px;
  box-shadow: var(--shadow-lifted);
}
@media (min-width: 1025px) {
  .beforeafter {
    width: calc(100% + 96px);
    margin-left: -48px;
  }
}
.beforeafter__pane {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.beforeafter__after {
  clip-path: inset(0 0 0 50%);
}
.beforeafter__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white-line);
  transform: translateX(-1px);
  cursor: ew-resize;
}
.beforeafter__grip {
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  background: var(--white-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lifted);
}
.beforeafter__grip svg { width: 20px; height: 20px; color: var(--ink); }
.beforeafter__tag {
  position: absolute; top: 20px;
  padding: 8px 16px;
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white-line);
}
.beforeafter__tag--before { left: 20px; background: var(--clay); }
.beforeafter__tag--after { right: 20px; background: var(--seal); }
.beforeafter input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

/* ---------------------------------- reviews --------------------------------- */

.reviews-summary {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.reviews-summary__score { font-family: var(--font-display); font-size: 3rem; }
.reviews-summary__stars { display: inline-flex; gap: 2px; }
.reviews-summary__stars svg { width: 18px; height: 18px; color: var(--copper); }
.reviews-summary__count { color: var(--text-on-barrier-muted); font-size: 0.9375rem; }

.review-card {
  background: var(--barrier);
  border: 1px solid var(--border-on-barrier);
  padding: 32px;
}
.review-card__stars { display: inline-flex; gap: 2px; margin-bottom: 16px; }
.review-card__stars svg { width: 15px; height: 15px; color: var(--copper); }
.review-card__meta { display: flex; justify-content: space-between; margin-top: 20px; font-size: 0.875rem; color: var(--text-on-barrier-muted); }
.review-card__name { font-weight: 600; color: var(--text-on-barrier); }

.review-category-group { margin-bottom: 64px; }
.review-category-group__label { margin-bottom: 24px; }

/* ---------------------------------- form ------------------------------------- */

.inquiry-form { display: grid; gap: 22px; }
@media (min-width: 640px) {
  .inquiry-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 14px 16px;
  background: var(--barrier);
  border: 1px solid var(--border-on-barrier);
  min-height: 48px;
  font-size: 1rem;
  transition: border-color var(--dur-micro) var(--ease-micro);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--seal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 74, 62, 0.18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #8C3B2E; }
.field__error {
  font-size: 0.8125rem;
  color: #8C3B2E;
  display: none;
}
.field.has-error .field__error { display: block; }

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-submit {
  display: flex; align-items: center; gap: 14px;
}
.form-status { font-size: 0.9375rem; }
.form-status[data-state="success"] { color: var(--seal); }
.form-status[data-state="failed"] { color: #8C3B2E; }

.btn-primary[data-loading="true"] { opacity: 0.75; pointer-events: none; }

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

.gallery-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--border-on-barrier); }

.gallery-strip__item {
  flex: 0 0 240px;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-contact);
}
.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-reveal) var(--ease-reveal);
}
.gallery-strip__item:hover img,
.gallery-strip__item:focus-within img {
  transform: scale(1.04);
}

@media (min-width: 769px) {
  .gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: visible;
    align-items: end;
  }
  .gallery-strip__item { flex: none; }
  /* staggered rhythm — alternating heights break the flat uniform-grid look */
  .gallery-strip__item--tall { aspect-ratio: 3 / 5; align-self: start; }
  .gallery-strip__item:not(.gallery-strip__item--tall) { aspect-ratio: 4 / 3; }
}

/* ---------------------------------- stat / count ----------------------------- */

.stat { text-align: left; }
.stat__num { font-family: var(--font-display); font-size: var(--size-display-md); color: var(--seal); }
.on-ink .stat__num, .on-clay .stat__num { color: var(--copper); }
.stat__label { font-size: 0.875rem; color: var(--text-on-barrier-muted); margin-top: 6px; }
.on-ink .stat__label, .on-clay .stat__label { color: var(--text-on-ink-muted); }

/* trust bar — a floating card overlapping the hero's bottom edge; real depth
   via negative margin + a two-layer shadow, not a flat stacked section. */
.trust-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--barrier);
  border-top: 1px solid var(--border-on-barrier);
  box-shadow: var(--shadow-lifted);
  padding: 40px var(--gutter-mobile);
  margin-top: -64px;
}
@media (min-width: 769px) {
  .trust-bar {
    grid-template-columns: repeat(3, 1fr);
    padding: 48px var(--gutter-desktop);
    margin-top: -72px;
  }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media .media-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  align-items: flex-start;
  padding-top: 64px;
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(21,18,15,0.3) 0%, rgba(21,18,15,0.88) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 64px 88px;
  color: var(--white-line);
}
.hero__content .label { color: var(--copper-light); margin-bottom: 20px; }
.hero__content h1 { color: var(--white-line); max-width: 16ch; }
.hero__content p.lead { color: var(--text-on-ink-muted); margin-top: 24px; max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero__parallax { will-change: transform; }

/* page hero (inner pages, shorter) */
.page-hero {
  background: var(--ink);
  color: var(--white-line);
  padding-block: 72px 56px;
}
.page-hero h1 { color: var(--white-line); max-width: 20ch; }
.page-hero p.lead { color: var(--text-on-ink-muted); margin-top: 20px; }

/* ---------------------------------- CTA band --------------------------------- */

.cta-band {
  background: var(--seal);
  color: var(--white-line);
  text-align: center;
}
.cta-band h2 { color: var(--white-line); }
.cta-band p { color: rgba(250, 247, 240, 0.82); margin: 20px auto 0; }
.cta-band .hero__actions { justify-content: center; }
.cta-band .btn-ghost { border-color: rgba(250,247,240,0.4); color: var(--white-line); }
.cta-band .btn-ghost:hover { border-color: var(--white-line); }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: var(--clay); }

/* ---------------------------------- popup ------------------------------------- */

.demo-popup-backdrop {
  position: fixed; inset: 0;
  z-index: var(--z-modal);
  background: rgba(21, 18, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-reveal) var(--ease-reveal), visibility 0s linear var(--dur-reveal);
}
.demo-popup-backdrop.is-open {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-reveal) var(--ease-reveal);
}
.demo-popup {
  position: relative;
  max-width: 460px; width: 100%;
  background: var(--barrier);
  border-top: 3px solid var(--seal);
  box-shadow: var(--shadow-lifted);
  padding: 44px 36px;
  transform: translateY(18px);
  transition: transform var(--dur-reveal) var(--ease-reveal);
}
.demo-popup-backdrop.is-open .demo-popup { transform: translateY(0); }
.demo-popup__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.demo-popup__close svg { width: 20px; height: 20px; }
.demo-popup h3 { font-size: 1.75rem; margin-bottom: 14px; }
.demo-popup p { font-size: 0.9375rem; color: var(--text-on-barrier-muted); margin-bottom: 26px; }
.demo-popup .btn-primary { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .demo-popup-backdrop, .demo-popup { transition: none; }
}

/* ---------------------------------- 404 --------------------------------------- */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.error-page__code { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 9rem); color: var(--seal); }

/* ---------------------------------- utility --------------------------------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.flow > * + * { margin-top: 1em; }
