/* ==========================================================================
   Elevate Mobile Detailing, site styles
   Design tokens live here. Change a value once and it changes everywhere.
   ========================================================================== */

:root {
  /* --- colour -------------------------------------------------------- */
  --canvas:        oklch(0.905 0.007 248);          /* cool light ground   */
  --surface-hi:    oklch(0.965 0.004 248);          /* fields, chips       */
  --surface-raise: oklch(0.845 0.008 248);          /* fills, image beds   */
  --ink:           oklch(0.150 0.010 25);           /* body type, deep BG  */
  --muted:         oklch(0.460 0.010 250);          /* secondary text      */
  --signal:        oklch(0.600 0.196 29);           /* #E83927 brand red   */
  --signal-fill:   oklch(0.520 0.185 29);           /* button fill, AA     */
  --signal-press:  oklch(0.440 0.160 29);
  --rule:          oklch(0.150 0.010 25 / 0.22);
  --rule-strong:   oklch(0.150 0.010 25 / 0.42);
  --on-ink:        oklch(0.965 0.004 248);
  --on-ink-muted:  oklch(0.760 0.008 248);
  --ok:            oklch(0.480 0.110 150);

  /* --- type ---------------------------------------------------------- */
  --display: Aleo, Georgia, "Times New Roman", serif;
  --body:    Karla, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-d1:    clamp(42px, 9vw, 148px);
  --t-d2:    clamp(32px, 5.2vw, 96px);
  --t-d3:    clamp(30px, 4vw, 60px);
  --t-d4:    clamp(26px, 2.6vw, 38px);
  --t-lead:  clamp(21px, 1.9vw, 24px);
  --t-body:  clamp(18px, 1.3vw, 19px);
  --t-label: 13px;

  /* --- space (deliberately uneven rhythm) ---------------------------- */
  --pad-x:   clamp(20px, 5vw, 64px);
  --s-tall:  clamp(88px, 11vw, 168px);
  --s-tight: clamp(56px, 7vw, 96px);
  --s-huge:  clamp(120px, 15vw, 240px);
  --s-mid:   clamp(72px, 9vw, 128px);

  /* --- motion -------------------------------------------------------- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

h1, h2, h3, p, figure, ul, ol { margin: 0; }

a { color: var(--signal-fill); }
a:hover { color: var(--signal-press); }

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

/* film grain, fixed over everything, never intercepts a click */
.grain {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none; opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--on-ink);
  padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ==========================================================================
   type roles
   ========================================================================== */

.label {
  font-family: var(--body); font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.d1 { font-family: var(--display); font-weight: 700; font-size: var(--t-d1); line-height: 0.88; letter-spacing: -0.022em; text-wrap: pretty; }
.d2 { font-family: var(--display); font-weight: 700; font-size: var(--t-d2); line-height: 0.94; letter-spacing: -0.018em; text-wrap: balance; }
.d3 { font-family: var(--display); font-weight: 700; font-size: var(--t-d3); line-height: 1.0;  letter-spacing: -0.015em; text-wrap: balance; }
.d4 { font-family: var(--display); font-weight: 700; font-size: var(--t-d4); line-height: 1.12; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 58ch; }
.copy { max-width: 66ch; }
.copy + .copy { margin-top: 1.1em; }

/* ==========================================================================
   header
   ========================================================================== */

.masthead {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  background: oklch(0.905 0.007 248 / 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(1px)) { .masthead { background: var(--canvas); } }
.wordmark { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--ink); }
.wordmark img { width: 52px; height: 52px; border-radius: 50%; }
.wordmark span { font-family: var(--body); font-weight: 700; font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.foot .wordmark img { width: 84px; height: 84px; }

.masthead nav { display: flex; align-items: baseline; gap: 26px; }
.masthead nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; font-size: 19px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease), color 220ms var(--ease);
}
.masthead nav a:hover { border-bottom-color: var(--signal); color: var(--ink); }
.masthead nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 2px;
  background: var(--signal-fill); color: var(--on-ink);
  font-family: var(--body); font-weight: 700; font-size: 19px;
  text-decoration: none; cursor: pointer;
  transition: background-color 240ms var(--ease), transform 240ms var(--ease);
}
.btn:hover  { background: oklch(0.46 0.170 29); color: var(--on-ink); transform: translateY(-2px); }
.btn:active { background: var(--signal-press); transform: translateY(0); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 17px; }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.textlink {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--signal);
  transition: gap 240ms var(--ease);
}
.textlink:hover { gap: 15px; color: var(--ink); }

/* ==========================================================================
   section shell + oversized folio numerals
   ========================================================================== */

.band { position: relative; padding: var(--s-tall) var(--pad-x) var(--s-tight) 0; }
.band-tight { padding-block: var(--s-tight); }
.band-huge  { padding-block: var(--s-huge); }
.band-mid   { padding-block: var(--s-mid); }
.band > .inner { position: relative; padding-left: var(--pad-x); }

.folio {
  position: absolute; left: -0.24em; top: clamp(24px, 5vw, 60px);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(150px, 22vw, 300px); line-height: 0.7;
  color: transparent; -webkit-text-stroke: 2px oklch(0.15 0.010 25 / 0.20);
  pointer-events: none; user-select: none;
}
.folio-solid { color: oklch(0.15 0.010 25 / 0.07); -webkit-text-stroke: 0; }

.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink .label { color: var(--on-ink-muted); }
.band-ink .copy { color: var(--on-ink-muted); }
.band-ink .copy strong { color: var(--on-ink); font-weight: 500; }
.band-ink .textlink { color: var(--on-ink); }
.band-ink .textlink:hover { color: var(--on-ink); }
.band-ink .folio { -webkit-text-stroke-color: oklch(0.965 0.004 248 / 0.16); }

/* ==========================================================================
   hero
   ========================================================================== */

/* Photograph fills the whole hero. Type sits on it behind a scrim that is
   heavy on the left and gone by the right, so nothing meets at a seam. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(520px, 82vh, 860px);
  display: flex; align-items: flex-end;
  padding: clamp(56px, 9vw, 120px) var(--pad-x) clamp(48px, 7vw, 96px);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
/* phone: portrait crop, biased right so the Defender stays in frame */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 52%; }
/* desktop: 16:9 crop already framed, so centre it */
@media (min-width: 900px) { .hero-bg img { object-position: 50% 50%; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, oklch(0.150 0.010 25 / 0.90) 0%, oklch(0.150 0.010 25 / 0.72) 34%, oklch(0.150 0.010 25 / 0.28) 68%, oklch(0.150 0.010 25 / 0.42) 100%),
    linear-gradient(to bottom, oklch(0.150 0.010 25 / 0.45), transparent 34%);
}
.hero-copy { display: flex; flex-direction: column; max-width: 1180px; color: var(--on-ink); }
.hero-copy .label { color: oklch(0.86 0.006 248); }
.hero-copy .d1 { max-width: 14ch; margin-block: clamp(18px, 2.6vw, 32px) clamp(24px, 3.4vw, 38px); color: var(--on-ink); }
.hero-copy .lead { max-width: 54ch; color: oklch(0.93 0.005 248); }
/* the price sits under the button on purpose. the objection people never say
   out loud is that this is out of their range, and a number answers it before
   they have to ask. */
.hero-price {
  margin-top: clamp(14px, 1.8vw, 20px);
  font-size: 17px; letter-spacing: 0.01em;
  color: oklch(0.86 0.006 248);
}

/* ==========================================================================
   before / after pair
   ========================================================================== */

.ba { display: grid; gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 700px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba figure { position: relative; margin: 0; overflow: hidden; border-radius: 3px; }
.ba img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.ba figcaption {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--on-ink);
  background: oklch(0.150 0.010 25 / 0.82); padding: 5px 9px; border-radius: 2px;
}
.ba figcaption.after { background: var(--signal-fill); }

/* ==========================================================================
   service area map
   ========================================================================== */

/* Copy on the left, map on the right. The map gets the larger share, since
   a half-empty right column was the problem this section had before. */
.area-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) {
  .area-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(40px, 5vw, 84px);
  }
}

.map-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule-strong); border-radius: 3px;
  background: var(--surface-raise);
  min-height: clamp(360px, 56vh, 560px);
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: clamp(360px, 56vh, 560px); border: 0; filter: saturate(0.82) contrast(1.04); }
.map-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
  background: var(--surface-hi); border: 1px solid var(--rule);
  padding: 7px 11px; border-radius: 2px; pointer-events: none;
}
.map-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* town list, crawlable text rather than a picture of towns */
.town-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 2.6vw, 30px); }
.town-list li {
  font-family: var(--body); font-weight: 500; font-size: 15px;
  color: var(--ink); background: var(--surface-hi);
  border: 1px solid var(--rule); border-radius: 2px; padding: 7px 12px;
  transition: border-color 220ms var(--ease), color 220ms var(--ease);
}
.town-list li:hover { border-color: var(--signal); }
.town-list li.out { color: var(--muted); background: transparent; }

/* ==========================================================================
   gallery (signature element)
   ========================================================================== */

.gallery-wrap { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 5vw, 72px); margin-top: clamp(32px, 5vw, 56px); }
.filter-rail { flex: 0 0 210px; }
.filter-rail > p { margin-bottom: 14px; }
.filter-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.filter-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; padding: 0 4px; background: none; border: 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--body); font-size: 19px; font-weight: 400;
  color: var(--muted); text-align: left; cursor: pointer;
  transition: color 200ms var(--ease), padding-left 240ms var(--ease);
}
.filter-list button:hover { color: var(--signal-fill); padding-left: 8px; }
.filter-list button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.filter-list button span:last-child { font-family: var(--display); font-size: 17px; color: var(--muted); }

.photo-field { flex: 1 1 520px; columns: 268px; column-gap: clamp(14px, 2vw, 22px); }
.photo-field figure {
  position: relative; margin: 0 0 clamp(14px, 2vw, 22px);
  break-inside: avoid; overflow: hidden; border-radius: 4px;
  background: var(--surface-raise);
  transition: clip-path 700ms var(--ease);
}
.photo-field img {
  width: 100%; display: block;
  transition: transform 700ms var(--ease);
}
.photo-field figure:hover img { transform: scale(1.045); }
/* caption rides up from under the bottom edge on hover */
.photo-field figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 11px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink);
  background: linear-gradient(to top, oklch(0.150 0.010 25 / 0.88), transparent);
  transform: translateY(100%); opacity: 0;
  transition: transform 420ms var(--ease), opacity 420ms var(--ease);
}
.photo-field figure:hover figcaption,
.photo-field figure:focus-within figcaption { transform: none; opacity: 1; }
.photo-field figure[hidden] { display: none; }

@media (hover: none) {
  /* no hover on touch, so the caption is simply always visible */
  .photo-field figcaption { transform: none; opacity: 1; }
}

/* ==========================================================================
   persistent book bar, small screens only
   ========================================================================== */

.bookbar { display: none; }
@media (max-width: 700px) {
  .bookbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: oklch(0.965 0.004 248 / 0.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule);
  }
  .bookbar p { flex: 1; font-size: 15px; line-height: 1.3; color: var(--muted); }
  .bookbar .btn { min-height: 48px; padding: 0 22px; font-size: 17px; flex: 0 0 auto; }
  body { padding-bottom: 78px; }
}

/* ==========================================================================
   how it works, rows and never cards
   ========================================================================== */

.steps { border-top: 1px solid var(--rule); margin-top: clamp(28px, 4vw, 48px); }
.step {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px clamp(20px, 4vw, 56px);
  padding: clamp(26px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--rule);
}
.step:nth-child(2) { padding-block: clamp(34px, 4.5vw, 60px); }
.step-n { flex: 0 0 auto; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--signal); }
.step-body { flex: 1 1 420px; max-width: 62ch; }
.step-body h3 { margin-bottom: 6px; }

/* ==========================================================================
   towns as a type field
   ========================================================================== */

.towns {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 44px); line-height: 1.22;
  letter-spacing: -0.012em; color: var(--ink); max-width: 22ch;
}
.towns span { color: var(--muted); }

/* ==========================================================================
   faq
   ========================================================================== */

.faq { border-top: 1px solid var(--rule); margin-top: clamp(26px, 4vw, 48px); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(21px, 2.1vw, 28px); line-height: 1.25;
  transition: color 220ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--signal-fill); }
.faq summary svg { flex: 0 0 22px; transition: transform 260ms var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .answer { padding-bottom: 22px; max-width: 64ch; color: var(--muted); }
.faq .answer a { color: var(--signal-fill); }

/* ==========================================================================
   form
   ========================================================================== */

.book-layout { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 6vw, 88px); margin-top: clamp(28px, 4vw, 48px); }
.book-aside { flex: 1 1 260px; max-width: 34ch; }
.book-form  { flex: 1 1 460px; }

.field { margin-bottom: 26px; }
.field label { display: block; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 2px; min-height: 52px;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  font-family: var(--body); font-size: 19px;
  transition: border-color 220ms var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; cursor: pointer; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--signal); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

/* Error state. :user-invalid rather than :invalid, so a required field does
   not turn red before the person has even touched it. */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-bottom-color: var(--signal); }
.field .err { display: none; margin-top: 7px; font-size: 15px; color: var(--signal-fill); }
.field input:user-invalid ~ .err,
.field select:user-invalid ~ .err { display: block; }

/* Disabled and in-flight. Also stops a double submit, which would otherwise
   send Anthony the same lead twice and fire a second Pixel event. */
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.62; pointer-events: none; }
.btn[aria-busy="true"] { cursor: progress; }
.form-note { margin-top: 18px; font-size: 16px; color: var(--muted); max-width: 46ch; }

/* package contents list on What's Included */
.incl-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; max-width: 60ch; }
.incl-list li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 2px; padding: 5px 9px;
}

/* price slots on What's Included */
.price-slot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 148px; min-height: 76px; padding: 0 20px;
  border: 1px solid var(--rule-strong); border-radius: 2px;
  font-family: var(--display); font-weight: 700; font-size: 48px;
  color: var(--muted); background: var(--surface-hi);
}

/* ==========================================================================
   full-bleed image band
   ========================================================================== */

.plate { position: relative; overflow: hidden; }
.plate img { width: 100%; height: clamp(300px, 52vh, 620px); object-fit: cover; display: block; }
.plate figcaption {
  position: absolute; left: var(--pad-x); bottom: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  background: var(--surface-hi); padding: 7px 10px;
}

/* side photo column that sits beside a text block */
.side-art { position: relative; overflow: hidden; border-radius: 4px; align-self: stretch; min-height: 340px; }
.side-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   footer
   ========================================================================== */

.foot {
  border-top: 1px solid var(--rule); background: var(--surface-hi);
  padding: clamp(44px, 6vw, 76px) var(--pad-x);
  display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 8vw, 96px);
}
.foot > div { flex: 1 1 200px; }
.foot p { color: var(--muted); font-size: 17px; }
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.foot a:hover { border-bottom-color: var(--signal); color: var(--ink); }
.foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   motion. entrances on load, plus scroll-revealed moments
   ========================================================================== */

/* One idea, three mechanics: everything is revealed by an edge moving across
   it. No fading up. Matches the print language of the folios and hairlines. */

/* 1. text rises out from behind a clipping edge, no opacity change */
.mask { overflow: hidden; }
.mask > * { transform: translateY(104%); transition: transform 900ms var(--ease); }
.mask.in > * { transform: none; }
/* buttons keep their own hover transform, so the mask moves a wrapper
   rather than the button itself */
.mask-inline { display: inline-block; align-self: flex-start; margin-top: clamp(26px, 4vw, 42px); }
.mask-inline > span { display: inline-block; }
.hero-copy .mask-inline .btn { margin-top: 0; }
.mask-1 > * { transition-delay: 90ms; }
.mask-2 > * { transition-delay: 180ms; }
.mask-3 > * { transition-delay: 270ms; }
.mask-4 > * { transition-delay: 360ms; }

/* 2. rules draw across */
.draw { transform: scaleX(0); transform-origin: left center; transition: transform 800ms var(--ease); }
.draw.in { transform: scaleX(1); }

/* 3. images uncovered by a sweeping edge, with a slow settle underneath */
.wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1000ms var(--ease); }
.wipe.in { clip-path: inset(0 0 0 0); }
.wipe img, img.wipe-inner { transform: scale(1.08); transition: transform 1400ms var(--ease); }
.wipe.in img, img.wipe-inner.in { transform: none; }

/* gallery items uncover one after another */
.stagger > * { clip-path: inset(0 0 100% 0); transition: clip-path 700ms var(--ease); }
.stagger.in > * { clip-path: inset(0 0 0 0); }

/* 4. folio numerals uncover upward, slower than everything else so they read
      as the page settling rather than as another element arriving */
.folio { clip-path: inset(0 0 100% 0); transition: clip-path 1200ms var(--ease); }
.folio.in { clip-path: inset(0 0 0 0); }

/* 5. rules and dividers draw across as their section arrives */
.steps, .faq, .filter-list { position: relative; }
.steps::before, .faq::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left center;
  transition: transform 900ms var(--ease);
}
.steps.in::before, .faq.in::before { transform: scaleX(1); }

/* 6. text links pull their rule along on hover */
.textlink { position: relative; border-bottom: 0; padding-bottom: 3px; }
.textlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--signal); transform-origin: left center;
  transition: transform 300ms var(--ease);
}
.textlink:hover::after { animation: ruleSwipe 520ms var(--ease); }
@keyframes ruleSwipe {
  0%   { transform: scaleX(1); transform-origin: right center; }
  49%  { transform: scaleX(0); transform-origin: right center; }
  50%  { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}

/* 7. hero photograph drifts slowly as the page scrolls, for depth only */
.hero-bg { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mask > *, .draw, .wipe, .wipe img, img.wipe-inner, .stagger > *, .folio {
    transform: none !important; clip-path: none !important;
  }
  .steps::before, .faq::before { transform: scaleX(1) !important; }
  .hero-bg { transform: none !important; }
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 820px) {
  /* the folio numerals are gone here, so the band takes the gutter back */
  .band { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .band > .inner { padding-left: 0; }
  .folio { display: none; }
  /* the form is what the Book button promises, so nothing decorative
     sits between the anchor and the first field on a phone */
  .book-aside .side-art { display: none; }
  .hero { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .hero-art img { border-radius: 4px; min-height: 300px; }
  .hero-art { min-height: 300px; }
  .filter-rail { flex: 1 1 100%; }
  .filter-list { flex-direction: row; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .filter-list button {
    border: 1px solid var(--rule); border-radius: 2px;
    min-height: 44px; padding: 0 14px; font-size: 17px;
  }
  .filter-list button[aria-pressed="true"] { border-color: var(--ink); }
  .filter-list button span:last-child { display: none; }
}
