/* Bakersfield Hydrovac: "the open hole" system.
   One motif (the round hydrovac test hole) at every scale; locate-paint colours (APWA code) as the only extra colour.
   Tokens first. Everything below references tokens. See DESIGN.md. */

:root {
  /* Ground, ink, fields */
  --yellow: #F4C20D;          /* page ground: marking-paint yellow (gas, oil, petroleum lines) */
  --ink: #071116;             /* blue-black: text, the hole, primary button */
  --ink-on-yellow-soft: #3E3204;
  --white: #FFFFFF;           /* field 1: white lining = proposed excavation */
  --concrete: #E7E5DE;        /* field 2: a tone step, never a line */
  --ink-soft: #3B4448;        /* secondary text on white/concrete */
  --asphalt: #161B1E;         /* deep panel */
  --asphalt-ink: #F1EFE9;
  --asphalt-soft: #BDBAB1;

  /* Locate paint (APWA uniform colour code). Used only as small dots and the legend. */
  --mark-red: #D7262E;        /* electric */
  --mark-yellow: #F4C20D;     /* gas, oil, steam, petroleum */
  --mark-orange: #EE7A13;     /* communications, fiber, signal */
  --mark-blue: #1F6FC5;       /* potable water */
  --mark-purple: #7D3FA2;     /* reclaimed water, irrigation, slurry */
  --mark-green: #1F9A4C;      /* sewer, storm drain */
  --mark-pink: #F08DB4;       /* temporary survey */
  --mark-white: #FFFFFF;      /* proposed excavation */

  /* Type: one family, five steps */
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --step-small: 0.875rem;                                    /* 14px */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);   /* 17-19px */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);     /* 20-26px */
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);            /* 32-64px */
  --step-display: clamp(2.6rem, 0.8rem + 4.6vw, 5.25rem);    /* 42-84px, home hero */
  --step-display-page: clamp(1.875rem, 0.9rem + 3.4vw, 4rem);/* 30-64px, interior heroes */

  /* Space */
  --margin: clamp(16px, 3vw, 40px);
  --maxw: 1360px;
  --section: clamp(88px, 11vw, 192px);
  --gap: clamp(20px, 2.4vw, 40px);

  /* Shape: square fields, round holes, pill buttons. One rule, no exceptions. */
  --radius: 0;
  --pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-hover: 160ms;
  --t-press: 120ms;

  /* Lead form engine (shared lead.css) */
  --lead-accent: var(--ink);
  --lead-accent-ink: var(--yellow);
  --lead-fg: var(--ink);
  --lead-muted: var(--ink-soft);
  --lead-border: #8E9396;
  --lead-surface: transparent;
  --lead-field-bg: var(--white);
  --lead-error: #B3261E;
  --lead-radius: 0;
  --lead-gap: 1rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--yellow); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.55; letter-spacing: -0.005em;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; margin: 0; text-wrap: balance; }
h3 { letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--ink); color: var(--yellow); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ground-ink :focus-visible, .panel :focus-visible, .site-footer :focus-visible, .cta-main :focus-visible { outline-color: var(--yellow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(100% - 2 * var(--margin), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section); }
.ground-yellow { background: var(--yellow); color: var(--ink); }
.ground-white { background: var(--white); color: var(--ink); }
.ground-concrete { background: var(--concrete); color: var(--ink); }
.ground-ink { background: var(--ink); color: var(--asphalt-ink); }
.section-head { font-size: var(--step-head); max-width: 18ch; margin-bottom: clamp(28px, 4vw, 56px); }
.lead-text { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.015em; max-width: 34ch; }
.soft { color: var(--ink-soft); }
.ground-yellow .soft { color: var(--ink-on-yellow-soft); }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: var(--margin); top: -100px; z-index: 100; background: var(--ink); color: var(--yellow);
  padding: 12px 18px; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em;
  border-radius: var(--pill); border: 0; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--yellow); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-ghost-dark { background: #2A3237; color: var(--asphalt-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #22323A; }
  .btn-yellow:hover { background: #FFD43B; }
  .btn-white:hover { background: var(--concrete); }
  .btn-ghost-dark:hover { background: #3A454B; }
}
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { text-decoration-thickness: 0.14em; } }

/* The motif at text size */
.dot { display: inline-block; width: .72em; height: .72em; border-radius: 50%; background: var(--ink); flex: none; }
.dot--red { background: var(--mark-red); } .dot--yellow { background: var(--mark-yellow); }
.dot--orange { background: var(--mark-orange); } .dot--blue { background: var(--mark-blue); }
.dot--purple { background: var(--mark-purple); } .dot--green { background: var(--mark-green); }
.dot--pink { background: var(--mark-pink); } .dot--white { background: var(--mark-white); }
.dot--ink { background: var(--ink); }

/* ---------- Header ---------- */
.site-header { background: var(--yellow); color: var(--ink); position: relative; z-index: 20; }
.bar { width: min(100% - 2 * var(--margin), var(--maxw)); margin-inline: auto; min-height: 76px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.03em;
  text-decoration: none; margin-right: auto; min-height: 44px; }
.wordmark-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.site-nav ul { list-style: none; display: flex; gap: 6px 22px; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none;
  text-decoration-line: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { text-decoration-color: currentColor; } }
.site-nav a[aria-current="page"] { text-decoration-color: currentColor; }
.menu-toggle { display: none; }
@media (max-width: 959px) {
  .bar { gap: 8px 12px; }
  .header-cta { min-height: 44px; padding: 0 1.1em; font-size: .95rem; }
  .js .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; background: none; border: 0;
    font: inherit; font-weight: 600; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; order: 2; }
  .header-cta { order: 3; }
  .site-nav { order: 4; flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding-bottom: 12px; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { font-size: var(--step-lead); min-height: 48px; }
}
@media (max-width: 380px) { .wordmark { font-size: 1.05rem; } .wordmark-dot { width: 18px; height: 18px; } }

/* ---------- Breadcrumb (navigation at the top of interior pages) ---------- */
.crumbs-inline { font-size: var(--step-small); margin: 0 0 clamp(16px, 3vw, 40px); }
.crumbs-inline ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs-inline li + li::before { content: "/"; margin-right: 8px; color: var(--ink-on-yellow-soft); }
.crumbs-inline a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs-inline a[aria-current="page"] { text-decoration: none; }
.nav-quote { display: none; }
@media (max-width: 480px) {
  .header-cta { display: none; }
  .nav-quote { display: list-item; }
  .wordmark { font-size: 1.125rem; }
}

/* ---------- Hero: the hole, cropped by the viewport ---------- */
.hero { position: relative; overflow: hidden; background: var(--yellow); }
.hero-inner { width: min(100% - 2 * var(--margin), var(--maxw)); margin-inline: auto; position: relative; z-index: 2;
  padding-block: clamp(32px, 6vw, 72px) 48px; }
.hero h1 { font-size: var(--step-display); max-width: 9.5em; }
.hero--page h1 { font-size: var(--step-display-page); max-width: 12.5em; }
.hero-sub { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.4; letter-spacing: -0.012em; max-width: 36ch; margin-top: clamp(24px, 3vw, 40px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero-note { margin-top: 24px; max-width: 46ch; font-size: 1rem; color: var(--ink-on-yellow-soft); }
.hero-shape { position: relative; overflow: hidden; border-radius: 50%; background: var(--ink); }
.hero-shape img { width: 100%; height: 100%; object-fit: cover; }

/* Phone and tablet: the hole drops below the words, cropped by both sides and the bottom */
.hero-shape { width: 130vw; aspect-ratio: 1; margin: 8px 0 -62vw -15vw; }
@media (min-width: 600px) and (max-width: 959px) { .hero-shape { width: 110vw; margin: 16px 0 -60vw -5vw; } }

@media (min-width: 960px) {
  .hero { min-height: clamp(600px, 86svh, 880px); display: flex; align-items: center; }
  .hero-inner { padding-block: 72px 96px; }
  .hero-copy { max-width: 46%; }
  .hero--page .hero-copy { max-width: 56%; }
  .hero-shape { position: absolute; z-index: 1; margin: 0; --d: min(112vh, 64vw); width: var(--d);
    right: calc(var(--d) * -0.28); top: 50%; transform: translateY(-46%); }
  .hero--page .hero-shape { --d: min(100vh, 52vw); right: calc(var(--d) * -0.3); }
}

/* Signature move: the hole opens like a shutter */
@media (prefers-reduced-motion: no-preference) {
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-out); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }
}

/* ---------- Services: shaped photo + marked points ---------- */
.points-section { overflow: hidden; }
.points-layout { display: grid; gap: 40px; }
.points-photo { width: 82vw; max-height: 60svh; aspect-ratio: 1; margin-left: calc(var(--margin) * -1 - 6vw); border-radius: 50%; overflow: hidden; }
.points-photo img { width: 100%; height: 100%; object-fit: cover; }
.points { list-style: none; display: grid; gap: 28px; margin-top: 8px; }
.point h3 { font-size: 1.125rem; font-weight: 600; display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.point h3 a { text-decoration: none; }
.point h3 a::after { content: " \2192"; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .point h3 a:hover { text-decoration: underline; } }
.point p { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); margin-left: calc(.72em + 12px); }
@media (min-width: 960px) {
  .points-layout { grid-template-columns: 5fr 7fr; gap: 0 clamp(40px, 6vw, 96px); align-items: start; }
  .points-photo { width: calc(112% + var(--margin)); max-height: none; margin-left: calc(-12% - var(--margin)); position: sticky; top: 24px; }
  .points { grid-template-columns: 1fr 1fr; gap: 44px 40px; margin-top: 16px; }
}

/* ---------- Deep panel (811 rules + the planner) ---------- */
.panel-section { padding-block: 20px; }
.panel { background: var(--asphalt); color: var(--asphalt-ink); margin-inline: 10px; overflow: hidden; position: relative;
  padding: clamp(28px, 4vw, 56px); display: grid; gap: 40px; }
@media (min-width: 600px) { .panel { margin-inline: 20px; } }
.panel h2 { font-size: var(--step-head); max-width: 15ch; color: var(--asphalt-ink); }
.panel p { color: var(--asphalt-ink); }
.panel .soft { color: var(--asphalt-soft); }
.panel a { color: var(--asphalt-ink); }
.panel-block h3 { font-size: 1.375rem; margin-bottom: 12px; color: var(--yellow); }
.panel-block + .panel-block { margin-top: 48px; }
.panel-photo { width: 100%; max-width: 520px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; justify-self: center; margin: 40px auto 0; }
.panel-photo img { width: 100%; height: 100%; object-fit: cover; }
.legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 28px; font-size: 1rem; }
.legend li { display: flex; align-items: baseline; gap: 10px; }
.legend .dot { width: .85em; height: .85em; }
@media (min-width: 960px) {
  .panel { grid-template-columns: 58fr 42fr; gap: 0 clamp(40px, 5vw, 80px); min-height: 100svh; padding-bottom: 0; }
  .panel-left { display: flex; flex-direction: column; }
  .panel-photo { width: min(38vw, 560px); justify-self: start; margin: auto 0 calc(min(38vw, 560px) * -0.2) 0; }
  .panel-right { padding-bottom: 56px; }
}

/* The live thing: 811 timing planner */
.planner { margin-top: 32px; background: #20272B; padding: 24px; }
.planner-title { font-size: 1.125rem; margin-bottom: 14px; color: var(--asphalt-ink); }
.planner label { display: block; font-weight: 600; margin-bottom: 8px; }
.planner input[type="date"] { font: inherit; color: var(--ink); background: var(--white); border: 0; min-height: 48px; padding: 8px 12px;
  width: 100%; max-width: 260px; border-radius: var(--radius); color-scheme: light; }
.planner-out { margin: 20px 0 0; display: grid; gap: 14px; }
.planner-out div { display: grid; gap: 2px; }
.planner-out dt { font-size: var(--step-small); color: var(--asphalt-soft); }
.planner-out dd { margin: 0; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.planner-msg { margin-top: 14px; font-size: 1rem; }
.planner-msg:empty { display: none; }
.planner-note { margin-top: 16px; font-size: var(--step-small); color: var(--asphalt-soft); }
/* Planner on light grounds (service pages) */
.planner--light { background: var(--white); color: var(--ink); }
.planner--light .planner-out dt, .planner--light .planner-note { color: var(--ink-soft); }
.planner--light .planner-out dd { color: var(--ink); }
.planner--light input[type="date"] { background: var(--concrete); }

/* ---------- How it works: many into one ---------- */
.how-top { display: grid; gap: 20px; }
.how-top .section-head { margin-bottom: 0; }
.how-figure { margin: clamp(40px, 5vw, 72px) 0 0; }
.how-figure svg { width: 100%; height: auto; display: block; }
.how-figure .svg-v { display: none; }
.how-cols { list-style: none; display: grid; gap: 28px; margin-top: 40px; }
.how-cols h3 { font-size: 1.375rem; margin-bottom: 8px; }
.how-cols p { font-size: 1rem; max-width: 36ch; }
@media (min-width: 960px) {
  .how-top { grid-template-columns: 5fr 7fr; align-items: end; gap: 48px; }
  .how-top .lead-text { max-width: 40ch; }
  .how-cols { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
@media (max-width: 599px) {
  .how-wrap { display: grid; grid-template-columns: 52vw 1fr; gap: 0 16px; align-items: stretch; }
  .how-wrap .how-figure { margin-top: 32px; }
  .how-figure .svg-h { display: none; }
  .how-figure .svg-v { display: block; height: 100%; }
  .how-cols { margin-top: 32px; gap: 0; display: grid; grid-template-rows: 1fr 1fr 1fr; }
  .how-cols li { align-self: center; }
  .how-cols h3 { font-size: 1.125rem; }
  .how-cols p { font-size: 1rem; }
}

/* ---------- Catalog list with photo bullets ---------- */
.catalog + .catalog { margin-top: clamp(64px, 7vw, 96px); }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.catalog-head h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.125rem); }
.catalog-head p { margin: 0; font-size: 1rem; white-space: nowrap; }
.catalog-items { list-style: none; display: grid; gap: 32px 64px; }
.catalog-item { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; align-items: start; }
.catalog-item .bullet { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--concrete); }
.catalog-item .bullet img { width: 100%; height: 100%; object-fit: cover; }
.catalog-item .bullet--dot { display: grid; place-items: center; background: transparent; }
.catalog-item .bullet--dot .dot { width: 22px; height: 22px; }
.catalog-item h3 { font-size: 1.125rem; margin: 4px 0 6px; }
.catalog-item p { font-size: 1rem; max-width: 40ch; color: var(--ink-soft); }
.catalog-item p a { color: var(--ink); }
@media (min-width: 760px) { .catalog-items { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) {
  .catalog-item { grid-template-columns: 52px 1fr; gap: 0 16px; }
  .catalog-item .bullet { width: 52px; height: 52px; }
  .catalog-head h2 { font-size: 8.5vw; }
}

/* ---------- FAQ: index cards in a drawer ---------- */
.faq-section .section-head { margin-inline: auto; }
.faq-wrap { max-width: 920px; margin-inline: auto; }
.faq-wrap .section-head { margin-inline: 0; }
.faq-drawer { --tab-h: 40px; --tab-w: 180px; padding-top: var(--tab-h); }
.faq-card { position: relative; margin-top: 0; background: var(--white); color: var(--ink); }
.faq-card:nth-child(3n+2) { background: var(--concrete); }
.faq-card:nth-child(3n+3) { background: var(--ink); color: var(--asphalt-ink); }
.faq-card:nth-child(3n+3) .faq-a p { color: var(--asphalt-ink); }
.faq-card summary { list-style: none; cursor: pointer; position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  min-height: 96px; padding: 22px clamp(20px, 3vw, 32px) 54px; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-tab { position: absolute; top: calc(var(--tab-h) * -1); left: calc(var(--i, 0) * (100% - var(--tab-w)) / var(--last, 6)); height: var(--tab-h); width: var(--tab-w);
  display: flex; align-items: center; padding: 0 18px; font-size: 1rem; font-weight: 500; background: inherit;
  clip-path: polygon(0 100%, 0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%); }
.faq-card summary { background: inherit; }
.faq-q { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; max-width: 40ch; }
.faq-mark { width: 22px; height: 22px; border-radius: 50%; background: currentColor; opacity: .28; flex: none; margin-top: 4px;
  transition: opacity var(--t-hover) ease, transform 240ms var(--ease-out); }
.faq-card[open] .faq-mark { opacity: 1; transform: scale(.7); }
.faq-a { padding: 0 clamp(20px, 3vw, 32px) 56px; margin-top: -30px; }
.faq-a p { font-size: 1.0625rem; max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .faq-card summary:hover .faq-mark { opacity: .6; } }
@media (max-width: 759px) {
  .faq-drawer { --tab-w: 128px; --tab-h: 38px; }
  .faq-tab { font-size: .9375rem; padding: 0 14px; }
  .faq-q { font-size: 1.125rem; }
  .faq-a p { font-size: 1rem; }
}

/* ---------- Service areas teaser ---------- */
.areas-layout { display: grid; gap: 40px; align-items: center; }
.town-line { font-size: var(--step-lead); line-height: 1.45; letter-spacing: -0.015em; font-weight: 500; max-width: 38ch; }
.town-line span { white-space: nowrap; }
.town-line span + span::before { content: "\00B7"; margin: 0 .45em; color: var(--ink-soft); font-weight: 400; }
.areas-photo { width: 78vw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; justify-self: end; margin-right: calc(var(--margin) * -1 - 12vw); }
.areas-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .areas-layout { grid-template-columns: 7fr 5fr; gap: 64px; }
  .areas-photo { width: min(44vw, 620px); margin-right: calc(-14% - var(--margin)); }
}

/* ---------- Closing action tile with the form ---------- */
.cta-section { padding-block: var(--section); overflow: hidden; }
.cta-row { display: grid; gap: 10px; }
.cta-main { background: var(--ink); color: var(--asphalt-ink); padding: clamp(24px, 4vw, 48px); display: grid; gap: 32px; }
.cta-main h2 { font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem); color: var(--asphalt-ink); max-width: 14ch; }
.cta-main .cta-copy p { font-size: 1.0625rem; color: var(--asphalt-ink); max-width: 40ch; }
.cta-main .cta-copy .soft { color: var(--asphalt-soft); }
.cta-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta-flanks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-flank { height: 120px; overflow: hidden; background: var(--white); }
.cta-flank img { width: 100%; height: 100%; object-fit: cover; }
.cta-flank--colour { background: var(--white); display: grid; place-items: center; }
.cta-flank--colour .dot { width: 64px; height: 64px; }
.cta-flank--yellow { background: var(--yellow); display: grid; place-items: center; }
.cta-flank--yellow .dot { width: 64px; height: 64px; }
@media (min-width: 960px) {
  .cta-row { grid-template-columns: 1fr minmax(0, 8fr) 1fr; gap: 12px; margin-inline: calc(var(--margin) * -1 - 4vw); align-items: stretch; }
  .cta-flanks { display: contents; }
  .cta-flank { height: auto; min-height: 360px; }
  .cta-flank:first-child { order: -1; }
  .cta-main { grid-template-columns: 5fr 7fr; gap: 48px; padding: 48px; align-items: start; }
}
@media (min-width: 960px) and (max-width: 1199px) { .cta-main { grid-template-columns: 1fr; } }

/* Lead form on the ink tile */
.cta-main, .form-dark {
  --lead-accent: var(--yellow); --lead-accent-ink: var(--ink); --lead-fg: var(--asphalt-ink); --lead-muted: var(--asphalt-soft);
  --lead-border: #6B777D; --lead-field-bg: #10191E; --lead-error: #FF9C94;
}

/* ---------- Lead form overrides (all grounds) ---------- */
.lead-form { font-size: 1rem; }
.lead-step-title { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.lead-step-count { font-size: var(--step-small); }
.lead-progress-track { height: 6px; border-radius: var(--pill); }
.lead-label { font-weight: 600; font-size: 1rem; }
.lead-field input:not([type=radio]):not([type=checkbox]), .lead-field select, .lead-field textarea { min-height: 48px; font-size: 1rem; }
.lead-field input:focus-visible, .lead-field select:focus-visible, .lead-field textarea:focus-visible { outline: 3px solid var(--lead-accent); outline-offset: 1px; }
.lead-tile-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.lead-tile { min-height: 56px; border-width: 1px; padding: .8rem 1rem; }
.lead-tile-text { font-size: 1rem; }
.lead-tile-hint { font-size: .875rem; }
.lead-btn { border-radius: var(--pill); min-height: 48px; padding: .7rem 1.5rem; }
.lead-back { border-color: var(--lead-border); }
@media (hover: hover) and (pointer: fine) { .lead-next:hover, .lead-submit:hover { filter: brightness(1.12); } }
.lead-btn:active { transform: scale(0.97); }
.lead-done-title { font-size: 1.75rem; letter-spacing: -0.02em; }
.form-note { font-size: 1rem; margin-top: 20px; }

/* ---------- Interior page sections (service-page template) ---------- */
.scope-layout { display: grid; gap: 40px; }
.scope-photo { width: 82vw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-left: calc(var(--margin) * -1 - 8vw); max-height: 70svh; }
.scope-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 62ch; }
.prose h2 { font-size: var(--step-head); margin-bottom: 28px; max-width: 16ch; }
.prose h3 { font-size: 1.375rem; margin: 36px 0 10px; }
.prose p, .prose li { font-size: var(--step-body); }
.marked-list { list-style: none; display: grid; gap: 18px; margin: 20px 0 0; }
.marked-list li { display: grid; grid-template-columns: calc(.72em + 14px) 1fr; align-items: baseline; }
.marked-list li .dot { transform: translateY(.05em); }
.marked-list strong { font-weight: 600; }
@media (min-width: 960px) {
  .scope-layout { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .scope-photo { width: calc(112% + var(--margin)); max-height: none; margin-left: calc(-12% - var(--margin)); position: sticky; top: 24px; }
}

/* Two columns of text on one ground: "when you need it" / "what to prepare" */
.twin { display: grid; gap: 56px; }
.twin h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 3rem); margin-bottom: 24px; max-width: 14ch; }
@media (min-width: 960px) { .twin { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Rules panel on service pages reuses .panel; the planner sits in its right column */

/* Sibling links: rows on a tone step, no rules */
.siblings { list-style: none; display: grid; gap: 8px; }
.siblings a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em;
  text-decoration: none; min-height: 64px; background: var(--white); transition: background-color var(--t-hover) ease; }
.siblings a::after { content: "\2192"; margin-left: auto; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .siblings a:hover { background: var(--yellow); } .siblings a:hover::after { transform: translateX(6px); } }
.siblings-layout .section-head { margin-bottom: 0; }
.siblings-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .siblings-layout { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* ---------- Quote page ---------- */
.quote-layout { display: grid; gap: 32px; padding-block: 0 var(--section); grid-template-areas: "head" "form" "steps"; }
.quote-head { grid-area: head; } .form-panel { grid-area: form; } .quote-steps { grid-area: steps; }
.quote-layout h1 { font-size: var(--step-display-page); max-width: 11em; }
.quote-steps > h2 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.form-panel { background: var(--white); padding: clamp(20px, 3.5vw, 44px); }
.next-steps { list-style: none; display: grid; gap: 22px; margin-top: 28px; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 0 14px; align-items: start; }
.next-steps .hole { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); margin-top: 2px; }
.next-steps li:nth-child(2) .hole { transform: scale(.78); }
.next-steps li:nth-child(3) .hole { transform: scale(.56); }
.next-steps h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 4px; }
.next-steps p { font-size: 1rem; color: var(--ink-on-yellow-soft); max-width: 44ch; }
@media (min-width: 960px) {
  .quote-layout { grid-template-columns: 5fr 7fr; grid-template-areas: "head form" "steps form"; grid-template-rows: auto 1fr; gap: 40px clamp(40px, 5vw, 80px); align-items: start; }
}

/* ---------- Footer: the name, built large ---------- */
.site-footer { background: var(--ink); color: var(--asphalt-ink); padding: clamp(56px, 7vw, 104px) var(--margin) 40px; overflow: hidden; }
.footer-name { font-size: clamp(2.5rem, 8.8vw, 9.5rem); font-weight: 600; letter-spacing: -0.055em; line-height: .86; color: var(--yellow);
  margin: 0 0 clamp(40px, 5vw, 72px); max-width: var(--maxw); margin-inline: auto; }
.footer-grid { display: grid; gap: 40px 32px; max-width: var(--maxw); margin: 0 auto; grid-template-columns: 1fr 1fr; }
.footer-col h2 { font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 14px; color: var(--yellow); }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; font-size: .9375rem; text-decoration: none; color: var(--asphalt-ink); }
@media (hover: hover) and (pointer: fine) { .footer-col ul a:hover { text-decoration: underline; } }
.footer-col p { font-size: .9375rem; color: var(--asphalt-soft); max-width: 40ch; }
.footer-contact .btn { margin: 12px 8px 0 0; min-height: 44px; font-size: .9375rem; color: var(--ink); }
.footer-contact .btn-ghost-dark { color: var(--asphalt-ink); }
.footer-contact, .footer-disclosure { grid-column: 1 / -1; }
.footer-base { max-width: var(--maxw); margin: 48px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font-size: var(--step-small); color: var(--asphalt-soft); }
.footer-base p { margin: 0; align-self: center; }
.footer-base ul { list-style: none; display: flex; gap: 4px 20px; flex-wrap: wrap; }
.footer-base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--asphalt-ink); }
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.1fr .8fr 1fr 1.3fr; }
  .footer-contact, .footer-disclosure { grid-column: auto; }
}

/* ---------- Entrances (only once site.js has run; content never waits on a failed script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] > * { opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--n, 0) * 80ms); }
  .reveal-ready [data-reveal].is-in > * { opacity: 1; transform: none; }
  .how-figure circle { transition: transform 900ms var(--ease-out); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero-shape, .cta-section, .lead-wa-float { display: none !important; }
  body { background: #fff; }
}
