/* ==========================================================================
   MiniSchnauzerpups.com — design system
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base type
   3.  Loader, scroll progress, page transition
   4.  Header & navigation
   5.  Buttons & micro-interactions
   6.  Layout primitives
   7.  Hero system
   8.  Section headings & editorial blocks
   9.  Frame family (signature image treatment)
   10. Puppy cards & status
   11. Puppy detail: gallery + spec ledger
   12. Trust badges
   13. Calculator & reservation summary
   14. Steps, timeline, stat rows
   15. Reviews
   16. Forms
   17. Policy & contract documents
   18. Tables, notes, empty & error states
   19. Footer
   20. Motion, print, responsive tail
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Mandated brand palette */
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #8b121c;
  --color-accent-2: #a8202b;

  /* Derived neutrals */
  --paper: #fdfdfc;
  --ink: var(--color-text);
  --ink-soft: #4d4846;
  --ink-mute: #6f6866;
  --line: rgba(32, 30, 29, 0.12);
  --line-strong: rgba(32, 30, 29, 0.22);
  --rose: #dba9ad;
  --accent-wash: rgba(139, 18, 28, 0.07);
  --accent-wash-2: rgba(139, 18, 28, 0.14);

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(13px, 0.15vw + 12.5px, 14px);
  --step-0: clamp(16px, 0.2vw + 15.4px, 17.5px);
  --step-1: clamp(18.5px, 0.4vw + 17.5px, 21px);
  --step-2: clamp(23px, 1vw + 20px, 30px);
  --step-3: clamp(29px, 2.2vw + 22px, 46px);
  --step-4: clamp(36px, 4vw + 22px, 72px);
  --step-5: clamp(44px, 6.6vw + 20px, 116px);

  /* Space */
  --gutter: clamp(16px, 3.2vw, 44px);
  --shelf: clamp(56px, 7vw, 132px);
  --shelf-sm: clamp(34px, 4vw, 68px);
  --max: 1380px;
  --max-text: 74ch;

  /* Surfaces */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: clamp(20px, 2vw, 30px);
  --r-xl: clamp(26px, 3vw, 40px);
  --shadow-1: 0 1px 2px rgba(32, 30, 29, 0.05), 0 8px 22px rgba(32, 30, 29, 0.06);
  --shadow-2: 0 1px 3px rgba(32, 30, 29, 0.06), 0 18px 44px rgba(32, 30, 29, 0.1);
  --shadow-3: 0 2px 6px rgba(32, 30, 29, 0.07), 0 34px 78px rgba(32, 30, 29, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --t-fast: 170ms;
  --t: 280ms;
  --t-slow: 620ms;
}

/* 2. Reset & base type ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Both elements must clip, or a decorative absolute child (the hero glows)
     widens the layout viewport and every small screen scrolls sideways. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--ink);
  font: var(--step-0) / 1.7 var(--sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Locking the page with `overflow: hidden` re-anchors a scrolled document at
   the top, which is what left the open menu off screen on phones. Blocking
   touch panning holds the page still without moving it; the panel re-enables
   panning for its own scrolling. */
body.is-locked { touch-action: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.1; }
h4 { font-size: var(--step-1); line-height: 1.2; }
em { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--color-accent); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }
li:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
small { font-size: var(--step--1); }

a { color: var(--color-accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-accent-2); }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--shelf-sm) 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 400;
  padding: 12px 18px; border-radius: 999px;
  background: var(--color-accent); color: #fff;
  font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: none; color: #fff; }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 14px;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.kicker { color: var(--ink-mute); }

.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 52ch; }
.muted { color: var(--ink-mute); }
.tabular { font-variant-numeric: tabular-nums; }

/* 3. Loader, scroll progress, page transition ------------------------------- */
/* The curtain retires itself in CSS. JavaScript can dismiss it sooner, but if
   the script never runs the page must not stay hidden (§57). */
.loader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: var(--color-bg);
  animation: loader-out 320ms var(--ease) 900ms forwards;
  transition: opacity 300ms var(--ease), visibility 300ms;
}
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.loader[hidden], .loader.is-done {
  animation: none; opacity: 0; visibility: hidden; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
.loader__mark { display: grid; justify-items: center; gap: 14px; }
.loader__mark svg { width: 62px; height: 62px; }
.loader__mark svg path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1100ms var(--ease) forwards; }
.loader__mark span {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-mute);
  opacity: 0; animation: fade 500ms 380ms var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 150;
  background: rgba(32, 30, 29, 0.06);
}
.progress > span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2), var(--rose));
}

main { animation: page-in 420ms var(--ease) both; }
body.is-leaving main { opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 300ms; }

/* 4. Header & navigation ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}
.nav-shell {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(243, 242, 242, 0.76);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 1px rgba(32, 30, 29, 0.04), 0 12px 34px rgba(32, 30, 29, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  pointer-events: auto;
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
body.is-scrolled .nav-shell { box-shadow: 0 1px 1px rgba(32, 30, 29, 0.05), 0 18px 44px rgba(32, 30, 29, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72); }

.brand {
  display: inline-flex; align-items: baseline;
  font-family: var(--serif); font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand em { color: var(--color-accent); }

.desktop-nav { display: none; position: relative; margin-left: auto; align-items: center; gap: 1px; }
.desktop-nav a {
  position: relative; z-index: 1;
  padding: 9px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a[aria-current="page"] { color: var(--color-accent); }
.nav-pill {
  position: absolute; left: 0; top: 50%; height: 36px; width: 0;
  border-radius: 999px; background: var(--accent-wash);
  transform: translateY(-50%); opacity: 0; pointer-events: none;
  transition: transform var(--t) var(--ease-out), width var(--t) var(--ease-out), opacity 180ms;
}

.menu-toggle {
  margin-left: auto; width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 999px; background: var(--paper);
  box-shadow: 0 2px 8px rgba(32, 30, 29, 0.1);
  cursor: pointer; transition: transform var(--t-fast) var(--ease);
}
.menu-toggle:hover { transform: scale(1.05); }
.menu-toggle span { display: block; width: 17px; height: 1.8px; border-radius: 2px; background: currentColor; position: relative; transition: background 140ms; }
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.8px; border-radius: 2px;
  background: currentColor; transition: transform var(--t) var(--ease-out);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Fixed to the viewport, not to the document: the menu opens under the bar in
   whatever section the reader is in. `--nav-top` is measured from the bar on
   each open (see site.js); the fallback covers a no-JS first paint. */
.mobile-nav {
  position: fixed; top: var(--nav-top, 84px); left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--gutter) * 2); max-width: var(--max);
  padding: 12px;
  border-radius: var(--r-xl);
  background: rgba(243, 242, 242, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(32, 30, 29, 0.18);
  pointer-events: auto;
  touch-action: pan-y; overscroll-behavior: contain;
  display: grid; gap: 2px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 420ms var(--ease), opacity 220ms var(--ease);
}
.mobile-nav.is-open { max-height: min(78vh, calc(100dvh - var(--nav-top, 84px) - 16px)); overflow-y: auto; opacity: 1; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-radius: var(--r-md);
  font-family: var(--serif); font-size: 25px; line-height: 1.1;
  color: var(--ink); text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: rgba(32, 30, 29, 0.05); }
.mobile-nav a[aria-current="page"] { color: var(--color-accent); background: var(--accent-wash); }
.mobile-nav a small { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-mute); }
.mobile-nav .mobile-nav__cta {
  margin-top: 6px; justify-content: center;
  background: linear-gradient(180deg, var(--color-accent-2), var(--color-accent));
  color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 700;
  border-radius: 999px; padding: 16px;
}

/* Nine primary links plus a wordmark and a CTA need real room; below this the
   drawer carries the whole menu rather than letting the bar crush itself. */
@media (min-width: 1180px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }
}
@media (min-width: 1180px) and (max-width: 1320px) {
  .desktop-nav a { padding: 9px 8px; font-size: 12.5px; }
  .nav-shell { padding-left: 16px; }
}

/* 5. Buttons & micro-interactions ------------------------------------------- */
.btn {
  --btn-bg: linear-gradient(180deg, var(--color-accent-2), var(--color-accent));
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: #fff;
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(139, 18, 28, 0.24);
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(139, 18, 28, 0.3); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .arrow { display: inline-block; transition: transform var(--t) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--sm { padding: 11px 17px; font-size: 13px; }
.btn--lg { padding: 19px 30px; font-size: 15.5px; }
.btn--block { width: 100%; }

.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 24px rgba(32, 30, 29, 0.09); }

.btn--quiet {
  background: var(--accent-wash); color: var(--color-accent);
  box-shadow: none;
}
.btn--quiet:hover { background: var(--accent-wash-2); color: var(--color-accent-2); box-shadow: none; }

.btn[aria-disabled="true"], .btn:disabled, .btn--disabled {
  background: var(--color-surface); color: var(--ink-mute);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: not-allowed; pointer-events: none; transform: none;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform var(--t) var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-underline { position: relative; text-decoration: none; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--t) var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); }

/* 6. Layout primitives ------------------------------------------------------ */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 940px; }
.section { padding-block: var(--shelf); }
.section--tight { padding-block: var(--shelf-sm); }
.section--surface { background: var(--color-surface); }
.section--ink {
  background: #1b1918;
  color: #f0eeed;
  /* Re-point the neutral tokens so every nested component inverts correctly
     instead of painting dark-on-dark. */
  --ink: #ffffff;
  --ink-soft: rgba(240, 238, 237, 0.8);
  --ink-mute: rgba(240, 238, 237, 0.58);
  --line: rgba(240, 238, 237, 0.16);
  --line-strong: rgba(240, 238, 237, 0.34);
  --paper: #241f1e;
  --color-surface: #241f1e;
  --accent-wash: rgba(219, 169, 173, 0.12);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink h2 em, .section--ink h3 em { color: var(--rose); }
.section--ink a { color: var(--rose); }
.section--ink a:hover { color: #fff; }
.section--ink .eyebrow { color: var(--rose); }
.section--ink .eyebrow::before { background: var(--rose); box-shadow: 0 0 0 4px rgba(219, 169, 173, 0.18); }
.section--ink .surface { background: #241f1e; box-shadow: inset 0 0 0 1px rgba(240, 238, 237, 0.12); }
.section--ink .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.section--ink .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px #fff; }
.section--ink .btn--quiet { background: rgba(219, 169, 173, 0.14); color: var(--rose); }
.section--ink .pending-chip { background: rgba(240, 238, 237, 0.12); color: rgba(240, 238, 237, 0.72); }
.section--ink th { background: rgba(240, 238, 237, 0.06); }
.section--ink table { background: #241f1e; }

/* Grid and flex children default to min-width:auto, so one wide descendant
   (a scrollable table, a long word) stretches the whole track past the
   viewport. Opting every layout child out of that keeps small screens honest. */
.grid > *, .split > *, .hero__inner > *, .calc > *, .doc > *,
.section-head > *, .rule-head > *, .puppy-grid > *, .trust > *,
.field-grid > *, .stat-row > *, .footer__grid > * { min-width: 0; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 34px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
/* Cap the auto-fit grids so six items read as 3 + 3 rather than 4 + 2. */
@media (min-width: 860px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1180px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Asymmetric editorial pairing — the site's default two-column rhythm. */
.split { display: grid; gap: clamp(22px, 3.4vw, 62px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--wide-left { grid-template-columns: 1.35fr 0.65fr; }
  .split--wide-right { grid-template-columns: 0.65fr 1.35fr; }
  .split--flip > *:first-child { order: 2; }
  .split--top { align-items: start; }
}

.surface {
  padding: clamp(20px, 2.4vw, 34px);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.surface--flat { background: var(--color-surface); box-shadow: none; }
.surface--outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.surface--accent { background: linear-gradient(160deg, var(--color-accent), #620b12); color: #fff; }
.surface--accent h3, .surface--accent h2 { color: #fff; }
.surface--accent p { color: rgba(255, 255, 255, 0.82); }

.lift { transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

/* 7. Hero system ------------------------------------------------------------ */
.hero { position: relative; overflow: clip; padding: clamp(24px, 3.6vw, 54px) var(--gutter) 0; }
.hero__glow, .hero__glow-2 {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(14px);
}
.hero__glow {
  top: -16%; right: -10%; width: min(60vw, 760px); height: min(60vw, 760px);
  background: radial-gradient(circle, rgba(139, 18, 28, 0.15), rgba(139, 18, 28, 0) 68%);
}
.hero__glow-2 {
  top: 30%; left: -16%; width: min(48vw, 580px); height: min(48vw, 580px);
  background: radial-gradient(circle, rgba(219, 169, 173, 0.3), rgba(219, 169, 173, 0) 70%);
}
.hero__inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; gap: clamp(22px, 3vw, 48px); align-items: stretch;
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.02fr 0.98fr; } }
/* A hero with no photograph gets one column, with the copy held to a readable
   measure instead of running the full width of the page. */
@media (min-width: 900px) {
  .hero--copy-only .hero__inner { grid-template-columns: 1fr; }
  .hero--copy-only .hero__copy { max-width: 68ch; }
}
.hero__copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2vw, 26px); padding-block: clamp(8px, 2vw, 34px); }
.hero__copy h1 { margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  min-height: min(72vh, 660px);
  background: var(--color-surface);
  box-shadow: var(--shadow-3);
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media--contain { background: var(--paper); }
.hero__media--contain img { object-fit: contain; padding: clamp(10px, 1.6vw, 22px); }
.hero__parallax { position: absolute; inset: -5%; will-change: transform; transition: transform 400ms var(--ease); }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 26, 25, 0) 50%, rgba(28, 26, 25, 0.58) 100%); pointer-events: none; }
.hero__caption {
  position: absolute; left: clamp(14px, 2vw, 26px); right: clamp(14px, 2vw, 26px); bottom: clamp(14px, 2vw, 22px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin: 0; color: #fff; pointer-events: none;
}
.hero__caption p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 25px); text-shadow: 0 2px 14px rgba(28, 26, 25, 0.5); }
.hero__chip {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(243, 242, 242, 0.22); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}

.hero__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 9px; margin: 0; font-variant-numeric: tabular-nums;
}
.hero__stats > div {
  padding: 13px 15px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 10px rgba(32, 30, 29, 0.05);
}
.hero__stats dt { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.hero__stats dd { margin: 5px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.hero__stats > div.is-accent { background: var(--accent-wash); }
.hero__stats > div.is-accent dt, .hero__stats > div.is-accent dd { color: var(--color-accent); }

.page-hero { padding-top: clamp(20px, 3vw, 44px); }
.page-hero .hero__media { min-height: min(52vh, 480px); }
.page-hero h1 { font-size: var(--step-4); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-mute); }
.breadcrumbs li::after { content: "/"; margin-left: 8px; opacity: 0.5; }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--ink-mute); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent); }

/* 8. Section headings & editorial blocks ------------------------------------ */
.section-head {
  display: grid; gap: clamp(14px, 2vw, 30px); align-items: end;
  margin-bottom: clamp(24px, 3vw, 48px);
}
@media (min-width: 860px) { .section-head { grid-template-columns: 1.25fr 0.75fr; } }
.section-head h2 { max-width: 20ch; }
.section-head__aside { color: var(--ink-soft); font-size: var(--step-0); }
.section-head--center { text-align: center; justify-items: center; grid-template-columns: 1fr; }
.section-head--center h2 { max-width: 24ch; }
.section-head--center .section-head__aside { max-width: 62ch; }

.rule-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding-bottom: 14px; margin-bottom: clamp(20px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.pullquote {
  font-family: var(--serif); font-size: var(--step-3); line-height: 1.14;
  letter-spacing: -0.02em; max-width: 22ch; margin: 0;
}
.figure-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-mute); }

.media-card { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-1); }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 900ms var(--ease); }
.media-card:hover img { transform: scale(1.03); }
.media-card__body { padding: clamp(18px, 2vw, 26px); }
.media-card--contain img { object-fit: contain; background: var(--paper); }

/* Mosaic: an image grid that is not a row of identical thumbnails. */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(6, 1fr); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.mosaic > * { overflow: hidden; border-radius: var(--r-md); }
.mosaic > *:nth-child(1) { grid-column: span 3; aspect-ratio: 4 / 3; }
.mosaic > *:nth-child(2) { grid-column: span 3; aspect-ratio: 4 / 3; }
.mosaic > *:nth-child(3) { grid-column: span 2; aspect-ratio: 1; }
.mosaic > *:nth-child(4) { grid-column: span 2; aspect-ratio: 1; }
.mosaic > *:nth-child(5) { grid-column: span 2; aspect-ratio: 1; }
.mosaic > *:nth-child(6) { grid-column: span 6; aspect-ratio: 21 / 9; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic > *:nth-child(n) { grid-column: span 2; aspect-ratio: 1; }
  .mosaic > *:nth-child(6) { grid-column: span 4; aspect-ratio: 16 / 9; }
}

/* Horizontal rail with snap — used for featured puppies on small screens. */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 30%);
  gap: clamp(14px, 2vw, 26px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
/* One puppy at a time on phones and tablets: a sliver of the next card reads as
   a layout accident rather than an invitation to swipe. */
@media (max-width: 899px) {
  /* Drop the edge-bleed too: with it, a card is 100% of the content box and the
     gutter still leaks a slice of the next one. */
  .rail { grid-auto-columns: 100%; margin-inline: 0; padding-inline: 0; }
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

/* 9. Frame family (signature image treatment) ------------------------------- */
/* Layered strokes: colour field → dark inner rule → offset outer rule → photo.
   The photograph is always `contain`, so nothing is ever cropped (§14). */
.frame {
  --field: var(--color-accent);
  --rule: #42090f;
  --tab: var(--color-bg);
  position: relative;
  /* A fine mount, not a picture rail — the photograph is the subject. */
  padding: clamp(4px, 0.5vw, 7px);
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--field), color-mix(in srgb, var(--field) 74%, #000));
  box-shadow: 0 2px 6px rgba(32, 30, 29, 0.08), 0 18px 42px rgba(32, 30, 29, 0.12);
}
.frame::before {
  content: ""; position: absolute; inset: 2px;
  border-radius: calc(var(--r-lg) - 2px);
  box-shadow: inset 0 0 0 1px var(--rule);
  pointer-events: none; z-index: 2;
}
/* The plate is a mount board: photographs are letterboxed onto it rather than
   cropped, so the tone is a soft warm neutral instead of a stark white gap. */
.frame__plate {
  position: relative; overflow: hidden;
  border-radius: calc(var(--r-lg) - 5px);
  background:
    linear-gradient(180deg, #fdfcfb, #f4f2f0);
  box-shadow: inset 0 0 0 1px rgba(32, 30, 29, 0.07);
  aspect-ratio: 4 / 5;
}
/* Absolute positioning rather than height:100% — a percentage height against an
   aspect-ratio box is unreliable, and when it collapses the photograph sits at
   the top of the plate with a dead band beneath it. */
.frame__plate img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;             /* §14 — the whole puppy stays in frame */
  object-position: 50% 50%;
  transition: transform 800ms var(--ease);
}
.frame:hover .frame__plate img { transform: scale(1.025); }
.frame__tab {
  position: absolute; top: 0; left: clamp(16px, 2.4vw, 28px);
  transform: translateY(-45%);
  padding: 5px 12px; border-radius: 999px;
  background: var(--tab); color: var(--field);
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(32, 30, 29, 0.16);
  z-index: 3;
}

/* Frame variants — a controlled family, not one repeated look (§65). */
.frame--offset { border-radius: var(--r-lg) 6px var(--r-lg) 6px; }
.frame--offset .frame__plate { border-radius: calc(var(--r-lg) - 5px) 3px calc(var(--r-lg) - 5px) 3px; }
.frame--offset::before { border-radius: calc(var(--r-lg) - 2px) 3px calc(var(--r-lg) - 2px) 3px; }
.frame--rule { box-shadow: 0 0 0 1px var(--rule), 5px 5px 0 -1px var(--field), 0 20px 44px rgba(32, 30, 29, 0.12); }
.frame--paper::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0.16; mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 20% 30%, #fff 0.5px, transparent 0.6px),
    radial-gradient(circle at 70% 60%, #fff 0.5px, transparent 0.6px);
  background-size: 7px 7px, 11px 11px;
}
.frame--tall .frame__plate { aspect-ratio: 3 / 4; }
.frame--square .frame__plate { aspect-ratio: 1; }

/* 10. Puppy cards & status --------------------------------------------------- */
.puppy-grid { display: grid; gap: clamp(18px, 2.4vw, 38px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.puppy-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease);
}
.puppy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.puppy-card__media { position: relative; display: block; padding: clamp(10px, 1.2vw, 15px); }
.puppy-card__title h3 a { color: inherit; text-decoration: none; }
.puppy-card__title h3 a:hover { color: var(--color-accent); }
/* Image zone and information zone stay visually separate (§15). */
.puppy-card__info {
  display: flex; flex: 1; flex-direction: column; gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), var(--color-bg));
}
.puppy-card__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.puppy-card__title h3 { font-size: clamp(27px, 2.2vw, 33px); }
.puppy-card__price { font-family: var(--serif); font-size: clamp(23px, 2vw, 28px); color: var(--color-accent); white-space: nowrap; }
.puppy-card__meta { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-mute); }
.puppy-card__specs { display: grid; gap: 8px; margin: 0; font-size: 13.5px; }
.puppy-card__specs > div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; }
.puppy-card__specs dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.puppy-card__specs dd { margin: 0; color: var(--ink-soft); }
.puppy-card__cta { margin-top: auto; }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--available { background: linear-gradient(180deg, var(--color-accent-2), var(--color-accent)); color: #fff; }
.status--inquiry { color: var(--color-accent); box-shadow: inset 0 0 0 1.5px rgba(139, 18, 28, 0.4); }
/* Held, not gone: warmer and lighter than SOLD, but clearly not on offer. */
.status--reserved { background: #6b5b3e; color: #fff; }
.status--sold { background: #33302e; color: #fff; }
.status--floating { position: absolute; top: clamp(18px, 2vw, 24px); right: clamp(18px, 2vw, 24px); z-index: 3; box-shadow: 0 4px 14px rgba(32, 30, 29, 0.24); }

.puppy-card.is-sold .frame__plate img { filter: saturate(0.35); }
.puppy-card.is-sold:hover .frame__plate img { transform: none; }

/* Compact ledger row — an alternative to a card grid on the homepage. */
.ledger { display: grid; gap: 2px; }
.ledger a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-md);
  text-decoration: none; color: var(--ink);
  transition: background var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.ledger a:hover { background: var(--accent-wash); transform: translateX(3px); }
.ledger__name { font-family: var(--serif); font-size: 25px; line-height: 1; }
.ledger__meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-mute); }

/* 11. Puppy detail: gallery + spec ledger ------------------------------------ */
.gallery { display: grid; gap: 14px; }
.gallery__main { position: relative; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.gallery__thumbs button {
  flex: none; width: 78px; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-sm); overflow: hidden; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  scroll-snap-align: start;
  transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gallery__thumbs button img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery__thumbs button:hover { transform: translateY(-2px); }
.gallery__thumbs button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--color-accent); }
@media (min-width: 900px) { .gallery { grid-template-columns: 88px 1fr; } .gallery__thumbs { flex-direction: column; overflow: visible; } .gallery__main { order: 2; } }

.spec-ledger { display: grid; gap: 0; margin: 0; }
.spec-ledger > div {
  display: grid; grid-template-columns: minmax(110px, 0.42fr) 1fr; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.spec-ledger > div:last-child { border-bottom: 1px solid var(--line); }
.spec-ledger dt { font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-mute); }
/* Email addresses and URLs are single unbreakable tokens; without this they set
   a min-content floor that pushes narrow columns past the viewport. */
.spec-ledger dd,
.puppy-card__specs dd,
.footer__contact a,
.payment-list li { overflow-wrap: anywhere; }
.spec-ledger dd { margin: 0; font-size: 15px; color: var(--ink); }
.spec-ledger dd.is-pending { color: var(--ink-mute); }

.pending-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(32, 30, 29, 0.06);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-mute);
}
.pending-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #b9a13a; }

/* 12. Trust badges ----------------------------------------------------------- */
.trust { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr)); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust__item {
  position: relative; padding: 20px 20px 18px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--paper), var(--color-bg));
  box-shadow: 0 1px 2px rgba(32, 30, 29, 0.05), 0 6px 16px rgba(32, 30, 29, 0.05);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease);
}
.trust__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.trust__item h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.trust__item p { margin: 7px 0 0; font-size: 13.5px; color: var(--ink-mute); }
.trust__item::after {
  content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px;
  border-radius: 0 0 3px 3px; background: var(--color-accent);
}
.trust__item.is-unconfirmed { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--line); }
.trust__item.is-unconfirmed::after { background: repeating-linear-gradient(90deg, var(--ink-mute) 0 5px, transparent 5px 10px); opacity: 0.5; }
.trust__evidence { margin: 10px 0 0; font-size: 12px; color: var(--ink-mute); font-style: italic; }

/* 13. Calculator & reservation summary --------------------------------------- */
.calc { display: grid; gap: clamp(16px, 2vw, 26px); }
@media (min-width: 860px) { .calc { grid-template-columns: 0.92fr 1.08fr; align-items: start; } }

.calc__controls { display: grid; gap: 16px; }
.calc__options { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
.calc__options legend { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); padding: 0 0 10px; }
.calc__option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md); cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.calc__option:hover { transform: translateY(-1px); }
.calc__option input { position: absolute; opacity: 0; pointer-events: none; }
.calc__radio { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow var(--t-fast) var(--ease); }
.calc__option:has(input:checked) { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.calc__option:has(input:checked) .calc__radio { box-shadow: inset 0 0 0 5px var(--color-accent); }
.calc__option:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.calc__option strong { display: block; font-size: 15px; }
.calc__option small { display: block; color: var(--ink-mute); font-size: 12.5px; line-height: 1.45; }
.calc__option b { font-family: var(--serif); font-size: 21px; font-weight: 400; color: var(--color-accent); }

.calc__summary { padding: clamp(20px, 2.2vw, 30px); border-radius: var(--r-lg); background: #1b1918; color: #f0eeed; box-shadow: var(--shadow-2); }
.calc__summary h3 { color: #fff; font-size: var(--step-2); margin-bottom: 16px; }
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed rgba(240, 238, 237, 0.16); font-variant-numeric: tabular-nums; }
.calc__row span { color: rgba(240, 238, 237, 0.68); font-size: 14px; }
.calc__row strong { font-size: 17px; font-weight: 700; }
.calc__row--total { border-bottom: 0; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(240, 238, 237, 0.28); }
.calc__row--total span { color: #fff; font-size: 15px; font-weight: 700; }
.calc__row--total strong { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); font-weight: 400; letter-spacing: -0.02em; }
.calc__row--deposit strong { color: var(--rose); }
.calc__row--balance { margin-top: 10px; padding: 14px 16px; border: 0; border-radius: var(--r-md); background: rgba(240, 238, 237, 0.08); }
.calc__row--balance span { color: #fff; font-weight: 700; }
.calc__row--balance strong { font-size: 21px; }
.calc__note { margin: 16px 0 0; font-size: 12.5px; color: rgba(240, 238, 237, 0.6); }
.calc__value { transition: opacity 160ms var(--ease); }
.calc__value.is-changing { opacity: 0.25; }

.toggle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--color-surface); }
.toggle-row label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* 14. Steps, timeline, stat rows ---------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid; gap: 6px 22px; align-items: start;
  padding: clamp(18px, 2vw, 26px) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .step { grid-template-columns: 78px 1fr; } }
.step__num { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--color-accent); }
.step h3 { font-size: var(--step-2); margin-bottom: 8px; }
.step p { color: var(--ink-soft); max-width: 62ch; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 clamp(24px, 3vw, 40px) 34px; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--color-bg); box-shadow: inset 0 0 0 2px var(--color-accent);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__when { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-accent); }
.timeline__item h3 { font-size: var(--step-1); margin-bottom: 6px; }
.timeline__item p { color: var(--ink-soft); max-width: 60ch; }

.stat-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat { padding: 20px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-1); }
.stat dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-mute); }
.stat dd { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.02em; }

/* 15. Reviews ----------------------------------------------------------------- */
/* Text-only editorial cards. Rhythm comes from width, indent and weight rather
   than from a repeating photograph, so nine reviews never read as a grid. */
.story-stream { display: grid; gap: clamp(26px, 3.4vw, 54px); }

.story { position: relative; }
.story__body { max-width: 68ch; }
.story__quote {
  font-family: var(--serif); font-size: var(--step-2); line-height: 1.26;
  letter-spacing: -0.015em; margin: 0 0 18px; text-wrap: pretty;
}
.story__attrib { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-mute); }
.story__attrib b { font-family: var(--sans); font-size: 14.5px; font-weight: 800; color: var(--ink); }
.story__attrib .status { font-size: 9.5px; }

/* Feature — the widest treatment, with a crimson rule above it. */
.story--feature { padding-top: clamp(20px, 2.4vw, 30px); border-top: 2px solid var(--color-accent); }
.story--feature .story__quote { font-size: var(--step-1); line-height: 1.42; max-width: 62ch; }
@media (min-width: 900px) {
  .story--feature { display: grid; grid-template-columns: 0.32fr 0.68fr; gap: clamp(20px, 3vw, 48px); }
  .story--feature .story__body { display: contents; }
  .story--feature .stars { grid-column: 1; grid-row: 1; align-self: start; }
  .story--feature h3 {
    grid-column: 1; grid-row: 2;
    font-size: var(--step-2); line-height: 1.14; margin: 8px 0 0 !important;
  }
  .story--feature .story__quote { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .story--feature .story__attrib { grid-column: 2; grid-row: 3; margin-top: 16px; }
}

/* Quote — inset and set on a surface, so it reads as an aside. */
.story--quote .story__body {
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--shadow-1);
  border-left: 3px solid var(--rose);
}
.story--quote .story__quote { font-size: var(--step-1); }
@media (min-width: 900px) { .story--quote { padding-left: 12%; } }

/* Polaroid — offset the other way, on the tinted ground. */
.story--polaroid .story__body {
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) { .story--polaroid { padding-right: 14%; } }

/* 16. Forms -------------------------------------------------------------------- */
.form { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.fieldset > legend {
  display: flex; align-items: baseline; gap: 12px; width: 100%;
  padding: 0 0 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: var(--step-2); letter-spacing: -0.02em;
}
.fieldset > legend b { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }

.field-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field > label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--ink-soft); }
.field > label .req { color: var(--color-accent); }
.field .hint { font-size: 12px; color: var(--ink-mute); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%; padding: 13px 15px;
  border: 0; border-radius: var(--r-sm);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
select { appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f6866' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
input:focus, select:focus, textarea:focus {
  outline: 0; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--color-accent), 0 0 0 4px var(--accent-wash);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1.5px #b3261e, 0 0 0 4px rgba(179, 38, 30, 0.1);
}
.field__error { display: none; font-size: 12.5px; font-weight: 700; color: #b3261e; }
.field.has-error .field__error { display: block; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-md); background: var(--color-surface); cursor: pointer; font-size: 14px; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--color-accent); }
.check span { color: var(--ink-soft); }

.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-mute); max-width: 58ch; }
.form__success {
  display: none; align-items: flex-start; gap: 12px;
  padding: 18px 20px; border-radius: var(--r-md);
  background: rgba(30, 106, 63, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(30, 106, 63, 0.32);
  font-size: 14.5px;
}
.form__success.is-shown { display: flex; animation: page-in 320ms var(--ease) both; }
.form__success b { display: block; margin-bottom: 3px; }

.form__status {
  margin: 0; padding: 14px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
}
.form__status.is-pending { background: var(--color-surface); color: var(--ink-soft); }
.form__status.is-success { background: rgba(30, 106, 63, 0.1); color: #185233; }
.form__status.is-error { background: rgba(179, 38, 30, 0.09); color: #8c1e17; }
.check.has-error { box-shadow: inset 0 0 0 1.5px #b3261e; }

/* 17. Policy & contract documents ---------------------------------------------- */
.doc { display: grid; gap: clamp(24px, 3.4vw, 56px); }
@media (min-width: 1000px) { .doc { grid-template-columns: 262px 1fr; align-items: start; } }
.doc__toc { position: sticky; top: 96px; align-self: start; }
.doc__toc h2 { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; counter-reset: toc; }
.doc__toc a {
  display: block; padding: 8px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  border-left: 2px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.doc__toc a:hover { background: var(--accent-wash); color: var(--color-accent); }
.doc__toc a.is-current { border-left-color: var(--color-accent); color: var(--color-accent); font-weight: 700; background: var(--accent-wash); }

.clause { padding-block: clamp(22px, 2.6vw, 38px); border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.clause:first-of-type { border-top: 0; padding-top: 0; }
.clause > h2 {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline;
  font-size: var(--step-2); margin-bottom: 14px;
}
.clause > h2 .n { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--color-accent); }
.clause h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 800; letter-spacing: -0.005em; margin: 20px 0 8px; }
.clause p, .clause li { color: var(--ink-soft); max-width: var(--max-text); }
.clause ol > li::marker { color: var(--color-accent); font-weight: 700; }

.callout {
  display: grid; gap: 6px;
  padding: 18px 20px; margin: 20px 0;
  border-radius: var(--r-md);
  background: var(--accent-wash);
  border-left: 3px solid var(--color-accent);
  font-size: 14.5px;
}
.callout b { font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-accent); }
.callout p { color: var(--ink-soft); max-width: var(--max-text); }
.callout--warn { background: rgba(185, 161, 58, 0.12); border-left-color: #9a8420; }
.callout--warn b { color: #7d6a19; }
.callout--neutral { background: var(--color-surface); border-left-color: var(--line-strong); }
.callout--neutral b { color: var(--ink-mute); }

.doc-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 16px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-mute); }

.signature-grid { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 700px) { .signature-grid { grid-template-columns: 1fr 1fr; } }
.signature { display: grid; gap: 8px; }
.signature__line { height: 46px; border-bottom: 1.5px solid var(--ink); }
.signature small { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }

.payment-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 0; padding: 0; list-style: none; }
.payment-list li { padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.payment-list b { display: block; }
.payment-list small { color: var(--ink-mute); }

/* 18. Tables, notes, FAQ, empty & error states --------------------------------- */
.table-scroll {
  overflow-x: auto; min-width: 0; max-width: 100%;
  border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line);
  overscroll-behavior-x: contain;
}
table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--paper); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
th { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-mute); background: var(--color-surface); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.faq { display: grid; gap: 2px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  padding: 20px 4px; border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: var(--step-1); letter-spacing: -0.015em; color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.faq__q:hover { color: var(--color-accent); }
.faq__icon { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow var(--t-fast) var(--ease); }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
  transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { box-shadow: inset 0 0 0 1.5px var(--color-accent); color: var(--color-accent); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq__a { height: 0; overflow: hidden; opacity: 0; transition: height 340ms var(--ease), opacity 240ms var(--ease); }
.faq__a > div { padding: 0 46px 22px 4px; color: var(--ink-soft); max-width: var(--max-text); }

.empty-state {
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  border-radius: var(--r-lg);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.empty-state svg { width: 54px; height: 54px; color: var(--ink-mute); opacity: 0.55; }
.empty-state h3 { font-size: var(--step-2); }
.empty-state p { max-width: 52ch; color: var(--ink-mute); }

.error-page {
  display: grid; place-items: center; text-align: center; gap: 22px;
  padding: clamp(48px, 12vw, 160px) var(--gutter);
  /* An `auto` column is sized by its widest child, so a 46ch paragraph makes
     the column wider than a small phone. minmax(0, 1fr) pins it to the
     container and lets the children shrink instead. */
  grid-template-columns: minmax(0, 1fr);
}
/* Grid children default to min-content width, so a long headline can push the
   page wider than the viewport. Cap every child and let the words break. */
/* place-items:center makes each child shrink-to-fit its own max-content, so a
   character-based max-width has to be clamped to the column or it overflows.
   min() rather than a bare ch value, and the same specificity as the rules
   below so nothing quietly wins over it. */
.error-page > * { min-width: 0; max-width: 100%; }
.error-page h1 { max-width: min(16ch, 100%); font-size: var(--step-4); overflow-wrap: break-word; }
.error-page .lead { max-width: min(46ch, 100%); margin-inline: auto; overflow-wrap: break-word; }
.error-page .hero__actions { justify-content: center; }
@media (max-width: 420px) { .error-page h1 { font-size: var(--step-3); } }

/* 19. Footer -------------------------------------------------------------------- */
.footer { margin-top: var(--shelf); background: #1b1918; color: rgba(240, 238, 237, 0.72); }
.footer a { color: rgba(240, 238, 237, 0.72); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: clamp(46px, 6vw, 86px) var(--gutter) 30px; }
.footer__grid { display: grid; gap: clamp(26px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 940px) { .footer__brand { grid-column: span 1; max-width: 30ch; } }
.footer__brand h2 { font-size: clamp(24px, 2vw, 30px); color: #fff; margin-bottom: 12px; }
.footer__brand h2 em { color: var(--rose); }
.footer__brand p { font-size: 14px; }
.footer h3 { font-family: var(--sans); font-size: 10.5px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(240, 238, 237, 0.5); margin-bottom: 14px; }
.footer nav { display: grid; gap: 9px; font-size: 14px; }
.footer__contact { display: grid; gap: 8px; font-size: 14px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  margin-top: clamp(34px, 4vw, 58px); padding-top: 22px;
  border-top: 1px solid rgba(240, 238, 237, 0.14);
  font-size: 12.5px; color: rgba(240, 238, 237, 0.5);
}
.footer .pending-chip { background: rgba(240, 238, 237, 0.1); color: rgba(240, 238, 237, 0.66); }

.final-cta { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 150px); background: #1b1918; color: #f0eeed; text-align: center; }
.final-cta::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(139, 18, 28, 0.5), transparent 65%);
  pointer-events: none;
}
.final-cta__inner { position: relative; max-width: 780px; margin: 0 auto; padding-inline: var(--gutter); display: grid; gap: 22px; justify-items: center; }
.final-cta h2 { color: #fff; font-size: var(--step-4); }
.final-cta p { color: rgba(240, 238, 237, 0.74); max-width: 52ch; }
.final-cta .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.final-cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px #fff; }


/* 19b. Hero slideshow ---------------------------------------------------------- */
.slideshow .hero__parallax { position: absolute; inset: -5%; }
.slideshow__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 900ms var(--ease), visibility 900ms;
}
.slideshow__slide.is-active { opacity: 1; visibility: visible; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; }
/* Without JavaScript the first slide is simply the photograph. */
.slideshow__slide:first-child { opacity: 1; visibility: visible; }
.slideshow.is-live .slideshow__slide:first-child:not(.is-active) { opacity: 0; visibility: hidden; }

.slideshow__dots {
  position: absolute; left: 50%; bottom: clamp(58px, 6vw, 76px);
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 4;
}
.slideshow__dots button {
  width: 30px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.slideshow__dots button span {
  display: block; width: 100%; height: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 3px rgba(28, 26, 25, 0.3);
  transition: background 300ms var(--ease), transform 300ms var(--ease);
}
.slideshow__dots button:hover span { background: rgba(255, 255, 255, 0.75); }
.slideshow__dots button[aria-selected="true"] span { background: #fff; transform: scaleY(1.7); }
.slideshow .hero__caption p { transition: opacity 360ms var(--ease); }
.slideshow .hero__caption p.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .slideshow__slide { transition: none; } }

/* 19c. Inquiry drawer ---------------------------------------------------------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(20, 18, 17, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 280ms var(--ease);
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; z-index: 200; top: 0; right: 0; bottom: 0;
  width: min(520px, 100%);
  padding: clamp(24px, 3vw, 40px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-bg);
  box-shadow: -20px 0 60px rgba(32, 30, 29, 0.24);
  transform: translateX(100%);
  transition: transform 380ms var(--ease-out);
}
.drawer.is-open { transform: none; }
.drawer h2 { font-size: var(--step-3); margin-bottom: 12px; }
.drawer h2:focus-visible { outline: none; }
.drawer__lead { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }
.drawer__close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--color-surface); color: var(--ink);
  font-size: 24px; line-height: 1;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.drawer__close:hover { background: var(--accent-wash); color: var(--color-accent); transform: rotate(90deg); }
@media (max-width: 560px) {
  .drawer {
    width: 100%; top: auto; height: min(94vh, 100%);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim { transition: none; } }

/* 19d. Sales agreement: stepper, pickers, signature, receipt ------------------- */
.agreement { display: grid; gap: clamp(20px, 2.6vw, 36px); }
@media (min-width: 1020px) { .agreement { grid-template-columns: 232px 1fr; align-items: start; } }

.agreement__rail { display: grid; gap: 4px; position: sticky; top: 96px; }
.agreement__rail button {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center;
  padding: 11px 14px; border: 0; border-radius: var(--r-md);
  background: none; cursor: pointer; text-align: left;
  font-size: 14px; font-weight: 600; color: var(--ink-mute);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.agreement__rail button:hover { background: var(--color-surface); color: var(--ink); }
.agreement__rail button[aria-current="true"] { background: var(--accent-wash); color: var(--color-accent); }
.agreement__rail .n {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--serif); font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.agreement__rail button[aria-current="true"] .n { background: var(--color-accent); color: #fff; box-shadow: none; }
.agreement__rail button.is-done .n { background: var(--color-surface); color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
@media (max-width: 1019px) {
  .agreement__rail {
    grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr);
    overflow-x: auto; position: static; padding-bottom: 8px;
  }
  .agreement__rail button { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; font-size: 12px; padding: 10px 6px; }
}
@media (max-width: 460px) {
  .agreement__rail button span:not(.n) { display: none; }
  .agreement__rail { grid-auto-columns: 1fr; overflow-x: visible; }
}

.agreement__step { animation: page-in 320ms var(--ease) both; }
.agreement__step > h2 { font-size: var(--step-3); margin-bottom: 8px; }
.agreement__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.agreement__nav .btn--ghost { margin-right: auto; }

.picker { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); }
.picker label {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r-md); cursor: pointer;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker label:has(input:checked) { background: var(--accent-wash); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.picker label:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.picker .box {
  width: 20px; height: 20px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  display: grid; place-items: center; color: transparent; font-size: 12px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.picker label:has(input:checked) .box { background: var(--color-accent); color: #fff; box-shadow: none; }
.picker strong { display: block; font-size: 14.5px; }
.picker small { display: block; color: var(--ink-mute); font-size: 12.5px; line-height: 1.45; }
.picker b { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--color-accent); white-space: nowrap; }
.picker .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--color-surface); }

.running-total {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-top: 18px; padding: 16px 20px;
  border-radius: var(--r-md); background: #1b1918; color: #fff;
}
.running-total span { color: rgba(240, 238, 237, 0.7); font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.running-total strong { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; }
.running-total small { width: 100%; color: rgba(240, 238, 237, 0.6); font-size: 12.5px; }

.sig-pad {
  position: relative; margin-top: 8px;
  border-radius: var(--r-md); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.sig-pad canvas { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.sig-pad__hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-mute); font-size: 13.5px; pointer-events: none;
  transition: opacity 200ms var(--ease);
}
.sig-pad.is-signed .sig-pad__hint { opacity: 0; }
.sig-pad__baseline { position: absolute; left: 26px; right: 26px; bottom: 46px; border-bottom: 1px dashed var(--line-strong); pointer-events: none; }

.receipt { display: grid; gap: 0; margin: 0; }
.receipt > div { display: grid; grid-template-columns: minmax(124px, 0.38fr) 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.receipt > div:last-child { border-bottom: 1px solid var(--line); }
.receipt dt { font-size: 11px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-mute); }
.receipt dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.receipt img { max-width: 300px; border-radius: 8px; background: #fff; }

/* 19e. Reviews: rating marks --------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--color-accent); font-size: 13px; letter-spacing: 1px; }
.stars[data-rating]::before { content: attr(data-rating); }
.review-summary {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  margin-bottom: clamp(26px, 3vw, 44px);
}
.review-summary > div { padding: 20px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-1); text-align: center; }
.review-summary dt { font-size: 10.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-mute); }
.review-summary dd { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1; }

/* 20. Motion, print, responsive tail --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero__parallax { transform: none !important; }
  main { animation: none; }
}

@media print {
  .site-header, .footer, .progress, .loader, .skip-link, .final-cta, .doc__toc, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 12pt; }
  .clause { break-inside: avoid; }
  .calc__summary { background: #fff; color: #000; box-shadow: none; border: 1pt solid #000; }
  .calc__summary h3, .calc__row span, .calc__row--total span { color: #000; }
  a[href^="/"]::after { content: " (minischnauzerpups.com" attr(href) ")"; font-size: 8pt; color: #555; }
}

/* Below the drawer breakpoint the header keeps the wordmark and the menu only —
   the drawer carries its own full-width CTA. */
@media (max-width: 620px) {
  .nav-shell > .btn { display: none; }
  .nav-shell { padding-right: 9px; }
}

@media (max-width: 420px) {
  .puppy-card__specs > div { grid-template-columns: 60px 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { display: grid; }
  .hero__actions .btn { width: 100%; }
  .calc__option { grid-template-columns: auto 1fr; row-gap: 4px; }
  .calc__option b { grid-column: 2; }
  .faq__a > div { padding-right: 8px; }
  .story--polaroid .story__photo { transform: none; }
}

/* Landscape phones and up: buttons stop stretching. */
@media (min-width: 421px) { .hero__actions .btn { width: auto; } }
