/* ════════════════════════════════════════════════════════════════
   snaggingGuard — Apple-style design system, black / gold / white
   ════════════════════════════════════════════════════════════════ */

:root {
  /* Neutrals */
  --bg:        #f5f5f7;
  --surface:   #ffffff;
  --hover:     #fbfbfd;
  --text:      #1d1d1f;
  --text-body: #424245;
  --text-2:    #6e6e73;
  --text-3:    #86868b;
  --faint:     #d2d2d7;
  --hairline:  rgba(0,0,0,0.07);
  --track:     #e8e8ed;

  /* Brand */
  --ink:       #0b0b0c;   /* black sections */
  --gold:      #c9a24b;   /* brand gold — large text, fills, on black */
  --gold-ink:  #8a6a22;   /* gold for small text on light ground (AA) */
  --gold-soft: rgba(201,162,75,0.12);
  --grad-gold: linear-gradient(135deg, #e2c27a 0%, #c9a24b 55%, #a8842f 100%);

  /* Status */
  --danger:    #d70015;   /* error text and borders on light ground (dark surfaces: see .calc) */

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Radius tiers */
  --r-pill:  999px;
  --r-thumb: 12px;
  --r-card:  18px;
  --r-panel: 22px;
  --r-hero:  26px;

  /* Shadows (two-layer) */
  --sh-card:    0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  --sh-panel:   0 1px 3px rgba(0,0,0,0.05), 0 14px 40px rgba(0,0,0,0.05);
  --sh-lift:    0 12px 32px rgba(0,0,0,0.1);
  --sh-gold:    0 14px 36px rgba(201,162,75,0.32);
  --sh-overlay: 0 2px 8px rgba(0,0,0,0.10), 0 30px 80px rgba(0,0,0,0.24);

  /* Layout */
  --max-grid: 1080px;
  --max-read: 760px;
  --pad-x:    22px;
  --nav-h:    56px;
  --section:  clamp(72px, 11vw, 128px);

  /* Motion */
  --ease-spring:    cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max-grid) + var(--pad-x) * 2); margin: 0 auto; padding: 0 var(--pad-x); }
.container.narrow { max-width: calc(var(--max-read) + var(--pad-x) * 2); }

/* ── Type ─────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(44px, 8.4vw, 92px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(32px, 5.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.07;
}
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--gold-ink); margin-bottom: 14px;
}
.eyebrow-hero { font-size: clamp(17px, 2vw, 21px); letter-spacing: -0.005em; }
.eyebrow-lg { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.01em; margin-bottom: 16px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text-2); letter-spacing: -0.01em; }

.section { padding: var(--section) 0 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .2s var(--ease-out-quart), box-shadow .2s var(--ease-out-quart), background-color .2s, color .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: var(--sh-lift); }
.btn-gold { background: var(--grad-gold); color: var(--ink); }
.btn-gold:hover { box-shadow: var(--sh-gold); }
.btn-light { background: var(--track); color: var(--text); }
.btn-light:hover { background: var(--faint); }
.btn-ghost { color: var(--text); padding: 0 12px; }
.btn-ghost svg { transition: transform .2s var(--ease-out-quart); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-glass {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.18); }

.link { color: var(--gold-ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  color: var(--gold-ink); background: var(--gold-soft);
}

/* ── Nav (fixed glass contact bar) ────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgba(245,245,247,0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); box-shadow: 0 1px 12px rgba(0,0,0,0.04); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; flex: none; margin-right: 10px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.brand span { color: var(--gold); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-body); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.nav-phone svg { width: 16px; height: 16px; color: var(--gold-ink); }
.nav-phone:hover { color: var(--gold-ink); }
.menu-btn {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

.scrim { position: fixed; inset: 0; z-index: 48; background: rgba(0,0,0,0.25); }
.menu-sheet {
  position: fixed; z-index: 49; top: calc(var(--nav-h) + 8px); left: 12px; right: 12px;
  display: flex; flex-direction: column; padding: 8px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-radius: var(--r-panel); box-shadow: var(--sh-overlay);
  transform-origin: top right;
  animation: sheet-in .4s var(--ease-spring);
}
.menu-sheet a { padding: 14px 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; border-radius: var(--r-thumb); }
.menu-sheet a + a { border-top: 1px solid var(--hairline); }
.menu-sheet a:active { background: var(--track); }
@keyframes sheet-in { from { opacity: 0; transform: scale(0.96) translateY(-6px); filter: blur(4px); } }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 104px)); text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { max-width: 640px; margin-top: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--sh-card);
  font-size: 14px; color: var(--text-body);
}
.chips b { color: var(--text); font-weight: 600; }
.chips img { width: 22px; height: 22px; }
.hero-photo {
  position: relative; margin-top: clamp(48px, 7vw, 80px);
  border-radius: var(--r-hero); overflow: hidden; box-shadow: var(--sh-panel);
  aspect-ratio: 1264 / 700; background: var(--track);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.glass-label {
  position: absolute; left: 18px; bottom: 18px;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(20,20,22,0.42);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
}

/* ── Panel (unified surface + hairlines) ──────────────────────── */
.panel { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--sh-panel); overflow: hidden; }
.row { padding: 22px 26px; }
.row + .row { border-top: 1px solid var(--hairline); }

/* ── Statement (black) ────────────────────────────────────────── */
.statement {
  margin-top: var(--section); padding: clamp(88px, 13vw, 160px) 0;
  background: var(--ink); color: #fff; text-align: center;
}
.statement-inner { max-width: 900px; }
.statement .eyebrow { color: var(--gold); }
.statement h2 { font-size: clamp(40px, 7vw, 80px); letter-spacing: -0.045em; line-height: 1.04; }
.statement h2 .gold {
  display: block;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.statement p:last-child { max-width: 560px; margin: 26px auto 0; font-size: clamp(18px, 2.2vw, 21px); color: rgba(255,255,255,0.62); line-height: 1.55; }

/* ── Inspector ────────────────────────────────────────────────── */
.inspector { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 22px; align-items: stretch; }
.inspector-photo { border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--sh-panel); background: var(--track); }
.inspector-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 28px 24px; }
.profile-head h3 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; }
.profile-head p { color: var(--text-2); margin-top: 2px; }
.badges { display: flex; align-items: center; gap: 10px; flex: none; }
.badges img { height: 64px; width: auto; }
.facts .row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 28px; border-top: 1px solid var(--hairline); }
.facts dt { font-size: 14px; color: var(--text-3); padding-top: 1px; }
.facts dd { font-size: 16px; color: var(--text-body); }
.facts a { color: var(--gold-ink); font-weight: 600; }
.facts a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Credentials ──────────────────────────────────────────────── */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred {
  display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--r-panel);
  background: var(--surface); box-shadow: var(--sh-card);
  transition: translate .35s var(--ease-out-quart), box-shadow .35s;
}
.cred:hover { translate: 0 -4px; box-shadow: var(--sh-lift); }
.cred-logos { display: flex; align-items: center; gap: 14px; min-height: 72px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.cred-logos picture { min-width: 0; }
.cred-logos img { height: 60px; width: auto; max-width: 100%; object-fit: contain; }
.cred h3 { margin-top: 18px; }
.cred p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); flex: 1; }
.cred-id { align-self: flex-start; margin-top: 16px; padding: 5px 11px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--gold-ink); background: var(--gold-soft); }
a.cred-id:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── Property types ───────────────────────────────────────────── */
.ptypes { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ptypes li {
  flex: 0 1 calc((100% - 3 * 14px) / 4); min-width: 0; overflow: hidden; border-radius: var(--r-panel);
  background: var(--surface); box-shadow: var(--sh-card);
  transition: translate .35s var(--ease-out-quart), box-shadow .35s;
}
.ptypes li:hover { translate: 0 -4px; box-shadow: var(--sh-lift); }
.ptypes figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--track); }
.ptypes figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out-quart); }
.ptypes li:hover figure img { transform: scale(1.06); }
.pt-body { position: relative; padding: 30px 20px 22px; text-align: center; }
.pt-body svg {
  position: absolute; left: 50%; top: -24px; width: 48px; height: 48px; margin-left: -24px; padding: 11px;
  border-radius: 50%; background: var(--ink); color: var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.ptypes h3 { margin-top: 4px; }
.ptypes p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text-2); }

/* ── Systems grid (one panel, hairline cells) ─────────────────── */
.systems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); }
.systems li { background: var(--surface); padding: 26px 24px 28px; transition: background-color .2s; }
.systems li:hover { background: var(--hover); }
.systems span { display: block; font-size: 13px; font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.systems p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.systems .systems-note, .systems .systems-note:hover { background: var(--grad-gold); color: var(--ink); }
.systems .systems-note span { color: var(--ink); }
.systems .systems-note p { color: rgba(11,11,12,0.72); }

/* ── Pricing ──────────────────────────────────────────────────── */
.prices { max-width: 860px; margin: 0 auto; }
.price-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 22px 28px; }
.price-row p { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.price { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price small { font-size: 0.55em; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.price-row .btn { min-width: 84px; }

.calc {
  max-width: 860px; margin: 22px auto 0; padding: clamp(26px, 4vw, 36px);
  border-radius: var(--r-panel); background: var(--ink); color: #fff;
  display: grid; gap: 26px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field > label { font-size: 13px; color: rgba(255,255,255,0.55); }
.field select, .field input {
  height: 50px; padding: 0 16px; border-radius: var(--r-thumb);
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);
  color: #fff; font-size: 17px; font-variant-numeric: tabular-nums;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%), linear-gradient(135deg, rgba(255,255,255,0.6) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field select option { color: var(--text); }
.field input::placeholder { color: rgba(255,255,255,0.32); }
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); background-color: rgba(255,255,255,0.09); }

/* ── Booking form (reuses the .calc dark panel; logic in js/booking.js) ── */
.calc, .book-thanks { --danger: #ff453a; }   /* dark-surface value of the danger token */
.book [hidden] { display: none !important; }
.book-form { margin-top: 0; }
.book-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.book-fields > .seg, .book-fields > .wide { grid-column: 1 / -1; }
.field-hint { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.55); }
.field-error { font-size: 13px; line-height: 1.45; color: var(--danger); }
.field.has-error input { border-color: var(--danger); }

/* Segmented radio row: one pill per option, wraps on phones */
.seg, .checks { min-width: 0; border: 0; padding: 0; margin: 0; }
.seg legend, .checks legend { padding: 0; margin-bottom: 9px; font-size: 13px; color: rgba(255,255,255,0.55); }
.seg-options { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: rgba(255,255,255,0.82);
  transition: background-color .2s, border-color .2s, color .2s;
}
.seg label:hover span { background: rgba(255,255,255,0.1); }
.seg input:checked + span { background: var(--grad-gold); border-color: transparent; color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Checkboxes (services, consent) */
.check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; cursor: pointer; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.82); }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.check a, .book-hint a { color: var(--gold); font-weight: 600; }
.check a:hover, .book-hint a:hover { text-decoration: underline; text-underline-offset: 3px; }
.consent .check { font-size: 14px; color: rgba(255,255,255,0.66); }
.book-hint { margin-top: -6px; font-size: 14px; color: rgba(255,255,255,0.62); }

/* Honeypot: off-screen, never visible */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.book-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.book-note { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.55); }
.book-status { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }
.book-status-text:empty { display: none; }

.book-thanks {
  max-width: 860px; margin: 0 auto; padding: clamp(26px, 4vw, 36px);
  border-radius: var(--r-panel); background: var(--ink); color: #fff;
  display: grid; gap: 12px; justify-items: start;
}
.book-thanks h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.book-thanks h3:focus { outline: none; }
.book-thanks p { color: rgba(255,255,255,0.66); }
.book-thanks .book-thanks-price { color: var(--gold); font-weight: 600; }
.book-thanks-price:empty { display: none; }
.book-thanks .btn { margin-top: 10px; }

.included { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; max-width: 860px; margin: 28px auto 0; }
.included li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-body); }
.included svg { width: 17px; height: 17px; color: var(--gold-ink); }

/* ── Process (one dark panel, pinned scroll-through) ───────── */
.process-grid {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--r-hero); background: var(--ink); color: #fff;
}
.process-grid::after {
  content: ""; position: absolute; right: -140px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(201,162,75,0.22); filter: blur(70px); pointer-events: none;
}

/* Step list with a vertical progress line */
.process-list { position: relative; display: flex; flex-direction: column; gap: 6px; }
.process-list::before, .process-list::after {
  content: ""; position: absolute; left: 15px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px;
}
.process-list::before { background: rgba(255,255,255,0.12); }
.process-list::after { background: var(--grad-gold); transform-origin: top; transform: scaleY(var(--pp, 0)); }
.process-list a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; padding: 10px 0;
  font-size: clamp(18px, 1.9vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: rgba(255,255,255,0.38);
  transition: color .4s var(--ease-out-quart);
}
.process-list a:hover { color: rgba(255,255,255,0.7); }
.process-list span {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: 13px; font-weight: 700; letter-spacing: 0; background: #1c1c1e; color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 4px var(--ink);
  transition: background-color .4s, color .4s, transform .5s var(--ease-spring);
}
.process-list a.done { color: rgba(255,255,255,0.6); }
.process-list a.done span { background: #3a3220; color: var(--gold); }
.process-list a.active { color: #fff; }
.process-list a.active span { background: var(--grad-gold); color: var(--ink); transform: scale(1.15); }

/* Stage: one step at a time */
.process-stage { position: relative; z-index: 1; display: grid; gap: 28px; }
.stage-card { position: relative; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stage-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 15px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: var(--gold); }
.stage-icon svg { width: 26px; height: 26px; }
.stage-num {
  font-size: clamp(64px, 8vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9;
}
.stage-card h3 { margin-top: 22px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; line-height: 1.1; }
.stage-card p:not(.stage-num) { margin-top: 12px; max-width: 480px; font-size: clamp(17px, 1.7vw, 19px); line-height: 1.55; color: rgba(255,255,255,0.66); }
.stage-card .tag { margin: 22px 0 0; color: var(--gold); background: rgba(201,162,75,0.14); }

/* Without the sticky mode (no JS / reduced motion): all steps stacked */
.process-track:not(.sticky-on) .process-grid { grid-template-columns: 1fr; }
.process-track:not(.sticky-on) .process-list { display: none; }
.process-track:not(.sticky-on) .stage-card + .stage-card { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }

.process-track.sticky-on { height: calc(100svh + 5 * 55svh); }
.sticky-on .process-sticky {
  position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
}
.sticky-on .section-head { margin-bottom: clamp(20px, 4vh, 44px); }
.sticky-on .stage-card {
  grid-area: 1 / 1; opacity: 0; transform: translateY(36px); pointer-events: none;
  transition: opacity .6s var(--ease-out-quart), transform .7s var(--ease-spring);
}
.sticky-on .stage-card.past { transform: translateY(-36px); }
.sticky-on .stage-card.active { opacity: 1; transform: none; pointer-events: auto; }

/* Slide-ins */
.reveal.slide-l.pre { transform: translateX(-70px); }
.reveal.slide-r.pre { transform: translateX(70px); }
.reveal.zoom-in.pre { transform: translateY(40px) scale(0.94); }
.stagger-x > * { transition: opacity .8s var(--ease-out-quart), transform .9s var(--ease-spring); transition-delay: calc(var(--i, 0) * 90ms); }
.stagger-x.pre > * { opacity: 0; transform: translateX(80px); }
.inspector .profile { transition-delay: .12s; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer { margin-top: var(--section); padding: 56px 0 40px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--text); }
.footer-tag { margin-top: 10px; max-width: 300px; line-height: 1.6; }
.footer h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: 12px; }
.footer li + li { margin-top: 8px; }
.footer a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--track); color: var(--text); }
.socials a:hover { background: var(--faint); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--text-3); }

/* ── Legal pages (privacy, imprint) ───────────────────────────── */
.nav-back { margin-left: auto; }
.legal { max-width: calc(var(--max-read) + var(--pad-x) * 2); margin: 0 auto; padding: calc(var(--nav-h) + clamp(40px, 7vw, 72px)) var(--pad-x) 0; }
.legal h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.04em; }
.legal .updated { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.legal .intro { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.legal .panel { margin-top: 28px; padding: clamp(24px, 4vw, 40px); }
.legal h2 { margin-top: 40px; font-size: clamp(21px, 2.6vw, 25px); letter-spacing: -0.02em; line-height: 1.3; scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal .panel > h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 22px; font-size: 17px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--text-body); }
.legal p { margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .panel a { color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .toc { columns: 2; column-gap: 32px; margin-top: 4px; padding-left: 22px; list-style: decimal; }
.legal .toc li { break-inside: avoid; font-size: 15px; margin-top: 6px; }
.legal .toc li::marker { color: var(--text-3); }
.legal .toc a { text-decoration: none; color: var(--text); }
.legal .toc a:hover { color: var(--gold-ink); }

/* ── Mobile action bar (fixed) ────────────────────────────────── */
.action-bar { display: none; }

/* ── Motion (subtle; content visible without JS) ──────────────── */
.reveal { transition: opacity .9s var(--ease-out-quart), transform .9s var(--ease-out-quart); }
.reveal.pre { opacity: 0; transform: translateY(28px); }

/* Staggered children (.stagger) or grandchildren (.stagger-deep) */
.stagger > *, .stagger-deep > * > * {
  transition: opacity .8s var(--ease-out-quart), transform .8s var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.stagger.pre > *, .stagger-deep.pre > * > * { opacity: 0; transform: translateY(22px); }

/* Hero entrance */
@keyframes rise { from { opacity: 0; translate: 0 26px; filter: blur(6px); } }
.hero-copy > * { animation: rise 1s var(--ease-out-quart) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-photo { animation: rise 1.2s .3s var(--ease-out-quart) both; }



/* 1 · Scroll progress line under the nav */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad-gold); transform-origin: left; transform: scaleX(var(--p, 0));
}

/* 3 · Count-up numbers (set by JS) */
[data-count] { font-variant-numeric: tabular-nums; }


/* 6 · Systems grid: gold spotlight follows the pointer */
.systems li { position: relative; }
.systems li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(201,162,75,0.16), transparent 70%);
}
.systems li:hover::after { opacity: 1; }
.systems .systems-note::after { display: none; }


/* ── Section scenes: triggered once on entering the viewport, then pure CSS transitions
   (compositor-only transform/opacity — smooth in Safari). Initial states apply only with
   html.scenes-on, so without JS or with reduced motion everything is simply visible. ── */
main { overflow-x: clip; }
.scenes-on [data-scroll] { --spring: cubic-bezier(0.22, 1, 0.36, 1); }

/* Statement: black panel widens to full bleed, words light up one by one, gold line glides in */
.statement { position: relative; isolation: isolate; background: none; }
.statement::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--ink); transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1); }
.statement .w { transition: opacity .7s ease; transition-delay: calc(.25s + var(--i, 0) * 40ms); }
.statement h2 .gold { transition: opacity .9s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: .45s; }
.scenes-on .statement:not(.in)::before { transform: scaleX(0.86); }
.scenes-on .statement:not(.in) .w { opacity: 0.12; }
.scenes-on .statement:not(.in) h2 .gold { opacity: 0; transform: translateX(-70px); }

/* Inspector photo: curtain opens, image settles from a zoom */
.inspector-photo { position: relative; }
.inspector-photo img { scale: 1.04; transition: scale 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.inspector-photo::after {
  content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: 100% 50%;
  transform: scaleX(0); transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}
.scenes-on .inspector-photo:not(.in)::after { transform: scaleX(1); }
.scenes-on .inspector-photo:not(.in) img { scale: 1.3; }

/* Credentials: cards flip up in 3D, one after another */
.cred { transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity .8s ease, translate .35s var(--ease-out-quart), box-shadow .35s; transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s, 0s; }
.scenes-on .cred:not(.in) { transform: perspective(900px) rotateX(55deg) translateY(90px); opacity: 0.1; }

/* Systems: cells light up in a diagonal wave */
.systems li > * { transition: opacity .7s ease, transform .8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.systems .systems-note { transition: scale 1s cubic-bezier(0.22, 1, 0.36, 1) .5s; }
.scenes-on .systems:not(.in) li > * { opacity: 0; transform: translateY(26px); }
.scenes-on .systems:not(.in) .systems-note { scale: 0.9; }

/* Property types: rows sweep in from opposite sides */
.ptypes li { transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity .9s ease, translate .35s var(--ease-out-quart), box-shadow .35s; transition-delay: calc(var(--c, 0) * 90ms), calc(var(--c, 0) * 90ms), 0s, 0s; }
.ptypes figure img { transition: scale 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform .8s var(--ease-out-quart); }
.scenes-on .ptypes li:not(.in) { transform: translateX(calc(var(--dir, 1) * min(180px, 32vw))) rotate(calc(var(--dir, 1) * 4deg)); opacity: 0.05; }
.scenes-on .ptypes li:not(.in) figure img { scale: 1.25; }

/* Calculator: tilts up like a screen opening */
.calc { transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.scenes-on .calc:not(.in) { transform: perspective(1400px) rotateX(32deg) scale(0.88); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }
  .systems { grid-template-columns: repeat(3, 1fr); }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .ptypes li { flex-basis: calc((100% - 2 * 14px) / 3); }
}
@media (max-width: 760px) {
  .nav-actions .nav-phone, .nav-actions .nav-wa { display: none; }
  .menu-btn { display: inline-flex; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(245,245,247,0.78);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--hairline);
  }
  .action-bar .btn { min-height: 50px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .hero-photo { aspect-ratio: 4 / 3.4; border-radius: var(--r-panel); }
  .inspector { grid-template-columns: 1fr; }
  .inspector-photo { aspect-ratio: 4 / 3; }
  .profile-head { padding: 24px 22px 20px; }
  .badges img { height: 52px; }
  .facts .row { grid-template-columns: 1fr; gap: 2px; padding: 16px 22px; }
  .systems { grid-template-columns: repeat(2, 1fr); }
  .systems li { padding: 22px 18px 24px; }
  .price-row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 22px; }
  .price-row .btn { grid-column: 1 / -1; width: 100%; }
  .creds { grid-template-columns: 1fr; }
  .ptypes { gap: 10px; }
  .ptypes li { flex-basis: calc((100% - 10px) / 2); }
  .pt-body { padding: 28px 12px 18px; }
  .process-grid { grid-template-columns: 1fr; gap: 26px; padding: 26px 22px 30px; border-radius: var(--r-panel); }
  .process-list { flex-direction: row; justify-content: space-between; gap: 0; }
  .process-list::before, .process-list::after { left: 16px; right: 16px; top: 50%; bottom: auto; width: auto; height: 2px; margin-top: -1px; }
  .process-list::after { transform-origin: left; transform: scaleX(var(--pp, 0)); }
  .process-list a { padding: 0; font-size: 0; gap: 0; }
  .stage-num { font-size: 60px; }
  .stage-card h3 { margin-top: 16px; }
  .book-fields { grid-template-columns: 1fr; }
  .book-actions .btn, .book-thanks .btn { width: 100%; padding: 0 16px; white-space: normal; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .legal .toc { columns: 1; }
}
@media (max-width: 420px) {
  .hero-ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal.pre, .stagger.pre > *, .stagger-deep.pre > * > *, .stagger-x.pre > * { opacity: 1; transform: none; }
  .inspector-photo::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .action-bar, .menu-sheet { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.menu-sheet[hidden], .scrim[hidden] { display: none; }

/* Touch devices: keep motion, drop the costly extras */
@media (hover: none) {
  .nav, .action-bar { backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
  .nav { background: rgba(245,245,247,0.9); }
  .action-bar { background: rgba(245,245,247,0.94); }
}
