/* Pool Rx demo, option A: "The Prescription"
   Tokens first. Components reference tokens only. */

:root {
  /* primitives */
  --c-paper: #f6f8fb;
  --c-white: #ffffff;
  --c-ink: #0a1a33;
  --c-ink-2: #2e3d57;
  --c-slate: #53617a;
  --c-rule: #dde3ec;
  --c-rule-2: #bcc6d5;
  --c-blue: #0062dc;
  --c-blue-dark: #004cad;
  --c-blue-darker: #003d8c;
  --c-blue-wash: #eaf2fe;
  --c-blue-soft: #9cc2ff;
  --c-red: #d90101;
  --c-yellow: #ffe680;
  --c-yellow-ink: #3d3000;

  /* semantic */
  --bg: var(--c-paper);
  --surface: var(--c-white);
  --fg: var(--c-ink);
  --fg-2: var(--c-ink-2);
  --muted: var(--c-slate);
  --border: var(--c-rule);
  --border-strong: var(--c-rule-2);
  --accent: var(--c-blue);
  --accent-hover: var(--c-blue-dark);
  --accent-active: var(--c-blue-darker);
  --accent-wash: var(--c-blue-wash);
  --mark: var(--c-red);
  --focus: var(--c-blue);
  --invert-bg: var(--c-ink);
  --invert-fg: #eef2f8;
  --invert-muted: #b3bfd1;
  --invert-link: var(--c-blue-soft);

  /* type */
  --font-display: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.5rem + 3.6vw, 4.25rem);

  /* space (8pt) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section: clamp(64px, 5vw + 40px, 128px);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 2px rgba(10, 26, 51, 0.06), 0 8px 24px rgba(10, 26, 51, 0.08), 0 24px 48px rgba(10, 26, 51, 0.06);

  --header-h: 64px;
  --wrap: 1200px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--fg); margin: 0; font-weight: 500; }
p { margin: 0 0 0.9em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:active { color: var(--accent-active); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-wash); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 5vw, 64px); }
.prose { max-width: 65ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--fg); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; color: #fff; }

/* labels, chips */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.label::before { content: ""; width: 16px; height: 2px; background: var(--mark); display: inline-block; }
.label--plain::before { display: none; }
.confirm {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  background: var(--c-yellow);
  color: var(--c-yellow-ink);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  vertical-align: middle;
  text-transform: none;
}
.updated { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-primary:active { background: var(--accent-active); transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); background: var(--surface); text-decoration: none; }
.btn-ghost:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.text-link:hover { text-decoration: none; border-bottom-width: 2px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: 86px; height: auto; }
.header-call {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: var(--radius-full); border: 1px solid var(--border-strong);
  color: var(--fg); font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.header-call:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.menu-toggle {
  min-height: 44px; min-width: 44px; padding: 8px 12px;
  background: none; border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 500 0.9375rem/1 var(--font-display); color: var(--fg); cursor: pointer;
}
.menu-toggle:hover { border-color: var(--border-strong); }
.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.site-nav ul { list-style: none; padding: var(--s-3) clamp(16px, 5vw, 64px) var(--s-5); }
.site-nav a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--fg); text-decoration: none; font-family: var(--font-display); font-size: 1.125rem;
  border-bottom: 1px solid var(--border);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }

@media (min-width: 1120px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; gap: var(--s-5); padding: 0; }
  .site-nav a { border: 0; font-size: 0.9375rem; min-height: 44px; position: relative; white-space: nowrap; }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--mark);
  }
  .header-call { order: 3; margin-left: var(--s-4); }
}

/* hero */
.hero { padding-block: clamp(32px, 4vw + 16px, 96px) clamp(48px, 5vw + 24px, 112px); }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero h1 {
  font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.022em; font-weight: 500;
  margin: var(--s-4) 0 var(--s-5); max-width: 15ch;
}
.hero h1 .thin { font-weight: 300; color: var(--fg-2); }
.hero .lede { font-size: var(--step-1); line-height: 1.5; color: var(--fg-2); max-width: 36ch; margin-bottom: var(--s-6); }
.hero .sub-cta { margin-top: var(--s-4); font-size: 0.9375rem; color: var(--muted); }
.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--border);
  aspect-ratio: 4 / 5; max-height: 640px;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .rx { margin: -64px 0 0 16px; position: relative; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .hero-media { padding-left: 72px; }
  .hero-media .rx { position: absolute; left: 0; bottom: 32px; margin: 0; }
}

/* the prescription label (signature, used sparingly) */
.rx {
  width: min(340px, calc(100% - 16px));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--fg);
  padding: var(--s-4) var(--s-5) var(--s-5);
  transform: rotate(-1.2deg);
}
.rx-head { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 2px solid var(--mark); }
.rx-head img { width: 28px; height: 28px; }
.rx-head strong { display: block; font-size: 0.8125rem; letter-spacing: 0.06em; }
.rx-head span { display: block; color: var(--muted); font-size: 0.75rem; }
.rx-title { display: flex; align-items: baseline; gap: var(--s-3); padding: var(--s-3) 0 var(--s-2); }
.rx-glyph { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--mark); font-weight: 400; }
.rx-title b { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.005em; }
.rx dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-3); }
.rx dt { color: var(--muted); text-transform: uppercase; font-size: 0.6875rem; letter-spacing: 0.08em; padding-top: 2px; }
.rx dd { margin: 0; }
.rx-foot { margin-top: var(--s-4); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); }
.rx-code {
  height: 28px; flex: 1; max-width: 150px;
  background: repeating-linear-gradient(90deg, var(--fg) 0 2px, transparent 2px 4px, var(--fg) 4px 5px, transparent 5px 8px, var(--fg) 8px 11px, transparent 11px 12px);
  opacity: 0.85;
}
.rx-foot small { font-size: 0.6875rem; color: var(--muted); text-align: right; }

/* fact strip */
.facts { border-block: 1px solid var(--border); background: var(--surface); }
.facts ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.facts li { padding: var(--s-5) var(--s-5) var(--s-5) 0; border-bottom: 1px solid var(--border); }
.facts li:last-child { border-bottom: 0; }
.facts b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; }
.facts span { font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 900px) {
  .facts li { border-bottom: 0; border-right: 1px solid var(--border); padding-left: var(--s-5); }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { border-right: 0; }
}

/* sections */
.section { padding-block: var(--section); }
.section--white { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; max-width: 20ch; }
.section-head p { color: var(--fg-2); max-width: 56ch; margin: 0; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: var(--s-8); }
  .section-head .label { grid-column: 1 / -1; }
}

/* services: editorial numbered list */
.svc-list { list-style: none; counter-reset: svc; border-top: 1px solid var(--fg); }
.svc { display: grid; gap: var(--s-5); padding-block: var(--s-7); border-bottom: 1px solid var(--border); }
.svc-num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); }
.svc-num em { font-style: normal; color: var(--mark); }
.svc h3 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em; margin: var(--s-2) 0 var(--s-4); }
.svc p { color: var(--fg-2); max-width: 52ch; }
.svc .quote-line { font-family: var(--font-display); font-weight: 300; font-size: var(--step-1); color: var(--fg); margin-bottom: var(--s-4); }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 var(--s-5); }
.svc-tags li { font-size: 0.875rem; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); color: var(--fg-2); }
.svc figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--border); }
.svc figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 96px 1fr 1fr; gap: var(--s-7); align-items: start; }
  .svc:nth-child(even) figure { order: -1; grid-column: 2; }
  .svc:nth-child(even) .svc-body { grid-column: 3; }
  .svc:nth-child(even) .svc-num { grid-column: 1; grid-row: 1; }
}

/* who shows up: the one ink band */
.crew { background: var(--invert-bg); color: var(--invert-fg); }
.crew h2, .crew h3 { color: #fff; }
.crew .label { color: var(--invert-muted); }
.crew .section-head p { color: var(--invert-muted); }
.crew a { color: var(--invert-link); }
.crew a:hover { color: #fff; }
.crew :focus-visible { outline-color: var(--invert-link); }
.crew-grid { display: grid; gap: var(--s-4); }
.crew-grid figure { margin: 0; }
.crew-grid .ph { border-radius: var(--radius-md); overflow: hidden; background: #1c2c47; }
.crew-grid img { width: 100%; height: 100%; object-fit: cover; }
.crew-grid figcaption { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--invert-muted); padding-top: var(--s-3); }
@media (min-width: 768px) {
  .crew-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-5); align-items: start; }
  .crew-grid figure:first-child .ph { aspect-ratio: 4 / 5; }
  .crew-grid figure:not(:first-child) .ph { aspect-ratio: 1 / 1; }
  .crew-grid figure:nth-child(3) { margin-top: var(--s-8); }
}
.family { display: grid; gap: var(--s-6); margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid #2a3b59; }
.family h3 { font-size: var(--step-2); font-weight: 400; letter-spacing: -0.01em; }
.family p { color: var(--invert-muted); max-width: 52ch; }
.people { list-style: none; display: grid; gap: var(--s-4); }
.people li { padding: var(--s-4) 0; border-bottom: 1px solid #2a3b59; }
.people b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem; color: #fff; }
.people span { color: var(--invert-muted); font-size: 0.9375rem; }
@media (min-width: 900px) { .family { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }

/* steps */
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: step; }
.steps li { counter-increment: step; padding-top: var(--s-5); border-top: 1px solid var(--fg); }
.steps li::before {
  content: "Step " counter(step);
  display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mark); margin-bottom: var(--s-3);
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--s-2); font-weight: 500; }
.steps p { color: var(--fg-2); margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* gallery */
.gallery { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--border); position: relative; aspect-ratio: 3 / 4; }
.gallery figure.wide { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 8px; bottom: 8px; right: 8px;
  font-family: var(--font-mono); font-size: 0.6875rem; line-height: 1.3;
  background: rgba(255, 255, 255, 0.94); color: var(--fg); padding: 4px 8px; border-radius: var(--radius-sm); width: fit-content;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
  .gallery figure.tall { grid-row: span 2; aspect-ratio: auto; }
}

/* service area */
.towns { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.towns li { font-family: var(--font-display); font-size: 1.0625rem; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); background: var(--surface); }
.towns li.home { border-color: var(--fg); background: var(--fg); color: #fff; }
.area-split { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .area-split { grid-template-columns: 1fr 1.2fr; column-gap: var(--s-8); align-items: start; } }

/* reviews placeholder */
.placeholder {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: var(--s-6);
  display: grid; gap: var(--s-3); background: var(--surface);
}
.placeholder p { margin: 0; color: var(--muted); }

/* faq */
.faq-wrap { display: grid; gap: var(--s-6); }
.faq-wrap > div:first-child h2 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; margin: var(--s-4) 0; }
.faq { border-top: 1px solid var(--fg); }
.faq-item { padding-block: var(--s-5); border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 500; margin-bottom: var(--s-2); }
.faq-item p { color: var(--fg-2); margin: 0; max-width: 62ch; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; column-gap: var(--s-8); } }

/* final call: second and last Rx moment */
.refill { padding-block: var(--section); }
.refill-card {
  position: relative; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 64px); display: grid; gap: var(--s-6); overflow: hidden;
}
.refill-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--mark); }
.refill-card h2 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; }
.refill-card h2 .rx-glyph { font-size: 1em; margin-right: 0.1em; }
.refill-card p { color: var(--fg-2); max-width: 48ch; }
.refill-meta { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); display: grid; gap: 4px; align-content: start; }
.refill-meta b { color: var(--fg); font-weight: 600; }
@media (min-width: 900px) { .refill-card { grid-template-columns: 1.5fr 1fr; align-items: end; } }

/* inner pages */
.crumbs { padding-top: var(--s-5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--border-strong); }
.crumbs a { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { display: inline-flex; min-height: 44px; align-items: center; color: var(--fg); }
.page-hero { padding-block: var(--s-5) var(--s-8); }
.page-hero-grid { display: grid; gap: var(--s-7); align-items: start; }
.page-hero h1 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.022em; margin: var(--s-4) 0 var(--s-5); max-width: 16ch; }
.page-hero .answer { font-size: var(--step-1); line-height: 1.55; color: var(--fg-2); max-width: 44ch; }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--border); }
.page-hero figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr 0.9fr; column-gap: var(--s-8); } }

.two-col { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }
.two-col h2 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; margin: var(--s-4) 0 var(--s-5); }
.checklist { list-style: none; border-top: 1px solid var(--fg); }
.checklist li { padding: var(--s-4) 0 var(--s-4) var(--s-6); border-bottom: 1px solid var(--border); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 14px; height: 2px; background: var(--mark); }
.checklist b { font-weight: 500; font-family: var(--font-display); }
.photo-pair { display: grid; gap: var(--s-4); grid-template-columns: 1fr 1fr; }
.photo-pair figure { margin: 0; }
.photo-pair .ph { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3 / 4; background: var(--border); }
.photo-pair img { width: 100%; height: 100%; object-fit: cover; }
.photo-pair figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: var(--s-2); }

/* contact */
.contact-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; column-gap: var(--s-8); align-items: start; } }
.contact-lines { list-style: none; border-top: 1px solid var(--fg); }
.contact-lines li { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); display: grid; gap: 2px; }
.contact-lines .k { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-lines .v { font-size: 1.0625rem; }
.contact-lines a { display: inline-flex; min-height: 44px; align-items: center; }
.map { margin-top: var(--s-6); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--border); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-card { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 48px); }
.form-card h2 { font-size: var(--step-2); margin-bottom: var(--s-2); }
.form-card > p { color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: var(--s-5); }
.field label { font-weight: 500; font-size: 1rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--c-white);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  min-height: 48px; padding: 10px 12px; width: 100%;
  transition: border-color 150ms ease-out;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--mark); }
.field .err { color: var(--mark); font-size: 0.875rem; min-height: 0; }
.field .err:empty { display: none; }
.form-note { font-size: 0.875rem; color: var(--muted); margin-top: var(--s-3); }
.form-status {
  margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--radius-sm);
  background: var(--accent-wash); border: 1px solid var(--accent); color: var(--fg);
}
.form-status:empty { display: none; }
.flyer { margin: var(--s-7) 0 0; max-width: 320px; }
.flyer img { border: 1px solid var(--border); border-radius: var(--radius-sm); transform: rotate(1.5deg); box-shadow: var(--shadow-card); }
.flyer figcaption { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: var(--s-4); }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: var(--s-8) var(--s-6); font-size: 0.9375rem; }
.foot-grid { display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; }
.site-footer li a { display: inline-flex; min-height: 44px; align-items: center; color: var(--fg); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .foot-brand img { width: 104px; margin-bottom: var(--s-4); }
.site-footer .foot-brand p { color: var(--fg-2); max-width: 32ch; }
.foot-base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; color: var(--muted); font-size: 0.875rem; }

/* 404 */
.notfound { padding-block: var(--s-9); }
.notfound h1 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.02em; margin: var(--s-4) 0 var(--s-5); max-width: 16ch; }

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

/* small utilities used by the page templates */
.h2-inline { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; margin: var(--s-4) 0; }
.fg2 { color: var(--fg-2); }
.towns-note { margin-top: var(--s-4); }
.section--tight { padding-block: var(--s-8); }
.section--flush { padding-bottom: 0; }
.page-hero--short { padding-bottom: var(--s-5); }
.section--after-hero { padding-top: var(--s-6); }
.placeholder h2 { font-size: var(--step-2); }
.family h3 { margin-top: var(--s-4); }
.refill-card h2 { margin: var(--s-4) 0; }
.two-col h2 + .towns, .two-col h2 + .checklist { margin-top: var(--s-2); }
.notfound .answer { font-size: var(--step-1); color: var(--fg-2); max-width: 40ch; }
.notfound-list { max-width: 520px; margin: var(--s-6) 0; }
.svc h3 a { color: var(--fg); text-decoration: none; }
.svc h3 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.refill-card h2 .rx-glyph { margin-right: 0.18em; }
.site-footer p + h2 { margin-top: var(--s-5); }
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }
