/* Interior pages. Loaded after concept-1.css on every page except the homepage.
   Same tokens, same three emphasis treatments, same 3px gold rule. Nothing here
   writes a colour, size or space that tokens.css does not already define.
   Page-specific one-offs go in a <style> block on that page, never in here. */

/* ---- hero variants: the homepage's ink hero, reused ---- */
/* .c1-hero with no figure: one column, copy capped at its measure */
.c1-hero--text .wrap { grid-template-columns: minmax(0, 1fr); }
.c1-hero--text .hero-copy { max-width: 820px; }
/* interior heroes carry a sentence-length H1, so they take the h2 step in display caps */
.c1-hero--page h1 { font-size: clamp(38px, 4.4vw, 64px); }
.c1-hero--page figure { min-height: 440px; }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); font-size: var(--fs-small); color: var(--mist); }
.crumbs a { color: var(--mist); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--mist); }

/* ---- grounds for interior sections, alternated by hand: never two alike touching ---- */
.band-paper { background: var(--paper); }
.band-mist { background: var(--mist-tint); }
.band-ink { background: var(--ink); color: var(--white); }

/* ---- prose: long-form copy with a sticky aside on desktop ---- */
.prose-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--gap-l); align-items: start; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-7); font-size: clamp(30px, 3vw, 44px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-6); }
.prose p, .prose li { max-width: 68ch; }
.prose ul:not(.plain), .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-2); }
.prose .creds { margin-top: var(--space-4); }
.aside-card { position: sticky; top: calc(var(--space-8) + 40px); padding: var(--space-6); background: var(--paper); border-top: var(--rule) solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
.aside-card h2, .aside-card h3 { font-size: var(--fs-h3); }
.aside-card p { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--text-2); }
.aside-card .button { margin-top: var(--space-5); width: 100%; justify-content: center; }
.aside-card .aside-phone { display: block; margin-top: var(--space-3); text-align: center; font: 700 var(--fs-label)/1.1 var(--font-display); color: var(--ink); text-decoration: none; }

/* ---- fact list: the chevron-marked list used for creds, reused for "what's included" ---- */
.checks { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-right: var(--rule) solid var(--gold); border-bottom: var(--rule) solid var(--gold); transform: rotate(45deg); }

/* ---- steps: a plain ordered process, figures in the display face ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-s); counter-reset: step; }
.steps > li { counter-increment: step; padding-top: var(--space-5); border-top: var(--rule) solid var(--gold); }
.steps > li::before { content: counter(step); display: block; font: 800 44px/1 var(--font-display); color: var(--slate); margin-bottom: var(--space-3); }
.steps h3 { font-size: var(--fs-h3); }
.steps p { margin-top: var(--space-3); color: var(--text-2); }
.band-ink .steps p { color: var(--mist); }
.band-ink .steps > li::before { color: var(--gold); }

/* ---- request form (#request): five fields at most, no health questions ---- */
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-l); align-items: start; }
.request .lede { margin-top: var(--space-4); }
.request-form { display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--white); border: 1px solid var(--line); border-top: var(--rule) solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
.request-form .field { display: grid; gap: var(--space-2); }
.request-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.request-form label { font-weight: 700; font-size: var(--fs-small); }
.request-form input, .request-form select, .request-form textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); font: inherit; font-size: var(--fs-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--muted); border-radius: var(--radius);
}
.request-form textarea { min-height: 132px; resize: vertical; }
.request-form input:hover, .request-form select:hover, .request-form textarea:hover { border-color: var(--slate); }
.request-form input:focus-visible, .request-form select:focus-visible, .request-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.request-form .button { width: 100%; justify-content: center; margin-top: var(--space-2); }
.request-form .form-note { font-size: var(--fs-caption); color: var(--text-2); }
.request-form .form-note a { color: inherit; }
/* text message consent: two optional, unchecked boxes (A2P 10DLC). The wording is fixed; see HANDOFF.md */
.request-form .consent { display: grid; gap: var(--space-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.request-form .consent legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: var(--fs-small); }
.request-form .check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; font-weight: 400; font-size: var(--fs-caption); color: var(--text-2); cursor: pointer; }
.request-form .check input { width: var(--space-5); height: var(--space-5); min-height: 0; margin: 0; padding: 0; accent-color: var(--ink); cursor: pointer; }
.on-dark .request-form { color: var(--ink); }
/* honeypot: off-screen, not display:none, so bots still find and fill it */
.request-form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* sending: the button greys out and stops responding until the server answers */
.request-form .button:disabled, .request-form .button:disabled:hover { background: var(--mist-tint); color: var(--muted); cursor: progress; transform: none; }
/* the request did not go through: ask them to call */
.request-form .form-error { padding: var(--space-4) var(--space-5); background: var(--gold-tint); border-left: var(--rule) solid var(--ink); border-radius: var(--radius); color: var(--ink); font-weight: 700; }
.request-form .form-error a { color: var(--ink); white-space: nowrap; }
.request-quote { margin-top: var(--space-6); padding-left: var(--space-5); border-left: var(--rule) solid var(--gold); }
.request-quote p { font-size: var(--fs-lede); }
.request-quote cite { display: block; margin-top: var(--space-3); font-style: normal; font-weight: 700; font-size: var(--fs-small); }
.request-quote cite span { display: block; font-weight: 400; color: var(--text-2); }

/* ---- people: team grid ---- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-m) var(--gap-s); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); }
.person h3 { margin-top: var(--space-4); }
.person .role { margin-top: var(--space-1); font-weight: 700; font-size: var(--fs-small); color: var(--slate); }
.person p:not(.role) { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--text-2); }

/* ---- before and after pairs ---- */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-m) var(--gap-s); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.pair img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: var(--radius); }
.pair figcaption { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: var(--fs-caption); color: var(--text-2); }

/* ---- reviews page: masonry of hard-coded reviews with a vanilla load-more ---- */
.review-wall { columns: 3 300px; column-gap: var(--gap-s); }
.review-wall .review { break-inside: avoid; margin-bottom: var(--gap-s); }
.review-wall .review[hidden] { display: none; }
.load-more { margin-top: var(--gap-m); }

/* ---- gallery: office tour photo grid with captions ---- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap-s); }
.gallery figure { grid-column: span 3; }
.gallery figure.wide { grid-column: span 6; }
.gallery figure.third { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: var(--space-2); font-size: var(--fs-caption); color: var(--text-2); }
.gallery figcaption .label { display: block; color: var(--ink); font-size: var(--fs-body); }

/* ---- legal and long reference text ---- */
.legal { max-width: 76ch; }
.legal h2 { margin-top: var(--space-7); font-size: clamp(28px, 2.6vw, 38px); }
.legal h3 { margin-top: var(--space-6); font-size: var(--fs-h3); }
.legal p, .legal li { margin-top: var(--space-3); }
.legal ul { padding-left: 1.2em; }

/* ---- related links strip at the foot of service pages ---- */
.related { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-5); }

@media (max-width: 1100px) {
  .prose-split, .request { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .c1-hero--page figure { min-height: 320px; }
  .people, .pairs { grid-template-columns: minmax(0, 1fr); }
  .request-form { padding: var(--space-5); }
  .request-form .field-row { grid-template-columns: minmax(0, 1fr); }
  .gallery figure, .gallery figure.third { grid-column: span 6; }
}
.schedule-online { margin-top: var(--space-4); }
.request-phone { margin-top: var(--space-5); font-weight: 700; }
.request-phone a { margin-left: var(--space-2); color: var(--ink); text-decoration: none; }
.request-phone a:hover { text-decoration: underline; }

/* ================================================================
   MOTION LAYER (added 2026-10-20 at Jules's request; supersedes the
   "two moments only" rule in DESIGN.md). Three things:
   1. Load: the ground textures fade and drift in, the gold rule draws,
      the hero swipe sweeps across. Hero copy keeps its existing rise.
   2. Parallax: textures and the hero photo trail the scroll. site.js
      writes --py (px) on each layer; nothing moves without it.
   3. Reveal: text and cards rise in as they enter the viewport. site.js
      adds .reveal/.in, so without JS nothing is ever hidden.
   prefers-reduced-motion removes all of it.
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* textures get room to travel, and their sections clip them */
  .c1-hero::after { inset: -14% 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
  .c1 .c1-wall { overflow: hidden; }
  .c1 .c1-wall::before { inset: -120px 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
  html.js .c1-hero::after { animation: tex-in 1.8s var(--ease-out) backwards; }
  html.js .c1 .c1-wall::before { animation: tex-in 1.8s var(--ease-out) backwards; }

  /* hero photo: a slower layer inside its own clip */
  .c1-hero figure { overflow: hidden; }
  .c1-hero figure img { transform: translate3d(0, calc(var(--py, 0px) * .6), 0) scale(1.08); will-change: transform; }
  html.js .c1-hero figure img { animation: photo-in 1.4s var(--ease-out) backwards; }

  /* the gold rule draws, the H1 swipe sweeps */
  html.js .c1-hero .rule { transform-origin: left center; animation: rule-in .9s .45s var(--ease-out) backwards; }
  html.js .c1-hero h1 .hl { animation: swipe-in .9s .3s var(--ease-out) backwards; }

  /* scroll reveal */
  html.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  html.js .reveal.in { opacity: 1; transform: none; }
}
@keyframes tex-in { from { opacity: 0; transform: translate3d(0, 48px, 0); } }
@keyframes photo-in { from { transform: translate3d(0, 24px, 0) scale(1.16); } }
@keyframes rule-in { from { transform: scaleX(0); } }
@keyframes swipe-in { from { background-size: 0% var(--hl-size); } }

/* Tap targets: breadcrumbs and related links reach 44px without changing their look. */
.crumbs a, .related a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs { margin-bottom: var(--space-3); }
.crumbs li { display: inline-flex; align-items: center; }
