/* =============================================================================
   Atlas Infrastructure: site styles
   Brand: black, brushed silver and orange, drawn from the Atlas lockup.
   Type: Archivo (variable width; expanded heavy for display, normal for body)
   and IBM Plex Mono for measurements and labels. Both self-hosted.
   ============================================================================= */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2?v=1") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/plex-mono-500.woff2?v=1") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101012;
  --ink-2: #1a1b1d;
  --ink-3: #292b2e;
  --paper: #f6f5f2;
  --paper-2: #eae9e6;
  --line: #cececb;
  --line-dark: rgba(246, 245, 242, 0.16);
  --text: #171b1e;
  --text-muted: #565c60;
  --text-light: #f6f5f2;
  --text-light-muted: rgba(246, 245, 242, 0.72);
  --level: #ff681f;
  --level-hi: #ff8848;
  --level-ink: #a33200;
  --foam: #e9a53f;
  --soil: #4b4037;
  --danger: #b3261e;

  /* Kit-compatible aliases (privacy and 404 pages, shared components) */
  --color-bg: var(--paper);
  --color-bg-alt: var(--paper-2);
  --color-bg-dark: var(--ink);
  --color-text: var(--text);
  --color-text-muted: var(--text-muted);
  --color-text-light: var(--text-light);
  --color-primary: var(--level-ink);
  --color-border: var(--line);

  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --section: clamp(3.25rem, 6.5vw, 6rem);
  --radius: 4px;
  --header-h: 80px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--level);
  outline-offset: 3px;
}

.on-paper :focus-visible,
.legal :focus-visible {
  outline-color: var(--ink);
}

h1,
h2,
.display {
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.25rem);
}

/* Display lettering follows the wide, forward-slanted Atlas wordmark. */
.hero h1,
.section-head h2,
.contact-left h2,
.legal-hero h1,
.error-page h1 {
  font-style: italic;
  text-transform: uppercase;
}

.section-head h2,
.contact-left h2 {
  font-size: clamp(1.65rem, 3.25vw, 2.8rem);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1.08;
}

h3 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--level);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section--dark {
  background: var(--ink);
  color: var(--text-light);
}

.section--tint {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 62rem;
}

.section-head p {
  max-width: 44rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.section--dark .section-head p {
  color: var(--text-light-muted);
}

/* The level rule: a hairline with a centered vial bubble. Brand device used
   once per section head, never as random decoration. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 0.5rem;
  border: 1.5px solid currentColor;
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 50%, var(--level) 0 0.16rem, transparent 0.17rem);
}

.section--dark .eyebrow,
.legal-hero .eyebrow,
.error-page .eyebrow {
  color: var(--text-light-muted);
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn-primary {
  background: var(--level);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--level-hi);
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-ghost:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--text-light);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text-light);
  transform: translateY(-2px);
}

.on-paper .btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.on-paper .btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.on-paper .btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.on-paper .btn-primary:hover {
  background: var(--ink-3);
}

.btn-arrow {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* =============================================================================
   Logo lockup
   ============================================================================= */

.logo-block {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-light);
  text-decoration: none;
}

.brand-lockup {
  width: 8.5rem;
  height: auto;
}

.site-footer .brand-lockup {
  width: 11rem;
}

/* =============================================================================
   Header + navigation (class names are the kit's: js/main.js drives them)
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #030303;
  color: var(--text-light);
  border-bottom: 1px solid var(--line-dark);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 24, 27, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav-menu-links {
  display: flex;
  gap: 1.6rem;
}

.nav-menu-links a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.18s var(--ease);
}

.nav-menu-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--level);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.nav-menu-links a:hover {
  color: var(--level);
}

.nav-menu-links a:hover::after,
.nav-menu-links a[aria-current="location"]::after {
  transform: scaleX(1);
}

.header-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--level);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-quote:hover,
.header-quote:focus-visible {
  background: var(--level);
  color: var(--ink);
}

@media (max-width: 1040px) {
  .header-quote {
    color: var(--ink);
  }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta--bar {
  background: var(--level);
  color: var(--ink);
  transition: background-color 0.18s var(--ease);
}

.header-cta--bar:hover {
  background: var(--level-hi);
}

.header-cta--drawer,
.nav-close,
.nav-toggle {
  display: none;
}

/* Below the header (z 100): the drawer lives inside the header's stacking
   context, so a backdrop above the header would cover the drawer too. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 12, 14, 0.5);
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: 0.25rem;
    padding: 0;
    border: 1.5px solid var(--line-dark);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    background: var(--text-light);
  }

  .header-cta--bar {
    margin-left: auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    width: min(21rem, 88vw);
    margin: 0;
    padding: 5rem 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 48px -24px rgba(20, 24, 27, 0.35);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0s linear 0.28s;
  }

  .nav-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.28s var(--ease), visibility 0s;
  }

  .nav-menu-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-stretch: 112%;
    font-size: 1.2rem;
    color: var(--ink);
  }

  .nav-menu-links a::after {
    display: none;
  }

  .nav-close {
    display: grid;
    place-content: center;
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
  }

  .header-cta--drawer {
    display: inline-flex;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    min-height: 3.25rem;
  }
}

@media (max-width: 560px) {
  .header-cta--bar {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }
}

/* =============================================================================
   Hero: steel tones, an orange edge and a photo of a typical slab.
   ============================================================================= */

.hero {
  background: linear-gradient(125deg, #101012 40%, #232427);
  border-bottom: 3px solid var(--level);
  padding-block: clamp(2.25rem, 4.6vw, 4.5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 840px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.hero-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.hero h1 {
  max-width: 100%;
  font-size: clamp(1.85rem, 3.45vw, 3.1rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--level);
}

.hero-lead {
  max-width: 35rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  color: var(--text-light-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-photo {
  position: relative;
  min-width: 0;
}

.hero-photo [hidden] {
  display: none;
}

.hero-gallery-controls {
  position: absolute;
  inset: auto 0.6rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--text-light);
}

.hero-gallery-controls span[data-hero-status] {
  margin-inline: 0.45rem auto;
  font-size: 0.875rem;
}

.hero-gallery-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.hero-gallery-controls button:hover {
  background: var(--level);
  color: var(--ink);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--level);
  border-radius: var(--radius);
}

/* =============================================================================
   The problem
   ============================================================================= */

.problem-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.problem-head .section-head {
  margin-bottom: 0;
}

.problem-lead {
  display: grid;
  gap: 1rem;
  align-content: end;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.problem-lead strong {
  color: var(--text);
}

@media (min-width: 900px) {
  .problem-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: end;
  }
}

.problem-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: stretch;
  }
}

.problem-photo {
  align-self: start;
}

.problem-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.problem-photo-credit {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.problem-cards {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

@media (min-width: 620px) {
  .problem-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.problem-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--paper-2);
  border-radius: 6px;
  border-top: 4px solid var(--ink);
}

.problem-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.signs {
  display: grid;
}

.signs li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.signs li::before {
  content: "";
  width: 1.5rem;
  height: 0.5rem;
  margin-top: 0.6rem;
  border: 1.5px solid var(--text-muted);
  border-radius: 1rem;
  background: radial-gradient(circle at 78% 50%, var(--foam) 0 0.15rem, transparent 0.16rem);
}

.problem-note {
  grid-column: 1 / -1;
  color: var(--text-muted);
}

/* =============================================================================
   The fix: lift demo beside the benefits (the page's one dark band)
   ============================================================================= */

.fix-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 1000px) {
  .fix-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.benefits {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.benefits li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.benefits svg {
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--level);
}

.benefits h3 {
  font-size: 1.2rem;
}

.benefits p {
  color: var(--text-light-muted);
  font-size: 1rem;
}

.fix-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* The lift demo: drag (or watch) a settled slab come back to level. */
.lift {
  --p: 1;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  overflow: hidden;
}

.lift-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-light-muted);
}

.lift-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.lift-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--foam);
}

.lift.is-level .lift-status::before {
  background: var(--level);
}

.lift-svg {
  width: 100%;
  height: auto;
}

.lift-svg text {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: rgba(246, 245, 242, 0.7);
}

@media (max-width: 640px) {
  .lift-svg text {
    font-size: 17px;
  }
}

.lift-slab,
.lift-foam,
.lift-drop,
.lift-bubble,
.lift-fade-out,
.lift-fade-in {
  transform-box: view-box;
}

.lift-slab {
  transform-origin: 486px 210px;
  transform: rotate(calc((1 - var(--p)) * -6.2deg));
}

.lift-foam {
  transform-origin: 360px 262px;
  transform: scale(var(--p));
}

.lift-drop {
  transform-origin: 222px 210px;
  transform: scaleY(calc(1 - var(--p)));
  opacity: calc((1 - var(--p)) * 4);
}

.lift-bubble {
  transform: translateX(calc((1 - var(--p)) * 8px));
}

.lift-fade-out {
  opacity: calc(1 - var(--p) * 2.2);
}

.lift-fade-in {
  opacity: calc(var(--p) * 2 - 0.9);
}

.lift-control {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-top: 1px solid var(--line-dark);
}

.lift-control[hidden] {
  display: none;
}

.lift-control label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-light-muted);
}

.lift-control output {
  color: var(--text-light);
  white-space: nowrap;
}

.lift-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: grab;
  --fill: calc(var(--p) * 100%);
}

.lift-range:active {
  cursor: grabbing;
}

.lift-range::-webkit-slider-runnable-track {
  height: 0.5rem;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--level) 0 var(--fill), var(--ink-3) var(--fill) 100%);
}

.lift-range::-moz-range-track {
  height: 0.5rem;
  border-radius: 1rem;
  background: var(--ink-3);
}

.lift-range::-moz-range-progress {
  height: 0.5rem;
  border-radius: 1rem;
  background: var(--level);
}

.lift-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: -0.875rem;
  border-radius: 50%;
  border: 3px solid var(--ink-2);
  background: var(--level);
  box-shadow: 0 0 0 2px var(--level);
}

.lift-range::-moz-range-thumb {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 3px solid var(--ink-2);
  background: var(--level);
  box-shadow: 0 0 0 2px var(--level);
}

.lift-note {
  padding: 0 1rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-light-muted);
}

/* =============================================================================
   On the day: the four step figures
   ============================================================================= */

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  counter-reset: step;
}

.step {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.5rem;
  background: var(--paper);
  counter-increment: step;
}

.step-fig {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border-radius: var(--radius);
}

.step-num {
  color: var(--text-muted);
}

.step-num::before {
  content: "Step 0" counter(step);
}

.step p {
  color: var(--text-muted);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.compare-wrap {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 52rem;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.compare caption {
  text-align: left;
  padding-bottom: 1rem;
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.35rem;
}

.compare th,
.compare td {
  padding: 0.9rem 0.9rem 0.9rem 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.compare thead th {
  border-top: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.compare thead th:nth-child(2) {
  color: var(--ink);
  box-shadow: inset 0 -0.5rem 0 var(--level);
}

.compare tbody th {
  font-weight: 700;
  width: 26%;
}

.compare td {
  color: var(--text-muted);
}

.compare td:nth-child(2) {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 520px) {
  .compare {
    font-size: 0.9375rem;
  }
}

/* =============================================================================
   Getting started
   ============================================================================= */

.start-steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: start;
}

@media (min-width: 820px) {
  .start-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.start-steps li {
  position: relative;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
  counter-increment: start;
}

.start-steps li::before {
  content: counter(start);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(to top, var(--level) 0 0.3em, transparent 0.3em);
  justify-self: start;
  padding-inline: 0.08em;
}

.start-steps h3 {
  font-size: 1.35rem;
}

.start-steps p {
  color: var(--text-muted);
}

.expect {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border-radius: 6px;
}

.expect h3 {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.expect ul {
  display: grid;
  gap: 1rem 2rem;
}

@media (min-width: 820px) {
  .expect ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.expect li {
  color: var(--text-muted);
}

.expect strong {
  display: block;
  color: var(--text);
  font-stretch: 112%;
}

/* =============================================================================
   Services: one method, seven names
   ============================================================================= */

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
}

.service-links a {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 700;
}

.quote-title-link {
  text-decoration: underline;
  text-decoration-color: var(--level-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.19em;
}

.quote-title-link:hover,
.quote-title-link:focus-visible {
  color: var(--level-ink);
}

.quote-title-link span {
  display: inline-block;
  margin-inline-start: 0.2em;
  color: var(--level-ink);
}

.names-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* =============================================================================
   Surfaces
   ============================================================================= */

.surfaces {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 680px) {
  .surfaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 1100px) {
  .surfaces {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.surface {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.surface-img {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}

.surface-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.surface:hover .surface-img img {
  transform: scale(1.04);
}

.surface p {
  color: var(--text-muted);
  font-size: 1rem;
}

.surface h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  font-size: 1.35rem;
}

/* =============================================================================
   Service area
   ============================================================================= */

.area-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .area-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .area-map {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.area-map {
  background: var(--ink);
  border-radius: 6px;
  padding: clamp(0.75rem, 2vw, 1.25rem);
}

.area-map svg {
  width: 100%;
  height: auto;
}

.area-map text {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  fill: rgba(246, 245, 242, 0.78);
}

.area-map text {
  paint-order: stroke;
  stroke: var(--ink);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map-leader {
  fill: none;
  stroke: rgba(246, 245, 242, 0.3);
  stroke-width: 1;
}

.map-dots .map-dot-key {
  fill: var(--text-light);
}

.area-map .map-ring-label {
  fill: var(--level);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.area-map .map-center-label {
  fill: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.map-ring {
  fill: rgba(255, 104, 31, 0.05);
  stroke: var(--level);
  stroke-width: 1.5;
}

.map-ring-inner {
  fill: none;
  stroke: rgba(246, 245, 242, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.map-axis {
  stroke: rgba(246, 245, 242, 0.1);
  stroke-width: 1;
}

.map-dots circle {
  fill: rgba(246, 245, 242, 0.5);
}

.map-center {
  fill: var(--level);
}

.town-tools {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.town-tools[hidden] {
  display: none;
}

.town-search {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 16px;
}

.town-search::placeholder {
  color: var(--text-muted);
}

.town-count {
  color: var(--text-muted);
}

.town-list {
  columns: 2;
  column-gap: 1.5rem;
  font-size: 0.975rem;
}

.town-list li {
  break-inside: avoid;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}

.town-list li[hidden],
.town-list[hidden] {
  display: none;
}

/* Phones: 146 towns would run for several screens, so the list scrolls inside
   its own box (grid, not columns: columns overflow sideways in a scroll box). */
@media (max-width: 559px) {
  .town-list {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
    align-content: start;
    max-height: 23rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.5rem;
    border-block: 2px solid var(--ink);
  }
}

@media (min-width: 560px) {
  .town-list {
    columns: 3;
  }
}

@media (min-width: 1160px) {
  .town-list {
    columns: 4;
  }
}

.town-empty {
  padding: 1.25rem;
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius);
}

.town-empty[hidden] {
  display: none;
}

.town-empty a {
  font-weight: 700;
}

.area-outside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--paper-2);
  border-radius: var(--radius);
}

.area-outside p {
  max-width: 30rem;
  font-weight: 600;
}

/* =============================================================================
   FAQ
   ============================================================================= */

.faq-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .faq-grid .section-head {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    margin-bottom: 0;
  }
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-0.2rem) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq-list details[open] summary::after {
  transform: translateY(0.15rem) rotate(225deg);
}

.faq-list details p {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--text-muted);
  max-width: 42rem;
}

/* =============================================================================
   Contact + form (kit class names; inputs stay 16px for iOS)
   ============================================================================= */

.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 940px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.contact-left {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.contact-left > p {
  color: var(--text-light-muted);
  font-size: 1.125rem;
  max-width: 30rem;
}

.contact-points {
  width: 100%;
  border-top: 1px solid var(--line-dark);
}

.contact-points li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.contact-points span {
  color: var(--text-light-muted);
}

.contact-points a {
  font-weight: 700;
  text-decoration-color: var(--level);
  text-underline-offset: 0.25em;
}

.contact-form-panel {
  background: var(--paper);
  color: var(--text);
  border-radius: 6px;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
}

.contact-form-panel h3 {
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.contact-form-panel.is-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
}

.form-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.form-group label small {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 0.85rem;
  background: #fff;
  border: 1.5px solid #8b8f8c;
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  /* 16px minimum: iOS Safari zooms the page on smaller inputs */
  font-size: 16px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form-group textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7074;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 104, 31, 0.75);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid {
  border-color: var(--danger);
}

/* Address group (js/tdm-address.js + css/tdm-address.css): Street, then City,
   then State + ZIP. The dropdown is themed for the light form panel. */
.tdm-address {
  row-gap: 0.75rem;
  --tdm-gap: 0.75rem;
  --tdm-ac-bg: #fff;
  --tdm-ac-fg: var(--text);
  --tdm-ac-muted: #5e5e5e;
  --tdm-ac-border: #8b8f8c;
  --tdm-ac-active: var(--paper-2);
  --tdm-ac-radius: var(--radius);
  --tdm-ac-attr: #5e5e5e;
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2314181b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
}

/* "State*" placeholder option reads like the other placeholders */
.form-group select:invalid {
  color: #6b7074;
}

.form-group select option {
  color: var(--text);
  background: #fff;
}

.honey {
  position: absolute;
  left: -9999px;
}

.cf-turnstile {
  margin-bottom: 0.5rem;
}

.recaptcha-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

/* Google's terms: hide the reCAPTCHA badge only while the disclosure note is on the page */
body:has(.recaptcha-note) .grecaptcha-badge {
  visibility: hidden;
}

.field-error {
  margin-top: 0.3rem;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
}

.form-error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--danger);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-error[hidden] {
  display: none;
}

.tdm-form-status {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
}

.form-submit:hover {
  background: var(--ink-3);
}

.form-submit.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.form-fine {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-success-msg {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 1.5rem;
}

.form-success-msg h3 {
  margin: 0;
  font-size: 1.75rem;
}

.form-success-msg p {
  color: var(--text-muted);
  max-width: 24rem;
}

/* =============================================================================
   Footer
   ============================================================================= */

.site-footer {
  background: #0e1113;
  color: var(--text-light-muted);
  padding-block: 3rem 2rem;
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 820px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  }
}

.footer-inner > div {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  justify-items: start;
}

.footer-inner h2 {
  font-family: var(--font-mono);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.footer-inner a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
  text-decoration-color: var(--level);
  text-underline-offset: 0.25em;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

/* =============================================================================
   Mobile action bar (hidden while the hero or the form is on screen)
   ============================================================================= */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform 0.25s var(--ease);
}

.mobile-bar a {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  font-stretch: 112%;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-light);
}

.mobile-bar a:last-child {
  background: var(--level);
  color: var(--ink);
}

.mobile-bar.is-hidden {
  transform: translateY(110%);
}

@media (max-width: 760px) {
  .mobile-bar {
    display: grid;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }
}

/* =============================================================================
   Legal + 404 pages
   ============================================================================= */

.legal-hero {
  background: var(--ink);
  color: var(--text-light);
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
}

.legal-hero > * {
  max-width: 760px;
  margin-inline: auto;
}

.legal-hero h1 {
  margin: 0.9rem auto 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.legal-hero .legal-updated {
  color: var(--text-light-muted);
  font-size: 0.9375rem;
}

.legal {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) var(--section);
}

.legal-copy {
  max-width: 760px;
  margin-inline: auto;
}

.legal-copy h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.legal-copy h2:first-of-type {
  margin-top: 0;
}

.legal-copy p {
  margin: 0 0 1rem;
}

.legal-copy ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-copy li {
  margin-bottom: 0.375rem;
}

.legal-copy a {
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: start;
  gap: 1.5rem;
  padding: var(--section) var(--gutter);
  background: var(--ink);
  color: var(--text-light);
}

.error-page p {
  max-width: 30rem;
  font-size: 1.125rem;
  color: var(--text-light-muted);
}

/* =============================================================================
   Motion: one reveal, used for section entrances only
   ============================================================================= */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary,
  .btn-ghost,
  .surface-img img,
  .nav-menu,
  .mobile-bar {
    transition: none;
  }
}

/* The Atlas mark's angled edge repeats on labels and service photography. */
.section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.3rem;
  height: 0.27rem;
  margin-right: 0.65rem;
  vertical-align: 0.2em;
  background: var(--level);
  transform: skewX(-24deg);
}

.surface-img {
  border-bottom: 4px solid var(--level);
}

@media (max-width: 520px) {
  .header-inner { gap: 0.5rem; }
  .site-header .brand-lockup { width: clamp(6.4rem, 28vw, 8rem); }
  .header-cta--bar { font-size: 0.8rem; padding-inline: 0.55rem; }
  .nav-toggle { flex: 0 0 2.75rem; }
}

.nav-menu-links a[aria-current="location"] {
  color: var(--level);
}

@media (max-width: 1040px) {
  .nav-menu-links a[aria-current="location"] {
    color: var(--level-ink);
  }
}

.quote-field-hint {
  margin-block: 0.15rem 0.5rem;
  font-size: 0.9rem;
}
