/*
  River Rock Builders, LLC — visual world

  THESIS:   A custom house is decided below grade. The ground picks the
            foundation, the foundation picks the budget, and everything a buyer
            is shown sits on top of a decision nobody photographs. This site is
            built as the document that records it: a geotechnical boring log. It
            refuses the category's two arrangements — the twilight photo of a
            finished great room under "Your Dream Home Awaits" with a badge row,
            and the hairline-minimal architecture studio in thin light serif.
  OWN-WORLD:The log sheet and the core it records. Deep graphite carries the
            drilled column and the section bands; warm limestone carries the
            paper it is printed on; one accent, wet clay, is the material being
            logged and appears only where a stratum, a water table or an active
            state is marked. Square corners, hairline rules, and one recurring
            texture — a depth scale with a three-length tick rhythm. Components
            are named from the report: .scale .log .stratum .depth .sheet
            .schedule .sequence .nap
  STORY:    A household interviewing three builders sees a named, addressed
            Arkansas company whose first move is to read the ground rather than
            sell a plan; reads their own question in specifics; sees the sequence
            with its inspection hold points; and requests a consultation.
  MOTION:   One authored moment — the hero boring log drills itself once (depth
            axis and stratum boundaries, 700ms). Everything else is a single
            220ms fade-and-rise on first scroll into view. No overshoot curves
            anywhere: the brief pins soft reveals only. Content is visible by
            default; prefers-reduced-motion removes all of it.
  ORDER:    Mobile-first. The base rules below are the phone composition and
            every media query is min-width, per the brief.
*/

/* ==================================================================
   1. Fonts — self-hosted, latin subset, no external requests
   ================================================================== */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2-variations"),
       url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

/* ==================================================================
   2. Tokens
   ================================================================== */
:root {
  /* graphite — the drilled column, the section bands */
  --graphite-950: #14171a;
  --graphite-900: #1b1f23;
  --graphite-800: #252a2f;
  --graphite-700: #343b41;
  --graphite-600: #49525a;
  /* 4.69:1 on --stone-200, which is the darkest ground muted text sits on.
     #5C666F measured 4.42:1 there and failed AA. */
  --graphite-500: #59636c;

  /* warm stone / limestone — the sheet the log is printed on */
  --stone-050: #faf7f2;
  --stone-100: #f1ede5;
  --stone-200: #e5dfd4;
  --stone-300: #d4ccbd;
  --stone-400: #b5aa97;
  /* Muted text on graphite only. 5.02:1 on --graphite-900 and 5.50:1 on
     --graphite-950; #8A8071 measured 4.27:1 on --graphite-900 and failed AA. */
  --stone-500: #948a7a;

  /* accent — wet clay. Only where something is logged or marked. */
  --clay-800: #5e2c1c;
  --clay-700: #7a3a24;
  --clay-600: #96492e;
  --clay-400: #c0714f;
  --clay-300: #d89573;
  --clay-100: #f0dfd4;

  /* type. The display face is a system contrast serif: no licensed display
     WOFF2 was available for this build, and a system stack costs zero requests
     and zero layout shift. {{FILL_BEFORE_LAUNCH}} — to swap in a licensed
     serif, add one @font-face and put its family first in --display. */
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
             Georgia, "Times New Roman", serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;

  --step--2: 0.75rem;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: 1.4375rem;
  --step-3: clamp(1.6rem, 1.3rem + 1.35vw, 2.15rem);
  --step-4: clamp(2rem, 1.45rem + 2.5vw, 3.05rem);
  --step-5: clamp(2.4rem, 1.5rem + 4.3vw, 4.2rem);

  --measure: 70ch;

  /* space — 4px base */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 2.5rem;
  --sp-9: 3.5rem;
  --sp-10: 5rem;

  --radius: 2px;
  --shadow: 0 14px 30px -22px rgba(20, 23, 26, 0.55), 0 2px 5px -3px rgba(20, 23, 26, 0.18);
  --shadow-lift: 0 22px 44px -26px rgba(20, 23, 26, 0.6), 0 3px 7px -3px rgba(20, 23, 26, 0.2);

  /* drawing ink, re-declared on graphite grounds */
  --dwg-ink: #8a8071;
  --dwg-face: rgba(181, 170, 151, 0.16);
  --dwg-ground: var(--stone-050);
  --dwg-num: var(--graphite-600);
  --dwg-mark: var(--clay-700);
}

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

/* ==================================================================
   3. Base
   ================================================================== */
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stone-100);
  color: var(--graphite-800);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.012em; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--clay-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--clay-700);
  outline-offset: 2px;
  border-radius: 1px;
}

.wrap { width: min(1200px, 92vw); margin-inline: auto; }

.skip {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 100;
  background: var(--graphite-950);
  color: var(--stone-050);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus { top: var(--sp-4); }

/* Technical label — the section's log address. One named system element in one
   consistent position, not an eyebrow above every heading. */
.tlabel {
  display: block;
  font-family: var(--text);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--graphite-500);
}

/* Every figure that has to look exact is set in the text face with tabular
   numerals: the address block, the hours, the phone, the depth callouts. The
   display serif is for headings only. */
.idbar-meta,
.hero-fine,
.nap-addr,
.nap-rows dd,
.cta-id,
.cta-hrs,
.foot-legal {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}

/* ==================================================================
   4. The depth scale — the recurring texture

   A tick rhythm built from three tiled gradients. Generic grid-line
   backgrounds are a generated-UI tell and are refused everywhere else on this
   site; this one is kept deliberately, because a depth scale is a measurement
   surface and it is the signature texture of the logged world recorded in
   DESIGN.md. It carries numerals' worth of meaning, not decoration: it marks
   every band boundary the way a log sheet rules its own margin.
   ================================================================== */
.scale {
  height: 15px;
  background-repeat: repeat-x;
  background-position: left bottom, left bottom, left bottom;
  background-image:
    repeating-linear-gradient(to right, var(--graphite-500) 0 1.5px, transparent 1.5px 120px),
    repeating-linear-gradient(to right, var(--stone-500) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(to right, var(--stone-400) 0 1px, transparent 1px 6px);
  background-size: 100% 15px, 100% 9px, 100% 5px;
  border-bottom: 1px solid var(--stone-300);
}
.scale-dark {
  background-image:
    repeating-linear-gradient(to right, var(--stone-400) 0 1.5px, transparent 1.5px 120px),
    repeating-linear-gradient(to right, var(--graphite-600) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(to right, var(--graphite-700) 0 1px, transparent 1px 6px);
  border-bottom-color: var(--graphite-700);
}
.scale-light { border-bottom-color: var(--stone-300); }

/* ==================================================================
   5. Depth callout
   ================================================================== */
.depth {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  max-width: 15rem;
}
.depth::before, .depth::after {
  content: "";
  flex: 0 0 1px;
  width: 1px;
  height: 12px;
  background: var(--graphite-500);
}
.depth-line { flex: 1 1 auto; min-width: 10px; height: 1px; background: var(--stone-400); }
.depth-v {
  font-weight: 600;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--graphite-700);
}
.depth-l { flex: 0 0 100%; font-size: var(--step--2); color: var(--graphite-500); }

/* ==================================================================
   6. Sheet — the log sheet, with corner registration ticks
   ================================================================== */
.sheet {
  position: relative;
  background: var(--stone-050);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow);
}
.sheet::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(var(--stone-400), var(--stone-400)), linear-gradient(var(--stone-400), var(--stone-400)),
    linear-gradient(var(--stone-400), var(--stone-400)), linear-gradient(var(--stone-400), var(--stone-400)),
    linear-gradient(var(--stone-400), var(--stone-400)), linear-gradient(var(--stone-400), var(--stone-400)),
    linear-gradient(var(--stone-400), var(--stone-400)), linear-gradient(var(--stone-400), var(--stone-400));
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}
.sheet > * { position: relative; }

/* ==================================================================
   7. Buttons
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--text);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn-pri { background: var(--clay-700); color: var(--stone-050); box-shadow: var(--shadow); }
.btn-pri:hover { background: var(--clay-800); box-shadow: var(--shadow-lift); }
.btn-gho { background: transparent; color: var(--graphite-800); border-color: var(--graphite-600); }
.btn-gho:hover { background: var(--graphite-800); color: var(--stone-050); border-color: var(--graphite-800); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; }
.btn-blk { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* On graphite the border is the ghost button's only boundary, so it has to
   clear 3:1 as a UI component (WCAG 1.4.11). graphite-600 measures 1.9:1
   against graphite-950; stone-500 measures 5.5:1. */
.cta .btn-gho, .hero .btn-gho, .sec-dark .btn-gho {
  color: var(--stone-100);
  border-color: var(--stone-500);
}
.cta .btn-gho:hover, .hero .btn-gho:hover, .sec-dark .btn-gho:hover {
  background: var(--stone-100);
  color: var(--graphite-950);
  border-color: var(--stone-100);
}
.cta :focus-visible, .hero :focus-visible, .sec-dark :focus-visible, .foot :focus-visible {
  outline-color: var(--clay-400);
}

/* ==================================================================
   8. Identification bar
   ================================================================== */
.idbar {
  background: var(--graphite-950);
  color: var(--stone-300);
  font-size: var(--step--1);
}
.idbar-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-4);
  padding: 0.5rem 0;
}
.idbar-name {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--stone-050);
  font-size: var(--step--1);
}
.idbar-meta { margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); color: var(--stone-500); font-size: var(--step--2); }
.idbar-meta span { position: relative; }
.idbar-meta span + span::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-2) * -1 - 1px);
  top: 0.35em;
  bottom: 0.25em;
  width: 1px;
  background: var(--graphite-700);
}

/* ==================================================================
   9. Header
   ================================================================== */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 237, 229, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow 0.2s ease;
}
.head.is-stuck { box-shadow: 0 10px 24px -20px rgba(20, 23, 26, 0.5); }

.head-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: 0.6rem 0;
}

.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--graphite-900);
}
.brand-b {
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite-500);
}

.nav {
  order: 4;
  flex: 0 0 100%;
  display: none;
  border-top: 1px solid var(--stone-300);
  padding: var(--sp-3) 0 var(--sp-4);
  max-height: min(70vh, 34rem);
  overflow-y: auto;
}
.nav.is-open { display: block; }
.nav-list { display: flex; flex-direction: column; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-lnk {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite-700);
  text-decoration: none;
  padding: 0.8rem 0.2rem;
  border-radius: var(--radius);
}
.nav-lnk:hover { color: var(--graphite-950); }
.nav-lnk.is-on { color: var(--clay-700); }
.nav-caret { display: none; }

.nav-sub {
  list-style: none;
  margin: 0 0 var(--sp-3) 0.2rem;
  padding: 0 0 0 var(--sp-4);
  border-left: 1px solid var(--stone-300);
}
.nav-sub-lnk { display: block; padding: 0.55rem 0.7rem; text-decoration: none; border-radius: var(--radius); }
.nav-sub-lnk:hover { background: var(--stone-200); }
.nav-sub-lnk.is-on { background: var(--clay-100); }
.nav-sub-n { display: block; font-weight: 600; font-size: var(--step-0); color: var(--graphite-900); letter-spacing: -0.005em; }
.nav-sub-s { display: block; font-size: var(--step--2); color: var(--graphite-500); font-variant-numeric: tabular-nums; }

.head-act { display: flex; align-items: center; gap: var(--sp-4); flex: 0 0 auto; order: 2; margin-left: auto; }
.tel { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.tel-k { display: none; font-weight: 600; font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite-500); }
.tel-n {
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  color: var(--graphite-950);
}
.tel:hover .tel-n { color: var(--clay-700); }
.head-cta { display: none; }

.menu-btn {
  display: inline-flex;
  order: 3;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: 1px solid var(--graphite-600);
  border-radius: var(--radius);
  padding: 0.5rem 0.8rem;
  font-family: var(--text);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-800);
  cursor: pointer;
}
.menu-bars { display: grid; gap: 3px; }
.menu-bars i { display: block; width: 16px; height: 1.5px; background: currentColor; }
.nav-item-mob { display: block; }

/* ==================================================================
   10. Drawings
   ================================================================== */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.dwg { width: 100%; height: auto; color: var(--dwg-ink); overflow: visible; }
.dwg text { font-family: var(--text); font-variant-numeric: tabular-nums; }

.dwg-axis { stroke: var(--dwg-num); stroke-width: 1.6; }
.dwg-tick-mj { stroke: var(--dwg-num); stroke-width: 1.4; }
.dwg-tick-mn { stroke: var(--dwg-ink); stroke-width: 0.8; }
.dwg-num { fill: var(--dwg-num); font-size: 14px; font-weight: 600; letter-spacing: 0.03em; }
.dwg-lbl { fill: var(--dwg-num); font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }

.dwg-bed { stroke: var(--dwg-ink); stroke-width: 1.4; }
.dwg-casing { stroke: var(--dwg-num); stroke-width: 1.6; }
.dwg-leader { stroke: var(--dwg-ink); stroke-width: 0.9; stroke-dasharray: 3 3; }

.dwg-sample rect { fill: var(--dwg-face); stroke: var(--dwg-num); stroke-width: 1.2; }
.dwg-nval { fill: var(--dwg-num); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.dwg-water line { stroke: var(--dwg-mark); stroke-width: 1.4; }
.dwg-water path { fill: var(--dwg-mark); }
.dwg-water .dwg-num { fill: var(--dwg-mark); }

.dwg-kn rect { fill: var(--dwg-ground); stroke: var(--dwg-num); stroke-width: 1.4; }
.dwg-kn text { fill: var(--dwg-num); font-size: 15px; font-weight: 700; }

.dwg-tb rect { fill: none; stroke: var(--dwg-num); stroke-width: 1.2; }
.dwg-tb line { stroke: var(--dwg-num); stroke-width: 1; }
.dwg-tb-n { fill: var(--dwg-num); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.dwg-tb-s { fill: var(--dwg-ink); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }

.dwg-struct path { stroke: var(--dwg-ink); stroke-width: 1.6; }
.dwg-conc rect { fill: url(#rrConc); stroke: var(--dwg-ink); stroke-width: 1.3; }
.dwg-clear line, .dwg-clear path, .dwg-clear circle { stroke: var(--dwg-mark); stroke-width: 1.3; fill: none; }
.dwg-clear text { fill: var(--dwg-mark); font-size: 14px; font-weight: 600; }
.dwg-memb { stroke: var(--dwg-mark); stroke-width: 1.4; }
.dwg-dim line { stroke: var(--dwg-ink); stroke-width: 1; }

.dwg-bar line { stroke: var(--dwg-ink); stroke-width: 1.4; }
.dwg-brk path { stroke: var(--dwg-mark); stroke-width: 1.4; }

/* the hero log sits on graphite, so the ink is lifted to read at 1x */
.hero .dwg {
  --dwg-ink: #7d8891;
  --dwg-face: rgba(229, 223, 212, 0.09);
  --dwg-ground: var(--graphite-950);
  --dwg-num: #d4ccbd;
  --dwg-mark: var(--clay-300);
}

/* keynote legend */
.knlist { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.knlist li { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--sp-3); align-items: start; }
.knlist-n {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.knlist-t { font-size: var(--step--1); line-height: 1.55; }

/* ==================================================================
   11. Figures — the large-format plates
   ================================================================== */
.fig { margin: 0; }
.fig img {
  width: 100%;
  height: auto;
  background: var(--stone-050);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
}
.fig figcaption {
  margin-top: var(--sp-3);
  font-size: var(--step--1);
  color: var(--graphite-500);
  max-width: 68ch;
}
.sec-plate { padding-top: 0; }
.sec-dark .fig img { border-color: var(--graphite-700); background: var(--graphite-900); }
.sec-dark .fig figcaption { color: var(--stone-500); }

/* ==================================================================
   12. Hero
   ================================================================== */
.hero {
  background: var(--graphite-950);
  color: var(--stone-100);
  position: relative;
}
.hero-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
  padding: var(--sp-8) 0;
}
.hero .tlabel { color: var(--stone-500); margin-bottom: var(--sp-5); }
.hero-h1 {
  font-size: var(--step-5);
  letter-spacing: -0.028em;
  color: var(--stone-050);
  margin-bottom: var(--sp-5);
}
.hero-h1 em { font-style: italic; color: var(--clay-300); }
.hero-lead { font-size: var(--step-1); color: var(--stone-300); max-width: 46ch; margin-bottom: var(--sp-6); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.hero-act .btn { width: 100%; }
.hero-tel { display: flex; flex-direction: column; text-decoration: none; }
.hero-tel .tel-k { display: block; color: var(--stone-500); }
.hero-tel .tel-n { color: var(--stone-050); font-size: 1.375rem; }
.hero-tel:hover .tel-n { color: var(--clay-300); }
.hero-fine { margin-top: var(--sp-6); font-size: var(--step--1); color: var(--stone-500); max-width: 52ch; }
.hero-fine a { color: var(--clay-300); }

.hero-dwg { position: relative; }
.hero-dwg .knlist { color: var(--stone-500); border-top: 1px solid var(--graphite-700); padding-top: var(--sp-5); }
.hero-dwg .knlist-t { color: var(--stone-300); }
.hero-dwg .knlist-n { color: var(--stone-400); }

/* ==================================================================
   13. Sections
   ================================================================== */
.sec { padding: var(--sp-9) 0; }
.sec-stone { background: var(--stone-200); }
.sec-dark { background: var(--graphite-900); color: var(--stone-100); }
.sec-dark h2, .sec-dark h3 { color: var(--stone-050); }
.sec-dark .tlabel { color: var(--stone-500); }
.sec-dark a { color: var(--clay-300); }

.sec-hd { max-width: 62ch; margin-bottom: var(--sp-7); }
.sec-hd .tlabel { margin-bottom: var(--sp-3); }
.sec-hd h2 { margin-bottom: var(--sp-4); }
.sec-hd p { color: var(--graphite-500); font-size: var(--step-1); }
.sec-dark .sec-hd p { color: var(--stone-300); }

.prose { max-width: var(--measure); }
.prose h2 { margin: var(--sp-8) 0 var(--sp-4); }
.prose h3 { margin: var(--sp-7) 0 var(--sp-3); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 var(--sp-5); padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: var(--sp-6); margin-bottom: var(--sp-3); }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 14px;
  height: 1px;
  background: var(--stone-400);
}
.prose li::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.78em - 4px);
  width: 1px;
  height: 9px;
  background: var(--graphite-500);
}
.lead { font-size: var(--step-1); color: var(--graphite-600); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.split { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); align-items: start; }
.split-wide { grid-template-columns: 1fr; }

/* ==================================================================
   14. Schedule of work
   ================================================================== */
.schedule { border-top: 1px solid var(--stone-300); }
.schedule-hd { display: none; }
.schedule-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--stone-300);
}
.schedule-a { display: flex; gap: var(--sp-4); align-items: baseline; }
/* graphite-500, not stone-500: this index sits on a stone ground, and
   stone-500 is a muted colour reserved for graphite grounds. */
.schedule-ref {
  font-weight: 600;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--graphite-500);
  letter-spacing: 0.06em;
}
.schedule-n { font-size: var(--step-2); }
.schedule-n a { color: var(--graphite-900); text-decoration: none; }
.schedule-n a:hover { color: var(--clay-700); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.schedule-b p { color: var(--graphite-600); }
.schedule-note { margin: var(--sp-5) 0 0; font-size: var(--step--1); color: var(--graphite-500); max-width: 68ch; }

/* ==================================================================
   15. The logged sequence — the build stages
   ================================================================== */
.sequence { position: relative; list-style: none; margin: 0; padding: 0; }
.sequence::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--stone-400);
}
.seq-m {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding: var(--sp-6) 0 var(--sp-6) var(--sp-5);
  border-top: 1px solid var(--stone-300);
}
.seq-m:last-child { border-bottom: 1px solid var(--stone-300); }
/* the bed line: a stratum boundary on the log.
   It grows via scaleY from a top origin rather than by animating height, so the
   mark is composited instead of triggering layout on every scroll step. */
.seq-m::after {
  content: "";
  position: absolute;
  left: -1px;
  top: calc(var(--sp-6) + 0.4rem);
  width: 3px;
  height: 26px;
  background: var(--stone-500);
  transform: scaleY(0.54);
  transform-origin: top center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.seq-m.is-now::after { background: var(--clay-700); transform: none; }
.seq-a { display: flex; align-items: baseline; gap: var(--sp-3); }
.seq-ref {
  display: block;
  font-weight: 700;
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--stone-500);
  transition: color 0.25s ease;
}
.seq-m.is-now .seq-ref { color: var(--clay-700); }
.seq-hold {
  font-size: var(--step--2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--graphite-500);
  border: 1px solid var(--stone-400);
  border-radius: var(--radius);
  padding: 0.1rem 0.4rem;
}
.seq-n { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.seq-b { color: var(--graphite-600); max-width: 68ch; margin: 0; }
.seq-b-wrap { min-width: 0; }

.sec-dark .sequence::before { background: var(--graphite-600); }
.sec-dark .seq-m { border-top-color: var(--graphite-700); }
.sec-dark .seq-m:last-child { border-bottom-color: var(--graphite-700); }
.sec-dark .seq-m::after { background: var(--graphite-600); }
.sec-dark .seq-m.is-now::after { background: var(--clay-400); }
.sec-dark .seq-ref { color: var(--stone-500); }
.sec-dark .seq-m.is-now .seq-ref { color: var(--clay-300); }
.sec-dark .seq-b { color: var(--stone-300); }
.sec-dark .seq-hold { color: var(--stone-300); border-color: var(--graphite-600); }
.sec-dark .depth-line { background: var(--graphite-600); }
.sec-dark .depth::before, .sec-dark .depth::after { background: var(--stone-500); }
.sec-dark .depth-v { color: var(--stone-300); }

/* compact sequence: names, hold points and spans only, used on the home page so
   the full description of each stage lives on one page rather than two */
.seq-brief .seq-m { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }
.seq-brief .seq-m::after { top: calc(var(--sp-4) + 0.35rem); }
.seq-brief .seq-n { margin: 0; font-size: var(--step-1); }
.seq-brief .depth { margin-top: var(--sp-2); }
.seq-more { margin: var(--sp-6) 0 0; }

/* ==================================================================
   16. The logged column — the stratum list
   ================================================================== */
.log { border-top: 1px solid var(--stone-300); margin-top: var(--sp-5); }
.log + .prose { margin-top: var(--sp-6); }
.stratum {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--stone-300);
}
.stratum-k {
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--clay-700);
}
.stratum-n { font-size: var(--step-2); }
.stratum p { color: var(--graphite-600); margin: 0; max-width: 68ch; }

/* ==================================================================
   17. NAP title block
   ================================================================== */
.nap { border: 1px solid var(--stone-300); border-radius: var(--radius); background: var(--stone-050); }
.nap-hd {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0.5rem var(--sp-4);
  border-bottom: 1px solid var(--stone-300);
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-500);
}
.nap-name {
  margin: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-2);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--graphite-950);
}
.nap-addr { padding: 0 var(--sp-4) var(--sp-4); font-style: normal; display: grid; gap: 0.1rem; }
.nap-addr span { color: var(--graphite-700); }
.nap-rows {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  border-top: 1px solid var(--stone-300);
}
.nap-rows dt {
  padding: 0.6rem var(--sp-4);
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-500);
  border-bottom: 1px solid var(--stone-200);
}
.nap-rows dd {
  margin: 0;
  padding: 0.6rem var(--sp-4) 0.6rem 0;
  font-size: var(--step--1);
  border-bottom: 1px solid var(--stone-200);
  color: var(--graphite-800);
  overflow-wrap: anywhere;
}
.nap-rows dt:last-of-type, .nap-rows dd:last-of-type { border-bottom: 0; }
.nap-tz { color: var(--graphite-500); font-size: var(--step--2); }
.nap-lic { margin: 0; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--stone-300); font-size: var(--step--2); color: var(--graphite-600); }

/* footer variant sits on graphite */
.nap-foot { background: transparent; border-color: var(--graphite-700); }
.nap-foot .nap-hd { border-bottom-color: var(--graphite-700); color: var(--stone-500); }
.nap-foot .nap-name { color: var(--stone-050); }
.nap-foot .nap-addr span { color: var(--stone-300); }
.nap-foot .nap-rows { border-top-color: var(--graphite-700); }
.nap-foot .nap-rows dt { color: var(--stone-500); border-bottom-color: var(--graphite-800); }
.nap-foot .nap-rows dd { color: var(--stone-200); border-bottom-color: var(--graphite-800); }
.nap-foot .nap-rows dd a { color: var(--clay-300); }
.nap-foot .nap-tz { color: var(--stone-500); }
.nap-foot .nap-lic { border-top-color: var(--graphite-700); color: var(--stone-300); }

/* ==================================================================
   18. Page masthead + breadcrumbs
   ================================================================== */
.phead { background: var(--stone-200); }
.phead .wrap { padding: var(--sp-5) 0 var(--sp-8); }
.crumbs { margin-bottom: var(--sp-5); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); list-style: none; margin: 0; padding: 0; }
.crumbs li { position: relative; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.04em; }
.crumbs li + li::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-4) / -2 - 1px);
  top: 0.4em;
  bottom: 0.3em;
  width: 1px;
  background: var(--stone-400);
}
.crumbs a { color: var(--graphite-600); text-decoration: none; }
.crumbs a:hover { color: var(--clay-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--graphite-950); }

.phead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: var(--sp-6);
}
.phead-top .crumbs { margin-bottom: 0; }
.phead-h1 { font-size: var(--step-4); margin-bottom: var(--sp-4); }
.phead-lead { font-size: var(--step-1); color: var(--graphite-600); max-width: 60ch; margin: 0; }
.phead-ref { margin: 0; }
.phead-ref span {
  display: inline-block;
  border: 1px solid var(--stone-400);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-600);
  font-variant-numeric: tabular-nums;
}

/* ==================================================================
   19. FAQ — native details/summary, works with JS off
   ================================================================== */
.faq { border-top: 1px solid var(--stone-300); max-width: 88ch; }
.faq-i { border-bottom: 1px solid var(--stone-300); }
.faq-i summary {
  display: grid;
  grid-template-columns: 1fr 1.5rem;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5) 0;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.008em;
  color: var(--graphite-900);
  list-style: none;
}
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary:hover { color: var(--clay-700); }
.faq-sign { position: relative; width: 1.5rem; height: 1.5rem; justify-self: end; }
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  background: var(--graphite-600);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-sign::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; }
.faq-sign::after { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -0.75px; }
.faq-i[open] .faq-sign::after { transform: scaleY(0); opacity: 0; }
.faq-i[open] .faq-sign::before { background: var(--clay-700); }
.faq-a { padding: 0 0 var(--sp-6); max-width: var(--measure); }
.faq-a p { color: var(--graphite-600); margin: 0; }

/* ==================================================================
   20. Areas
   ================================================================== */
.areas { border-top: 1px solid var(--stone-300); }
.area-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); padding: var(--sp-5) 0; border-bottom: 1px solid var(--stone-300); }
.area-n { font-size: var(--step-2); }
.area-k { display: block; font-weight: 600; font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite-500); }
.area-row p { color: var(--graphite-600); margin: 0; max-width: 68ch; }

/* ==================================================================
   21. Forms
   ================================================================== */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field > label {
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite-700);
}
.field-req { color: var(--clay-700); }
.field-hint { font-size: var(--step--2); color: var(--graphite-500); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step-0);
  color: var(--graphite-900);
  background: var(--stone-050);
  border: 1px solid var(--graphite-500);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--graphite-500); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--clay-700);
  outline-offset: 1px;
  border-color: var(--clay-700);
}
/* :user-invalid only — it fires after the visitor has actually interacted.
   The older `:invalid:not(:placeholder-shown)` idiom is wrong for these fields:
   they carry no placeholder attribute, so :placeholder-shown never matches, the
   negation is always true, and every required field would render in the error
   colour on first paint. Browsers without :user-invalid simply show no custom
   error colour and fall back to their native validation message. */
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid {
  border-color: #8c2f2f;
  outline-color: #8c2f2f;
}
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--sp-3); align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--clay-700); }
.check label { font-size: var(--step--1); color: var(--graphite-600); }
.form-note { font-size: var(--step--2); color: var(--graphite-500); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==================================================================
   22. Closing action band
   ================================================================== */
.cta { background: var(--graphite-950); color: var(--stone-100); }
.cta-in { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: center; padding: var(--sp-8) 0; }
.cta-h { font-size: var(--step-4); color: var(--stone-050); margin-bottom: var(--sp-4); }
.cta-in p { color: var(--stone-300); max-width: 56ch; }
.cta-id { font-size: var(--step--1); color: var(--stone-500); margin: var(--sp-4) 0 0; }
.cta-act { display: grid; gap: var(--sp-3); justify-items: stretch; }
.cta-hrs { font-size: var(--step--2); color: var(--stone-500); margin: 0; text-align: center; }

/* ==================================================================
   23. Footer
   ================================================================== */
.foot { background: var(--graphite-950); color: var(--stone-300); }
.foot-in { padding: var(--sp-8) 0 var(--sp-6); display: grid; gap: var(--sp-7); }
.foot-id { display: grid; gap: var(--sp-5); }
.brand-foot .brand-a { color: var(--stone-050); }
.brand-foot .brand-b { color: var(--stone-500); }
.foot-nav { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.foot-h {
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: var(--sp-4);
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.foot-col a { color: var(--stone-200); text-decoration: none; font-size: var(--step--1); }
.foot-col a:hover { color: var(--stone-050); text-decoration: underline; }
.foot-areas li { color: var(--stone-300); font-size: var(--step--1); }
.foot-btm { border-top: 1px solid var(--graphite-800); padding-top: var(--sp-5); display: grid; gap: var(--sp-2); }
.foot-legal { margin: 0; font-size: var(--step--1); color: var(--stone-200); overflow-wrap: anywhere; }
.foot-legal a { color: var(--stone-200); }
.foot-note { margin: 0; font-size: var(--step--2); color: var(--stone-500); }
.foot abbr { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; }

/* ==================================================================
   24. Placeholder region — never filled with invented material
   ================================================================== */
.pending {
  border: 1px dashed var(--stone-400);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(181, 170, 151, 0.14) 9px 10px);
}
.pending-k {
  display: inline-block;
  font-weight: 600;
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-600);
  border: 1px solid var(--stone-400);
  border-radius: var(--radius);
  padding: 0.2rem 0.5rem;
  margin-bottom: var(--sp-4);
  background: var(--stone-050);
}
.pending p { color: var(--graphite-600); max-width: 64ch; }
.pending-gap { margin-top: var(--sp-6); }
.pending code {
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.9em;
  letter-spacing: 0.02em;
  background: var(--stone-050);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius);
  padding: 0.05em 0.35em;
}

/* ==================================================================
   25. Thank-you / 404 / deploy
   ================================================================== */
.plain { padding: var(--sp-9) 0; }
.plain-in { max-width: 60ch; }
.plain h1 { font-size: var(--step-4); margin-bottom: var(--sp-5); }
.plain-act { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* ==================================================================
   26. Content components inside sheets and prose
   ================================================================== */
.doclist { margin: 0; display: grid; }
.doclist dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.008em;
  color: var(--graphite-900);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--stone-300);
}
.doclist dt:first-of-type { padding-top: var(--sp-3); border-top: 0; }
.doclist dd { margin: var(--sp-1) 0 var(--sp-4); font-size: var(--step--1); color: var(--graphite-600); }
.doclist dd:last-of-type { margin-bottom: 0; }

.scopelist { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.scopelist li { position: relative; padding-left: var(--sp-6); font-size: var(--step--1); color: var(--graphite-700); line-height: 1.6; }
.scopelist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 14px;
  height: 1px;
  background: var(--stone-400);
}
.scopelist li::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.68em - 4px);
  width: 1px;
  height: 9px;
  background: var(--clay-700);
}

.nextlist { list-style: none; counter-reset: nx; margin: var(--sp-4) 0; padding: 0; display: grid; gap: var(--sp-3); }
.nextlist li { counter-increment: nx; position: relative; padding-left: 2.25rem; font-size: var(--step--1); color: var(--graphite-700); }
.nextlist li::before {
  content: counter(nx);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--stone-400);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--graphite-600);
}

.sheet-note { margin: var(--sp-4) 0 0; font-size: var(--step--2); color: var(--graphite-500); line-height: 1.55; }
.sheet .dwg { margin: var(--sp-4) 0; }
.sheet .tlabel { margin-bottom: var(--sp-4); }

.about-side, .contact-side { display: grid; gap: var(--sp-5); align-content: start; }
.ppl-n { margin: 0; font-family: var(--display); font-weight: 600; font-size: var(--step-2); letter-spacing: -0.015em; color: var(--graphite-950); }
.ppl-r { margin: var(--sp-1) 0 0; font-size: var(--step--1); color: var(--graphite-500); }

.notfound-nav { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-3); }
.notfound-nav li { font-size: var(--step--1); color: var(--graphite-600); }
.notfound-nav a { font-weight: 600; font-size: var(--step-0); }

.faq-page { max-width: 92ch; }

/* search */
.searchform { max-width: 34rem; align-items: end; }
.searchform .field { min-width: 0; }
.searchhint { max-width: var(--measure); margin-top: var(--sp-6); }
.searchempty { max-width: var(--measure); margin-top: var(--sp-7); }
.searchempty h2 { font-size: var(--step-2); margin-bottom: var(--sp-4); }
.searchcount { margin: var(--sp-7) 0 var(--sp-4); }
.searchlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone-300); max-width: 88ch; }
.searchlist li { padding: var(--sp-5) 0; border-bottom: 1px solid var(--stone-300); }
.searchlist h2 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.searchlist h2 a { color: var(--clay-700); }
.searchlist p { margin: 0 0 var(--sp-2); color: var(--graphite-600); font-size: var(--step--1); max-width: 72ch; }
.searchurl { font-weight: 600; font-size: var(--step--2); letter-spacing: 0.02em; color: var(--graphite-500); overflow-wrap: anywhere; }

/* ==================================================================
   27. Motion — one authored moment, then a single reveal
   ================================================================== */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

/* the authored moment: the hero log drills itself once */
.js .hero-dwg .dwg-axis-g line,
.js .hero-dwg .dwg-log .dwg-bed {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: rrDrill 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.js .hero-dwg .dwg-log .dwg-bed { animation-delay: 0.1s; }
@keyframes rrDrill { to { stroke-dashoffset: 0; } }

.js .hero-dwg .dwg-water,
.js .hero-dwg .dwg-sample,
.js .hero-dwg .dwg-kn,
.js .hero-dwg .dwg-tb {
  animation: rrFade 0.5s ease 0.45s both;
}
@keyframes rrFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-dwg .dwg-axis-g line,
  .js .hero-dwg .dwg-log .dwg-bed { stroke-dasharray: none; stroke-dashoffset: 0; }
  .head { transition: none; }
}

/* ==================================================================
   28. Responsive — mobile-first, min-width only
   ================================================================== */
@media (min-width: 34em) {
  .hero-act .btn { width: auto; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-row { grid-template-columns: minmax(0, 1fr) 11rem; }
  .schedule-a { grid-column: 1; }
  .schedule-b { grid-column: 1; }
  .schedule-c { grid-column: 2; grid-row: 1 / 3; padding-top: 0.35rem; }
  .area-row { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--sp-5); }
  .stratum { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--sp-5); }
  .searchform { grid-template-columns: minmax(0, 1fr) auto; }
  .tel-k { display: block; }
  .tel-n { font-size: 1.0625rem; }
  .nap-rows { grid-template-columns: 5.5rem 1fr; }
  .nap-hd, .nap-name, .nap-addr, .nap-rows dt, .nap-lic { padding-left: var(--sp-5); padding-right: var(--sp-5); }
  .nap-rows dd { padding-right: var(--sp-5); }
  .sheet { padding: var(--sp-6); }
}

@media (min-width: 48em) {
  :root { --sp-8: 3rem; --sp-9: 4.5rem; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
  .foot-id { max-width: 30rem; }
  .cta-in { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); }
  .cta-act { min-width: 17rem; }
  .seq-m { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 var(--sp-7); padding-left: 0; }
  .sequence::before { left: 7.5rem; }
  .seq-m::after { left: calc(7.5rem - 1px); }
  .seq-a { flex-direction: column; align-items: flex-end; text-align: right; padding-right: var(--sp-4); gap: var(--sp-2); }
  .seq-ref { font-size: 1.375rem; }
  .seq-brief .seq-b-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-3) var(--sp-6);
  }
  .seq-brief .depth { flex: 0 0 11rem; margin-top: 0; }
  .phead-h1 { max-width: 34ch; }
}

/* The horizontal navigation carries seven items, one of which is the two-word
   "Square Dashboard". It only takes over once there is genuinely room for all of
   them beside the wordmark and the phone number — 64em, not 57em — and the
   header's call-to-action button waits until 86em, so the middle widths spend
   their space on navigation rather than on a button that is repeated at the foot
   of every page. Below 64em the disclosure menu handles it. */
@media (min-width: 64em) {
  :root { --sp-9: 6rem; --sp-10: 8rem; }
  .head-in { flex-wrap: nowrap; gap: var(--sp-4); padding: 0.7rem 0; }
  .menu-btn { display: none; }
  .head-act { order: 0; }
  .nav {
    order: 0;
    flex: 0 1 auto;
    display: block;
    margin-left: auto;
    border-top: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav-list { flex-direction: row; align-items: center; gap: 0; }
  .nav-lnk { font-size: var(--step--1); letter-spacing: 0.035em; padding: 0.6rem 0.55rem; white-space: nowrap; }
  .nav-lnk.is-on { box-shadow: inset 0 -2px 0 var(--clay-700); }
  .nav-lnk:hover { background: var(--stone-200); }
  .nav-caret { display: block; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-1px); }
  .nav-item-mob { display: none; }
  .nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 23rem;
    margin: 0;
    padding: var(--sp-2);
    background: var(--stone-050);
    border: 1px solid var(--stone-300);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
  }
  .nav-item-group:hover .nav-sub,
  .nav-item-group:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  /* Asymmetric by default — the brief asks for asymmetric grids, so no
     symmetric pair appears in the two-column compositions. */
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: var(--sp-8); }
  .split-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-8); }
  .hero-in { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--sp-8); padding: var(--sp-9) 0 var(--sp-8); }
  .schedule-hd {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) 11rem;
    gap: var(--sp-5);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--stone-300);
    font-weight: 600;
    font-size: var(--step--2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--graphite-500);
  }
  .schedule-row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) 11rem;
    gap: var(--sp-5);
    padding: var(--sp-6) 0;
  }
  .schedule-a { grid-column: auto; }
  .schedule-b { grid-column: auto; }
  .schedule-c { grid-column: auto; grid-row: auto; }
  .area-row { grid-template-columns: 12rem minmax(0, 1fr); }
}

@media (min-width: 64em) {
  .foot-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-5); }
}

@media (min-width: 86em) {
  .head-cta { display: inline-flex; }
  .head-in { gap: var(--sp-5); }
  .nav-lnk { letter-spacing: 0.05em; padding: 0.6rem 0.7rem; }
}

@media (min-width: 100em) {
  :root { --sp-9: 7.5rem; }
  .wrap { width: min(1320px, 88vw); }
  .hero-in { padding: var(--sp-10) 0 var(--sp-9); }
}

@media (max-width: 23.5em) {
  .brand-b { display: none; }
  .brand-mark { width: 34px; height: 34px; }
}

@media print {
  .idbar, .head, .cta, .skip, .scale { display: none; }
  body { background: #fff; color: #000; }
  .sheet, .nap { box-shadow: none; }
  a { text-decoration: underline; }
}
