/* ==========================================================================
   site.css — brief.md v1, family `retro-local`, archetype
   `full-bleed-immersive`, signature "the card punches in." Tokens only — no
   raw hex/px/font literals (house-tech-spec §3). One declared breakpoint,
   48rem (brief §2.5/§4.1): widens the gutter and hero-inner top padding
   only — this archetype has no column-switch breakpoint, single column at
   every width.
   ------------------------------------------------------------------------ */

/* --- Layout primitives ---------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--layout-container);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);
}

/* The ONE inter-section value, two call sites only: .section's padding-block
   and the hero's padding-block-end (brief §4.3). */
.section {
  padding-block: var(--section-gap);
}

.measure {
  max-width: var(--layout-measure);
}

/* base.css's reset zeroes every block margin; thanks.html's plain <p> tags
   inside .measure need the rhythm back (same adjacency pattern as
   .section__head + * elsewhere on the house). */
.measure > * + * {
  margin-block-start: var(--space-md);
}

/* Anchor targets need clearance for the sticky 101px stack (expiry 44 +
   header 56 + 1px border, brief §4.4/§4.5). --expiry-height lives once, in
   css/preview.css; it stops existing at purchase alongside the bar it
   describes, which is the one moment this calc is allowed to stop mattering. */
[id] {
  scroll-margin-block-start: calc(var(--expiry-height) + var(--header-height) + var(--border-hairline));
}

/* --- Band grounds — brief §4.6's own ground column: hero atmosphere, ink
   (§I), bg (§II), surface (§III), bg (§IV), surface (§V). --- */

.band--bg {
  background-color: var(--color-bg);
}

.band--surface {
  background-color: var(--color-surface);
}

/* §I services — the one dark, reversed-text band (brief §4.6 §I). */
.band--ink {
  background-color: var(--color-ink);
  color: var(--color-accent-ink);
}

/* base.css's :focus-visible ring is invisible on this dark band — repointed
   at the dark-band-safe token (tokens.css). */
.band--ink :focus-visible {
  outline-color: var(--color-focus-on-band);
}

/* --- Type roles ------------------------------------------------------------
   Every all-caps string is authored in natural case and uppercased here
   (house-tech-spec §8; brief §2.5). */

h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  color: var(--color-ink);
}

/* thanks.html/buy.html: a single plain h1 styled as the page's own headline
   (copy.md thanks.html: "H2 (as the page's display headline)" — one h1 per
   page for correct document structure, per house-tech-spec §8, sized at the
   site's h2 scale since it is not the hero's own display headline). */
.measure > h1 {
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-block-end: var(--space-md);
}

.band--ink h2 {
  color: var(--color-accent-ink);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-eyebrow);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-block-end: var(--space-sm);
}

.band--ink .eyebrow {
  color: var(--color-accent-tint);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-block-end: var(--space-md);
}

.section__intro {
  max-width: var(--layout-measure);
  margin-block-end: var(--space-lg);
  color: var(--color-ink-muted);
}

.band--ink .section__intro {
  color: var(--color-accent-ink);
}

/* --- Header. Sticky beneath the expiry bar (brief §4.4/§4.5, Nic's
   placement ruling carried forward per house-tech-spec §2). --- */

.site-header {
  position: sticky;
  inset-block-start: var(--expiry-height);
  z-index: var(--z-header);
  border-block-end: var(--border-hairline) var(--border-style) var(--color-rule);
  background-color: var(--color-bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-height);
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: var(--text-lead);
  font-weight: var(--font-weight-display);
  color: var(--color-ink);
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs);
  border: var(--border-hairline) var(--border-style) var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-micro);
  font-weight: var(--font-weight-body-strong);
  color: var(--color-ink);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-body-strong);
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  text-decoration: underline;
  text-underline-offset: var(--space-3xs);
}

.site-nav {
  display: none;
}

[data-nav-ready] .site-nav[data-nav-open='true'] {
  display: block;
  flex-basis: 100%;
}

@media (min-width: 48rem) {
  .site-nav {
    display: block;
  }

  [data-nav-ready] .nav-toggle {
    display: none;
  }
}

/* --- Buttons ----------------------------------------------------------------
   One role, one fill, everywhere on this site (brief §4.6 hero spec: "52px
   tall, --radius-sm, --color-ink fill, --color-accent-ink (cream) label" —
   the primary CTA sits on an opaque ink fill even on the gradient, reusing
   pair 5's 17.07:1, brief §3.6). Height matches the fluid-type CTA slot
   exactly; --control-height is 52px, brief §4.6/§4.2. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: var(--control-height);
  padding-inline: var(--space-md);
  border: var(--border-hairline) var(--border-style) transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-body);
  line-height: var(--leading-snug);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.btn--primary {
  background-color: var(--color-ink);
  color: var(--color-accent-ink);
  width: 100%;
}

@media (min-width: 48rem) {
  .btn--primary {
    width: auto;
  }
}

/* Ink fill has no visible edge on a dark ground (WCAG 1.4.11, 3:1 needed);
   cream measures 12.46:1/14.53:1 there, so the border carries the edge. */
.hero .btn--primary,
.band--ink .btn--primary {
  border-color: var(--color-accent-ink);
}

.btn--quiet {
  border-color: var(--color-border);
  color: var(--color-ink);
}

/* --- Form -------------------------------------------------------------------
   One form per site (house-tech-spec §6), lives in §V only; the hero and §I
   CTAs are anchors down to it. */

.form {
  display: grid;
  gap: var(--space-md);
  max-width: var(--layout-measure);
}

.field {
  display: grid;
  gap: var(--space-3xs);
}

.field__label {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-body-strong);
  color: var(--color-ink);
}

.field__control {
  width: 100%;
  min-height: var(--layout-tap-min);
  padding: var(--space-2xs) var(--space-xs);
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  border: var(--border-hairline) var(--border-style) var(--color-border);
  border-radius: var(--radius-sm);
}

textarea.field__control {
  min-height: var(--space-3xl);
  resize: vertical;
}

.field__hint {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  color: var(--color-ink-muted);
}

.form__trap {
  position: absolute;
  /* @allow-literal: off-canvas parking position, not a design value */
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  color: var(--color-ink-muted);
}

.form__status[data-state='error'] {
  color: var(--color-ink);
  font-weight: var(--font-weight-body-strong);
}

/* --- Footer ------------------------------------------------------------------ */

.site-footer {
  padding-block: var(--space-xl);
  border-block-start: var(--border-hairline) var(--border-style) var(--color-rule);
  background-color: var(--color-surface);
}

.site-footer,
.site-footer a {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  color: var(--color-ink-muted);
}

.site-footer a {
  text-underline-offset: var(--space-3xs);
}

.site-footer__nap {
  font-style: normal;
  font-size: var(--text-body);
  color: var(--color-ink);
  margin-block-end: var(--space-sm);
}

.site-footer__nap strong {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-lead);
}

.site-footer p + p {
  margin-block-start: var(--space-2xs);
}

/* ----------------------------------------------------------------------
   HERO — "the card punches in" (brief §4.6 hero spec, §6.2). full-bleed
   field begins immediately at the top of the hero (y = sticky-chrome height);
   content floats over it. DOM order (copy.md §1): eyebrow -> h1 -> primary
   CTA -> secondary CTA -> living field -> lead.
   ------------------------------------------------------------------------ */

.hero {
  position: relative;
  padding-block-end: var(--section-gap);  /* hero -> services, brief §4.3 */
  /* Solid fallback matching the gradient's own darkest stop (brief §3.6):
     12.46:1 for cream hero copy if a background-image fails to resolve. */
  background-color: var(--color-atmos-dark);
  background-image: linear-gradient(180deg,
    var(--color-atmos-dark) 0%, var(--color-accent) 44%,
    var(--color-atmos-glow) 72%, var(--color-bg) 100%);
}

/* hero__inner carries "hero-inner padding-top" (brief §4.2: 28px <48rem ->
   48px >=48rem). Neither scale step lands on 28/48 exactly, so this is the
   documented escape hatch (house-tech-spec §3). */
.hero__inner {
  /* @allow-literal: brief §4.2 states this exact pixel pair; no scale step matches */
  padding-block-start: 28px;
}

@media (min-width: 48rem) {
  .hero__inner {
    /* @allow-literal: brief §4.2 pixel pair, no scale step matches */
    padding-block-start: 48px;
  }
}

/* Overlay stack: field + copy block share one grid cell (brief §4.1 rule
   1 — field is the background). hero__copy paints over hero__field (DOM
   order; z-index explicit too). Row height = field's own per-breakpoint
   height, reserving flow space so hero__lead lands below it (brief §4.6). */
.hero__stack {
  display: grid;
  margin-block-end: var(--space-lg);
}

.hero__stack > * {
  grid-column: 1;
  grid-row: 1;
}

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: start;
}

.hero__eyebrow {
  color: var(--color-accent-ink);
  margin-block-end: var(--space-sm);
}

.hero__h1 {
  margin: 0 0 var(--space-md);
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  color: var(--color-accent-ink);
}

.hero__h1 .accent {
  color: var(--color-accent-tint);
}

.hero__cta-primary {
  margin: var(--space-md) 0 var(--space-xs);
}

.hero__cta-secondary {
  margin: 0;
}

.hero__tel-link {
  display: inline-block;
  min-height: var(--layout-tap-min);
  padding-block: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--text-micro);
  color: var(--color-accent-tint);
  text-decoration: underline;
  text-underline-offset: var(--space-3xs);
}

/* --- The living field: full-bleed illustrated backdrop, fixed canvas
   height per breakpoint (brief §4.2). object-fit: cover, object-position:
   50% 100% at every width (brief §4.1 rule 3) — the field keeps its
   specified size; what it yields is position. --- */

.hero__field {
  position: relative;
  z-index: 1;
  /* @allow-literal: brief §4.2 canvas height */
  height: 700px;
  border: var(--border-frame) var(--border-style) var(--color-ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (min-width: 30em) {
  /* 480px — brief §4.2 column unchanged from 320/375 (700px); rule kept
     explicit so every declared width in the table has its own rule. */
  .hero__field {
    /* @allow-literal: brief §4.2 canvas height */
    height: 700px;
  }
}

@media (min-width: 48rem) {
  .hero__field {
    /* @allow-literal: brief §4.2 canvas height */
    height: 620px;
  }
}

@media (min-width: 64rem) {
  .hero__field {
    /* @allow-literal: brief §4.2 canvas height */
    height: 700px;
  }
}

@media (min-width: 90rem) {
  .hero__field {
    /* @allow-literal: brief §4.2 canvas height */
    height: 860px;
  }
}

.hero__field-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

/* Round-2 FIX (a11y/contrast) — README.md "Round 2" has the why/measurements. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--color-atmos-deep) 86%, transparent) 0%,
    color-mix(in srgb, var(--color-atmos-dark) 70%, transparent) 50%,
    transparent 76%);
}

/* QA round-3 fix (clarity/5s): moved into hero__copy, between h1 and the
   primary CTA. Own box background kept for contrast headroom regardless
   of exact position over the image/scrim below (README "Round 3"). */
.hero__lead {
  display: inline-block;
  color: var(--color-accent-ink);
  font-size: var(--text-lead);
  line-height: var(--leading-body);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  background-color: color-mix(in srgb, var(--color-ink) 72%, transparent);
}

/* Signature move (brief §6.2): four aria-hidden elements, none interactive.
   Card+stamp register against this image's clock/slot below 48rem; at
   48rem+ the crop keeps only the ground-level work (brief §4.1 rule 3), so
   the pair re-anchors there (README.md). Steam/handle need no override. */

.hero__card {
  position: absolute;
  left: 27%;
  bottom: 58%;
  width: var(--card-w);
  height: var(--card-h);
  background-color: var(--color-accent-ink);
  border: var(--border-hairline) var(--border-style) var(--color-ink);
  border-radius: var(--radius-sm);
  transform: translateY(var(--card-travel));
  animation: card-slide-in var(--duration-signature) var(--ease-card) 1 both;
}

.hero__stamp {
  position: absolute;
  left: 30%;
  bottom: 63%;
  width: var(--stamp-w);
  height: var(--stamp-h);
  background-color: color-mix(in srgb, var(--color-accent) 85%, transparent);
  border: var(--border-frame) var(--border-style) var(--color-ink);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: scale(1.6) rotate(-8deg);
  animation: stamp-press var(--duration-signature) var(--ease-stamp) 1 both;
}

@media (min-width: 48rem) {
  .hero__card {
    left: 14%;
    bottom: 10%;
  }

  .hero__stamp {
    left: 18%;
    bottom: 15%;
  }
}

.hero__steam {
  position: absolute;
  right: 20%;
  bottom: 14%;
  width: var(--steam-w);
  height: var(--steam-h);
  border-radius: var(--radius-sm);
  background-color: color-mix(in srgb, var(--color-accent-ink) 35%, transparent);
  transform-origin: bottom center;
  animation: steam-drift var(--duration-steam) var(--ease-in-out) infinite;
}

.hero__handle {
  position: absolute;
  right: 32%;
  bottom: 9%;
  width: var(--handle-w);
  height: var(--handle-h);
  border-radius: var(--radius-sm);
  background-color: color-mix(in srgb, var(--color-ink) 50%, transparent);
  transform-origin: bottom center;
  animation: handle-sway var(--duration-handle) var(--ease-in-out) infinite;
}

@keyframes card-slide-in {
  0%, 10% { transform: translateY(var(--card-travel)); }
  42% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@keyframes stamp-press {
  0%, 44% { opacity: 0; transform: scale(1.6) rotate(-8deg); }
  56% { opacity: 1; transform: scale(1) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

@keyframes steam-drift {
  0%, 100% { transform: translateY(0) scaleY(1) rotate(-4deg); }
  50% { transform: translateY(var(--steam-lift)) scaleY(1.3) rotate(3deg); }
}

@keyframes handle-sway {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-4deg); }
}

/* Reduced motion (brief §6.3): still frame IS the composed picture — card
   seated, stamp pressed, steam/handle at rest. Named keyframes need their
   own override here since base.css's kill switch only collapses tokens. */
@media (prefers-reduced-motion: reduce) {
  .hero__card {
    animation: none;
    transform: translateY(0);
  }

  .hero__stamp {
    animation: none;
    opacity: 1;
    transform: scale(1) rotate(-8deg);
  }

  .hero__steam,
  .hero__handle {
    animation: none;
    transform: none;
  }
}

/* ----------------------------------------------------------------------
   §I services — dark ink ground, reversed text, em-dash marker index
   (brief §4.6 §I; ref-011, §1). Two material-study images at the band's
   foot.
   ------------------------------------------------------------------------ */

.index--services {
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
}

.index--services__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-block-end: var(--border-hairline) var(--border-style) color-mix(in srgb, var(--color-accent-ink) 18%, transparent);
}

.index--services__row:last-child {
  border-block-end: none;
}

.index--services__mark {
  flex: 0 0 auto;
  color: var(--color-accent-tint);
}

.index--services__mark::before {
  content: '\2014';
}

.index--services__name {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.section-figures {
  display: grid;
  gap: var(--space-md);
  margin-block-end: var(--space-lg);
}

@media (min-width: 48rem) {
  .section-figures {
    grid-template-columns: 1fr 1fr;
  }
}

.section-figure {
  margin: 0;
  border: var(--border-hairline) var(--border-style) color-mix(in srgb, var(--color-accent-ink) 24%, transparent);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.section-figure img {
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------------------
   §II trust — light ground, plain four-row index, single accent dot each
   (brief §4.6 §II; ref-011's index-list typography, decoration declined).
   ------------------------------------------------------------------------ */

.index--trust {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index--trust__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-block-end: var(--border-hairline) var(--border-style) var(--color-rule);
}

.index--trust__row:last-child {
  border-block-end: none;
}

.index--trust__dot {
  flex: 0 0 auto;
  /* @allow-literal: the one fixed decorative dot size named in the brief (§4.6 §II) */
  width: 8px;
  /* @allow-literal: the one fixed decorative dot size named in the brief (§4.6 §II) */
  height: 8px;
  margin-block-start: var(--space-2xs);
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
}

.index--trust__body h3 {
  margin: 0 0 var(--space-3xs);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-body);
  color: var(--color-ink);
}

.index--trust__body p {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink-muted);
  line-height: var(--leading-body);
}

/* ----------------------------------------------------------------------
   §III season — surface ground, two unranked columns (brief §4.6 §III;
   ref-011's numbered-principle-column logic, re-expressed without numerals).
   ------------------------------------------------------------------------ */

.season {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .season {
    grid-template-columns: 1fr 1fr;
  }
}

.season__col h3 {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-strong);
  font-size: var(--text-body);
  color: var(--color-ink);
}

.season__col p {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink-muted);
  line-height: var(--leading-body);
}

/* ----------------------------------------------------------------------
   §IV reviews — bg ground, three verbatim quotes, 2px accent-strong left
   rule, attribution set apart by typography alone (brief §4.6 §IV).
   ------------------------------------------------------------------------ */

.voices {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-lg);
}

.voices__quote {
  margin: 0;
  padding-inline-start: var(--space-md);
  border-inline-start: var(--border-frame) var(--border-style) var(--color-accent);
}

.voices__quote p {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-ink);
  line-height: var(--leading-body);
}

.voices__cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-micro);
  color: var(--color-ink-muted);
}

/* ----------------------------------------------------------------------
   §V quote — surface ground, final CTA band, form (brief §4.6 §V;
   house-tech-spec §6).
   ------------------------------------------------------------------------ */

.quote__body {
  margin: 0 0 var(--space-md);
  color: var(--color-ink-muted);
  max-width: var(--layout-measure);
}

.quote__area {
  margin: 0 0 var(--space-lg);
  font-size: var(--text-body);
  color: var(--color-ink);
}

.quote__phone {
  margin: 0 0 var(--space-lg);
}

.quote__hours {
  margin-block-start: var(--space-lg);
  font-size: var(--text-micro);
  color: var(--color-ink-muted);
}
