/* Self-hosted fonts (preloaded in the <head>) so the real typefaces are ready
   before first paint — no Google round-trip, no fallback-to-webfont swap. */
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bebasneue-400.woff2") format("woff2");
}
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/saira-400-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibmplexmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibmplexmono-600.woff2") format("woff2");
}

/* ==========================================================================
   site.rehab — THE JOBSITE
   --------------------------------------------------------------------------
   A renovation contractor's identity for a software repair shop. The brand
   already says "rehab" — so we build the page like a job site:
     * Saira Condensed at monumental, stamped sizes carries the voice — tall,
       structural, like lettering on a site sign or a piece of equipment.
     * Saira (normal width) runs the body — a clean technical sans that stays
       highly legible for non-technical business owners.
     * IBM Plex Mono is the paperwork layer: work-order labels, sheet numbers,
       spec lines, stamps. It reads like the clipboard on the wall.
     * Canvas is cool concrete (#E8E8E5) with slate ink (#2D353B). Rust
       (#B5532E) is the single accent — energy, CTAs, the "fix." CTAs are
       WHITE-ON-RUST so they stay readable, never washed-out.
     * Hi-vis yellow (#F2B400) is hazard-accent ONLY — tape dividers, the
       caution dot — never body text.
     * Graphite bands (inspection, closer) carry a faint blueprint grid;
       hazard-tape strips divide the building from the finish work.
   Motion: a one-time hero choreography (rise + drawn strike/underline),
   IntersectionObserver reveals, micro-interactions. Every animation dies
   under prefers-reduced-motion.
   ========================================================================== */

:root {
  color-scheme: light;

  /* canvas & surfaces */
  --bg:           #E8E8E5;   /* cool concrete */
  --bg-sunk:      #DBDBD7;   /* poured-deeper concrete */
  --surface:      #F5F5F3;   /* clean drop-cloth */
  --field:        #1A1D1F;   /* cool graphite band */
  --field-deep:   #111315;

  /* ink — slate */
  --ink:          #2D353B;
  --ink-soft:     #434D54;
  --muted:        #556069;

  /* accent — rust (earthy, industrial; less "hardware store" than orange) */
  --accent:       #B5532E;   /* rust — energy, the fix, CTAs */
  --accent-deep:  #974025;   /* pressed rust */
  --accent-ink:   #A8431F;   /* AA rust for link text on concrete */
  --on-accent:    #FFFFFF;   /* white on rust — readable button text */
  --accent-soft:  #F4E1D8;   /* soft rust wash */
  --accent-chip:  #EACBBC;
  --caution:      #F2B400;   /* hi-vis yellow — hazard accents ONLY */

  /* on dark graphite */
  --on-dark:        #F4EFE4;
  --on-dark-muted:  #B4AC9B;
  --accent-on-dark: #E2845C;   /* brighter rust that holds AA on graphite */

  /* lines — cool gray to match the concrete */
  --border:        #D2D3D0;
  --border-strong: #B6B8B5;
  --rule:          #C8C9C6;

  --error:        #B3261E;

  --shadow-sm: 0 1px 2px rgba(34, 26, 12, 0.06);
  --shadow-md: 0 2px 4px rgba(34, 26, 12, 0.06), 0 12px 26px rgba(34, 26, 12, 0.10);
  --shadow-lg: 0 4px 12px rgba(34, 26, 12, 0.08), 0 26px 56px rgba(34, 26, 12, 0.16);

  --display: "Bebas Neue", "Arial Narrow", "Saira Condensed", system-ui, sans-serif;
  --sans: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --measure: 62ch;
  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* blueprint grid, painted onto graphite bands */
  --grid-dark:
    linear-gradient(rgba(244, 239, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 228, 0.05) 1px, transparent 1px);
  --grid-light:
    linear-gradient(rgba(26, 26, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 24, 0.045) 1px, transparent 1px);
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400; /* Bebas Neue is single-weight; size carries the hierarchy */
  letter-spacing: 0.04em; /* Bebas runs tight — generous tracking keeps caps legible */
  line-height: 1.0;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent-ink); }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

/* ==========================================================================
   SHARED INDUSTRIAL PARTS — hazard tape + rubber stamp
   ========================================================================== */

.hazard-tape {
  height: 16px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 16px,
    var(--caution) 16px 32px
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.stamp {
  display: inline-block;
  padding: 0.32em 0.7em;
  border: 2px solid currentColor;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  rotate: -3deg;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  padding: 0.8rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  transition: transform 0.35s var(--ease-out);
}

.brand:hover .brand-mark { transform: rotate(-7deg); }

.brand-logo {
  height: 2.35rem;
  width: auto;
  display: block;
}

.brand-footer .brand-logo { height: 2.7rem; }

.brand-word {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-tld { color: var(--accent-ink); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin-left: auto;
}

.primary-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 3px;
  transition: background-size 0.3s var(--ease-out), color 0.2s ease;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
  background-size: 100% 2px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  background-image: none !important;
  font-weight: 700;
  box-shadow: 0 2px 0 var(--accent-deep);
  transition: background-color 0.2s ease, transform 0.25s var(--ease-out);
}

.header-cta:hover { background: var(--caution) !important; color: var(--ink) !important; transform: translateY(-1px); }

.header-cta-short { display: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu-toggle-icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-toggle-icon span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.site-header[data-nav-open="true"] .menu-toggle-icon span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-nav-open="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.site-header[data-nav-open="true"] .menu-toggle-icon span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   HERO — the jobsite sign + the work order
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter) 0;
  background:
    var(--grid-light),
    radial-gradient(54rem 30rem at 108% -14%, var(--accent-soft), transparent 60%),
    var(--bg);
  background-size: 30px 30px, auto, auto;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--shell);
  margin-inline: auto;
}

.hero-copy { min-width: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.42rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.kicker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--caution);
  box-shadow: 0 0 0 2px var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .kicker-dot { animation: kicker-pulse 1.4s steps(2, jump-none) infinite; }

  @keyframes kicker-pulse {
    0%, 100% { background: var(--caution); }
    50% { background: var(--accent); }
  }
}

.hero h1 {
  margin: 1.4rem 0 1.5rem;
  font-size: clamp(3.2rem, 8.2vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 0.96;
  text-transform: uppercase;
}

.hero-lede {
  margin: 0 0 0.5rem;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

.h1-accent { color: var(--accent); }

.h1-mark { position: relative; display: inline-block; white-space: nowrap; }

.h1-underline {
  position: absolute;
  left: -1%;
  bottom: -0.1em;
  width: 102%;
  height: 0.2em;
  color: var(--accent);
  pointer-events: none;
}

.h1-mark-broken { color: var(--ink); }

/* "leaking" springs a leak: a dripping wet seam + a couple of beads that
   drip a short, contained distance (a muted water-blue — the damage you
   call us to fix, paired against the safety-orange of "fix it"). */
.h1-leak {
  position: absolute;
  left: -1%;
  bottom: -0.12em;
  width: 102%;
  height: 0.28em;
  color: #3E7CA6;
  pointer-events: none;
  overflow: visible;
}

/* the leak beads up as a blue water drop, then morphs (cross-fades) into a
   dollar bill as it slips out of the seam — what's "leaking" is really money. */
.leak-drop {
  position: absolute;
  bottom: -0.05em;
  width: 0.5em;
  height: 0.29em;
  opacity: 0;
  pointer-events: none;
}

.leak-drop-1 { left: 40%; }
.leak-drop-2 { left: 60%; }

/* the blue water bead — shown first, centred in the drop box */
.drop-water {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.15em;
  height: 0.15em;
  background: #3E7CA6;
  border-radius: 0 50% 50% 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* the dollar bill — hidden until the morph reveals it */
.drop-bill {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: drop-shadow(0 0.018em 0.02em rgba(0, 0, 0, 0.22));
}

@media (prefers-reduced-motion: no-preference) {
  .leak-drop,
  .leak-drop .drop-water,
  .leak-drop .drop-bill {
    animation-duration: 4s;
    animation-timing-function: ease-in;
    animation-iteration-count: infinite;
  }
  .leak-drop { animation-name: drop-fall; }
  .leak-drop .drop-water { animation-name: morph-water; }
  .leak-drop .drop-bill { animation-name: morph-bill; }

  .leak-drop-2,
  .leak-drop-2 .drop-water,
  .leak-drop-2 .drop-bill { animation-delay: 2.1s; animation-duration: 4.2s; }

  /* container: bead up at the seam, then a short fluttering fall + fade */
  @keyframes drop-fall {
    0%   { opacity: 0;   transform: translate(0, -0.05em) rotate(0deg) scale(0.5); }
    12%  { opacity: 1;   transform: translate(0, 0) rotate(0deg) scale(1); }
    50%  { opacity: 1;    transform: translate(0.03em, 0.16em) rotate(5deg) scale(1); }
    82%  { opacity: 0.85; transform: translate(-0.02em, 0.34em) rotate(-5deg) scale(0.98); }
    100% { opacity: 0;    transform: translate(0.02em, 0.46em) rotate(7deg) scale(0.9); }
  }
  /* water shown first, fades out at the morph point */
  @keyframes morph-water {
    0%, 58%   { opacity: 1; }
    72%, 100% { opacity: 0; }
  }
  /* bill hidden first, fades in once the drop has fallen a bit, then stays */
  @keyframes morph-bill {
    0%, 60%   { opacity: 0; }
    74%, 100% { opacity: 1; }
  }
}

.lede {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.62;
}

/* the work order */
.hero-form-wrap { position: relative; min-width: 0; }

.intake-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 2.4rem 2.1rem 1.7rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-top: 8px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-stamp {
  position: absolute;
  top: -0.95rem;
  right: 1.3rem;
  background: var(--surface);
  rotate: 3deg;
}

.form-heading { display: grid; gap: 0.4rem; margin-bottom: 0.2rem; }

.form-eyebrow {
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-sub {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.field { display: grid; gap: 0.35rem; }

.field-label {
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field-optional {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.field-input {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1.5px solid #777E86; /* >=3:1 against the input fill and the form card */
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field-input::placeholder { color: var(--muted); }

.field-input:hover { border-color: var(--ink-soft); }

.field-input:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.field-textarea { resize: vertical; min-height: 92px; }

.field-error {
  min-height: 1.1em;
  color: var(--error);
  font-size: 0.8rem;
  font-weight: 600;
}

.form-note a {
  color: var(--accent-ink);
  font-weight: 600;
}

.form-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.form-note a { color: var(--accent-ink); font-weight: 600; }

.form-status {
  min-height: 1.2em;
  color: var(--accent-ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.form-status.error { color: var(--error); }

/* punch list: broken struck in graphite, the fix stamped in orange */
.symptom-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.6rem;
  justify-content: center;
  max-width: var(--shell);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 1.05rem var(--gutter) 1.15rem;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.symptom-strip-label {
  padding: 0.2rem 0.55rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.symptom { position: relative; color: var(--muted); }

.symptom-broken::before {
  content: "\2715\0020";
  color: var(--accent);
  font-weight: 700;
}

.symptom-broken { text-decoration: line-through; text-decoration-color: rgba(94, 87, 74, 0.6); }

.symptom-fixed {
  color: var(--on-accent);
  font-weight: 700;
  background: var(--accent);
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
}

.symptom-fixed::before {
  content: "\2713\0020";
  font-weight: 700;
}

/* ==========================================================================
   SECTION SCAFFOLD
   ========================================================================== */

.section { padding: clamp(4rem, 8vw, 7rem) var(--gutter); }

.section-head {
  max-width: var(--shell);
  margin: 0 auto clamp(2.25rem, 5vw, 3.75rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.section-label::after {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.section-label-num {
  display: grid;
  place-items: center;
  min-width: 2.1em;
  padding: 0.2em 0.45em;
  border: 1.5px solid var(--accent);
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.section-label-light { color: var(--caution); }

.section-label-light::after { background: var(--accent-on-dark); }

.section-label-light .section-label-num {
  border-color: var(--accent-on-dark);
  background: var(--accent);
  color: var(--on-accent);
}

.section-title {
  max-width: 34ch;
  margin-top: 1rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 0.98;
}

/* ==========================================================================
   CHECK — the inspection (graphite band + blueprint grid)
   ========================================================================== */

.check {
  position: relative;
  background:
    var(--grid-dark),
    radial-gradient(46rem 26rem at 88% 4%, rgba(181, 83, 46, 0.16), transparent 60%),
    var(--field);
  background-size: 30px 30px, auto, auto;
  color: var(--on-dark);
}

.check .section-title { color: var(--on-dark); }
.check .flow-h { color: var(--on-dark); }
.check .flow-step p { color: rgba(244, 239, 228, 0.72); }

.check-flow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: var(--shell);
}

.check-flow::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 16.67%;
  right: 16.67%;
  height: 0;
  border-top: 2px dashed rgba(244, 239, 228, 0.28);
  z-index: 0;
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.45rem;
}

.flow-node {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--accent-deep);
  color: var(--on-accent);
  margin-bottom: 0.85rem;
  rotate: -2deg;
  transition: transform 0.16s ease, rotate 0.16s ease, box-shadow 0.16s ease;
}

.flow-step:hover .flow-node {
  transform: translateY(-3px);
  rotate: 2deg;
  box-shadow: 0 7px 0 var(--accent-deep);
}

.flow-node svg { width: 32px; height: 32px; }

.flow-h {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--on-dark);
}

.flow-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 26ch;
}

.check .flow-step p strong {
  color: var(--on-dark);
  font-weight: 700;
}

/* concrete "what's included" chips under each fix */
.flow-tags {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 30ch;
}
.flow-tags li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 228, 0.9);
  background: rgba(244, 239, 228, 0.06);
  border: 1px solid rgba(244, 239, 228, 0.22);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
}
.flow-link {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.flow-link:hover,
.flow-link:focus-visible { color: var(--on-dark); border-bottom-color: var(--accent); }

.check-cta {
  margin: clamp(2.5rem, 5vw, 3.75rem) auto 0;
  text-align: center;
  font-size: 1.02rem;
  color: rgba(244, 239, 228, 0.78);
}

.check-cta a {
  color: var(--accent-on-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

.check-cta a:hover { color: var(--on-dark); }

@media (max-width: 860px) {
  .check-flow { grid-template-columns: 1fr; gap: 0; }

  .check-flow::before {
    top: 37px;
    bottom: 37px;
    left: 37px;
    right: auto;
    width: 0;
    height: auto;
    border-top: 0;
    border-left: 2px dashed rgba(244, 239, 228, 0.28);
  }

  .flow-step {
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 1.25rem;
    justify-items: start;
    text-align: left;
    align-items: start;
    padding-bottom: 2.25rem;
  }

  .flow-step:last-child { padding-bottom: 0; }

  .flow-node {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-bottom: 0;
    align-self: start;
  }

  .flow-h { grid-column: 2; grid-row: 1; align-self: center; }
  .flow-step p { grid-column: 2; grid-row: 2; max-width: none; margin-top: 0.35rem; }
  .flow-tags { grid-column: 2; grid-row: 3; justify-content: flex-start; max-width: none; }
  .flow-link { grid-column: 2; grid-row: 4; }
}

/* ==========================================================================
   CONCEPTS — finished jobs (classes are the dynamic renderer's contract)
   ========================================================================== */

.concepts { position: relative; background: var(--bg-sunk); }

.concepts-lead {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
}

.concepts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  width: 100vw;
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
/* ~3-up; cards keep their size (no grow), so an incomplete last row stays
   centered instead of stretching or stranding a gap */
.concepts-grid > .concept-card {
  flex: 0 1 clamp(300px, 30%, 460px);
}
.concept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

/* browser-window chrome around each live demo */
.concept-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.5rem 0.8rem;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}
.concept-dots { display: inline-flex; gap: 5px; flex: none; }
.concept-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); opacity: 0.22; }
.concept-dots i:first-child { background: var(--accent); opacity: 1; }
.concept-tag {
  flex: none;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  padding: 0.26rem 0.55rem;
  border-radius: 5px;
  box-shadow: 0 2px 0 var(--accent-deep);
}

.concept-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.concept-media {
  flex: none;
  position: relative;
  overflow: hidden;
  background: var(--bg-sunk);
}
/* whole-card cover link + hover "View live" overlay */
.concept-cover { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-lg); }
.concept-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.concept-pills { position: relative; z-index: 3; }
.concept-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  pointer-events: none;
}
.concept-card:hover .concept-overlay,
.concept-card:focus-within .concept-overlay { opacity: 1; transform: none; }

.concept-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.22s ease, scale 0.7s var(--ease-out);
}

.concept-card:hover .concept-thumb { scale: 1.03; }

.concept-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.4rem 1.35rem;
  /* bold dark label plate so the card info separates hard from the screenshot */
  background: var(--ink);
  border-top: 3px solid var(--accent);
}
.concept-body .concept-eyebrow { color: var(--accent-on-dark); margin-bottom: 0.4rem; }
.concept-body .concept-h { color: var(--surface); margin-bottom: 0.45rem; }
.concept-body .concept-blurb {
  color: #C5CBCF;
  margin-bottom: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.concept-body .concept-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  background-image: none;          /* kill the .text-link animated underline gradient */
  background-size: auto;
  color: var(--on-accent);
  border: 2px solid var(--accent);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.concept-body .concept-link:hover {
  background: var(--caution);       /* hi-vis yellow, dark text — always readable */
  background-image: none;
  background-size: auto;
  border-color: var(--caution);
  color: var(--ink);
  transform: translateY(-2px);
}
.concept-body .concept-pill { background: transparent; color: #DCE0E3; border-color: rgba(255,255,255,0.32); }
.concept-body .concept-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.concept-eyebrow {
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.concept-h {
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.concept-blurb {
  margin-bottom: 1.05rem;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* iteration pills + zero-shift blurb stack (renderer contract) */
.concept-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.concept-pill {
  padding: 0.42rem 0.85rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.concept-pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent-chip);
}

.concept-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--caution);
  cursor: default;
}

.concept-blurbs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1.05rem;
}

.concept-blurbs .concept-blurb {
  grid-area: 1 / 1;
  margin: 0;
}

.concept-blurbs .concept-blurb[aria-hidden="true"] { visibility: hidden; }

.concept-link { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   PRICING — the estimate sheet
   ========================================================================== */

.pricing {
  position: relative;
  background:
    var(--grid-dark),
    radial-gradient(44rem 24rem at 6% 4%, rgba(181, 83, 46, 0.17), transparent 58%),
    radial-gradient(42rem 24rem at 100% 100%, rgba(62, 124, 166, 0.10), transparent 60%),
    var(--field);
  background-size: 30px 30px, auto, auto, auto;
  color: var(--on-dark);
}

/* the estimate sits on a dark graphite band so the light $50 card pops */
.pricing .section-label { color: var(--caution); }
.pricing .section-label::after { background: var(--accent-on-dark); }
.pricing .pricing-title { color: var(--on-dark); }
.pricing .pricing-lead { color: var(--on-dark-muted); }

.pricing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
}

.pricing-title {
  max-width: 16ch;
  margin-top: 1rem;
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 0.98;
}

.pricing-lead {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.65;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 2.4rem 2.1rem 1.7rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.pricing-stamp {
  position: absolute;
  top: -0.9rem;
  right: 1.4rem;
  background: var(--surface);
  rotate: 2.5deg;
}

.pricing-card-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-amount {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--display);
  font-size: clamp(4rem, 6.5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.pricing-currency {
  font-size: 0.42em;
  font-weight: 700;
  color: var(--accent);
  translate: 0 -0.85em;
}

.pricing-period {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--muted);
  margin-left: 0.55rem;
}

.pricing-card-copy {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.pricing-list {
  display: grid;
  gap: 0.6rem;
  margin: 0.2rem 0 0.4rem;
  padding: 1rem 0 0;
  border-top: 2px dashed var(--border-strong);
  list-style: none;
}

.pricing-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.pricing-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ==========================================================================
   BIO — the builder
   ========================================================================== */

.bio { background: var(--bg-sunk); }

.bio-inner {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
}

.bio-photo {
  position: relative;
  margin: 0;
  rotate: -2deg;
}

.bio-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-md);
}

.bio-photo::after {
  content: "Old Bridge, NJ";
  position: absolute;
  bottom: -0.9rem;
  left: 50%;
  translate: -50%;
  padding: 0.34rem 0.85rem;
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--accent-deep);
}

.bio-title {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  text-transform: uppercase;
}

.bio-lead {
  margin-top: 0.85rem;
  color: var(--accent-ink);
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  font-weight: 600;
  font-family: var(--sans);
  line-height: 1.32;
  letter-spacing: -0.003em;
  max-width: 30ch;
}

.bio-body {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
  max-width: var(--measure);
  color: var(--ink-soft);
  line-height: 1.7;
}

.bio-body strong { color: var(--ink); }

/* the builder's three promises, folded below the story */
.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.bio-points {
  max-width: var(--shell);
  margin: clamp(2.75rem, 5vw, 3.75rem) auto 0;
}

.about-point-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 9px;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--accent-deep);
  color: var(--on-accent);
}

.about-point-icon svg { width: 1.45rem; height: 1.45rem; }

.about-point-h {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.about-point p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ==========================================================================
   CLOSER — graphite band, last call
   ========================================================================== */

.closer {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--gutter);
  background:
    var(--grid-dark),
    radial-gradient(42rem 26rem at 85% 112%, rgba(181, 83, 46, 0.2), transparent 58%),
    var(--field-deep);
  background-size: 30px 30px, auto, auto;
  color: var(--on-dark);
  text-align: center;
}

.closer-kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caution);
}

.closer-title {
  margin: 1rem auto 1.1rem;
  max-width: 16ch;
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.closer-sub {
  max-width: 46ch;
  margin: 0 auto 2rem;
  color: var(--on-dark-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* an intake form dropped inside the dark closer band (content pages) */
.closer-form {
  width: 100%;
  max-width: 33rem;
  margin: 2.4rem auto 0;
  text-align: left;
  color: var(--ink); /* the card is a light surface — do not inherit the closer's cream text */
}

/* FAQ — the fine print, in plain sight */
.faq-list {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem 3rem;
}

.faq-item {
  border-top: 2px solid var(--border-strong);
  padding-top: 1.1rem;
}

.faq-item dt {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  color: var(--ink);
}

.faq-item dd {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

/* sunk band (shared by content pages' third sections and services' related) */
.section.sunk { background: var(--bg-sunk); }

/* rust labels on the sunk background need the deeper rust to clear 4.5:1 */
.section.sunk .section-label,
.concepts .section-label,
.bio .section-label { color: var(--accent-deep); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 2.4rem var(--gutter) 2.6rem;
  border-top: 2px solid var(--ink);
  background: var(--bg);
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  max-width: var(--shell);
  margin: 0 auto;
}

.footer-tag a {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-tag a:hover { text-decoration: underline; }

.footer-tag {
  max-width: var(--shell);
  margin: 1.05rem auto 1.4rem;
  font-size: 1rem;
  color: var(--muted);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--border-strong);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-cta-btn { flex: none; }

.brand-footer .brand-word { font-size: 1.3rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent-ink); }

.footer-cta { color: var(--accent-ink) !important; }

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background-color 0.2s ease;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 0 var(--accent-deep);
}

.button-primary:hover {
  background: var(--caution);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--accent-deep);
}

.button-primary:active { transform: translateY(0); box-shadow: 0 2px 0 var(--accent-deep); }

.button-block { width: 100%; }

.button-lg { padding: 1.05rem 2.1rem; font-size: 1.3rem; }

.button span[aria-hidden] {
  display: inline-block;
  transition: translate 0.3s var(--ease-out);
}

.button:hover span[aria-hidden] { translate: 4px 0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 2px;
  transition: background-size 0.3s var(--ease-out);
}

.text-link:hover { background-size: 100% 2px; }

.text-link span[aria-hidden] {
  display: inline-block;
  transition: translate 0.3s var(--ease-out);
}

.text-link:hover span[aria-hidden] { translate: 4px 0; }

/* ==========================================================================
   MOTION — entrance + reveals (script.js tags .rv; reduced motion skips)
   ========================================================================== */

.rv {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
  transition-delay: var(--rv-delay, 0ms);
}

.rv-in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; translate: none; transition: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in {
    from { opacity: 0; translate: 0 26px; }
    to { opacity: 1; translate: 0 0; }
  }

  .hero-copy > * { animation: rise-in 0.85s var(--ease-out) both; }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.45s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.55s; }

  .hero-form-wrap { animation: rise-in 0.9s var(--ease-out) 0.35s both; }

  .symptom-strip > * { animation: rise-in 0.7s var(--ease-out) both; }
  .symptom-strip > :nth-child(1) { animation-delay: 0.85s; }
  .symptom-strip > :nth-child(2) { animation-delay: 0.95s; }
  .symptom-strip > :nth-child(3) { animation-delay: 1.05s; }
  .symptom-strip > :nth-child(4) { animation-delay: 1.15s; }
  .symptom-strip > :nth-child(5) { animation-delay: 1.25s; }
  .symptom-strip > :nth-child(6) { animation-delay: 1.45s; }

  /* the underline draws itself after the words land */
  .h1-underline path {
    stroke-dasharray: 380;
    stroke-dashoffset: 380;
    animation: draw-mark 0.8s var(--ease-out) 1.2s forwards;
  }

  @keyframes draw-mark {
    to { stroke-dashoffset: 0; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .h1-underline path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-stage { grid-template-columns: minmax(0, 1fr); }
  .hero-form-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
  .pricing-inner { grid-template-columns: minmax(0, 1fr); }
  .pricing-card { max-width: 520px; }
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }

  .site-header .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1.1rem;
    background: var(--bg);
    border-bottom: 2px solid var(--ink);
    box-shadow: var(--shadow-md);
  }

  .site-header[data-nav-open="true"] .primary-nav { display: flex; }

  .primary-nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--border);
    background-image: none;
  }

  .primary-nav a:last-of-type { border-bottom: 0; }

  /* the CTA lives outside the drawer so phones always see a next step */
  .site-header > .header-cta { order: 2; margin-left: auto; padding: 0.5rem 0.85rem; }
  .menu-toggle { order: 3; }

  .header-cta-full { display: none; }
  .header-cta-short { display: inline; }
}

@media (max-width: 680px) {
  /* icon-only menu button so brand + CTA + menu fit a phone header */
  .menu-toggle { padding: 0.5rem 0.6rem; }
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .faq-list { grid-template-columns: minmax(0, 1fr); }

  .concepts-grid,
  .about-points { grid-template-columns: minmax(0, 1fr); }

  /* phones: let each card fill the row so it isn't centered with wide side gaps */
  .concepts-grid { padding-inline: 0.6rem; }
  .concepts-grid > .concept-card { flex: 1 1 100%; }

  .bio-inner { grid-template-columns: minmax(0, 1fr); }
  .bio-photo { max-width: 280px; margin-inline: auto; }

  .hero h1 { font-size: clamp(2.9rem, 14vw, 3.8rem); }

  .intake-form { padding: 2rem 1.5rem 1.3rem; }

  .symptom-strip { gap: 0.45rem 1.1rem; }
}


/* ---- print: flatten dark bands to paper ---- */
@media print {
  .check,
  .closer {
    background: #fff !important;
    color: var(--ink) !important;
  }

  .check .section-title,
  .check .flow-h,
  .closer-title { color: var(--ink) !important; }

  .hazard-tape,
  .symptom-strip { display: none !important; }
}

/* ==========================================================================
   ANIMATING ICONS — inspection nodes pop in one-by-one; the builder's
   icons pop on reveal and wiggle on hover. All inside the reduced-motion gate.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* node pop, fired by the reveal engine's .rv-in */
  .rv .flow-node {
    scale: 0.4;
    opacity: 0;
  }

  .rv-in .flow-node {
    animation: node-pop 0.55s var(--ease-out) 0.12s both;
  }

  @keyframes node-pop {
    from { scale: 0.4; opacity: 0; }
    60% { scale: 1.12; opacity: 1; }
    to { scale: 1; opacity: 1; }
  }

  .flow-node { position: relative; }

  .rv-in .flow-node::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 0 rgba(181, 83, 46, 0.5);
    animation: node-ring 0.9s ease-out 0.3s;
  }

  @keyframes node-ring {
    from { box-shadow: 0 0 0 0 rgba(181, 83, 46, 0.5); }
    to { box-shadow: 0 0 0 16px rgba(181, 83, 46, 0); }
  }

  .rv .about-point-icon {
    scale: 0.4;
    opacity: 0;
  }

  .rv-in .about-point-icon {
    animation: node-pop 0.55s var(--ease-out) 0.15s both;
  }

  .flow-step:hover .flow-node svg,
  .about-point:hover .about-point-icon svg {
    animation: icon-wiggle 0.5s ease-in-out;
  }

  @keyframes icon-wiggle {
    0%, 100% { rotate: 0deg; }
    25% { rotate: -9deg; }
    60% { rotate: 7deg; }
  }
}

/* ==========================================================================
   JOBSITE EXTRAS — a tape-measure scroll rail, an architect's title-block
   footer, and hex-bolt fasteners on the key panels. Real tools, not chrome.
   ========================================================================== */

/* --- tape measure pinned to the left edge (wide screens only, where the
       page margin has room for it so it never overlaps content) --- */
.tape-rail { display: none; }

@media (min-width: 1320px) {
  /* the tape lives on the RIGHT, replacing the native scrollbar. Scroll still
     works (wheel/keyboard/trackpad) and the orange blade tracks position, so
     the affordance is preserved without the native bar. */
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { width: 0; height: 0; }

  .tape-rail {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    z-index: 130;
    background-color: var(--caution);
    background-image:
      repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 60px),
      repeating-linear-gradient(to bottom, var(--ink) 0 1.5px, transparent 1.5px 15px);
    background-position: left top, left top;
    background-size: 16px 100%, 9px 100%;
    background-repeat: no-repeat;
    border-left: 2px solid var(--ink);
    pointer-events: none;
  }

  .tape-rail-hook {
    position: absolute;
    top: 7px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--ink);
  }

  .tape-rail-blade {
    position: absolute;
    left: -2px;
    right: -2px;
    /* start below the "0" hook so the blade never sits on the label */
    top: calc(var(--p, 0) * (100% - 18px) + 18px);
    height: 0;
    border-top: 4px solid var(--accent);
    box-shadow: 0 0 0 1.5px rgba(26, 26, 24, 0.3);
    will-change: top;
  }

  /* a crisp orange cursor block at the measuring edge — "you are here" */
  .tape-rail-blade::after {
    content: "";
    position: absolute;
    left: -2px;
    top: -5px;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border: 1.5px solid var(--ink);
    border-radius: 1px;
  }
}


/* --- bolted panels: hex-bolt heads fastened into the corners --- */
.pricing-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2 17 6.2v7.6L10 18 3 13.8V6.2Z' fill='%23E8DECB' stroke='%231A1A18' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2.8' fill='none' stroke='%231A1A18' stroke-width='1.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2 17 6.2v7.6L10 18 3 13.8V6.2Z' fill='%23E8DECB' stroke='%231A1A18' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2.8' fill='none' stroke='%231A1A18' stroke-width='1.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2 17 6.2v7.6L10 18 3 13.8V6.2Z' fill='%23E8DECB' stroke='%231A1A18' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2.8' fill='none' stroke='%231A1A18' stroke-width='1.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2 17 6.2v7.6L10 18 3 13.8V6.2Z' fill='%23E8DECB' stroke='%231A1A18' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='2.8' fill='none' stroke='%231A1A18' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  /* top bolts nudged down so they sit clearly inside the panel, clear of the
     corner stamp; all four corners present so the "bolted panel" reads whole */
  background-position: left 0 top 3px, right 0 top 3px, left 0 bottom 0, right 0 bottom 0;
  background-size: 14px 14px;
}

/* --- form "build" reveal: panel drops in, hex-bolt screws spin into the
       corners, then fields get cut out. Real .form-bolt elements (so each
       screw animates independently) replace the intake-form ::after bolts.
       Driven by the reveal engine (.rv/.rv-in); dies under reduced motion. --- */
.form-bolt {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3E%3Cpath d=%27M10 2 17 6.2v7.6L10 18 3 13.8V6.2Z%27 fill=%27%23E8DECB%27 stroke=%27%231A1A18%27 stroke-width=%271.5%27 stroke-linejoin=%27round%27/%3E%3Ccircle cx=%2710%27 cy=%2710%27 r=%272.8%27 fill=%27none%27 stroke=%27%231A1A18%27 stroke-width=%271.4%27/%3E%3C/svg%3E");
}
.form-bolt--tl { top: 15px; left: 12px; }
.form-bolt--tr { top: 15px; right: 12px; }
.form-bolt--bl { bottom: 12px; left: 12px; }
.form-bolt--br { bottom: 12px; right: 12px; }

@media (prefers-reduced-motion: no-preference) {
  /* PANEL drops down from above and settles (overrides the generic up-fade) */
  .intake-form.rv {
    opacity: 0;
    translate: 0 -42px;
    scale: 0.965;
    transition:
      opacity 0.45s var(--ease-out),
      translate 0.7s cubic-bezier(0.2, 0.85, 0.25, 1.06),
      scale 0.7s cubic-bezier(0.2, 0.85, 0.25, 1.06);
  }
  .intake-form.rv-in { opacity: 1; translate: 0 0; scale: 1; }

  /* SCREWS spin down into their corners, one after another */
  .intake-form.rv .form-bolt { opacity: 0; scale: 0; rotate: -240deg; }
  .intake-form.rv-in .form-bolt {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
    transition:
      opacity 0.25s ease,
      scale 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25),
      rotate 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  }
  .intake-form.rv-in .form-bolt--tl { transition-delay: 0.40s; }
  .intake-form.rv-in .form-bolt--tr { transition-delay: 0.52s; }
  .intake-form.rv-in .form-bolt--bl { transition-delay: 0.64s; }
  .intake-form.rv-in .form-bolt--br { transition-delay: 0.76s; }

  /* FIELDS + copy get cut open (unfold from the top), staggered via --rvb */
  .intake-form.rv .form-heading,
  .intake-form.rv .field,
  .intake-form.rv .button,
  .intake-form.rv .form-note {
    opacity: 0;
    scale: 1 0.62;
    translate: 0 -3px;
    transform-origin: top center;
  }
  .intake-form.rv-in .form-heading,
  .intake-form.rv-in .field,
  .intake-form.rv-in .button,
  .intake-form.rv-in .form-note {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    transition:
      opacity 0.42s ease var(--rvb, 0s),
      scale 0.5s cubic-bezier(0.25, 0.8, 0.3, 1.05) var(--rvb, 0s),
      translate 0.45s ease var(--rvb, 0s);
  }

  /* STAMP slams down like a rubber stamp, last */
  .intake-form.rv .form-stamp { opacity: 0; scale: 1.7; rotate: -6deg; }
  .intake-form.rv-in .form-stamp {
    opacity: 1;
    scale: 1;
    rotate: 3deg;
    transition:
      opacity 0.18s ease 1.45s,
      scale 0.34s cubic-bezier(0.3, 0.9, 0.35, 1.3) 1.45s,
      rotate 0.34s cubic-bezier(0.3, 0.9, 0.35, 1.3) 1.45s;
  }
}
