/* AMON Home Restoration LLC | amonhomerestoration.com */

/* ---------- Tokens ---------- */
/* One light theme only: the site always renders on white, whatever the visitor's OS setting. */
:root {
  --paper: #ffffff;
  --paper-2: #f5f7fa;
  --paper-3: #e8edf3;
  --tint: #f0f6fc;
  --card: #ffffff;
  --ink: #14243a;
  --ink-2: #3f4d5f;
  --muted: #5f6d80;
  --line: #e1e7ee;
  --line-strong: #c9d3de;
  --red: #c62a2f;
  --red-text: #b3232a;
  --red-btn: #c62a2f;
  --red-btn-hover: #a91f24;
  --blue: #1f6fc4;
  --blue-text: #1a5ea8;
  --blue-soft: #e5effa;
  --blue-line: #cfe0f3;
  --photo-shade: 12, 24, 40;
  --shadow: 0 1px 2px rgba(20, 36, 58, 0.05), 0 12px 32px -18px rgba(20, 36, 58, 0.22);
  --shadow-lg: 0 2px 6px rgba(20, 36, 58, 0.05), 0 30px 60px -30px rgba(20, 36, 58, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: 76px;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}

/* No italics anywhere on the site. */
em,
i,
cite,
dfn,
address,
var {
  font-style: normal;
}

.accent {
  color: var(--blue-text);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

ul {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

/* Single-column grids must never grow past the viewport on small screens. */
.hero-grid,
.section-head,
.ba-feature,
.area,
.contact,
.footer-grid,
.page-hero__grid,
.svc-row,
.cta-band {
  grid-template-columns: minmax(0, 1fr);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-text);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--red);
}

.lede {
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 36em;
}

.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.48em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 1.35em;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--red-btn);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(198, 42, 47, 0.6);
}

.btn--primary:hover {
  background: var(--red-btn-hover);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-text);
}

.btn--secondary {
  border-color: var(--blue-line);
  background: #fff;
  color: var(--blue-text);
}

.btn--secondary:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.btn--sm {
  min-height: 42px;
  padding: 0.6em 1.1em;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.text-link .arrow {
  transition: transform 0.3s var(--ease);
}

.text-link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.logo-svg {
  height: 40px;
  width: auto;
}

.logo-drop {
  fill: #2e7dd1;
}

.logo-roof {
  fill: none;
  stroke: #c62a2f;
  stroke-width: 9;
}

.logo-wall {
  stroke: currentColor;
  stroke-width: 7;
}

.logo-type {
  fill: currentColor;
}

.brand__tag {
  padding-left: 12px;
  border-left: 1.5px solid var(--line-strong);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- Header ---------- */
.topbar {
  display: none;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}

.topbar p {
  margin: 0;
}

.topbar__links {
  display: flex;
  gap: 22px;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--blue-text);
}

.topbar .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px -14px rgba(20, 36, 58, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}

.nav {
  display: none;
}

.nav a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-call {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}

.menu-toggle__bars {
  position: relative;
  transform: translateY(-3px);
}

.menu-toggle__bars::before {
  content: "";
  position: absolute;
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  transform: translateY(-6px) rotate(-90deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 59;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 32px;
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.mobile-nav.is-open {
  opacity: 1;
  transform: none;
}

.mobile-nav__links {
  display: grid;
  border-top: 1px solid var(--line);
}

.mobile-nav__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav__links .icon {
  color: var(--blue);
}

.mobile-nav__contact {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 10px;
}

.mobile-nav__contact .btn {
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -18px rgba(20, 36, 58, 0.35);
}

.mobile-bar .btn {
  min-height: 48px;
  padding-inline: 0.8em;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(72px, 10vw, 136px);
}

.section--tight {
  padding-block: clamp(56px, 7vw, 96px);
}

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

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

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.section-head p {
  color: var(--ink-2);
  max-width: 34em;
  margin: 0;
}

.section-head__aside {
  display: grid;
  gap: 22px;
  justify-items: start;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px);
  overflow: hidden;
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 10px;
  height: 5px;
  margin: -3px 2px 0 1px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.hero-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  text-decoration: none;
}

.hero-call__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-text);
  transition: background-color 0.3s, color 0.3s;
}

.hero-call:hover .hero-call__icon {
  background: var(--red-btn);
  color: #fff;
}

.hero-call small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-call strong {
  font-size: 1.15rem;
}

/* Load-in for hero copy */
.js .hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.js .hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.js .hero-copy > *:nth-child(6) { animation-delay: 0.4s; }

.js .house {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: rise 1s 0.15s var(--ease) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- House animation ---------- */
.house {
  position: relative;
}

.house-stage {
  position: relative;
  aspect-ratio: 760 / 600;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e3eaec;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.house-svg {
  width: 100%;
  height: 100%;
}

.house-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #1c1d20;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.3);
}

.house-chip__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #c62a2f;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.house-chip__label.is-swap {
  animation: chip-in 0.45s var(--ease);
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.house-replay {
  position: absolute;
  right: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background-color 0.2s;
}

.house.is-done .house-replay {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.house-replay:hover {
  background: #c62a2f;
  border-color: #c62a2f;
  color: #fff;
}

.house-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.house-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #c62a2f;
  transform: scaleX(0);
  transform-origin: left;
}

.house-steps {
  list-style: none;
  padding: 2px 0 6px;
  margin: 16px 0 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}

.house-steps::-webkit-scrollbar {
  display: none;
}

.house-steps button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.house-steps button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  transition: background-color 0.3s, opacity 0.3s;
}

.house-steps button:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.house-steps button.is-done {
  color: var(--ink);
}

.house-steps button.is-done::before {
  background: var(--red);
  opacity: 1;
}

.house-steps button[aria-current="step"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.house-steps button[aria-current="step"]::before {
  background: #fff;
  opacity: 1;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--paper-2);
  color: var(--ink-2);
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Before / After ---------- */
.ba-feature {
  display: grid;
  gap: 32px;
  align-items: center;
}

.ba-feature + .ba-feature {
  margin-top: clamp(72px, 9vw, 128px);
}

.ba-feature__media {
  position: relative;
}

.ba-feature__text h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.ba-feature__text .ticks {
  margin: 24px 0 30px;
  color: var(--ink);
}

.ba-feature__kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-text);
}

.ba {
  position: relative;
  margin: 0;
}

.ba__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 84vh;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: ew-resize;
  box-shadow: var(--shadow-lg);
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.ba__knob {
  position: absolute;
  top: 50%;
  left: var(--pos);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: #1c1d20;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s;
}

.ba__knob .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.ba__frame:hover .ba__knob,
.ba__frame.is-dragging .ba__knob {
  transform: translate(-50%, -50%) scale(1.08);
  background: #c62a2f;
  color: #fff;
}

.ba:focus-within .ba__knob {
  outline: 3px solid #c62a2f;
  outline-offset: 4px;
}

.ba__tag {
  position: absolute;
  top: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(var(--photo-shade), 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.3s;
}

.ba__tag--before {
  left: 16px;
}

.ba__tag--after {
  right: 16px;
  background: rgba(198, 42, 47, 0.92);
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.ba__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.ba__hint .icon {
  width: 18px;
  height: 18px;
}

/* Process strip (step photos) */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.steps-strip figure {
  margin: 0;
}

.steps-strip__img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--paper-3);
}

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

.steps-strip figure:hover img {
  transform: scale(1.05);
}

.steps-strip__num {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c62a2f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.steps-strip figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

.steps-strip figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

/* ---------- Services grid ---------- */
.services {
  display: grid;
  border-top: 1px solid var(--line);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 28px 4px 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-text);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.service__icon .icon {
  width: 24px;
  height: 24px;
}

.service h3 {
  font-size: 1.14rem;
  margin: 4px 0 8px;
}

.service p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.service__arrow {
  position: absolute;
  right: 18px;
  top: 30px;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--red);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.service {
  transition: background-color 0.3s var(--ease);
}

.service:hover {
  background: var(--paper-2);
}

.service:hover .service__icon {
  background: var(--blue);
  color: #fff;
}

.service:hover .service__arrow {
  opacity: 1;
  transform: none;
}

/* ---------- Projects ---------- */
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.chip__count {
  font-size: 0.75rem;
  opacity: 0.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-3);
  color: #fff;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

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

.project-card:hover img {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 64px 14px 14px;
  background: linear-gradient(to top, rgba(var(--photo-shade), 0.82), rgba(var(--photo-shade), 0.45) 45%, rgba(var(--photo-shade), 0));
}

.project-card__cat {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.project-card__title {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 700;
  line-height: 1.2;
}

.project-card__view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease);
}

.project-card:hover .project-card__view,
.project-card:focus-visible .project-card__view {
  max-height: 24px;
  opacity: 1;
}

.project-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(var(--photo-shade), 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.badge .icon {
  width: 13px;
  height: 13px;
}

.badge--red {
  background: rgba(198, 42, 47, 0.92);
}

.project-card.is-entering {
  animation: card-in 0.6s var(--ease) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.project-grid-footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f3f6f9;
  color: var(--ink);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(20, 36, 58, 0.4);
}

.lightbox[open] .lightbox__layout {
  animation: lb-in 0.4s var(--ease);
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}

.lightbox__layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
}

.lightbox__stage {
  position: relative;
  display: grid;
  /* A definite track lets the photo's max-height: 100% keep it inside the stage. */
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 64px 12px 12px;
  touch-action: pan-y;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.lightbox__img.is-loading {
  opacity: 0;
  transform: scale(0.99);
}

.lightbox__tag {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  z-index: 2;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: #c62a2f;
  border-color: #c62a2f;
  color: #fff;
}

.lightbox__close {
  top: 10px;
  right: 10px;
}

.lightbox__nav--prev {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__info {
  padding: 18px 20px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: 38vh;
  overflow-y: auto;
}

.lightbox__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.lightbox__title {
  margin: 8px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.lightbox__caption {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.lightbox__summary {
  display: none;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.lightbox__scope {
  display: none;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.lightbox__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.lightbox__thumb {
  flex: none;
  width: 54px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-3);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox__thumb[aria-current="true"] {
  border-color: #c62a2f;
  opacity: 1;
}

.lightbox__thumb:hover {
  opacity: 1;
}

.lightbox__cta {
  margin-top: 20px;
}

/* ---------- Values / stats ---------- */
.values {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.value {
  padding: 30px 26px;
  background: var(--paper);
}

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

.value__num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue-text);
  margin-bottom: 16px;
}

.value h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.value p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.stat__num sup {
  font-size: 0.42em;
  vertical-align: super;
  color: var(--blue-text);
  margin-left: 2px;
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 14em;
}

/* ---------- Process ---------- */
.process {
  position: relative;
  display: grid;
  gap: 34px;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.process__step {
  position: relative;
  padding-left: 64px;
}

.process__num {
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blue-text);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
  transition-delay: var(--d, 0s);
}

.process.is-in .process__num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.process__step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.process__step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.process::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--line-strong);
}

.process::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--ease-in-out);
}

.process.is-in::after {
  transform: scaleY(1);
}

/* ---------- Service area ---------- */
.area {
  display: grid;
  gap: 40px;
  align-items: center;
}

.area-map {
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 10px;
  box-shadow: var(--shadow);
}

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

.map-bg {
  fill: #fbfcfe;
}

.map-lake {
  fill: #dcebf8;
  stroke: #b9d4ee;
  stroke-width: 1;
}

.map-lake-label {
  fill: #4f7fb0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.map-grid {
  stroke: #edf1f5;
  stroke-width: 1;
}

.map-state {
  fill: none;
  stroke: #9fb0c3;
  stroke-width: 1;
  stroke-dasharray: 6 4 1.5 4;
}

.map-state-label {
  fill: #8a99ab;
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

/* The zone and ring grow out from the office at the center of the 480 x 480 map.
   The tinted zone sits under the lake so the water keeps its own color. */
.map-zone,
.map-ring {
  transform-origin: 240px 240px;
  transform: scale(0);
  transition: transform 1.4s var(--ease);
}

.map-zone {
  fill: rgba(198, 42, 47, 0.055);
}

.map-ring {
  fill: none;
  stroke: #c62a2f;
  stroke-width: 1.6;
  stroke-dasharray: 6 5;
}

.map-ring--inner {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 2 5;
  opacity: 0.55;
}

.map-ring-label {
  fill: #b3232a;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.map-ring-label--inner {
  font-size: 8px;
  opacity: 0.7;
}

/* Towns appear in a ripple outward from the office: --i is half the distance in miles. */
.map-town {
  fill: #50627a;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.5s var(--ease);
  transition-delay: calc(0.5s + var(--i, 0) * 0.045s);
}

.map-label {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #fbfcfe;
  stroke-width: 3px;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.5s;
  transition-delay: calc(0.7s + var(--i, 0) * 0.045s);
}

.map-city {
  fill: var(--ink);
}

.map-city-label {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fbfcfe;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

.map-hq {
  fill: #c62a2f;
  stroke: #fff;
  stroke-width: 2;
}

.map-hq-pulse {
  fill: none;
  stroke: #c62a2f;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

.map-hq-label {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fbfcfe;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

.map-hq-sub {
  fill: #b3232a;
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  paint-order: stroke;
  stroke: #fbfcfe;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-scale {
  stroke: var(--ink-2);
  stroke-width: 1.5;
}

.map-scale-label {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
}

.area-map.is-in .map-zone,
.area-map.is-in .map-ring {
  transform: scale(1);
}

.area-map.is-in .map-town {
  opacity: 1;
  transform: scale(1);
}

.area-map.is-in .map-label {
  opacity: 1;
}

.area-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 8px 10px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.area-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.area-map__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.area-title {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.town-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  columns: 2;
  column-gap: 24px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

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

.address-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
}

.address-card .icon {
  width: 22px;
  height: 22px;
  color: var(--red);
  margin-top: 2px;
}

.address-card p {
  margin: 0;
}

.address-card a {
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 48px;
}

.contact h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin-bottom: 18px;
}

.contact-methods {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  border-top: 1px solid var(--blue-line);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--blue-line);
  text-decoration: none;
  color: var(--ink);
}

.contact-method__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--blue-line);
  color: var(--blue-text);
  flex: none;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

a.contact-method:hover .contact-method__icon {
  background: #c62a2f;
  border-color: #c62a2f;
  color: #fff;
}

.contact-method small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-method strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.form-card {
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.form-card > p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
}

.field label span {
  color: var(--red-text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 111, 196, 0.16);
}

.form-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.form-actions .btn {
  width: 100%;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, #2e7dd1 12%, var(--card));
  font-size: 0.9rem;
  color: var(--ink);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 88px) clamp(36px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
}

.page-hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  margin-bottom: 20px;
  max-width: 18ch;
}

.page-hero .lede {
  margin: 0;
}

.page-hero__grid {
  display: grid;
  gap: 32px;
  align-items: end;
}

.crumbs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

/* ---------- Services page rows ---------- */
.svc-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-index a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.svc-index a {
  background: #fff;
}

.svc-index a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.svc-row {
  display: grid;
  gap: 26px;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.svc-row:first-child {
  border-top: 0;
}

.svc-row__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.svc-row__num {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.svc-row h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 14px 0 16px;
}

.svc-row p {
  color: var(--ink-2);
}

.svc-row .ticks {
  margin-top: 20px;
  font-size: 0.96rem;
}

.svc-row__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
}

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

.svc-row__media:hover img {
  transform: scale(1.05);
}

.svc-row__media .badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
}

.svc-row__media--plain {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--ink);
  background-color: var(--tint);
  background-image: linear-gradient(rgba(31, 111, 196, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 111, 196, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  border: 1px solid var(--blue-line);
}

.svc-plain__icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(31, 111, 196, 0.14);
}

.svc-plain__icon .icon {
  width: 42px;
  height: 42px;
  stroke-width: 1.4;
}

.svc-plain__label {
  font-size: 1.4rem;
  font-weight: 800;
}

.svc-plain__cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.svc-plain__cta:hover {
  color: var(--red-text);
}

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eaf3fc 0%, #f6f9fd 100%);
  border: 1px solid var(--blue-line);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.cta-band p {
  color: var(--ink-2);
  margin: 12px 0 0;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-band__roof {
  position: absolute;
  right: -40px;
  top: -20px;
  width: 340px;
  opacity: 0.08;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-2);
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-block: 64px 28px;
  font-size: 0.95rem;
}

.site-footer .brand {
  color: var(--ink);
}

.site-footer .brand__tag {
  color: var(--ink-2);
  border-left-color: var(--line-strong);
}

.footer-grid {
  display: grid;
  gap: 40px;
}

.footer-blurb {
  margin: 20px 0 0;
  max-width: 28em;
}

.footer-col h2,
.footer-areas h2 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-areas a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover,
.footer-areas a:hover {
  color: var(--blue-text);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact .icon {
  margin-top: 3px;
  color: var(--blue);
}

.footer-areas {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-areas p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.9;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- About / company facts ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.about h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  margin-bottom: 18px;
}

.about p {
  color: var(--ink-2);
}

.facts {
  margin: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.facts > div {
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.facts > div:first-child {
  border-top: 0;
}

.facts dt {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.facts dd a {
  color: var(--blue-text);
  text-decoration: none;
}

.facts dd a:hover {
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.faq-layout .section-head {
  margin-bottom: 0;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq details[open] {
  border-color: var(--blue-line);
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq summary:hover h3 {
  color: var(--blue-text);
}

.faq h3 {
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.faq__a {
  padding: 0 20px 18px;
  color: var(--ink-2);
}

.faq__a p:last-child {
  margin-bottom: 0;
}

.faq__a a {
  color: var(--blue-text);
  font-weight: 700;
}

/* ---------- Project write-ups ---------- */
.case-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.case {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.case .case__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-text);
}

.case h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.case p {
  font-size: 0.94rem;
  color: var(--ink-2);
}

.case .case__scope {
  color: var(--muted);
}

.case__scope strong {
  color: var(--ink);
}

.case .text-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--blue-text);
}

/* ---------- Service area page ---------- */
.region {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: clamp(32px, 5vw, 52px);
  border-top: 1px solid var(--line);
}

.region:first-child {
  border-top: 0;
  padding-top: 0;
}

.region h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 12px;
}

.region p {
  color: var(--ink-2);
}

.region__meta {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.city-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.city-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.city-list li span {
  flex: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.region-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.notfound h1 {
  font-size: clamp(3rem, 10vw, 7rem);
}

.notfound p {
  color: var(--ink-2);
  margin: 18px auto 30px;
  max-width: 30em;
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(12% 12% 12% 12% round var(--radius));
  transition: clip-path 1.2s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-reveal="clip"].is-in {
  clip-path: inset(0 0 0 0 round var(--radius));
}

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .header-call {
    display: inline-flex;
  }

  .project-grid {
    gap: 16px;
  }

  .town-list {
    columns: 3;
  }

  .area .town-list {
    columns: 2;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }

  .steps-strip {
    gap: 16px;
  }

  .facts > div {
    grid-template-columns: minmax(0, 10.5em) minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }

  .city-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .service {
    padding: 32px 28px;
  }

  .service:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 32px;
  }

  .process::before,
  .process::after {
    display: none;
  }

  .lightbox__summary,
  .lightbox__scope {
    display: block;
  }
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 48px;
  }

  .ba-feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(48px, 6vw, 96px);
  }

  .ba-feature--flip .ba-feature__media {
    order: 2;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .project-grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-grid--featured .project-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .project-grid--featured .project-card:first-child .project-card__title {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  }

  .project-grid--featured .project-card:first-child .project-card__overlay {
    padding: 120px 26px 26px;
  }

  .area {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
  }

  .about {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 64px;
  }

  .faq-layout .section-head {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    grid-template-columns: minmax(0, 1fr);
  }

  .region {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
  }

  .contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
  }

  .svc-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
  }

  .svc-row:nth-child(even) .svc-row__media {
    order: -1;
  }

  .cta-band {
    grid-template-columns: 1fr auto;
  }

  .page-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .lightbox__layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-rows: 1fr;
  }

  .lightbox__stage {
    padding: 28px 84px;
  }

  .lightbox__close {
    top: 18px;
    right: 18px;
  }

  .lightbox__nav--prev {
    left: 20px;
  }

  .lightbox__nav--next {
    right: 20px;
  }

  .lightbox__info {
    max-height: none;
    padding: 72px 32px 32px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .lightbox__close {
    right: calc(380px + 18px);
  }

  .lightbox__thumb {
    width: 64px;
    height: 84px;
  }

  .lightbox__thumbs {
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }

  .mobile-bar {
    display: none;
  }

  .topbar {
    display: block;
  }

  .nav {
    display: flex;
    gap: 26px;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .logo-svg {
    height: 44px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
  }

  .house-steps {
    flex-wrap: wrap;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service:nth-child(odd) {
    border-right: 0;
  }

  .service:not(:nth-child(3n)) {
    border-right: 1px solid var(--line);
  }

  .values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .case-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process__step {
    padding-left: 0;
    padding-top: 72px;
  }

  .process__num {
    top: 0;
  }

  .process::before,
  .process::after {
    display: block;
    left: 0;
    right: 0;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 1.5px;
  }

  .process::after {
    transform: scaleX(0);
    transform-origin: left;
  }

  .process.is-in::after {
    transform: scaleX(1);
  }
}

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

@media (min-width: 1240px) {
  .project-grid:not(.project-grid--featured) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .area .town-list {
    columns: 3;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js [data-reveal="clip"] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .marquee__track {
    animation: none;
  }

  .map-hq-pulse {
    display: none;
  }
}
