/* Hampton Pool Services: liner sample book */

:root {
  --ink: #0f2c6b;
  --ink-deep: #0a1f4d;
  --cobalt: #2e6fd8;
  --sky: #8ec5ff;
  --sky-soft: #c9dbf7;
  --card: #ffffff;
  --board: #e9eef6;
  --board-line: #cfd8e6;
  --text: #13213f;
  --text-muted: #46557a;
  --black: #111111;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.8vw, 5.4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3rem + 6vw, 8rem);

  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.12), 0 10px 24px -8px rgba(0, 0, 0, 0.26);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.14), 0 22px 40px -12px rgba(0, 0, 0, 0.4);
  --link: #1d56b8;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: var(--board);
  color: var(--text);
  font-family: var(--display);
  font-size: var(--step-0);
  font-variation-settings: "wdth" 100;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--sky); color: var(--ink-deep); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-ink :focus-visible { outline-color: var(--sky); }

a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
.on-ink a:not(.btn):hover, .season a:hover, .foot .mark:hover { color: var(--sky); }
.on-cobalt a:not(.btn):hover { color: #fff; }

html { scrollbar-color: var(--ink) var(--board); }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  font-variation-settings: "wdth" 125;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 112; line-height: 1.12; letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-2); max-width: 66ch; text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: 6px;
}
.skip:focus { top: 0.75rem; }

/* Spec label: condensed caps stamped on card stock */
.spec {
  font-size: var(--step--1);
  font-weight: 700;
  font-variation-settings: "wdth" 68;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stars { display: inline-flex; gap: 2px; color: #f5b301; }
.stars svg { width: 1.1em; height: 1.1em; fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.85rem 1.35rem;
  border: 2px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 800; font-variation-settings: "wdth" 104; font-size: var(--step-0);
  line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms, color 160ms, box-shadow 160ms;
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); box-shadow: 0 8px 18px -8px rgba(10, 31, 77, 0.5); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--action { --btn-bg: var(--sky); --btn-fg: var(--ink-deep); --btn-bd: var(--sky); }
.btn--action:hover { --btn-bg: #a9d3ff; --btn-bd: #a9d3ff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.on-ink .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.7); }
.on-ink .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn small { display: block; font-weight: 600; font-size: 0.78em; opacity: 0.85; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Binding strip (header) ---------- */
.binding {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--board-line);
}
.binding__in { display: flex; align-items: center; gap: var(--space-3); min-height: 4.25rem; }

.mark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; margin-right: auto; }
.mark__name { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.02rem; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.mark__wave { width: 100%; height: 9px; margin-top: 3px; color: var(--cobalt); }
.mark:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  padding: 0.55rem 0.7rem; border-radius: 6px;
  color: var(--text); text-decoration: none;
  font-weight: 650; font-variation-settings: "wdth" 88; font-size: 0.98rem;
}
.nav a:hover { background: var(--board); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cobalt); border-radius: 0; }

.binding .btn { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: 0.98rem; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--card); border-bottom: 1px solid var(--board-line);
    box-shadow: 0 18px 30px -18px rgba(10, 31, 77, 0.35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem 0.25rem; font-size: 1.1rem; border-bottom: 1px solid var(--board); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--cobalt); }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border: 1px solid var(--board-line); border-radius: 8px;
    background: var(--card); color: var(--ink); cursor: pointer;
  }
  .binding__call { display: none !important; }
}
@media (max-width: 380px) { .mark__name { font-size: 0.86rem; } }
@media (max-width: 600px) { h1 { font-variation-settings: "wdth" 112; } .page-hero h1 { font-size: clamp(2.1rem, 1.2rem + 4vw, 2.6rem); } }

/* ---------- Season tab ---------- */
.season { background: var(--ink-deep); color: var(--sky-soft); font-size: var(--step--1); }
.season .wrap { display: flex; gap: 0.75rem; align-items: center; justify-content: center; padding-block: 0.55rem; text-align: center; }
.season strong { color: #fff; font-weight: 750; }
.season a { color: var(--sky); font-weight: 700; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: var(--space-4); align-items: center;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem);
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.5vw, 4.6rem); max-width: 12ch; }
.nowrap { white-space: nowrap; }
.hero__lede { margin-top: var(--space-3); font-size: var(--step-1); line-height: 1.45; color: var(--sky-soft); max-width: 34ch; }
.hero__lede strong { color: #fff; font-weight: 700; }
.hero .cta-row { margin-top: var(--space-4); }
.hero__proof { display: flex; align-items: center; gap: 0.6rem; margin-top: var(--space-3); color: var(--sky-soft); font-size: var(--step--1); }
.hero__proof a { color: #fff; font-weight: 700; }

/* Job photo frame */
.job { position: relative; }
.job__frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-deep); box-shadow: var(--shadow-lift);
}
.job__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job__frame img.is-incoming { clip-path: inset(0 0 100% 0); }
.job__frame img.is-pulling { clip-path: inset(0 0 0 0); transition: clip-path 760ms var(--ease-out); }
.job__label {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 2;
  background: var(--card); color: var(--ink); padding: 0.4rem 0.65rem; border-radius: 6px;
  box-shadow: var(--shadow-card);
}

/* ---------- Swatch card ---------- */
/* Card stock is a masked ::before layer, so the punched hole is a real cut and the
   drop-shadow (on the element) follows the hole. */
.swatch {
  --hole-y: 1.05rem;
  position: relative; display: grid; gap: 0.5rem; align-content: start;
  width: 11.5rem; padding: 0.75rem 0.75rem 2.1rem;
  background: none; color: var(--text); text-align: left; text-decoration: none;
  border: 0; font: inherit; cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}
.swatch::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--radius); background: var(--card);
  -webkit-mask: radial-gradient(circle at 50% calc(100% - var(--hole-y)), transparent 0.42rem, #000 0.46rem);
  mask: radial-gradient(circle at 50% calc(100% - var(--hole-y)), transparent 0.42rem, #000 0.46rem);
}
.swatch > * { position: relative; z-index: 1; }
.swatch__name { display: block; font-weight: 800; font-variation-settings: "wdth" 78; font-size: 1rem; line-height: 1.1; color: var(--ink); }
.swatch__spec { display: block; color: var(--text-muted); }
.swatch__spec b { color: var(--text-muted); font-weight: 700; }
.swatch__spec i { font-style: normal; color: var(--text); font-weight: 650; letter-spacing: 0.04em; }
.swatch__chip { display: block; position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--cobalt); }
.swatch__chip img { width: 100%; height: 100%; object-fit: cover; }
a.swatch, a.swatch:hover { color: var(--text); text-decoration: none; }
.swatch--blank .swatch__chip {
  display: grid; place-items: center; background: var(--board);
  border: 2px dashed #7186a8; color: var(--ink); text-align: center; padding: 0.75rem;
}
.swatch--blank .swatch__chip span { font-weight: 850; font-variation-settings: "wdth" 120; font-size: 1.05rem; line-height: 1.05; }

/* ---------- Fan deck: every card turns on one rivet ---------- */
.fan {
  position: absolute; left: 7rem; bottom: -2.5rem; z-index: 3;
  width: 11.5rem; height: 17.5rem;
}
.fan .swatch {
  position: absolute; left: 0; bottom: 0;
  transform-origin: 50% calc(100% - var(--hole-y));
  transform: rotate(var(--r, 0deg));
  transition: transform 560ms var(--ease-out);
}
/* DOM order = reading/tab order (Stone first); the deck stacks it on top, fanned right,
   with the blank "your pool" card at the back on the left */
.fan .swatch:nth-child(1) { --r: 30deg; z-index: 4; }
.fan .swatch:nth-child(2) { --r: 10deg; z-index: 3; }
.fan .swatch:nth-child(3) { --r: -10deg; z-index: 2; }
.fan .swatch:nth-child(4) { --r: -30deg; z-index: 1; }
.fan.is-closed .swatch { --r: 0deg !important; }
.fan .swatch:hover { transform: rotate(var(--r)) translateY(-0.6rem); }
.fan .swatch[aria-pressed="true"] { transform: rotate(var(--r)) translateY(-3.4rem); }
@media (min-width: 901px) {
  /* In the open deck only each card's outer end shows, so that end is the liner itself,
     with the name stamped on it. The selected job's spec reads on the photo label. */
  .fan .swatch__chip { aspect-ratio: 3 / 4; }
  .fan .swatch__name {
    position: absolute; left: 1rem; top: 1rem; z-index: 2; max-width: 4.3rem;
    padding: 0.28rem 0.45rem; border-radius: 4px; background: var(--card); color: var(--ink);
    font-size: 0.74rem; font-weight: 800; font-variation-settings: "wdth" 70; letter-spacing: 0.05em;
    text-transform: uppercase; line-height: 1.12; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  }
  .fan .swatch__spec { display: none; }
}
.fan .swatch[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: -3px; z-index: 2; border-radius: 12px; border: 2px solid var(--sky); pointer-events: none;
}
.fan__rivet {
  position: absolute; left: calc(50% - 0.3rem); bottom: calc(var(--hole-y, 1.05rem) - 0.3rem); z-index: 10;
  width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #c3ccd9; pointer-events: none;
}
.fan__hint { position: absolute; right: 0; bottom: -2.4rem; color: var(--sky-soft); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .hero h1 { max-width: 13ch; }
  .fan {
    position: static; width: auto; height: auto; margin-top: 1rem;
    display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0.4rem 0.25rem 1.1rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .fan::-webkit-scrollbar { display: none; }
  .fan .swatch { position: relative; flex: 0 0 9.25rem; width: 9.25rem; transform: none !important; scroll-snap-align: start; }
  .fan .swatch[aria-pressed="true"] { transform: translateY(-6px) !important; }
  .fan__rivet { display: none; }
  .fan__hint { position: static; display: block; margin-top: 0.25rem; }
  .swatch__spec { font-size: 0.8rem; }
  .fan { padding-top: 0.6rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-6); }
.section__head { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); max-width: 46rem; }
.section__head p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.45; margin: 0; }
.on-ink { background: var(--ink); color: #fff; }
.on-ink h2, .on-ink h3 { color: #fff; }
.on-ink p { color: var(--sky-soft); }
.on-cobalt { background: var(--cobalt); color: #fff; }
.on-white { background: var(--card); }

/* Specialist pull quote */
.hardtofind { padding-block: var(--space-6); }
.hardtofind blockquote { margin: 0; }
.hardtofind q {
  display: block; quotes: none;
  font-weight: 850; font-variation-settings: "wdth" 118; font-size: var(--step-3);
  line-height: 1.04; letter-spacing: -0.02em; color: #fff; max-width: 20ch; text-wrap: balance;
}
.hardtofind q em { font-style: normal; background: var(--ink); padding: 0 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hardtofind cite { display: flex; align-items: center; gap: 0.6rem; margin-top: var(--space-3); font-style: normal; color: #fff; }
.hardtofind__answer {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-5);
  align-items: end; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.hardtofind__answer p { color: #fff; font-size: var(--step-1); line-height: 1.45; margin: 0; }
@media (max-width: 800px) { .hardtofind__answer { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Service index: the sample book's tabbed index */
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index li { border-bottom: 1px solid var(--board-line); }
.index a {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1.2fr) minmax(0, 1fr) 2.5rem; gap: var(--space-3);
  align-items: center; padding: var(--space-3) 0; color: inherit; text-decoration: none;
  transition: background-color 200ms, box-shadow 200ms;
}
.index a:hover { background: var(--card); box-shadow: -1rem 0 0 var(--card), 1rem 0 0 var(--card); }
.index__chip { width: 5.5rem; aspect-ratio: 1; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-card); }
.index__chip img { width: 100%; height: 100%; object-fit: cover; }
.index__name { font-weight: 850; font-variation-settings: "wdth" 122; font-size: var(--step-2); line-height: 1; color: var(--ink); letter-spacing: -0.015em; }
.index__for { color: var(--text-muted); margin: 0; }
.index__go { justify-self: end; color: var(--ink); width: 2rem; height: 2rem; transition: transform 300ms var(--ease-out); }
.index a:hover .index__go { transform: translateX(6px); }
@media (max-width: 760px) {
  .index a { grid-template-columns: 4rem minmax(0, 1fr) 1.5rem; gap: 0.25rem 1rem; }
  .index__chip { width: 4rem; grid-row: span 2; }
  .index__for { grid-column: 2; }
  .index__go { grid-row: 1 / span 2; grid-column: 3; width: 1.5rem; }
}

/* Process strip */
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); counter-reset: none; }
.process figure { margin: 0; }
.process img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.process figcaption { margin-top: var(--space-2); }
.process figcaption strong { display: block; font-weight: 850; font-variation-settings: "wdth" 112; font-size: var(--step-1); color: var(--ink); line-height: 1.15; }
.process figcaption span { color: var(--text-muted); }
.process figure:nth-child(2) { margin-top: var(--space-4); }
.process figure:nth-child(3) { margin-top: calc(var(--space-4) * 2); }
@media (max-width: 800px) {
  .process { grid-template-columns: 1fr; }
  .process figure:nth-child(n) { margin-top: 0; }
}

/* Reviews as stamped cards */
.reviews { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: var(--space-5); align-items: start; }
.score { position: sticky; top: 7rem; }
.score__num { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(4.5rem, 3rem + 6vw, 7.5rem); line-height: 0.85; color: var(--ink); letter-spacing: -0.04em; }
.score .stars { font-size: 1.5rem; margin: 0.6rem 0 0.4rem; }
.score p { color: var(--text-muted); }
.quotes { columns: 2 18rem; column-gap: var(--space-3); }
.quote {
  break-inside: avoid; margin: 0 0 var(--space-3); padding: var(--space-3);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.quote blockquote { margin: 0; }
.quote footer > span:first-child { display: grid; gap: 0.1rem; }
.quote footer .spec { color: var(--link); }
.quote p { margin: 0.6rem 0 0.9rem; font-size: var(--step-0); color: var(--text); }
.quote footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; color: var(--text-muted); font-size: var(--step--1); }
.quote footer strong { color: var(--ink); }
.quote--big p { font-weight: 750; font-variation-settings: "wdth" 104; font-size: var(--step-1); line-height: 1.35; color: var(--ink); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; gap: var(--space-4); } .score { position: static; } }

/* Who it's for */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid #fff; }
.who > div { padding: var(--space-4) var(--space-3) 0 0; }
.who > div + div { padding-left: var(--space-3); border-left: 1px solid rgba(255, 255, 255, 0.28); }
.who h3 { margin-bottom: var(--space-2); }
.who p { margin: 0; }
@media (max-width: 800px) {
  .who { grid-template-columns: 1fr; }
  .who > div, .who > div + div { padding: var(--space-3) 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
}

/* Fits chart: service area */
.fits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-5); align-items: start; }
.fits__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fits__table th, .fits__table td { text-align: left; vertical-align: top; padding: 0.9rem 0.75rem 0.9rem 0; border-bottom: 1px solid var(--board-line); }
.fits__table th { width: 9.5rem; color: var(--ink); }
.fits__table td { color: var(--text); }
.fits__table tr:first-child th, .fits__table tr:first-child td { border-top: 2px solid var(--ink); }
@media (max-width: 860px) { .fits { grid-template-columns: 1fr; gap: var(--space-3); } .fits__table th { width: 7rem; } }

/* Closing call */
.close { padding-block: var(--space-6); text-align: left; }
.close__phone {
  display: inline-block; margin: var(--space-2) 0 var(--space-3);
  font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(2rem, 0.9rem + 5.4vw, 5.4rem);
  line-height: 0.95; letter-spacing: -0.03em; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.close__phone:hover { color: var(--sky); }
.close__hours { margin-top: var(--space-3); color: var(--sky-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: #fff; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { color: #fff; font-size: var(--step-4); max-width: 14ch; }
.page-hero .hero__lede { max-width: 42ch; }
.page-hero .cta-row { margin-top: var(--space-4); }
.page-hero .swatch { width: min(100%, 17rem); cursor: default; justify-self: center; transform: rotate(-4deg); }
.page-hero .swatch__name { font-size: 1.15rem; }
.crumbs { margin-bottom: var(--space-3); color: var(--sky-soft); font-size: var(--step--1); }
.crumbs a { color: var(--sky-soft); }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .page-hero .swatch { justify-self: start; transform: none; width: 15rem; }
}

/* Prose with an aside */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.split--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
@media (max-width: 860px) { .split, .split--flip { grid-template-columns: 1fr; gap: var(--space-4); } }
.prose h2 { margin-bottom: var(--space-3); }
.prose h3 { margin: var(--space-4) 0 var(--space-1); }
.prose ul { padding-left: 1.2rem; margin: 0 0 var(--space-3); max-width: 62ch; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--cobalt); }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow-card); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { margin-top: 0.6rem; color: var(--text-muted); }

/* Signs checklist */
.signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); border-top: 2px solid var(--ink); }
.signs li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--board-line); }
.signs .icon { color: var(--cobalt); margin-top: 0.15rem; }
.signs strong { display: block; color: var(--ink); font-weight: 800; }
.signs span { color: var(--text-muted); }
@media (max-width: 700px) { .signs { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--board-line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-weight: 800; font-variation-settings: "wdth" 108; font-size: var(--step-1); color: var(--ink); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 300ms var(--ease-out); color: var(--cobalt); margin-top: 0.1rem; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { color: var(--text-muted); padding-bottom: 1rem; }

/* Towns list */
.towns { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.towns li { padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--board-line); font-weight: 650; font-variation-settings: "wdth" 90; color: var(--ink); }

/* ---------- Quote form ---------- */
.form { display: grid; gap: var(--space-3); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 750; color: var(--ink); font-variation-settings: "wdth" 96; }
.field .opt { color: var(--text-muted); font-weight: 500; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.75rem 0.9rem;
  border: 1.5px solid #7186a8; border-radius: 8px; background: #fff; color: var(--text);
  font: inherit; font-size: 1.05rem; caret-color: var(--cobalt);
  transition: border-color 160ms, box-shadow 160ms;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(46, 111, 216, 0.25); }
.field input::placeholder, .field textarea::placeholder { color: #56647f; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: var(--step--1); font-weight: 650; }
.field__hint { color: var(--text-muted); font-size: var(--step--1); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choices span {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.55rem 1rem;
  border: 1.5px solid #7186a8; border-radius: 999px; background: #fff; color: var(--text);
  font-weight: 650; font-variation-settings: "wdth" 92; cursor: pointer; transition: all 160ms;
}
.choices input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choices input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.field input[type="file"] { font: inherit; color: var(--text-muted); }
.field input[type="file"]::file-selector-button {
  margin-right: 0.75rem; padding: 0.6rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 750; cursor: pointer;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 1rem 1.1rem; border-radius: 8px; font-weight: 600; }
.form__status[data-state="ok"] { background: #e3f3e7; color: #134a24; }
.form__status[data-state="error"] { background: #fbe7e5; color: #7a1a14; }
.form__status[hidden] { display: none; }
.form__status a { color: inherit; font-weight: 800; }

/* ---------- Footer ---------- */
.foot { background: var(--ink-deep); color: var(--sky-soft); padding-block: var(--space-5) var(--space-4); font-size: var(--step--1); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.foot .mark { color: #fff; }
.foot .mark__wave { color: var(--sky); }
.foot h2 { font-size: var(--step-0); color: #fff; font-variation-settings: "wdth" 110; margin-bottom: 0.75rem; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.foot a { color: #fff; }
.foot__legal { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Sticky mobile bar ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    position: fixed; inset: auto 0 0 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--board-line);
    box-shadow: 0 -10px 24px -16px rgba(10, 31, 77, 0.45);
  }
  .dock .btn { min-height: 3rem; padding: 0.5rem; font-size: 0.98rem; gap: 0.4rem; }
  body { padding-bottom: 4.6rem; }
}

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

/* Rating as a stamped spec card */
.score__card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: var(--space-3); }
.score__card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin: var(--space-2) 0 var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--board-line); }
.score__card dt { color: var(--text-muted); }
.score__card dd { margin: 0; color: var(--ink); font-weight: 700; }
