/* ==========================================================================
   Hybrid Autoland: 2026 redesign
   Design system + page styles. No framework, no build step.

   Direction: cinematic dark-first, oversized display type, scroll-driven
   reveals, layered depth. Deliberately NOT WebGL, because this site's job is to turn
   a search for hybrid repair into a phone call, on a mid-range Android over
   mobile data, so weight and first paint matter more than spectacle.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* One accent only: red. Everything else is black, white or grey. */
  --accent-300: #ff7a80;
  --accent-400: #ff3b41;
  --accent-500: #e11d24;
  --accent-600: #b8151b;
  --accent-700: #7d0e12;

  --ink-950: #000000;
  --ink-900: #060606;
  --ink-850: #0c0c0c;
  --ink-800: #141414;
  --ink-700: #1e1e1e;
  --ink-600: #2a2a2a;

  --fg: #ffffff;
  --fg-dim: #b4b4b4;
  --fg-faint: #717171;

  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --surface-2: var(--ink-850);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-lift: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.3);

  /* Fluid rhythm. */
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 11vh, 9rem);
  --maxw: 1320px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Anchors land below the fixed header. */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 0.34vw + 0.9rem, 1.06rem);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent-500);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Film grain: one tiny inline SVG, adds texture without an image request. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ typography */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}

.d-hero {
  font-size: clamp(2.9rem, 9.2vw, 8.5rem);
}

.d-1 {
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
}

.d-2 {
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lede {
  font-size: clamp(1.02rem, 0.6vw + 0.92rem, 1.28rem);
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 46ch;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-400);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 1.85rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Emphasis inside a display heading. Black and white only here: the red is
   reserved for interface highlights, not for headline words. */
.tint {
  color: var(--fg);
}

.outline-text {
  -webkit-text-stroke: 1.5px var(--line-strong);
  color: transparent;
}

/* --------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tight {
  padding-block: clamp(3rem, 7vh, 5.5rem);
}

.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 62ch;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--accent-500);
  --btn-fg: #ffffff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

/* Fill sweeps up from the bottom on hover. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent-300);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(225, 29, 36, 0.32);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--line-strong);
}

.btn--ghost::before {
  background: var(--fg);
}

.btn--ghost:hover {
  --btn-fg: var(--bg);
  box-shadow: none;
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1.02rem;
}

.btn__icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

/* Text link with an underline that draws in. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  color: var(--fg);
  position: relative;
  padding-bottom: 2px;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.link:hover::after {
  transform: scaleX(1);
}

.link svg {
  width: 1em;
  height: 1em;
  transition: transform 0.3s var(--ease-out);
}

.link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------- header */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 0.85rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease-out);
}

/* Condenses once you scroll past the hero fold. */
.hdr.is-stuck {
  padding-block: 0.5rem;
}

/**
 * Three-column grid with equal outer tracks, so the nav is centred against the
 * page rather than against whatever is left over. With flex + space-between the
 * logo (~90px) and the action cluster (~250px) are different widths, which
 * pushed the nav visibly off-centre.
 */
.hdr__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.hdr__inner > .brand {
  justify-self: start;
}

.hdr__inner > .nav {
  justify-self: center;
}

.hdr__inner > .hdr__actions {
  justify-self: end;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  /* Wordmark is ~5:1 and all letterform, no descending tail, so a shorter
     height still gives a comfortable 145-200px of width. */
  height: clamp(29px, 2.9vw, 39px);
  width: auto;
  transition: height 0.4s var(--ease-out);
}

.hdr.is-stuck .brand img {
  height: clamp(25px, 2.4vw, 32px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 1.8vw, 2rem);
}

.nav a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.25s var(--ease-out);
}

/* Underline draws in on hover and stays put on the current page. */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav a:hover {
  color: var(--fg);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--fg);
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg-dim);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s;
}

.icon-btn:hover {
  color: var(--fg);
  border-color: var(--accent-500);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.nav-toggle {
  display: none;
}

/* Mobile drawer. */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 5.5rem var(--gutter) 2.5rem;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(22px);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease-in-out);
}

.drawer.is-open {
  transform: translateY(0);
}

.drawer a {
  font-family: var(--font-display);
  /**
   * Sized so five links plus both buttons fit a 390px screen without the
   * phone-number button wrapping. The earlier 9vw ramp was set for the visual
   * effect and overshot on the devices most visitors actually use.
   */
  font-size: clamp(1.4rem, 5.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  /* Keeps each row a comfortable tap target now the text is smaller. */
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}

.drawer a:hover,
.drawer a.is-active {
  color: var(--accent-400);
}

.drawer__foot {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.6rem;
}

/* The phone number must stay on one line inside the pill. */
.drawer__foot .btn {
  font-size: 0.98rem;
  padding: 0.95rem 1.25rem;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease-in-out);
}

.hero__slide.is-live {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slow drift keeps a still photograph feeling alive. */
  animation: kenburns 22s var(--ease-in-out) infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.16) translate3d(-1.5%, -1.5%, 0);
  }
}

/* Two scrims: one for text legibility, one to seat the hero into the page. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 2%, color-mix(in srgb, var(--bg) 55%, transparent) 34%, transparent 72%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 88%, transparent), transparent 62%);
}

/**
 * This element carries .wrap as well, so it must NOT set its own max-width:
 * that overrode .wrap's 1320px while .wrap's `margin-inline: auto` kept
 * applying, which centred the narrow text box in the viewport instead of
 * seating it on the page gutter. The result was a hero that lined up with
 * nothing: not the logo above it, not the sections below.
 * The container keeps the page width; the individual lines are constrained.
 */
.hero__body {
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  padding-top: clamp(8rem, 15vh, 11rem);
  display: grid;
  gap: 1.6rem;
  justify-items: start;
}

.hero__body > h1 {
  max-width: 20ch;
}

.hero .lede {
  max-width: 44ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2.5rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  max-width: 44rem;
}

.stat {
  display: grid;
  gap: 0.1rem;
}

.stat__n {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.stat__l {
  font-size: 0.78rem;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

/* Slide dots. */
.hero__dots {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 7vh, 5rem);
  display: grid;
  gap: 0.55rem;
}

.hero__dots button {
  width: 3px;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.4s, height 0.4s var(--ease-out);
}

.hero__dots button.is-live {
  background: var(--accent-400);
  height: 3.1rem;
}

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.scroll-hint::after {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: currentColor;
  animation: hint 2.4s var(--ease-in-out) infinite;
  transform-origin: left;
}

@keyframes hint {
  0%,
  100% {
    transform: scaleX(0.35);
    opacity: 0.4;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* -------------------------------------------------------------- marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  background: var(--surface);
  --marquee-speed: 34s;
}

.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide var(--marquee-speed) linear infinite;
}

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

@keyframes slide {
  to {
    /* Two identical halves, so -50% is a seamless loop. */
    transform: translateX(-50%);
  }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-faint);
  white-space: nowrap;
}

.marquee__item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-500);
  flex: 0 0 auto;
}

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

.svc__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding-block: clamp(1.3rem, 2.6vw, 2.1rem);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-inline 0.45s var(--ease-out);
}

/* Red wash wipes in from the left on hover. */
.svc__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-500) 12%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

.svc__row:hover::before {
  opacity: 1;
}

.svc__row:hover {
  padding-inline: clamp(0.5rem, 1.6vw, 1.4rem);
}

.svc__t {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.1vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
  transition: transform 0.45s var(--ease-out);
}

.svc__row:hover .svc__t {
  transform: translateX(0.45rem);
}

.svc__d {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--fg-dim);
  max-width: 58ch;
}

.svc__go {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--fg-dim);
  flex: 0 0 auto;
  transition: transform 0.45s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s;
}

.svc__row:hover .svc__go {
  background: var(--accent-500);
  border-color: transparent;
  color: #ffffff;
  transform: rotate(-45deg);
}

.svc__go svg {
  width: 1.05rem;
  height: 1.05rem;
}

/**
 * Desktop-only: the hovered row's photo follows the cursor. Purely additive:
 * on touch and at narrow widths it is never rendered.
 */
.svc__peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 21rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line-strong);
}

.svc__peek.is-live {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

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

/* ---------------------------------------------------------------- split */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

  .split--wide-left {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.frame:hover img {
  transform: scale(1.045);
}

.frame--wide img {
  aspect-ratio: 16 / 10;
}

/* Floating figure over the image corner. */
.frame__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--ink-950) 72%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ---------------------------------------------------------------- cards */
.cards {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  position: relative;
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent-500) 45%, var(--line));
  box-shadow: var(--shadow-lift);
}

/* Light bloom that follows the pointer across the card. */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    18rem circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent-500) 16%, transparent),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card__ico {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  color: var(--accent-400);
  background: color-mix(in srgb, var(--accent-500) 13%, transparent);
}

.card__ico svg {
  width: 1.35rem;
  height: 1.35rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fg-dim);
}

/* --------------------------------------------------------------- figures */
.figures {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  text-align: center;
}

.fig__n {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(160deg, var(--fg), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fig__l {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--fg-dim);
}

/* --------------------------------------------------------------- gallery */
.gal {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
  .gal {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 12rem;
  }

  /* A couple of deliberate blow-ups break the grid's monotony. */
  .gal__i:nth-child(1),
  .gal__i:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gal__i {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  aspect-ratio: 1;
}

@media (min-width: 760px) {
  .gal__i {
    aspect-ratio: auto;
  }
}

.gal__i img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.5s;
}

.gal__i:hover img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

/* Lightbox. */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--ink-950) 92%, transparent);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lb.is-open {
  opacity: 1;
  visibility: visible;
}

.lb img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--r);
  box-shadow: var(--shadow-lift);
}

.lb__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}

.lb__nav {
  position: absolute;
  inset: auto 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

/* --------------------------------------------------------------- reviews */
.quote {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}

.quote__stars {
  color: var(--accent-400);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.quote p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
}

.quote__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--fg-dim);
}

.quote__av {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-500) 22%, transparent);
  color: var(--accent-300);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------- cta */
.cta {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(2.4rem, 6vw, 5rem);
  text-align: center;
  isolation: isolate;
  border: 1px solid var(--line);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--accent-500) 26%, transparent), transparent 70%),
    var(--surface);
}

.cta__inner {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  max-width: 44rem;
  margin-inline: auto;
}

.cta .lede {
  max-width: 52ch;
}

/* ---------------------------------------------------------------- footer */
.ftr {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.8rem, 6vw, 4.5rem) 1.8rem;
  background: var(--surface);
}

.ftr__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.ftr__brand img {
  height: clamp(34px, 3.6vw, 46px);
  width: auto;
  margin-bottom: 1rem;
}

.ftr h4 {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 1rem;
}

.ftr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ftr li a,
.ftr address a {
  color: var(--fg-dim);
  font-size: 0.92rem;
  transition: color 0.25s;
}

.ftr li a:hover,
.ftr address a:hover {
  color: var(--accent-400);
}

.ftr address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--fg-dim);
  display: grid;
  gap: 0.5rem;
}

.ftr__bar {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--fg-faint);
}

/* Oversized wordmark bleeding off the bottom, a signature closer. */
.ftr__mark {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 15vw, 12rem);
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-align: center;
  user-select: none;
  overflow: hidden;
}

/* --------------------------------------------------- sticky call button */
.call-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.3rem;
  border-radius: var(--r-pill);
  background: var(--accent-500);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(225, 29, 36, 0.4);
}

.call-fab svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* --------------------------------------------------- scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

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

/* Per-line hero entrance. */
.rise {
  display: block;
  overflow: hidden;
}

.rise > span {
  display: block;
  /**
   * Driven by a CSS animation, not a JS-added class. Previously this sat at
   * translateY(105%) inside an overflow:hidden parent until JS set .is-loaded,
   * which meant a script failure hid the main heading completely.
   * `both` fill mode holds the start frame during the delay and the end frame
   * afterwards, so it is correct with no JS involved.
   */
  animation: rise-in 1s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

@keyframes rise-in {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Thin progress bar showing how far down the page you are. */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-600), var(--accent-300));
  z-index: 101;
}

/* ------------------------------------------------------------ responsive */
/* Seven tabs plus the wordmark and the call button need the gaps pulled in
   before the nav gives way to the drawer at 1024px. */
@media (max-width: 1279px) {
  .nav {
    gap: 0.95rem;
  }

  .nav a {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 1023px) {
  /* Nav is hidden here, so drop to logo | actions. */
  .hdr__inner {
    grid-template-columns: auto 1fr;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .hdr__actions .btn {
    display: none;
  }

  .call-fab {
    display: inline-flex;
  }

  .svc__peek {
    display: none;
  }
}

@media (max-width: 719px) {
  .hero__body {
    padding-top: 7.5rem;
  }

  .hero__dots {
    display: none;
  }

  .svc__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem 1rem;
  }

  .svc__go {
    display: none;
  }

  .hero__foot {
    gap: 1.1rem 1.8rem;
  }
}

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

  /* --- Remove the large, vestibular motion --- */

  /* Continuous drift and looping travel. */
  .hero__slide img,
  .marquee__track,
  .scroll-hint::after {
    animation: none;
    transform: none;
  }

  /* Movement on hover: lifts, nudges, zooms, rotations. */
  .btn:hover,
  .card:hover,
  .stat:hover,
  .rev__card:hover,
  .icon-btn:hover,
  .visit__maps-btn:hover,
  .svc__row:hover .svc__t,
  .svc__row:hover .svc__go,
  .link:hover svg {
    transform: none;
  }

  .frame:hover img,
  .gal__i:hover img {
    transform: none;
  }

  /* The cursor-following service photo is pure motion; drop it entirely. */
  .svc__peek {
    display: none !important;
  }

  /* Sliding fills and drawing underlines become instant. */
  .btn::before,
  .link::after,
  .nav a::after {
    transition-duration: 0.01ms;
  }

  /* --- Keep the gentle opacity work --- */
  /*
   * Fading in is not what triggers motion sensitivity, and removing it made
   * the site read as broken rather than calm. Reveals still fade, they just
   * no longer travel.
   */
  [data-reveal] {
    transform: none;
    transition: opacity 0.6s ease;
    transition-delay: var(--d, 0ms);
  }

  .rise > span {
    animation: fade-in 0.7s ease both;
    animation-delay: var(--d, 0ms);
  }

  /* Cross-fading the hero photos is opacity only, so it stays. */
  .hero__slide {
    transition: opacity 1s ease;
  }
}

/* ------------------------------------------------------------- printing */
@media print {
  .hdr,
  .drawer,
  .call-fab,
  .progress,
  .hero__dots,
  .scroll-hint,
  .svc__peek,
  .lb,
  body::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ==========================================================================
   Reviews carousel. Populated at runtime from the Google Places API, so these
   are real reviews, so the markup ships empty and is filled in by site.js.
   ========================================================================== */
.rev__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.rev__ctrl {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding-bottom: 0.35rem;
}

.rev {
  position: relative;
}

/**
 * Native scroll-snap rather than a transform carousel: touch swipe, trackpad
 * and keyboard all work for free, and it degrades to a plain scroller if the
 * JS controls never initialise.
 */
.rev__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Room for the card lift on hover. */
  padding-block: 0.4rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}

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

.rev__viewport:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 4px;
  border-radius: var(--r);
}

.rev__track {
  display: flex;
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
  width: max-content;
}

.rev__card {
  flex: 0 0 clamp(17rem, 78vw, 24rem);
  scroll-snap-align: start;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s;
}

@media (min-width: 900px) {
  .rev__card {
    flex-basis: 23rem;
  }
}

.rev__card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-500) 40%, var(--line));
  box-shadow: var(--shadow-lift);
}

.rev__stars {
  color: var(--accent-400);
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  line-height: 1;
}

.rev__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  /* Long Google reviews are clamped so cards stay a consistent height. */
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rev__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--fg-dim);
}

.rev__av {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-500) 22%, transparent);
  color: var(--accent-300);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

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

.rev__when {
  color: var(--fg-faint);
  font-size: 0.8rem;
}

.rev__card--loading .rev__text,
.rev__card--empty .rev__text {
  color: var(--fg-dim);
}

.rev__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.rev__dots button {
  width: 1.9rem;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.35s, width 0.35s var(--ease-out);
}

.rev__dots button.is-live {
  background: var(--accent-400);
  width: 3.1rem;
}

.rev__foot {
  margin: 1.75rem 0 0;
  text-align: center;
}

@media (max-width: 719px) {
  .rev__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .rev__ctrl {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Visit block: address, phone, hours and a compact map, under the contact CTA.
   ========================================================================== */
.visit {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.35rem);
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  /* Two text cards and a slightly wider map panel. */
  .visit {
    grid-template-columns: 1fr 1fr 1.15fr;
    align-items: stretch;
  }
}

.visit__card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.35rem, 2.4vw, 1.8rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}

.visit__h {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.visit__body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fg-dim);
}

/** The one instruction that saves a wasted trip, so it gets its own treatment. */
.visit__note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--accent-500) 32%, var(--line));
  background: color-mix(in srgb, var(--accent-500) 10%, transparent);
  font-size: 0.9rem;
  line-height: 1.55;
}

.visit__note svg {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
  color: var(--accent-400);
}

/** ---------------------------------------------------------------- payments
    Card acceptance is a question people phone in to ask, so it is answered
    on the page: a headline they can scan, one line of detail, and the brand
    marks that make it believable at a glance. */
.pay {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 0.95rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--accent-500) 9%, transparent),
    transparent 62%
  );
}

.pay__h {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.pay__h svg {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent-400);
}

.pay__body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--fg-dim);
}

.pay__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
}

/* Each mark sits in its own chip so unequal logo widths still read as a set. */
.pay__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  height: 1.85rem;
  padding: 0 0.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--fg) 5%, var(--surface));
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--fg);
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

.pay__brand:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent-500) 45%, var(--line-strong));
}

.pay__brand svg {
  flex: 0 0 auto;
  height: 0.95rem;
}

/* Visa has no icon, only a wordmark, so the chip carries the letterforms. */
.pay__brand--visa {
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.pay__brand--cash svg {
  width: 1.05rem;
  color: var(--accent-400);
}

.visit__dl {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.visit__dl dt {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 0.2rem;
}

.visit__dl dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.visit__dl dd a {
  color: var(--accent-400);
}

.visit__dl dd a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/** Hours row: label left, value right, with a rule between. */
.visit__dl--rows {
  gap: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  align-items: baseline;
}

.visit__dl--rows dt {
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-dim);
}

.visit__dl--rows dd {
  text-align: right;
  font-weight: 700;
}

.visit__link {
  justify-self: start;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------- the map */
.visit__map {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  /* Deliberately compact: enough to orient, not a feature of the page. */
  min-height: 15rem;
}

.visit__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15rem;
  border: 0;
  /* Google's embed is always light; tone it into a dark page. */
  filter: grayscale(0.25);
}

.visit__map iframe {
  filter: grayscale(0.35) brightness(0.9) contrast(1.05);
}

.visit__maps-btn {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--ink-950) 78%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.visit__maps-btn:hover {
  background: var(--accent-500);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

.visit__maps-btn svg {
  width: 0.9rem;
  height: 0.9rem;
}

@media (max-width: 899px) {
  .visit__map {
    min-height: 13rem;
  }

  .visit__map iframe {
    min-height: 13rem;
  }
}

/* ==========================================================================
   Subpage patterns: page hero, service detail rows, tick lists, contact form.
   ========================================================================== */

/** Shorter cousin of the homepage hero: sets the scene without eating a screen. */
.phero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(58svh, 34rem);
  overflow: hidden;
  isolation: isolate;
}

.phero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.phero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 3%, color-mix(in srgb, var(--bg) 62%, transparent) 40%, transparent 78%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 86%, transparent), transparent 66%);
}

.phero__body {
  display: grid;
  gap: 1.1rem;
  padding-top: clamp(8rem, 15vh, 11rem);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  justify-items: start;
}

.phero__body > h1 {
  max-width: 24ch;
}

/* --------------------------------------------------- service detail rows */
.svc-details {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

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

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

  /* Alternate sides so a long list of services does not read as a column. */
  .svc-detail--flip .frame {
    order: 2;
  }
}

.svc-detail__body {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.svc-detail__label {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* Anchor targets sit below the fixed header. */
.svc-detail {
  scroll-margin-top: 7rem;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--fg-dim);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.6rem;
  height: 0.32rem;
  border-left: 2px solid var(--accent-400);
  border-bottom: 2px solid var(--accent-400);
  transform: rotate(-45deg);
}

.ha-note-line {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1rem 1.15rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 74ch;
}

/* ------------------------------------------------------------ contact page */
.contact-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.9fr;
  }
}

.contact-form-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-side {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.fgrid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

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

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-faint);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-500) 22%, transparent);
}

.field input[aria-invalid="true"] {
  border-color: #e0654f;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.form-actions .btn {
  flex: 1 1 14rem;
}

.form-msg {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  min-height: 1.2rem;
}

.form-msg.is-error {
  color: #e0654f;
  font-weight: 650;
}

.form-msg.is-ok {
  color: var(--fg);
  font-weight: 650;
}

@media (max-width: 719px) {
  .form-actions .btn {
    flex: 1 1 100%;
  }
}
