/* ============================================================
   100MOD Exterior — styles
   Palette: navy #031D41 · white #FEFEFE (monochrome, luxury)
   Rule: simplicity first. CTAs are white-on-navy / navy-on-white.
   ============================================================ */

:root {
  --navy-900: #031D41;
  --navy-950: #02132A;
  --navy-800: #0B2447;
  --navy-500: #3F536F;
  --navy-100: #DCDFE4;
  --navy-50:  #F0F1F4;
  --white:    #FEFEFE;
  --ink:      #0A1526;

  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-lift: 0 10px 30px -12px rgba(3, 29, 65, 0.28);
  --shadow-hover: 0 14px 34px -14px rgba(3, 29, 65, 0.34);
  --shadow-header: 0 4px 20px -8px rgba(2, 19, 42, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 { color: var(--navy-900); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.1875rem; font-weight: 600; }

p { max-width: 68ch; }

a { color: var(--navy-900); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy-900);
  outline-offset: 2px;
}

.section { padding-block: 88px; }
.section-lead { color: var(--navy-500); margin-top: 8px; margin-bottom: 40px; }
.section-mist { background: var(--navy-50); }
.section-navy { background: var(--navy-900); }
.section-navy h2 { color: var(--white); }
.section-navy p, .section-navy li { color: var(--navy-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 26px;
  cursor: pointer;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn-lg { padding: 17px 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* On navy surfaces: white button, navy text */
.btn-primary { background: var(--white); color: var(--navy-950); }
.btn-primary:hover {
  background: var(--navy-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover), 0 0 0 3px rgba(255, 255, 255, 0.28);
}

/* On white surfaces: navy button, white text */
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn-outline {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* ---------- Header (transparent over hero, navy after scroll) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding-top: env(safe-area-inset-top);
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.site-header.scrolled,
.site-header.menu-open { background: var(--navy-900); box-shadow: var(--shadow-header); }

/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 11px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 250ms var(--ease), opacity 200ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-header);
  padding: 8px 24px 22px;
  max-height: calc(100dvh - 64px); /* vh includes iOS's collapsing toolbar */
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  display: block;
  color: var(--navy-100);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu a:not(.btn):active { color: var(--white); }
.mobile-menu .btn { margin-top: 18px; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 12px;
}
.brand-logo { height: 56px; width: auto; }

.main-nav { display: flex; gap: 10px; margin-left: auto; }
.main-nav a {
  color: var(--navy-100);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-link {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.phone-link:hover { text-decoration: underline; }

/* ---------- Hero (video background, navy fallback) ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: min(100vh, 940px);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 19, 42, 0.72) 0%, rgba(3, 29, 65, 0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 430px);
  gap: 56px;
  align-items: center;
  padding-block: 150px 96px; /* extra top clearance for the fixed transparent header */
}
.hero-copy { max-width: 560px; }
.hero h1 { color: var(--white); }
.hero-sub { color: var(--navy-100); margin-top: 20px; font-size: 1.125rem; }
.hero-trust { color: rgba(228, 231, 236, 0.92); font-size: 0.9375rem; margin-top: 24px; }
.hero-secondary { margin-top: 28px; }
.hero-mobile-cta { display: none; } /* phones only — see the 640px block */

/* Hero estimate form card */
.hero-form-wrap { justify-self: end; width: 100%; }
.hero-form { padding: 28px; gap: 15px; }
.form-head { display: grid; gap: 6px; margin-bottom: 4px; }
.form-head h2 { font-size: 1.5rem; }
.form-head p { color: var(--navy-500); font-size: 0.9375rem; }

/* Gentle staggered entrance for the hero */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero h1         { animation: rise 600ms var(--ease) both; }
.hero-sub        { animation: rise 600ms var(--ease) 120ms both; }
.hero-trust      { animation: rise 600ms var(--ease) 220ms both; }
.hero-secondary  { animation: rise 600ms var(--ease) 300ms both; }
.hero-form-wrap  { animation: rise 700ms var(--ease) 260ms both; }

/* ---------- Survey entry card (hero) — frosted glass over video ---------- */
.survey-entry {
  background: rgba(3, 29, 65, 0.52);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 24px 60px -24px rgba(2, 19, 42, 0.7);
}
/* If backdrop-filter is unsupported, lean opaque so text stays legible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .survey-entry { background: rgba(3, 29, 65, 0.92); }
}
.survey-entry .form-head h2 { color: var(--white); }
.survey-entry .form-head p { color: rgba(255, 255, 255, 0.82); }
.entry-q {
  font-weight: 700;
  color: var(--white);
  font-size: 1.0625rem;
  margin: 6px 0 16px;
}
.entry-options { display: grid; gap: 10px; }

.survey-option {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease),
              color 150ms var(--ease), transform 150ms var(--ease);
}
/* Entry options (on glass) */
.entry-options .survey-option {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
}
.entry-options .survey-option:hover,
.entry-options .survey-option:focus-visible {
  background: var(--white);
  color: var(--navy-950);
  border-color: var(--white);
  transform: translateX(3px);
}

/* ---------- Full-screen survey overlay ---------- */
.survey { position: fixed; inset: 0; z-index: 100; }
.survey[hidden] { display: none; }

.survey-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 19, 42, 0.6);
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.survey.open .survey-backdrop { opacity: 1; }

.survey-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--navy-900);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: max(20px, env(safe-area-inset-top)) clamp(20px, 6vw, 64px) max(40px, env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.965);
  transform-origin: 75% 40%;
  transition: opacity 320ms var(--ease), transform 420ms var(--ease);
}
.survey.open .survey-panel { opacity: 1; transform: none; }

.survey-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 6px;
}
.survey-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}
.survey-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0.25); /* 1 of 4 steps */
  transform-origin: left center;
  background: var(--white);
  border-radius: 999px;
  transition: transform 400ms var(--ease);
}
.survey-close {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--white);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 150ms var(--ease);
}
.survey-close:hover { background: rgba(255, 255, 255, 0.12); }

.survey-body {
  align-self: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding-block: 24px;
}
.survey-step-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 12px;
}
.survey-step {
  border: 0; padding: 0; margin: 0; min-width: 0;
  display: grid;
  gap: 16px;
  align-content: start;
}
.survey-step[hidden] { display: none; } /* keep [hidden] winning over display:grid */
.survey-step h2,
.survey-success h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.125rem); margin: 0; }
.survey-hint { color: var(--navy-100); margin: -6px 0 6px; }
.survey-options { display: grid; gap: 12px; }
.survey-step .form-row { margin: 0; }

/* Overlay options (on navy) */
.survey-step .survey-option {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.survey-step .survey-option:hover,
.survey-step .survey-option:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateX(3px);
}
.survey-option.is-selected {
  background: var(--white);
  color: var(--navy-950);
  border-color: var(--white);
}

/* Contact step fields on navy */
.survey-step .form-field label { color: var(--white); }
.survey-step .form-field .optional { color: rgba(255, 255, 255, 0.6); font-weight: 400; }

.survey-success p { color: var(--navy-100); margin: 12px 0 28px; }

/* Address autocomplete (combobox) */
.addr { position: relative; }
.addr-input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--navy-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.addr-input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  outline: none;
}
.addr-list {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  max-height: 320px;
  overflow-y: auto;
}
.addr-list[hidden] { display: none; }
.addr-option {
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.9375rem;
}
.addr-option:hover,
.addr-option.is-active { background: var(--navy-50); }
.addr-status {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  margin-top: 10px;
  min-height: 1em;
}

.survey-nav { margin-top: 22px; }
.survey-back {
  font: inherit;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: none;
  padding: 10px 4px;
  cursor: pointer;
}
.survey-back:hover { color: var(--white); }

.survey :focus-visible { outline-color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .survey-option:hover, .survey-option:focus-visible { transform: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--navy-100); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding-block: 48px;
}
.trust-item h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.trust-item p { color: var(--navy-500); font-size: 0.9375rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  display: block;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--navy-500); font-size: 0.9375rem; margin-bottom: 16px; }
.card-cta { font-weight: 700; font-size: 0.9375rem; color: var(--navy-900); }
.service-card:hover .card-cta { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Why / brand pillars ---------- */
.why-heading { max-width: 20ch; }
.why-lead {
  color: var(--navy-100);
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 66ch;
  margin-top: 18px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 46px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.pillar {
  padding: 30px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.pillar:first-child { border-left: none; padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar h3 {
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.pillar p { color: var(--navy-100); font-size: 0.9375rem; max-width: 32ch; }
.why-cta { margin-top: 4px; }

/* ---------- Process ---------- */
.process-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 14px;
}
.process-steps h3 { margin-bottom: 6px; }
.process-steps p { color: var(--navy-500); font-size: 0.9375rem; }

/* ---------- Areas: four-state service map ----------
   A blueprint sheet, the trade's own drawing: deep navy water with a faint
   drafting grid, neighbors as dim silhouettes cropping at the frame, and the
   four service states in white — the same white-on-navy figure/ground as the
   site's buttons. Brightest = where we work. No legend needed. */
.area-map {
  position: relative;
  max-width: 720px;
  margin: 4px auto 26px;
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.area-map-svg { line-height: 0; }
.area-svg { width: 100%; height: auto; display: block; overflow: hidden; }

.water { fill: var(--navy-950); }

/* Ghosted context: present as land, unmistakably not the subject. */
.neighbor {
  fill: var(--navy-800);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  pointer-events: none;
}

/* All four states are equal — the company works out of every one of them,
   so none is highlighted as a base. */
.state {
  fill: var(--white);
  stroke: var(--navy-500);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 180ms var(--ease);
}
.state:hover { fill: var(--navy-100); }
.state:focus-visible { outline: none; fill: var(--navy-100); stroke: var(--white); stroke-width: 2.5; }

/* Labels sit on the shapes, so they ride along with pointer events disabled. */
.state-label {
  fill: var(--navy-950);
  font-family: inherit;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.02em;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
/* Delaware is too narrow to hold its label; this one sits out on the water. */
.state-label.is-outside { fill: var(--white); text-anchor: start; }
.leader { stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; pointer-events: none; }

.area-note { color: var(--navy-500); font-size: 0.9375rem; text-align: center; }

/* ---------- Closing CTA ---------- */
.final-cta-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.final-cta p { color: var(--navy-100); margin-top: 16px; }
.estimate-reassure { font-weight: 600; color: var(--white) !important; margin-top: 10px; margin-bottom: 28px; }

/* Shared form fields (used by the survey) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 600; font-size: 0.9375rem; color: var(--navy-900); }
.form-field .optional { font-weight: 400; color: var(--navy-500); }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--navy-100);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(3, 29, 65, 0.15);
  outline: none;
}

.form-status { font-weight: 600; color: #1D6F42; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--navy-100); padding-block: 64px 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 84px; width: auto; }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-col p { margin-bottom: 8px; font-size: 0.9375rem; color: var(--navy-100); }
.footer-col a { color: var(--navy-100); text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
}
.footer-legal p { color: rgba(255, 255, 255, 0.62); font-size: 0.875rem; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--navy-950);
  /* Guarantee a minimum gap below the button even when the browser doesn't
     report a safe-area inset (e.g. Chrome devtools) so it never looks cut off. */
  padding: 12px 16px max(24px, env(safe-area-inset-bottom));
  gap: 12px;
  box-shadow: 0 -4px 20px -8px rgba(2, 19, 42, 0.5);
}
.mobile-bar .btn { flex: 1; padding: 15px 10px; font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-inner, .estimate-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner { padding-block: 104px 56px; }
  .hero-copy { max-width: none; }
  .hero-form-wrap { justify-self: stretch; max-width: 520px; }
  .main-nav { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 64px; }
}

@media (max-width: 640px) {
  .brand-logo { height: 44px; }

  /* ----- Hero: full-bleed video, headline low in the fold, one action -----
     svh is the viewport with the browser toolbars *showing*, so the composition
     never gets cropped by Safari's chrome on first paint. */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    align-items: end;                       /* sit the copy low, not centered */
  }
  .hero-inner { padding-block: 120px 30svh; }

  /* The old clamp(2rem, 8vw, …) never fell below its 2rem floor on a phone
     (8vw = 30px at 375px), so the headline always rendered 32px into a 327px
     column. Lowering the floor lets viewport width actually govern. */
  .hero h1 { font-size: clamp(1.75rem, 8.5vw, 2.5rem); }
  .hero h1 br { display: none; }            /* let it wrap where it fits, not at a fixed word */
  .hero-sub { display: none; }              /* the headline carries the hero alone */
  .hero-trust { display: none; }            /* three ·-joined claims wrap to a ragged block */
  .hero-secondary { display: none; }
  .hero-form-wrap { display: none; }        /* the survey card lives behind the CTA now */

  .hero-mobile-cta {
    display: inline-block;
    margin-top: 32px;
    padding: 15px 30px;
    animation: rise 600ms var(--ease) 260ms both;
  }

  /* The video's brightness is not ours to control, so hold the floor darker
     on small screens where the copy sits directly over it. */
  .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 19, 42, 0.82) 0%, rgba(3, 29, 65, 0.9) 100%);
  }

  /* ----- Rhythm: 64px of dead space between every section reads as endless ----- */
  .section { padding-block: 48px; }
  .trust-inner { padding-block: 36px; gap: 26px; }
  .site-footer { padding-block: 48px 0; }

  /* ----- 15px is a notch small for the proof copy people actually read ----- */
  .trust-item p,
  .service-card p,
  .pillar p,
  .process-steps p,
  .footer-col p,
  .area-note { font-size: 1rem; }

  /* Footer links are ~24px tall stacked 8px apart — under any touch minimum */
  .footer-col p { margin-bottom: 2px; }
  .footer-col a { display: inline-block; padding: 10px 0; }

  .survey-entry { padding: 22px; }
  .entry-options .survey-option { padding: 14px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Brand pillars stack vertically with horizontal dividers */
  .pillars { grid-template-columns: 1fr; border-top: none; margin: 32px 0; }
  .pillar { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 22px 0; }
  .pillar p { max-width: none; }

  .final-cta .btn { width: 100%; }

  /* ----- Survey overlay -----
     The panel must not drift. `overflow-y:auto` lets iOS rubber-band a
     container even when its content fits, and a dvh height re-measures every
     time Safari's toolbar collapses. Pin the height to the overlay and kill
     overscroll; the panel then only scrolls if a step genuinely overflows
     (a short phone with the keyboard up), never for a bounce. */
  .survey { height: 100dvh; }
  .survey-panel {
    height: 100%;
    overscroll-behavior: none;
  }
  /* A centered grid item taller than its track overflows both edges, so the
     heading scrolls off the top and cannot be reached. Anchor to the top. */
  .survey-body { align-self: start; }
  /* Suggestions must open upward: the input sits above the on-screen keyboard,
     and anything below it is covered the moment the keyboard appears. */
  .addr-list { top: auto; bottom: calc(100% + 6px); max-height: 40vh; }

  /* ----- Service map: the SVG scales, so its type must grow in user units
     or it lands around 11px on a phone. ----- */
  .state-label { font-size: 52px; }
  .leader { stroke-width: 3; }

  /* ----- Sticky bar: only once the hero's own CTA is gone ----- */
  .mobile-bar {
    display: flex;
    transform: translateY(110%);
    transition: transform 260ms var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ----- Short phones (iPhone SE / 8 and smaller): compress the survey so every
   step fits its screen. A step that overflows is a step the user has to scroll,
   and scrolling a one-question modal feels broken. Option rows stay >=44px. ----- */
@media (max-width: 640px) and (max-height: 740px) {
  .survey-panel {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .survey-body { padding-block: 8px; }
  .survey-step-label { margin-bottom: 6px; }
  .survey-step { gap: 10px; }
  .survey-step h2, .survey-success h2 { font-size: 1.3125rem; }
  .survey-hint { margin: -4px 0 2px; }
  .survey-options { gap: 8px; }
  .survey-step .survey-option { padding: 11px 14px; }   /* 47.6px tall */
  .survey-nav { margin-top: 10px; }
  .survey-step .form-row { gap: 12px; }
  .form-field { gap: 4px; }
  .survey-step .form-field input { padding: 11px 12px; }
}

@media (max-width: 640px) and (max-height: 640px) {
  .survey-hint { display: none; }   /* the question alone is enough at this size */
}
