/* ══════════════════════════════════════════════════════════
   RIDGELINE ROOFING — concept site for Apex Quantum
   Industrial confidence. Slate, bitumen, concrete, hi-vis amber.
   Display type: Arial Black. Body: system-ui. Drawings: Courier New.
   No external resources of any kind.
   ══════════════════════════════════════════════════════════ */

:root {
  --bitumen:    #15171A;
  --bitumen-2:  #0B0C0D;
  --slate-800:  #1E2227;
  --slate-700:  #262B30;
  --slate-600:  #343B42;
  --slate-500:  #4A535D;
  --slate-300:  #9AA1A8;
  --concrete:   #E6E3DD;
  --concrete-2: #D5D1C8;
  --sheet:      #F2F0EB;
  --slate-850:  #181B1F;
  --rule-light: #B9B4AA;
  --draw-grey:  #8D949C;
  --amber:      #FFB400;
  --amber-2:    #FFC63D;
  --ink:        #16181B;
  --ink-mute:   #4A5056;
  --on-dark:    #EDEAE4;
  --on-dark-mute: #A8AFB6;

  --display: "Arial Black", "Arial Bold", "Franklin Gothic Heavy",
             "Franklin Gothic Medium", Impact, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --mono: "Courier New", ui-monospace, "Cascadia Mono", monospace;

  /* Height of the pinned banner + storm strip. JS measures it exactly;
     these are the fallbacks, one per shape the strip takes. */
  --topstack-h: 94px;

  --shell: 78rem;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  /* two slab heights, so the page has a loud and a quiet register
     instead of one metronome tick all the way down */
  --slab: clamp(3rem, 5.4vw, 5.25rem);
  --slab-loud: clamp(3.75rem, 7.6vw, 7rem);

  /* The shear line is the firm's own pitch: a rise of 10.6 over a run of
     17 is 1 in 1.6, which is the 32 degrees the drawing is dimensioned to.
     If this tile and the drawing disagree, the drawing is right. */
  --zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='16' viewBox='0 0 34 16'%3E%3Cpath d='M0 13.4 17 2.8 34 13.4' fill='none' stroke='%23FFB400' stroke-width='3.2'/%3E%3C/svg%3E");
  --zig-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='16' viewBox='0 0 34 16'%3E%3Cpath d='M0 13.4 17 2.8 34 13.4' fill='none' stroke='%2315171A' stroke-width='3.2'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip, not hidden: hidden would make the root a scroll container and
     break sticky measurement and full-page capture on a tall page. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bitumen);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
}

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

h1, h2, h3, .foot__tel, .btn, .price__fig, .stats dd, .hero__facts dd {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 0.96;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
/* Amber on the sheet slab is 1.17:1, which fails 1.4.11 and is exactly
   where the only controls in the drawing section live. Ring it in ink
   and keep the amber as a halo outside the ink, so it still looks like
   us and a keyboard user can actually see where they are. */
.slab--sheet :focus-visible,
.slab--light :focus-visible,
.alert :focus-visible {
  outline-color: var(--ink);
  box-shadow: 0 0 0 9px var(--amber);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section[id] { scroll-margin-top: calc(var(--topstack-h) + 1.25rem); }

/* ── pinned top: honesty banner + storm strip ─────────────── */
@media (min-width: 37.5rem) { :root { --topstack-h: 78px; } }
@media (min-width: 58rem)   { :root { --topstack-h: 85px; } }

body { padding-top: var(--topstack-h); }

.topstack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

.concept {
  margin: 0;
  background: var(--bitumen-2);
  border-bottom: 1px solid var(--slate-600);
  color: var(--on-dark);
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  padding: 0.45rem var(--pad);
  text-align: center;
}
.concept strong { color: var(--amber); font-weight: 700; }
.concept a { color: var(--on-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.concept a:hover { color: var(--amber); }

.alert {
  display: flex;
  align-items: stretch;
  background: var(--amber);
  border-bottom: 4px solid var(--bitumen);
  color: var(--bitumen);
}
.alert__hazard {
  flex: 0 0 clamp(26px, 6vw, 92px);
  background: repeating-linear-gradient(135deg,
    var(--bitumen) 0 9px, var(--amber) 9px 20px);
}
.alert__body {
  flex: 1 1 auto;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.86rem;
  text-align: center;
}
.alert__lead {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
}
.alert__sep { opacity: 0.5; }
.alert__note { font-weight: 500; }
.alert__tel {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 3px solid var(--bitumen);
  white-space: nowrap;
  padding: 0.25rem 0.4rem;
}
.alert__tel:hover { background: var(--bitumen); color: var(--amber); }
.alert a:focus-visible { outline-color: var(--bitumen); }

/* On a phone the strip is permanently on screen, so it earns its height
   by carrying the two things that matter and nothing else. */
@media (max-width: 58rem) {
  .alert__note, .alert__sep { display: none; }
  .alert__body { padding-block: 0; gap: 0.1rem 0.5rem; align-items: center; }
  .alert__hazard { flex-basis: 20px; }
  .concept { font-size: 0.73rem; padding-block: 0.4rem; }
  /* the emergency action, on the one device people use in an emergency */
  .alert__tel { min-height: 44px; padding-inline: 0.6rem; }
}

/* ── header ──────────────────────────────────────────────── */
.head {
  background: var(--bitumen);
  border-bottom: 1px solid var(--slate-600);
}
.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand { display: block; line-height: 0; }
.brand__mark { width: clamp(176px, 26vw, 268px); height: auto; }

.navtoggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 2px solid var(--slate-500);
  color: var(--on-dark);
  font: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.68rem 0.8rem;
  cursor: pointer;
}
.navtoggle:hover { border-color: var(--amber); color: var(--amber); }
.navtoggle__bars {
  width: 18px; height: 12px;
  background:
    linear-gradient(var(--amber) 0 0) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--amber) 0 0) 0 5px / 100% 2px no-repeat,
    linear-gradient(var(--amber) 0 0) 0 10px / 100% 2px no-repeat;
}

.nav { display: none; }
.nav.is-open { display: block; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: block;
  text-decoration: none;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-600);
  color: var(--on-dark);
}
.nav__list a:hover { color: var(--amber); }
.nav__list a.is-here { color: var(--amber); }
.nav__cta {
  color: var(--bitumen) !important;
  background: var(--amber);
  text-align: center;
  margin-top: 0.75rem;
  border-bottom: 0 !important;
}
.nav__cta:hover { background: var(--amber-2); }

@media (min-width: 62rem) {
  .navtoggle { display: none; }
  .nav { display: block !important; }
  .head__in { padding-block: 1.05rem; }
  .nav__list { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.6rem); }
  .nav__list a { padding: 0.35rem 0; border-bottom: 2px solid transparent; }
  .nav__list a.is-here { border-bottom-color: var(--amber); }
  .nav__cta { margin-top: 0; padding: 0.6rem 1rem !important; }
}
@media (max-width: 61.99rem) {
  .head__in { flex-wrap: wrap; }
  .nav { flex: 1 0 100%; }
  .nav.is-open { padding-bottom: 0.75rem; }
}

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.5rem;
  border: 3px solid var(--amber);
  transition: background-color 0.15s linear, color 0.15s linear;
}
.btn--amber { background: var(--amber); color: var(--bitumen); }
.btn--amber:hover { background: var(--amber-2); }
.btn--ghost { background: none; color: var(--on-dark); border-color: var(--slate-500); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--block {
  width: 100%;
  cursor: pointer;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1rem;
}

/* ── shared section furniture ────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber);
  margin: 0 0 1rem;
}
.slab--light .eyebrow, .slab--sheet .eyebrow { color: var(--ink-mute); }

.slab { padding-block: var(--slab); }
.slab--loud { padding-block: var(--slab-loud); }
.slab--dark { background: var(--bitumen); }
.slab--mid {
  background: var(--slate-700);
  border-top: 5px solid var(--amber);
}
.slab--light { background: var(--concrete); color: var(--ink); }
.slab--sheet { background: var(--concrete-2); color: var(--ink); }

.slab h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 5.2vw, 3.1rem);
  max-width: 24ch;
}
.intro {
  max-width: 56ch;
  margin: 0 0 1.8rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: var(--on-dark-mute);
}
.intro--light { color: var(--ink-mute); }

.roofrule {
  height: 16px;
  background-image: var(--zig);
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 34px 16px;
}
.roofrule--ink { background-image: var(--zig-ink); }
.roofrule--tall { height: 24px; background-size: 51px 24px; }
.roofrule--dark-bg  { background-color: var(--bitumen); }
.roofrule--sheet-bg { background-color: var(--concrete-2); }
.roofrule--light-bg { background-color: var(--concrete); }
.roofrule--mid-bg   { background-color: var(--slate-700); }

.tick { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.tick li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--on-dark-mute);
}
.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 11px; height: 11px;
  background: var(--amber);
}
.tick--dark li { color: var(--ink-mute); }

/* ── hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(130% 90% at 82% 0%, rgba(74, 83, 93, 0.5) 0%, rgba(21, 23, 26, 0) 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, rgba(0, 0, 0, 0) 1px 11px),
    var(--bitumen);
  padding-block: clamp(2.25rem, 5vw, 4rem) 0;
}
.hero__in {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-bottom: clamp(2.25rem, 5vw, 4rem);
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.95rem, 5.4vw, 4.15rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.lede {
  max-width: 48ch;
  margin: 0 0 1.6rem;
  font-size: clamp(1.03rem, 0.96rem + 0.5vw, 1.3rem);
  color: var(--on-dark-mute);
  border-left: 4px solid var(--amber);
  padding-left: 1.1rem;
}
.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 2rem;
}
@media (max-width: 34rem) {
  .hero__btns { display: grid; }
  .hero__btns .btn { text-align: center; }
  .eyebrow { letter-spacing: 0.14em; font-size: 0.74rem; }
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 clamp(1rem, 3vw, 2.4rem);
  margin: 0;
  border-top: 3px solid var(--slate-600);
  padding-top: 1.1rem;
}
.hero__facts > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__facts dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-300);
  margin-bottom: 0.3rem;
}
.hero__facts dd {
  margin: 0;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  color: var(--amber);
}
.hero__art {
  min-width: 0;
  margin: 0;
  background: var(--slate-850);
  border: 2px solid var(--slate-600);
  border-top: 6px solid var(--amber);
}
.terrace { display: block; width: 100%; height: auto; }
.scaff__sign {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.06em;
}
.van__sign {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.hero__cap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  border-top: 2px solid var(--slate-600);
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-dark-mute);
  line-height: 1.5;
}
.hero__cap span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  background: var(--amber);
  transform: translateY(-1px);
}

/* Forced line breaks in the big headings, but only once the column is
   wide enough to take the longest line. Declared before the media
   queries, or the unconditional rule would win at every width. */
.lgbr, .ctbr { display: none; }

@media (min-width: 60rem) {
  .hero__in { grid-template-columns: 1.1fr 0.9fr; }
  .lgbr { display: inline; }
}
@media (min-width: 78rem) {
  .ctbr { display: inline; }
}

/* ── services ────────────────────────────────────────────── */
.svcs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  background: var(--slate-600);
  border: 2px solid var(--slate-600);
}
.svc {
  position: relative;
  background: var(--slate-800);
  padding: clamp(1.4rem, 2.2vw, 1.9rem);
  min-width: 0;
}
.svc__n {
  position: absolute;
  top: 0; right: 0;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: #fff;
  opacity: 0.055;
  padding: 0.2rem 0.45rem;
}
.svc__i {
  width: 54px;
  height: 54px;
  color: var(--draw-grey);
  display: block;
  margin-bottom: 0.85rem;
  /* flat two-tone shapes at the weight of the section drawing, not
     hairline pictograms on a page of slabs */
  border-bottom: 3px solid var(--slate-600);
  padding-bottom: 0.6rem;
  box-sizing: content-box;
}
.svc h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.1rem, 1.9vw, 1.42rem);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.svc p { margin: 0; color: var(--on-dark-mute); font-size: 0.97rem; }

@media (min-width: 40rem) { .svcs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .svcs { grid-template-columns: repeat(6, 1fr); }
  .svc { grid-column: span 2; }
  .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
  /* a two-line title in one card must not drop its paragraph below the
     paragraphs either side of it. 2lh tracks the clamped font-size
     instead of hardcoding its maximum. */
  .svc:nth-child(-n+3) h3 { min-height: calc(2 * 1.42rem * 0.96); }
  .svc:nth-child(-n+3) h3 { min-height: 2lh; }
}

/* ── the drawing ─────────────────────────────────────────── */
.detailwrap {
  position: relative;
  max-width: 50rem;
  margin-inline: auto;
  background: var(--sheet);
  border: 3px solid var(--bitumen);
  box-shadow: 10px 10px 0 rgba(21, 23, 26, 0.16);
  padding: clamp(0.4rem, 1vw, 0.9rem);
  margin-bottom: clamp(1.8rem, 3.2vw, 2.5rem);
}
/* On a phone the drawing is unreadable at 100% of a 360px column, so it
   keeps its own width and the frame scrolls under it. The container is
   focusable, which is what a keyboard user needs to scroll it. */
.detailscroll { overflow-x: auto; overscroll-behavior-x: contain; }
/* amber on the sheet is 1.57:1 here, so the ring is ink first */
.detailscroll:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 6px var(--amber);
}
.detail { display: block; width: 100%; height: auto; }
/* Below 48rem the sheet keeps its own width and the frame scrolls under
   it, but it must still fill the frame: a 620px drawing in a 678px frame
   left 58px of blank sheet with nothing to scroll to. */
@media (max-width: 47.99rem) {
  .detail { width: 100%; min-width: 620px; max-width: none; }
}
/* something at the clipped edge, so the drawing says it continues */
.detailwrap::before, .detailwrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s linear;
}
.detailwrap::before {
  left: 0;
  background: linear-gradient(to right, rgba(21, 23, 26, 0.32), rgba(21, 23, 26, 0));
}
.detailwrap::after {
  right: 0;
  background: linear-gradient(to left, rgba(21, 23, 26, 0.32), rgba(21, 23, 26, 0));
}
.detailwrap.can-back::before, .detailwrap.can-on::after { opacity: 1; }

.detail__bar {
  max-width: 50rem;
  margin: -0.7rem auto clamp(1.8rem, 3.2vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.detail__hint { display: none; }
@media (max-width: 47.99rem) { .detail__hint { display: inline; } }
.detail__now {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}
.detail__now::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--amber);
  border: 1px solid var(--bitumen);
  flex: 0 0 auto;
}
.detail text { font-family: var(--mono); }
.badges circle { fill: var(--amber); stroke: var(--bitumen); stroke-width: 2; }
.badges text {
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
  fill: var(--bitumen);
  letter-spacing: -0.5px;
}
.anno text { font-size: 13px; fill: #2A2F35; letter-spacing: 0.08em; }
.anno__h { font-weight: 700; letter-spacing: 0.22em !important; }
.anno__view { font-size: 20px !important; font-weight: 700; fill: var(--bitumen) !important; }
.block text { font-size: 12px; fill: #CFCBC2; letter-spacing: 0.05em; }
.block__big { font-size: 15px !important; fill: var(--amber) !important; letter-spacing: 0.1em !important; }
.lay { transition: opacity 0.18s linear, transform 0.22s ease-out; }
.detail.is-picked .lay { opacity: 0.3; }
.detail.is-picked .lay.is-on { opacity: 1; }
.detail.is-picked .leads { opacity: 0.3; }
/* the numbers have to stay readable while they are dimmed */
.detail.is-picked .badges .lay { opacity: 0.45; }
.detail.is-picked .badges .lay.is-on circle { stroke-width: 3.4; }

/* The amber bracket a drafter would ring a detail with. Hidden until a
   layer is picked, and drawn behind the layer's own geometry, so a
   3-unit membrane line reads as loudly as a course of tiles. */
.hl { opacity: 0; transition: opacity 0.18s linear; }
.hl rect { fill: none; stroke: var(--amber); stroke-width: 8; }
.hl rect + rect { stroke: var(--bitumen); stroke-width: 1.3; }
.detail.is-picked .lay.is-on .hl { opacity: 1; }
/* and the two layers you cannot see at all unless they move: an
   exploded view, perpendicular to the slope */
.detail.is-picked .lay--pull3.is-on { transform: translateY(-46px); }
.detail.is-picked .lay--pull4.is-on { transform: translateY(-54px); }

.legend__h {
  margin: 0 0 1.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
}
.legend {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1.35rem clamp(1.2rem, 2.4vw, 2.2rem);
}
.legend > li { min-width: 0; }
.legend p {
  margin: 0.6rem 0 0;
  padding-inline: 0.5rem;
  font-size: 0.93rem;
  color: var(--ink-mute);
}
.legend__btn {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  width: 100%;
  /* one- and two-line titles end on the same rule, so the eight
     descriptions start on one line across the row */
  min-height: calc(2.2em + 0.5rem);
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 3px solid var(--rule-light);
  /* on the base, not on the pressed state: adding it on press reflowed
     the item you had just clicked and shoved it out of line */
  padding: 0 0.5rem 0.5rem;
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
/* a plus that becomes a minus: the control says what it will do */
.legend__btn::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 17px;
  height: 17px;
  align-self: center;
  border: 2px solid var(--bitumen);
  background:
    linear-gradient(var(--bitumen), var(--bitumen)) center / 9px 2.5px no-repeat,
    linear-gradient(var(--bitumen), var(--bitumen)) center / 2.5px 9px no-repeat,
    var(--amber);
}
.legend__btn:hover { border-bottom-color: var(--ink); }
.legend__btn:hover::after { background-color: var(--amber-2); }
.legend__btn[aria-pressed="true"]::after {
  background:
    linear-gradient(var(--amber), var(--amber)) center / 9px 2.5px no-repeat,
    var(--bitumen);
}
.legend__btn[aria-pressed="true"] {
  border-bottom-color: var(--ink);
  background: var(--amber);
}
.legend__n {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #55504A;
  letter-spacing: 0;
}
.legend__btn[aria-pressed="true"] .legend__n { color: var(--bitumen); }
.legend__note {
  max-width: 62ch;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 3px solid var(--rule-light);
  color: var(--ink-mute);
  font-size: 0.97rem;
}
@media (min-width: 40rem) { .legend { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .legend { grid-template-columns: repeat(4, 1fr); } }

/* ── prices ──────────────────────────────────────────────── */
.prices {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.price {
  background: var(--bitumen);
  border: 2px solid var(--slate-600);
  border-top: 5px solid var(--amber);
  padding: clamp(1.2rem, 2vw, 1.6rem);
  min-width: 0;
}
.price h3 {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  color: var(--on-dark);
  /* breaks GARAGE OR EXTENSION / FLAT ROOF instead of orphaning ROOF */
  text-wrap: balance;
}
/* two columns of three: a title that runs to two lines must not drop
   its figure below the figures either side of it */
@media (min-width: 42rem) {
  .price h3 { min-height: calc(2 * 1.02rem * 0.96); }
  .price h3 { min-height: 2lh; }
}
.price__fig {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 3.1vw, 1.75rem);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.price__n { margin: 0; font-size: 0.92rem; color: var(--on-dark-mute); }
/* not a price, so not a price card: no fill, drawn in dashes */
.price--note {
  background: none;
  border: 2px dashed var(--slate-500);
}
.price--note h3 { color: var(--slate-300); }
.price--note .tick { margin-top: 0; }
.price--note .tick li { font-size: 0.92rem; }
.smallprint {
  max-width: 60ch;
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-300);
  border-top: 2px solid var(--slate-600);
  padding-top: 1.2rem;
}
@media (min-width: 42rem) { .prices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66rem) { .prices { grid-template-columns: repeat(3, 1fr); } }

/* ── job ledger ──────────────────────────────────────────── */
.ledger {
  list-style: none;
  margin: 0 0 clamp(2.25rem, 4vw, 3rem);
  padding: 0;
  counter-reset: led;
  border-top: 2px solid var(--slate-600);
}
.led {
  counter-increment: led;
  position: relative;
  display: grid;
  gap: 0.35rem 1.1rem;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  padding: 1.15rem 0 1.15rem 2.6rem;
  border-bottom: 2px solid var(--slate-600);
}
/* Nobody photographs a roof for us, so the section every visitor
   expects pictures in gets drawings instead, in the same drafting
   language as SECTION A-A. */
.led__dwg {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: var(--sheet);
  border: 2px solid var(--slate-500);
  line-height: 0;
}
.led__dwg svg { display: block; width: 100%; height: auto; }
.dwg__t {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: #2A2F35;
}
.led__where, .led__what { grid-column: 2; }
.led__found { grid-column: 1 / -1; }
.led::before {
  content: counter(led, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.55rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.led__where {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate-300);
}
.led__what { margin: 0; font-size: clamp(1.08rem, 2.2vw, 1.3rem); text-wrap: balance; }
.led__found { margin: 0; color: var(--on-dark-mute); font-size: 0.97rem; }
@media (min-width: 34rem) {
  .led { grid-template-columns: 136px minmax(0, 1fr); gap: 0.35rem 1.8rem; padding-left: 3.2rem; }
}
@media (min-width: 52rem) {
  .led { grid-template-columns: 136px minmax(0, 1fr) 1.2fr; gap: 0.35rem 2rem; }
  .led__where { grid-column: 2; }
  .led__what { grid-column: 2; }
  .led__found { grid-column: 3; grid-row: 1 / span 2; }
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--slate-600);
  border: 2px solid var(--slate-600);
  margin: 0 0 clamp(2.25rem, 4vw, 3rem);
}
.stats div { background: var(--slate-800); padding: clamp(1.1rem, 2.2vw, 1.6rem); }
.stats dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-300);
  margin-bottom: 0.5rem;
}
.stats dd { margin: 0; font-size: clamp(1.7rem, 4.6vw, 2.6rem); color: var(--amber); }
@media (min-width: 52rem) { .stats { grid-template-columns: repeat(4, 1fr); } }

.quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.quote {
  background: var(--slate-800);
  border-left: 5px solid var(--amber);
  padding: clamp(1.2rem, 2vw, 1.6rem);
  min-width: 0;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.55;
}
.quote__by {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
}
@media (min-width: 56rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* ── the firm ────────────────────────────────────────────── */
.firm {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.firm__copy p { max-width: 54ch; color: var(--ink-mute); }
.firm__copy p:first-of-type { font-size: 1.1rem; color: var(--ink); }
.firm__card {
  background: var(--bitumen);
  color: var(--on-dark);
  border-top: 6px solid var(--amber);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
}
.firm__card h3 { margin: 0 0 1.4rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  position: relative;
  padding: 0 0 0.9rem 2.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--slate-600);
  font-size: 0.95rem;
  color: var(--on-dark-mute);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.steps strong { color: var(--on-dark); display: block; }
.steps__n {
  position: absolute;
  left: 0; top: 0;
  width: 1.85rem; height: 1.85rem;
  background: var(--amber);
  color: var(--bitumen);
  font-family: var(--display);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}
.roster {
  grid-column: 1 / -1;
  border-top: 3px solid var(--bitumen);
  padding-top: clamp(1.2rem, 2.4vw, 1.8rem);
}
.roster h3 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.roster__list {
  margin: 0;
  display: grid;
  gap: 0;
}
.roster__list > div {
  padding: 0.75rem 0;
  border-top: 1px solid #BCB7AD;
}
.roster__list > div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 42rem) {
  .roster__list { grid-template-columns: repeat(2, 1fr); gap: 0 clamp(1.2rem, 2.4vw, 2.2rem); }
  .roster__list > div:nth-child(2) { border-top: 0; padding-top: 0; }
}
@media (min-width: 68rem) {
  .roster__list { grid-template-columns: repeat(5, 1fr); }
  .roster__list > div,
  .roster__list > div:first-child,
  .roster__list > div:nth-child(2) {
    border-top: 3px solid var(--bitumen);
    padding-top: 0.75rem;
  }
}
.roster dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.roster dd {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.roster__note {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 3px solid var(--bitumen);
  font-size: 0.88rem;
  color: var(--ink-mute);
}

@media (min-width: 58rem) { .firm { grid-template-columns: 1.15fr 0.85fr; } }

/* ── contact ─────────────────────────────────────────────── */
.contact {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact__list { list-style: none; margin: 2rem 0 1.6rem; padding: 0; }
.contact__list li {
  border-top: 2px solid var(--slate-600);
  padding: 0.75rem 0 0.35rem;
}
.contact__k {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate-300);
  margin-bottom: 0.25rem;
}
.contact__v {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--amber);
  text-decoration: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
/* the primary conversion actions: full-width blocks, not 24px of text */
a.contact__v {
  display: block;
  min-height: 44px;
  padding-block: 0.1rem 0.5rem;
}
a.contact__v:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.contact__v--plain { color: var(--on-dark); font-size: clamp(1rem, 2vw, 1.15rem); }
.contact__area {
  margin: 0;
  font-size: 0.93rem;
  color: var(--on-dark-mute);
  border-top: 2px solid var(--slate-600);
  padding-top: 1.2rem;
}
.contact__area strong { color: var(--amber); }

.form {
  background: var(--slate-800);
  border: 2px solid var(--slate-600);
  border-top: 6px solid var(--amber);
  padding: clamp(1.3rem, 2.6vw, 2.2rem);
  min-width: 0;
}
.form h3 { margin: 0 0 1.5rem; font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.field { margin: 0 0 1.1rem; display: block; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate-300);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--on-dark);
  background-color: var(--bitumen);
  border: 2px solid var(--slate-500);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  /* the pinned strip plus the field's own label, which is above it */
  scroll-margin-top: calc(var(--topstack-h) + 2.6rem);
}
/* the select chevron is the firm's own pitch, upside down */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='9' viewBox='0 0 16 9'%3E%3Cpath d='M1 2 8 6.4 15 2' fill='none' stroke='%23FFB400' stroke-width='2.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px 9px;
  padding-right: 2.6rem;
}
.field textarea { resize: vertical; }
.field textarea::-webkit-resizer { background: var(--slate-500); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--amber);
  border-left-width: 6px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); }
.field input::placeholder, .field textarea::placeholder { color: #818A92; }
.form__status {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--amber);
}
.form__status:empty { margin: 0; }
.form__status--ok.is-set {
  border-left: 4px solid var(--amber);
  padding: 0.6rem 0 0.6rem 0.9rem;
}
/* an error is not a success in the same clothes */
.form__status--err.is-set {
  background: var(--amber);
  color: var(--bitumen);
  border-left: 9px solid var(--bitumen);
  font-weight: 700;
  padding: 0.7rem 0.9rem;
}
/* true with the script off, which is where the JS status is not */
.form__note {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.form__small {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--slate-300);
}
.contact h2 { max-width: 26ch; }
@media (min-width: 58rem) { .contact { grid-template-columns: 1.12fr 0.88fr; } }

/* ── footer ──────────────────────────────────────────────── */
.foot { background: var(--bitumen-2); }
.foot__hazard {
  height: 14px;
  background: repeating-linear-gradient(135deg,
    var(--amber) 0 11px, var(--bitumen) 11px 24px);
}
.foot__in {
  display: grid;
  gap: clamp(1.8rem, 3vw, 3rem);
  padding-block: clamp(2rem, 3.6vw, 2.6rem) 1.5rem;
}
.foot__brand img { width: clamp(190px, 30vw, 250px); height: auto; }
.foot__brand p {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--on-dark-mute);
}
.foot__h {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.foot__nav ul { list-style: none; margin: 0; padding: 0; }
.foot__nav li { margin-bottom: 0.55rem; }
.foot__nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--on-dark-mute);
  border-bottom: 1px solid transparent;
  padding-block: 0.2rem;
}
.foot__nav a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.foot__tel {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  color: var(--amber);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.foot__cta p { margin: 0 0 0.6rem; }
.foot__note { font-size: 0.88rem; color: var(--on-dark-mute); }
.foot__legal {
  border-top: 1px solid var(--slate-600);
  padding-block: 1.4rem 1.8rem;
}
.foot__legal p {
  margin: 0 0 0.6rem;
  max-width: 78ch;
  font-size: 0.82rem;
  color: var(--on-dark-mute);
}
.foot__legal strong { color: var(--amber); }
.foot__legal a { color: var(--on-dark); text-underline-offset: 3px; }
.foot__legal a:hover { color: var(--amber); }
.foot__sig { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 52rem) {
  .foot__in { grid-template-columns: 1.4fr 0.8fr 0.8fr; }
}

/* ── reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .lay { transition: none !important; }
}
