/* CanTex Developers v2 concept. Their charcoal + gold + green, elevated. Young Serif display, Figtree body. */
@font-face { font-family: "Young Serif"; src: url("assets/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1b1a18;          /* charcoal ground */
  --ink-2: #23211e;        /* raised charcoal */
  --ink-line: #3a3733;     /* hairlines on dark */
  --bone: #efeae1;         /* text on dark */
  --bone-2: #bdb6aa;       /* secondary text on dark (8:1 on --ink) */
  --plaster: #ebe6dd;      /* light ground */
  --paper: #f6f3ee;        /* raised light */
  --char: #1d1c1a;         /* text on light */
  --char-2: #57524a;       /* secondary text on light (6.4:1 on --plaster) */
  --line: #d3ccc0;         /* hairlines on light */
  --gold: #d4a855;         /* their gold: rules, numbers, buttons only */
  --gold-hi: #e2bb6c;
  --gold-deep: #8a6727;    /* gold numbers on light, large only */
  --green: #4ca82b;        /* their logo green */
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 56px);
  --head-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  scrollbar-color: #6b655b var(--ink);
  font-synthesis: none;
  scrollbar-gutter: stable;
}
html:has(dialog[open]) { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 1800px) { html { font-size: 112.5%; } :root { --wrap: 1400px; } }
@media (min-width: 2200px) { html { font-size: 131.25%; } :root { --wrap: 1640px; --head-h: 88px; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, label, summary { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* focus: gold on dark, charcoal on light */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.ground-light :focus-visible, .ground-light:focus-visible { outline-color: var(--char); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- concept label ---------- */
.concept-label {
  margin: 0; padding: 8px var(--gut);
  background: #0f0f0e; color: #c9c2b6;
  font-size: .78rem; line-height: 1.45; text-align: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 3px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-wide { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-hi); }
  .btn-ghost:hover { background: rgba(255,255,255,.06); }
  .ground-light .btn-ghost:hover { background: rgba(0,0,0,.05); }
}
.text-link {
  display: inline-flex; align-items: center; gap: .5em; min-height: 44px;
  font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 0;
}
.text-link::after { content: ""; width: .5em; height: .5em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .18s var(--ease); }
@media (hover: hover) and (pointer: fine) { .text-link:hover::after { transform: translateX(3px) rotate(45deg); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}
.bar { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; gap: 26px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; color: var(--bone); padding: 0; border-bottom: 1px solid transparent; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { border-bottom-color: var(--gold); } }
.head-phone { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.head-cta { min-height: 44px; padding: 10px 18px; }
@media (min-width: 761px) and (max-width: 1080px) {
  .bar { gap: 22px; }
  .nav { gap: 20px; font-size: .95rem; }
  .head-phone, .head-cta { display: none; }
}
@media (max-width: 760px) { .nav { display: none; } }
@media (max-width: 760px) {
  :root { --head-h: 60px; }
  .head-phone { display: none; }
  .brand img { height: 28px; }
  .brand-name { font-size: 1.08rem; }
  .head-cta { display: none; }
  .concept-label { font-size: .72rem; padding: 6px 14px; line-height: 1.4; }
}
@media (max-width: 359px) { .brand-name { font-size: 1rem; } .brand { gap: 8px; } }

/* phone section menu (disclosure, not a modal: nothing is trapped) */
.menu-btn, .m-menu { display: none; }
@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 9px; flex: none;
    min-height: 44px; min-width: 44px; padding: 0 14px; margin-right: -6px;
    background: transparent; border: 1px solid #55514a; border-radius: 3px;
    color: var(--bone); font-weight: 600; font-size: .95rem; cursor: pointer;
  }
  .menu-btn[aria-expanded="true"] { border-color: var(--gold); }
  .menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .18s ease, background-color .18s ease; }
  .menu-ico { position: relative; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
  .menu-ico::before { top: -5px; } .menu-ico::after { top: 5px; }
  .menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-ico::before { transform: translateY(5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ico::after { transform: translateY(-5px) rotate(-45deg); }
  .m-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--ink-line); box-shadow: 0 18px 30px -18px rgba(0,0,0,.8); }
  .m-menu[hidden] { display: none; }
  .m-menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding-block: 6px 14px; }
  .m-menu a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--ink-line); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; color: var(--bone); }
  .m-menu a:active { color: var(--gold); }
}
@media (max-width: 359px) {
  .menu-btn { width: 44px; padding: 0; justify-content: center; margin-right: 0; }
  .menu-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bar { gap: 12px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(600px, calc(100svh - var(--head-h) - 34px), 900px);
  display: flex; align-items: flex-end;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg picture { display: block; height: 100%; }
.hero-bg img, .hero-vid { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
/* video sits over the still and only fades in once it is actually playing (desktop, motion OK; see main.js) */
.hero-vid { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero.vid-on .hero-vid { opacity: 1; }
@media (max-width: 760px) { .hero-vid { object-position: 64% 50%; } }
@media (prefers-reduced-motion: reduce) { .hero-vid { display: none; } }
.vid-btn {
  position: absolute; z-index: 2; right: clamp(16px, 2.2vw, 32px); top: 20px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: rgba(27,26,24,.72); border: 1px solid rgba(239,234,225,.35); border-radius: 50%;
  transition: border-color .16s ease, background-color .16s ease;
}
.vid-btn[hidden] { display: none; }
.vid-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .vid-btn:hover { border-color: var(--gold); background: rgba(27,26,24,.9); } }
.vid-ico { display: block; width: 12px; height: 14px; background: linear-gradient(90deg, var(--bone) 0 34%, transparent 34% 66%, var(--bone) 66%); }
.vid-btn[data-state="paused"] .vid-ico { width: 13px; margin-left: 3px; background: var(--bone); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* left scrim sized to the text block (measured: headline >= 4:1 at its brightest pixels, lede >= 4.5:1, across the clip); right side stays clean */
  background:
    linear-gradient(90deg, rgba(20,19,17,.8) 0%, rgba(20,19,17,.7) calc(50% + 60px), rgba(20,19,17,.32) calc(50% + 320px), rgba(20,19,17,0) calc(50% + 520px)),
    linear-gradient(0deg, rgba(20,19,17,.7) 0%, rgba(20,19,17,0) 30%),
    linear-gradient(180deg, rgba(20,19,17,.3) 0%, rgba(20,19,17,0) 16%);
}
@media (min-width: 1600px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(20,19,17,.82) 0%, rgba(20,19,17,.74) calc(50% + 200px), rgba(20,19,17,.36) calc(50% + 440px), rgba(20,19,17,0) calc(50% + 650px)),
      linear-gradient(0deg, rgba(20,19,17,.7) 0%, rgba(20,19,17,0) 30%),
      linear-gradient(180deg, rgba(20,19,17,.3) 0%, rgba(20,19,17,0) 16%);
  }
}
@media (min-width: 2200px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(20,19,17,.82) 0%, rgba(20,19,17,.74) calc(50% + 320px), rgba(20,19,17,.36) calc(50% + 640px), rgba(20,19,17,0) calc(50% + 900px)),
      linear-gradient(0deg, rgba(20,19,17,.7) 0%, rgba(20,19,17,0) 30%),
      linear-gradient(180deg, rgba(20,19,17,.3) 0%, rgba(20,19,17,0) 16%);
  }
}
.hero h1, .hero .lede { text-shadow: 0 1px 2px rgba(20,19,17,.35), 0 2px 24px rgba(20,19,17,.45); }
.hero-in { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: clamp(56px, 9vh, 110px) clamp(40px, 7vh, 80px); }
.hero-copy { max-width: 55rem; }
@media (min-width: 1800px) { .hero-copy { max-width: 64rem; } }
.hero h1 { font-size: clamp(2.6rem, 5.3vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; padding-bottom: .06em; max-width: 13.5em; }
.lede { margin-top: 20px; max-width: 34em; font-size: 1.125rem; color: #dcd6cc; }

.quick {
  margin-top: 30px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 12px;
  padding: 18px; background: rgba(27,26,24,.92); border: 1px solid var(--ink-line); border-top: 2px solid var(--gold); border-radius: 4px;
  max-width: 51rem;
}
.quick .seg { flex: 0 0 auto; }
.quick .q-go { flex: 1 1 auto; white-space: nowrap; }

/* segmented control (hero + estimator) */
.seg { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; }
.seg legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--bone-2); float: left; }
.seg label { position: relative; flex: 1 1 auto; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px;
  border: 1px solid #55514a; margin-left: -1px; white-space: nowrap;
  font-weight: 600; color: var(--bone); background: transparent;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.seg label:first-of-type span { border-radius: 3px 0 0 3px; margin-left: 0; }
.seg label:last-of-type span { border-radius: 0 3px 3px 0; }
.seg input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); position: relative; z-index: 1; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; z-index: 2; position: relative; }
@media (hover: hover) and (pointer: fine) { .seg label:hover input:not(:checked) + span { border-color: var(--bone-2); } }

.mike-card {
  flex: none; display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; text-decoration: none;
  background: rgba(27,26,24,.94); border: 1px solid var(--ink-line); border-radius: 4px;
  transition: border-color .18s ease;
}
@media (hover: hover) and (pointer: fine) { .mike-card:hover { border-color: var(--gold); } }
.mike-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.mc-text { display: grid; gap: 1px; font-size: .92rem; color: var(--bone-2); line-height: 1.35; }
.mc-text strong { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; color: var(--bone); }
.mc-g { display: flex; align-items: center; gap: 7px; color: var(--bone); }

/* drawn stars, gold */
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 13px; height: 13px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

@media (min-width: 761px) and (max-width: 1080px) {
  .hero::before { background: linear-gradient(90deg, rgba(20,19,17,.92) 0%, rgba(20,19,17,.84) 50%, rgba(20,19,17,.66) 100%), linear-gradient(0deg, rgba(20,19,17,.85) 0%, rgba(20,19,17,0) 50%); }
}
@media (max-width: 1080px) {
  .hero-in { flex-direction: column; align-items: stretch; gap: 24px; }
  .mike-card { align-self: flex-start; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; display: block; }
  .hero-bg { bottom: auto; height: 380px; }
  .hero-bg img { object-position: 50% 62%; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(20,19,17,.25) 0, rgba(20,19,17,.15) 70px, rgba(20,19,17,.82) 250px, var(--ink) 372px),
      linear-gradient(90deg, rgba(20,19,17,.55), rgba(20,19,17,0) 80%);
  }
  .hero-in { padding-block: 132px 26px; gap: 18px; }
  .hero h1 { font-size: clamp(1.95rem, 8.9vw, 2.7rem); line-height: 1.05; }
  .lede { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  .quick { margin-top: 18px; padding: 14px; gap: 12px; flex-direction: column; align-items: stretch; }
  .quick .seg span { min-height: 46px; padding: 0 10px; }
  .quick .q-go { flex: none; }
  .quick legend { margin-bottom: 6px; }
  .q-size legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mike-card { align-self: stretch; }
}
@media (max-width: 359px) { .hero-in { padding-top: 120px; } .hero h1 { font-size: 1.85rem; } }

/* ---------- proof line ---------- */
.proof { background: var(--ink); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.proof-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding-block: 12px; color: var(--bone-2); font-size: .98rem; text-align: center; }
.proof-line a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--bone); text-decoration: underline; text-decoration-color: #6b655b; }
.proof-line .dot { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .proof-line a:hover { text-decoration-color: var(--gold); } }
@media (max-width: 560px) { .proof-line { gap: 0 10px; padding-block: 6px 12px; font-size: .92rem; } .proof-line a { flex-basis: 100%; justify-content: center; } .proof-line a + .dot { display: none; } }

/* ---------- section shells ---------- */
.ground-light { background: var(--plaster); color: var(--char); }
.ground-dark { background: var(--ink); color: var(--bone); }
.sec-h { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 18ch; }
.sec-lede { margin-top: 16px; max-width: 40em; font-size: 1.1rem; color: var(--char-2); }
.ground-dark .sec-lede { color: var(--bone-2); }

/* ---------- estimator ---------- */
.est-sec { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.est-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.est-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 13ch; }
.est-head .sec-lede { margin: 0; }
.est { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; margin-top: 40px; align-items: start; }
.est-controls { display: grid; gap: 30px; }
.est legend { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--char); font-size: 1rem; margin-bottom: 12px; padding: 0; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-deep); font: 400 .9rem/1 var(--serif); color: var(--char); }
.seg-light legend { color: var(--char); float: left; width: 100%; }
.seg legend .step { display: inline-grid; min-height: 0; padding: 0; margin-left: 0; border: 1px solid var(--gold-deep); border-radius: 50%; background: none; }
.seg-light span { border-color: #b9b1a4; color: var(--char); background: var(--paper); }
.seg-light input:checked + span { background: var(--char); color: var(--paper); border-color: var(--char); }
.seg-light input:focus-visible + span { outline-color: var(--char); }
@media (hover: hover) and (pointer: fine) { .seg-light label:hover input:not(:checked) + span { border-color: var(--char-2); } }

.opts { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opts legend { grid-column: 1 / -1; }
.opts label { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 16px 16px; background: var(--paper); border: 1px solid #c9c1b4; border-radius: 3px; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.o-t { font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.o-d { font-size: .9rem; color: var(--char-2); line-height: 1.35; }
.opts label:has(input:checked) { border-color: var(--char); box-shadow: inset 0 0 0 1px var(--char); background: #fff; }
.opts label:has(input:checked) .o-t::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: .18em; border-radius: 50%; background: var(--gold-deep); }
.opts label:has(input:focus-visible) { outline: 2px solid var(--char); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .opts label:hover { border-color: var(--char-2); } }

.est-out {
  position: sticky; top: calc(var(--head-h) + 24px);
  padding: clamp(24px, 3vw, 40px); border-radius: 4px;
  background: var(--ink); color: var(--bone);
  box-shadow: 0 24px 48px -24px rgba(20,19,17,.55);
}
.out-k { color: var(--bone-2); font-weight: 500; }
.out-range { margin-top: 8px; font-family: var(--serif); font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1.05; color: var(--gold); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.scale { margin-top: 22px; }
.scale-track {
  position: relative; height: 14px;
  background:
    repeating-linear-gradient(90deg, #5d584f 0 1px, transparent 1px 10%) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, #45413b 0 1px, transparent 1px 2.5%) bottom / 100% 4px no-repeat;
  border-bottom: 1px solid #5d584f;
}
.scale-fill { position: absolute; bottom: 0; left: var(--lo, 20%); width: var(--w, 20%); height: 14px; background: var(--gold); transition: left .5s var(--ease), width .5s var(--ease); }
.scale-ends { display: flex; justify-content: space-between; margin-top: 6px; font-size: .82rem; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.out-inc { margin-top: 22px; color: var(--bone); }
.out-note { margin-top: 12px; font-size: .95rem; color: var(--bone-2); }
.est-label { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ink-line); font-weight: 700; color: var(--bone); }
.est-basis { margin-top: 4px; font-size: .88rem; color: var(--bone-2); }
.out-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.out-cta .btn { flex: 1 1 auto; }
@media (prefers-reduced-motion: reduce) { .scale-fill { transition: none; } }
.est-out :focus-visible, .est-out:focus-visible { outline-color: var(--gold); }
.est-out:focus:not(:focus-visible) { outline: none; }

.ladder-wrap { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px 40px; }
.ladder-k { font-weight: 600; color: var(--char-2); font-size: .95rem; max-width: 16em; }
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ladder li { display: grid; gap: 6px; border-top: 2px solid var(--gold); padding-top: 14px; }
.l-n { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--gold-deep); }
.l-t { color: var(--char-2); font-size: .98rem; }

@media (max-width: 1080px) {
  .est-head { grid-template-columns: 1fr; gap: 14px; }
  .est { grid-template-columns: 1fr; gap: 32px; }
  .est-out { position: static; }
  .ladder-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .opts { grid-template-columns: 1fr; gap: 8px; }
  .opts label { grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 12px 14px; }
  .ladder { grid-template-columns: 1fr; gap: 18px; }
  .ladder li { grid-template-columns: 5.4rem minmax(0, 1fr); align-items: baseline; gap: 4px 12px; }
  .l-n { font-size: 1.6rem; }
  .out-cta .btn { flex: 1 1 100%; }
}

/* ---------- services: a lead row, a pair, a closing row ---------- */
.services { padding-block: clamp(72px, 10vw, 128px) clamp(56px, 7vw, 96px); }
.services .sec-h { margin-bottom: clamp(36px, 5vw, 64px); }
.svc-img { margin: 0; overflow: hidden; border-radius: 2px; background: var(--ink-2); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .svc:hover .svc-img img { transform: scale(1.025); } }
.svc h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.svc p { margin-top: 14px; color: var(--bone-2); max-width: 36em; }
.svc .text-link { margin-top: 18px; }
.svc-q { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--gold); }
.svc-q blockquote { margin: 0; }
.svc .svc-q blockquote p { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: var(--bone); max-width: 32em; }
.svc-q figcaption { margin-top: 4px; font-size: .9rem; color: var(--bone-2); }
.svc-q figcaption a { color: var(--bone-2); display: inline-flex; align-items: center; min-height: 44px; }

.svc-lead .svc-img { aspect-ratio: 21 / 9; }
.svc-lead .svc-img img { object-position: 50% 60%; }
.svc-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; margin-top: 28px; }
.svc-lead .svc-q { margin-top: 6px; }
.svc-lead .svc-q blockquote p { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.35; }

.svc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink-line); }
.svc-card { display: flex; flex-direction: column; align-items: flex-start; }
.svc-card .svc-img { width: 100%; aspect-ratio: 5 / 4; margin-bottom: 24px; }
.svc-card .svc-img img { object-position: 50% 45%; }
.svc-pair .svc-card:nth-child(2) { margin-top: clamp(0px, 5vw, 80px); }

.svc-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink-line); }
.svc-row .svc-img { aspect-ratio: 16 / 9; }

@media (max-width: 900px) {
  .svc-body { grid-template-columns: 1fr; }
  .svc-pair .svc-card:nth-child(2) { margin-top: 0; }
}
@media (max-width: 760px) {
  .svc-lead .svc-img { aspect-ratio: 4 / 3; }
  .svc-body { margin-top: 20px; }
  .svc-pair { grid-template-columns: 1fr; gap: 48px; }
  .svc-card .svc-img { aspect-ratio: 4 / 3; margin-bottom: 20px; }
  .svc-row { grid-template-columns: 1fr; gap: 20px; }
  .svc-row .svc-img { order: -1; aspect-ratio: 4 / 3; }
  .svc .svc-q blockquote p, .svc-lead .svc-q blockquote p { font-size: 1.08rem; }
}

/* ---------- work ---------- */
.work { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 10vw, 128px); border-top: 1px solid var(--ink-line); }
.wgroup { margin-top: clamp(32px, 4vw, 52px); }
.wgroup h3 { font-size: 1.5rem; margin-bottom: 16px; display: flex; align-items: center; gap: 16px; }
.wgroup h3::after { content: ""; flex: 1; height: 1px; background: var(--ink-line); }
.wgrid { display: grid; gap: 14px; }
.wg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wg-2 .ph { aspect-ratio: 16 / 10; }
.wg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wg-5 .ph { aspect-ratio: 3 / 3.8; }
.wgrid li p { margin-top: 10px; font-size: .92rem; color: var(--bone-2); }
.ph { display: block; width: 100%; padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3.3; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .ph:hover img { transform: scale(1.03); } }
@media (max-width: 1080px) {
  .wg-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wg-5 li { grid-column: span 2; }
  .wg-5 li:nth-child(-n+2) { grid-column: span 3; }
  .wg-5 li:nth-child(-n+2) .ph { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .wg-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-3 li:first-child { grid-column: 1 / -1; }
  .wg-3 li:first-child .ph { aspect-ratio: 16 / 11; }
  .wg-2 .ph { aspect-ratio: 1 / 1; }
  .wg-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-5 li, .wg-5 li:nth-child(-n+2) { grid-column: auto; }
  .wg-5 li:first-child { grid-column: 1 / -1; }
  .wg-5 li:first-child .ph { aspect-ratio: 16 / 11; }
  .wg-5 li:nth-child(2) .ph { aspect-ratio: 3 / 3.8; }
  .wgrid { gap: 10px; }
  .wgrid li p { font-size: .85rem; margin-top: 6px; }
}

/* lightbox */
.lightbox { padding: 0; border: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(14,13,12,.96); color: var(--bone); }
.lightbox::backdrop { background: rgba(14,13,12,.7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 64px 72px 56px; }
.lightbox img { max-width: min(92vw, 1200px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: var(--bone-2); font-size: .95rem; text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 14px; background: rgba(27,26,24,.9); border: 1px solid #4a463f; border-radius: 3px; color: var(--bone); cursor: pointer; font-weight: 600; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 26px; left: 20px; color: var(--bone-2); font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .lightbox figure { padding: 64px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
}

/* ---------- Meet Mike ---------- */
.mike { padding-block: clamp(72px, 10vw, 128px) clamp(40px, 6vw, 72px); }
.mike-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.mike-photo { margin: 0; position: sticky; top: calc(var(--head-h) + 24px); }
.mike-photo img { width: 100%; aspect-ratio: 893 / 1150; max-height: calc(100svh - var(--head-h) - 96px); object-fit: cover; object-position: 50% 12%; border-radius: 2px; background: #d9d2c6; }
.mike-photo figcaption { margin-top: 12px; font-size: .92rem; color: var(--char-2); }
.mike h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); max-width: 14ch; }
.mike-body { margin-top: 24px; font-size: 1.12rem; max-width: 34em; }
.mike-quotes { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mike-quotes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mike-quotes blockquote { margin: 0; font-family: var(--serif); font-size: 1.14rem; line-height: 1.4; }
.mike-quotes span { color: var(--char-2); font-size: .9rem; white-space: nowrap; }
.q-src { margin-top: 12px; font-size: .85rem; color: var(--char-2); }
.q-src a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) {
  .mike-grid { grid-template-columns: 1fr; }
  .mike-photo { max-width: 460px; position: static; }
  .mike-photo img { max-height: none; }
  .mike-quotes li { grid-template-columns: 1fr; }
}

/* ---------- process ---------- */
.process { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 128px); }
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--gold); }
.steps .n { position: absolute; top: -21px; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plaster); border: 2px solid var(--gold); font: 400 1.15rem/1 var(--serif); color: var(--char); }
.steps h3 { font-size: 1.5rem; }
.steps p { margin-top: 10px; color: var(--char-2); }
.pay-note { margin-top: 44px; padding: 20px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; max-width: 62em; color: var(--char); }
.pay-note b { font-weight: 700; }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; row-gap: 44px; } }

/* ---------- reviews ---------- */
.reviews { padding-block: clamp(72px, 10vw, 128px) clamp(40px, 6vw, 72px); }
.rev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rev-score { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 12px 18px; border: 1px solid var(--ink-line); border-radius: 4px; }
.rev-score b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.rev-score > span:last-child { font-size: .95rem; line-height: 1.3; }
.rev-score small { color: var(--bone-2); font-size: .82rem; }
@media (hover: hover) and (pointer: fine) { .rev-score:hover { border-color: var(--gold); } }
.rev-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.rev { margin: 0; display: flex; flex-direction: column; padding-top: 22px; border-top: 2px solid var(--gold); }
.rev blockquote { margin: 0; flex: 1; }
.rev blockquote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.rev figcaption { margin-top: 22px; display: grid; gap: 2px; font-size: .92rem; color: var(--bone-2); }
.rev-who { color: var(--bone); font-weight: 600; font-size: 1rem; }
.rev figcaption a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; color: var(--bone); font-weight: 600; justify-self: start; }
@media (max-width: 1080px) { .rev-grid { grid-template-columns: 1fr; gap: 32px; max-width: 46em; } }
@media (max-width: 760px) { .rev blockquote p { font-size: 1.08rem; line-height: 1.5; } .mike-quotes blockquote { font-size: 1.06rem; } }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 128px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink-line); }
.faq-list { border-top: 1px solid var(--ink-line); }
.faq details { border-bottom: 1px solid var(--ink-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--gold), var(--gold)) center / 100% 2px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 2px 100% no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--bone-2); max-width: 40em; }
.faq .a p + p { margin-top: 12px; }
.faq .a .text-link { color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: #fff; } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq summary { font-size: 1.15rem; } }

/* ---------- areas + contact ---------- */
.contact { padding-block: clamp(72px, 10vw, 128px); }
.area { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.area .sec-h { font-size: clamp(2rem, 3.6vw, 3rem); }
.towns { display: flex; flex-wrap: wrap; gap: 10px clamp(22px, 2.6vw, 40px); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; }
.towns li { white-space: nowrap; }
.contact-grid { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 12ch; }
.big-phone { display: inline-block; min-height: 44px; margin-top: 28px; font-family: var(--serif); font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 6px; font-variant-numeric: tabular-nums; }
.call-text { margin-top: 14px; color: var(--char-2); }
.call-text a { display: inline-flex; align-items: center; min-height: 44px; color: var(--char); font-weight: 600; }
.info { margin: 28px 0 0; display: grid; gap: 14px; }
.info div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; }
.info dt { color: var(--char-2); font-size: .92rem; padding-top: 2px; }
.info dd { margin: 0; overflow-wrap: anywhere; }
.info dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.demo-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.demo-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.demo-form input, .demo-form select, .demo-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; font-size: max(16px, 1rem); font-weight: 400; background: #fff; color: var(--char); border: 1px solid #b4ab9d; border-radius: 3px; }
.demo-form textarea { resize: vertical; min-height: 96px; }
.demo-form input:focus-visible, .demo-form select:focus-visible, .demo-form textarea:focus-visible { outline: 2px solid var(--char); outline-offset: 1px; border-color: var(--char); }
.demo-form .btn-gold { margin-top: 4px; }
.form-note { font-size: .95rem; color: var(--char); }
.form-note:empty { display: none; }
.form-trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 10px; font-size: .9rem; color: var(--char-2); text-align: center; }
.form-trust span[aria-hidden] { color: var(--gold-deep); }
.form-trust a { display: inline-flex; align-items: center; min-height: 44px; color: var(--char); font-weight: 600; }
@media (max-width: 560px) { .form-trust { flex-direction: column; gap: 0; line-height: 1.5; } .form-trust span[aria-hidden] { display: none; } .form-trust a { min-height: 44px; } }
@media (max-width: 900px) { .area, .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .towns { font-size: 1.15rem; } }

/* ---------- footer ---------- */
.site-footer { background: #121110; color: var(--bone-2); padding-block: 56px 28px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--ink-line); }
.foot-logo { width: 220px; height: auto; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 20px 56px; font-size: .95rem; line-height: 1.6; }
.foot-cols a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); }
.foot-cols p { line-height: 1.4; }
.concept-label-foot { margin-top: 22px; font-size: .82rem; color: #a59e92; }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 1080px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #121110; border-top: 1px solid var(--ink-line);
  }
  .mobile-bar a { display: grid; place-items: center; min-height: 48px; border: 1px solid #55514a; border-radius: 3px; text-decoration: none; font-weight: 600; color: var(--bone); }
  .mobile-bar a:active { background: rgba(255,255,255,.08); }
  .mobile-bar .mb-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
  .mobile-bar .mb-gold:active { background: var(--gold-hi); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; translate: -50% 0; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--bone); color: var(--ink); border-radius: 3px; font-weight: 600; font-size: .95rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.toast[hidden] { display: none; }
.toast { pointer-events: none; }
@media (max-width: 1080px) { .toast { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* before/after slot: a slim invitation for the owner's own pair (no fake photos, no empty frame) */
.ba-slot { margin-top: clamp(28px, 3.5vw, 44px); display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; padding: 12px 18px 12px 12px; border: 1px dashed rgba(212,168,85,.5); border-radius: 4px; color: var(--bone-2); font-size: .95rem; line-height: 1.4; }
.ba-tag { flex: none; display: inline-flex; gap: 3px; }
.ba-tag span { display: grid; place-items: center; width: 52px; height: 40px; border: 1px dashed #55514a; border-radius: 2px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.ba-note b { color: var(--bone); font-weight: 600; }
@media (max-width: 420px) { .ba-tag span { width: 42px; height: 36px; font-size: .62rem; letter-spacing: .03em; } .ba-slot { gap: 12px; padding-right: 14px; } }
.nw { white-space: nowrap; }

/* ---- type scale: calmer sizes (Soupy: "some of the text is too big", desktop and phone) ---- */
.hero h1 { font-size: clamp(2.4rem, 3.9vw, 64px); max-width: 14em; }
.sec-h, .est-head h2, .contact-info h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.mike h2 { font-size: clamp(2rem, 3.2vw, 3rem); }
.area .sec-h { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.svc h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.out-range { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.big-phone { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.towns { font-size: clamp(1.15rem, 1.5vw, 1.35rem); }
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(1.8rem, 7.4vw, 2.3rem); }
  .sec-h, .est-head h2, .contact-info h2, .mike h2, .area .sec-h { font-size: clamp(1.6rem, 6.8vw, 1.95rem); }
  .svc h3 { font-size: 1.5rem; }
  .out-range { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .big-phone { font-size: clamp(1.7rem, 8vw, 2.1rem); }
}
@media (max-width: 359px) { .hero h1 { font-size: 1.7rem; } }

/* stock photos in Services: atmosphere only, tagged so they're never read as CanTex jobs */
.svc-img { position: relative; }
.stock-tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 4px; background: rgba(20,19,17,.72); color: #ece6da; font-size: .75rem; letter-spacing: .02em; line-height: 1.2; pointer-events: none; }
