/* ==========================================================================
   Hydra Headlights
   Palette: black, white, and grays. The single accent is --glow, a cool
   headlight white that is only ever used at very low opacity.
   ========================================================================== */

:root {
  --black: #000;
  --white: #fff;
  --text: #ededed;
  --muted: #a8a8a8;
  --dim: #8a8a8a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.3);
  --glow: 206, 226, 255;

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --nav-h: 72px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(84px, 11vw, 160px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */

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

html {
  background: var(--black);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img, svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: var(--white);
  color: var(--black);
}

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

html.menu-open {
  overflow: hidden;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
}

h1, h2 {
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  margin-top: 20px;
  font-size: clamp(1.75rem, 4.4vw, 3.375rem);
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* Outlined display text. Black fill is painted over the inner half of the
   stroke, which keeps the outline crisp at any weight. */
.outline,
.step__num {
  color: var(--black);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
  paint-order: stroke fill;
}

@media (max-width: 599.98px) {
  .outline,
  .step__num {
    -webkit-text-stroke-width: 1.5px;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow b {
  font-weight: 500;
  color: var(--white);
}

.eyebrow i {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

.lede {
  max-width: 31em;
  font-size: 1.0625rem;
  color: var(--muted);
}

.link {
  color: var(--white);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease);
}

.link:hover {
  border-color: var(--white);
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - (2 * var(--gutter)), 1200px);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 48px;
  }

  /* A heading with no intro text beside it gets the full width */
  .section-head > :only-child {
    grid-column: 1 / -1;
  }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--white);
  color: var(--black);
  font-size: 0.8125rem;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.4s var(--ease), color 0.3s var(--ease);
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px var(--white), 0 0 44px rgba(var(--glow), 0.4);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.6875rem;
}

.btn--block {
  width: 100%;
}

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

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

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
}

/* Background lives on a pseudo-element so the mobile menu (position: fixed)
   is still sized against the screen, not the bar. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.nav.is-scrolled::before,
.nav.is-open::before {
  opacity: 1;
}

.nav.is-open::before {
  background: var(--black);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

/* logo.png is the transparent version of the logo, so it sits on any dark surface */
.brand__mark {
  width: auto;
  height: 44px;
}

.brand__name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}

.brand__name span {
  color: var(--dim);
}

.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  margin-right: clamp(8px, 2vw, 28px);
}

.nav__links a {
  position: relative;
  padding: 8px 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

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

.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--white);
}

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

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--white);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.nav__toggle span:first-child {
  top: 17px;
}

.nav__toggle span:last-child {
  top: 26px;
}

.nav.is-open .nav__toggle span:first-child {
  top: 21.5px;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle span:last-child {
  top: 21.5px;
  transform: rotate(-45deg);
}

@media (max-width: 959.98px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 48px;
    background: var(--black);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }

  .nav.is-open .nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .nav__links a {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-stretch: 125%;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--white);
  }

  .nav__links a::after {
    display: none;
  }
}

/* On small phones the bar only has room for "HYDRA" next to Book Now */
@media (max-width: 479.98px) {
  .nav .brand__name span {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  z-index: -2;
  left: 50%;
  top: 34%;
  width: min(1200px, 160vw);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--glow), 0.15), rgba(var(--glow), 0.05) 42%, transparent 72%);
  pointer-events: none;
}

/* Soft band of light that drifts across the hero, like a passing headlight.
   It starts below the nav so the bar always sits on pure black. */
.hero__sweep {
  position: absolute;
  inset: var(--nav-h) 0 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__sweep::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(var(--glow), 0.08) 50%, transparent);
  transform: translateX(-140%) skewX(-16deg);
  animation: sweep 9s var(--ease) 1.2s infinite;
}

@keyframes sweep {
  0% {
    transform: translateX(-140%) skewX(-16deg);
  }
  55%,
  100% {
    transform: translateX(420%) skewX(-16deg);
  }
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: clamp(24px, 4vh, 56px);
  text-align: center;
}

.hero__logo {
  width: auto;
  height: clamp(180px, 28vh, 340px);
  filter: drop-shadow(0 0 42px rgba(var(--glow), 0.22));
}

.hero__kicker {
  margin-top: clamp(20px, 3.5vh, 36px);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__kicker span {
  margin-inline: 0.6em;
  color: var(--dim);
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(2rem, min(6vw, 9.5vh), 4.75rem);
}

.hero__title span {
  display: block;
}

.hero__sub {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* A thin bar of light instead of a plain divider */
.hero__stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--glow), 0.75) 50%, transparent);
}

.hero__stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end; /* keeps the big values lined up across a row */
  gap: 6px;
  padding: 20px 8px 22px;
  text-align: center;
}

.hero__stats > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.hero__stats > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.hero__stats dt {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero__stats dd {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

@media (min-width: 760px) {
  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__stats > div {
    padding-block: 26px 28px;
  }

  .hero__stats > div:nth-child(n + 3) {
    border-top: 0;
  }

  .hero__stats > div + div {
    border-left: 1px solid var(--line);
  }
}

/* ---------- Before / After ---------- */

.results {
  display: grid;
  gap: 28px;
  max-width: 640px;
}

.compare-wrap {
  min-width: 0;
}

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1 / 1; /* the photos are square crops */
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a0a;
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

/* Brief fade while the picker switches to another vehicle */
.compare.is-swapping .compare__img {
  opacity: 0;
}

/* Vehicle picker: a 2x2 grid of chips on phones, a list beside the slider on desktop */
.vehicles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}

.vehicle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 14px;
  border: 0;
  border-radius: 0;
  background: var(--black);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.vehicle__num {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}

.vehicle__name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 0.75rem; /* keeps "Toyota Sienna" on one line in a phone-width chip */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vehicle:hover {
  color: var(--white);
}

.vehicle.is-active {
  background: var(--white);
  color: var(--black);
}

.vehicle.is-active .vehicle__num {
  color: #4d4d4d;
}

.vehicle:focus-visible {
  outline-offset: -4px;
}

.vehicle.is-active:focus-visible {
  outline-color: var(--black);
}

.results__note {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .results {
    grid-template-columns: 7fr 5fr;
    gap: clamp(40px, 5vw, 72px);
    max-width: none;
  }

  .results__aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 42px; /* lines the note up with the bottom of the photo, above its caption */
  }

  .vehicles {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 18px;
    border: 0;
    border-top: 1px solid var(--line);
    background: none;
  }

  .vehicle,
  .vehicle.is-active {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    background: none;
  }

  .vehicle {
    color: var(--dim);
  }

  .vehicle__name {
    font-size: 1.125rem;
  }

  /* A short line slides in beside whichever vehicle is showing */
  .vehicle::after {
    content: "";
    width: 32px;
    height: 1px;
    margin-left: auto;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
  }

  .vehicle:hover,
  .vehicle.is-active,
  .vehicle.is-active .vehicle__num {
    color: var(--white);
  }

  .vehicle.is-active::after {
    transform: scaleX(1);
  }

  .vehicle:focus-visible,
  .vehicle.is-active:focus-visible {
    outline-color: var(--white);
    outline-offset: 2px;
  }

  .results__note {
    margin-top: 0;
  }
}

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

.compare__tag {
  position: absolute;
  top: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

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

.compare__tag--after {
  right: 16px;
}

.compare.hide-before .compare__tag--before,
.compare.hide-after .compare__tag--after {
  opacity: 0;
}

/* The range input is what keyboards and screen readers use. Mouse and touch
   dragging is handled in script.js. */
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  margin-left: -0.5px;
  background: var(--white);
  box-shadow: 0 0 24px rgba(var(--glow), 0.55);
  pointer-events: none;
}

.compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.compare:hover .compare__knob,
.compare.is-dragging .compare__knob {
  box-shadow: 0 0 32px rgba(var(--glow), 0.45);
}

.compare.is-dragging .compare__knob {
  transform: translate(-50%, -50%) scale(0.92);
}

.compare__range:focus-visible ~ .compare__handle .compare__knob {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.compare__caption {
  margin-top: 16px;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--dim);
}

/* ---------- Service & pricing ---------- */

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

.service__main,
.service__price {
  padding: clamp(24px, 4.5vw, 56px);
}

.service__name {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

.service__name span {
  display: block;
  color: var(--dim);
}

.service__desc {
  max-width: 34em;
  margin-top: 20px;
  color: var(--muted);
}

.specs {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.specs > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.specs dt,
.label,
.price__label,
.footer__heading,
.book__meta li > span:first-child {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.specs dd {
  color: var(--text);
}

.service__price {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  border-top: 1px solid var(--line);
  background: radial-gradient(120% 80% at 50% 0%, rgba(var(--glow), 0.075), transparent 70%);
}

.price {
  margin-top: 12px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--white);
}

.price__note {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 1.35fr 1fr;
  }

  .service__price {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
}

.step {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}

.step p {
  max-width: 30em;
  margin-top: 12px;
  color: var(--muted);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step,
  .step:last-child {
    padding: 4px 32px 8px;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .step__num {
    margin-bottom: 40px;
  }
}

/* ---------- Why Hydra ---------- */

.why {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

/* The 1px gap shows the grid's gray background as hairlines between cells.
   Cells are opaque black so the lines stay crisp. */
.why__item {
  padding: clamp(28px, 4.5vw, 52px);
  background: var(--black);
  transition: background-color 0.4s var(--ease);
}

.why__item:hover {
  background: #070707;
}

.why__icon {
  margin-bottom: 28px;
  color: var(--white);
}

.why__item p {
  max-width: 32em;
  margin-top: 12px;
  color: var(--muted);
}

@media (min-width: 800px) {
  .why {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Testimonials (used once the section in index.html is switched on) ---------- */

.reviews {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--black);
}

.review blockquote {
  font-size: 1.0625rem;
  color: var(--text);
}

.review figcaption {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.review figcaption span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
}

@media (min-width: 900px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Service area ---------- */

.area {
  display: grid;
  gap: 56px;
  align-items: center;
}

.area__lede {
  margin-top: 24px;
}

.towns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 24px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.towns li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--text);
}

.area__note {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.radar {
  width: min(100%, 460px);
  margin-inline: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--glow), 0.07), transparent 95%);
}

.radar svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radar__axis {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.radar__ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.radar__ring--outer {
  stroke: rgba(255, 255, 255, 0.8);
}

.radar__pulse {
  fill: none;
  stroke: rgba(var(--glow), 0.55);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-origin: 200px 200px;
  opacity: 0;
  animation: pulse 5.5s ease-out 0.6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.04);
    opacity: 0.9;
  }
  75%,
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.radar__halo {
  fill: rgba(var(--glow), 0.2);
}

.radar__dot {
  fill: var(--white);
}

.radar__label {
  fill: var(--dim);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.radar__label--strong {
  fill: var(--white);
}

@media (min-width: 560px) {
  .towns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .area {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
  }
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  gap: 40px;
}

.faq-layout__head .lede {
  margin-top: 24px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-stretch: normal;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  color: var(--white);
  cursor: pointer;
}

.faq__q button span {
  transition: opacity 0.25s var(--ease);
}

.faq__q button:hover span {
  opacity: 0.75;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(0deg);
}

.faq__a p {
  max-width: 40em;
  padding: 0 40px 26px 0;
  color: var(--muted);
}

/* Collapsing only applies when JavaScript is running, so answers are never
   hidden from anyone without it. */
.js .faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.js .faq__a-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.4s;
}

.js .faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.js .faq__item.is-open .faq__a-inner {
  visibility: visible;
  transition-delay: 0s;
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }

  .faq-layout__head {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
  }
}

/* ---------- Book ---------- */

.section--book {
  background: radial-gradient(80% 55% at 50% 100%, rgba(var(--glow), 0.065), transparent 70%);
}

.book {
  display: grid;
  gap: 48px;
}

.book__intro .lede {
  margin-top: 24px;
}

.book__actions {
  display: grid;
  gap: 12px;
  max-width: 380px;
  margin-top: 32px;
}

.book__meta {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.book__meta li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.book__social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.form {
  display: grid;
  gap: 28px 24px;
  padding: clamp(24px, 4.5vw, 48px);
  border: 1px solid var(--line);
  background: var(--black);
}

.form__title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

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

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field label span {
  margin-left: 6px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--dim);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input {
  min-height: 49px;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #707070;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 1px 0 0 var(--white), 0 14px 22px -18px rgba(var(--glow), 0.9);
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  box-shadow: 0 0 0 1000px var(--black) inset;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form__fine {
  font-size: 0.8125rem;
  color: var(--dim);
}

.form__status {
  padding-left: 14px;
  border-left: 1px solid var(--white);
  font-size: 0.9375rem;
  color: var(--white);
}

.form__status:empty {
  display: none;
}

@media (min-width: 620px) {
  .form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .book {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }
}

/* ---------- Footer ---------- */

.footer {
  padding-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.footer__top {
  display: grid;
  gap: 40px;
}

.footer__brand .brand__mark {
  height: 60px;
}

.footer__brand p {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
}

.footer__heading {
  margin-bottom: 8px;
}

.footer__col a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (min-width: 760px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Scroll reveal ----------
   Content is only hidden when JavaScript is available to bring it back. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

/* ---------- Reduced motion ---------- */

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

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

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

  .hero__sweep,
  .radar__pulse {
    display: none;
  }
}
