/* ==========================================================================
   COUNTRYSIDE AUTO CARE — Design System
   Palette sampled directly from custom/logo.webp
   Author: Novelio Technologies
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand — pixel-sampled from the logo */
  --brand-red: #ec1b24;
  --brand-red-deep: #b0151c;
  --brand-red-glow: #ff3a44;
  --brand-blue: #2e3192;
  --brand-blue-lift: #4a4dc4;

  /* Neutrals — "garage at night" */
  --ink-900: #08090c;
  --ink-800: #0e1116;
  --ink-700: #151a21;
  --ink-600: #1e252f;
  --ink-500: #2c3542;
  --steel-300: #98a1ae;
  --chrome-100: #e8ebf0;
  --paper: #f6f7f9;
  --paper-ink: #10141a;
  --paper-muted: #4a5566;
  --paper-line: #dfe3ea;

  /* Gradients.
     --grad-torque carries white text (buttons, CTA band, active tabs), so its
     stops are tuned to clear WCAG AA 4.5:1 against #fff: 4.55 / 5.48 / 7.07.
     The brighter --grad-glow is decorative only — never behind text. */
  --grad-torque: linear-gradient(135deg, #e81b23 0%, #d01820 45%, var(--brand-red-deep) 100%);
  --grad-glow: linear-gradient(135deg, var(--brand-red-glow) 0%, var(--brand-red) 45%, var(--brand-red-deep) 100%);
  --grad-chrome: linear-gradient(180deg, #ffffff 0%, #c9d0da 42%, #7c8595 52%, #edf1f6 100%);
  --grad-night: radial-gradient(120% 90% at 50% 0%, #1b2431 0%, var(--ink-900) 68%);

  /* Elevation ramp */
  --sh-1: 0 1px 1px rgba(0, 0, 0, .28), 0 2px 4px rgba(0, 0, 0, .22);
  --sh-2: 0 2px 4px rgba(0, 0, 0, .26), 0 8px 16px rgba(0, 0, 0, .24), 0 16px 32px rgba(0, 0, 0, .18);
  --sh-3: 0 4px 8px rgba(0, 0, 0, .30), 0 16px 32px rgba(0, 0, 0, .26), 0 32px 64px rgba(0, 0, 0, .22);
  --sh-red: 0 8px 24px rgba(236, 27, 36, .34), 0 2px 6px rgba(0, 0, 0, .4);

  /* Type */
  --font-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --shell: 1220px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease-entrance: cubic-bezier(.16, 1, .3, 1);
  --ease-state: cubic-bezier(.4, 0, .2, 1);
  --t-micro: 160ms;
  --t-std: 320ms;

  /* Z-index scale */
  --z-sticky: 10;
  --z-header: 40;
  --z-dropdown: 300;
  --z-modal: 999;
  --z-critical: 9999;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--chrome-100);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

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

:focus-visible {
  outline: 3px solid var(--brand-red-glow);
  outline-offset: 3px;
  border-radius: 3px;
}

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

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.95rem, 4.3vw, 3.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; letter-spacing: .01em; }

p { max-width: 68ch; }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--steel-300); }

/* Chrome-milled headline treatment */
.chrome-text {
  background: var(--grad-chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Eyebrow label with leading rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-red-glow);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--brand-red);
  flex: none;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--steel-300); margin-top: 1.1rem; }
.section-head--center p { margin-inline: auto; }

/* Oversized watermark numeral behind headings.
   Rendered via a pseudo-element so it is genuine decoration rather than a DOM
   text node — it carries no meaning and must not be read or contrast-checked. */
.watermark::after { content: attr(data-text); }
.watermark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 26vw, 24rem);
  line-height: .74;
  color: rgba(255, 255, 255, .026);
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  isolation: isolate;
  /* Watermark numerals are deliberately hung outside the content box; clip them
     here so they never widen the page. */
  overflow: hidden;
}

.section--dark { background: var(--ink-900); }
.section--raised { background: var(--ink-800); }

.section--paper {
  background: var(--paper);
  color: var(--paper-ink);
}
.section--paper .lede,
.section--paper .section-head p { color: var(--paper-muted); }
.section--paper .watermark { color: rgba(16, 20, 26, .035); }

/* Blueprint technical grid substrate */
.bp-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(152, 161, 174, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 161, 174, .06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(100% 70% at 50% 30%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(100% 70% at 50% 30%, #000 20%, transparent 82%);
  pointer-events: none;
  z-index: -1;
}

/* Red registration tick marks at section corners */
.ticks > .tick {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid var(--brand-red);
  opacity: .5;
  pointer-events: none;
}
.tick--tl { top: 26px; left: 26px; border-right: 0; border-bottom: 0; }
.tick--tr { top: 26px; right: 26px; border-left: 0; border-bottom: 0; }
.tick--bl { bottom: 26px; left: 26px; border-right: 0; border-top: 0; }
.tick--br { bottom: 26px; right: 26px; border-left: 0; border-top: 0; }

/* Carbon weave micro-texture */
.carbon::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 4px);
  pointer-events: none;
  z-index: -1;
}

/* Tire-tread texture band */
.tread {
  background-image:
    repeating-linear-gradient(115deg, rgba(0, 0, 0, .26) 0 12px, transparent 12px 26px),
    repeating-linear-gradient(65deg, rgba(0, 0, 0, .16) 0 8px, transparent 8px 30px);
}

/* Speed-streak diagonal section edge */
.shear-top { clip-path: polygon(0 3.2vw, 100% 0, 100% 100%, 0 100%); margin-top: -3.2vw; }
.shear-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.2vw), 0 100%); }

/* Chrome hairline rule */
.chrome-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
}

/* --------------------------------------------------------------------------
   5. GLASS SURFACE
   -------------------------------------------------------------------------- */
.glass {
  background: rgba(30, 37, 47, .62);
  border: 1px solid rgba(255, 255, 255, .085);
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .09);
  border-radius: var(--radius);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass {
    background: rgba(30, 37, 47, .5);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
  }
}

/* Light-mode glass needs high opacity to stay legible */
.section--paper .glass {
  background: rgba(255, 255, 255, .86);
  border-color: var(--paper-line);
  box-shadow: 0 1px 2px rgba(16, 20, 26, .05), 0 10px 26px rgba(16, 20, 26, .07);
  color: var(--paper-ink);
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 52px;
  padding: .85rem 1.75rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform var(--t-micro) var(--ease-state),
              box-shadow var(--t-micro) var(--ease-state),
              background-color var(--t-micro) var(--ease-state),
              color var(--t-micro) var(--ease-state),
              border-color var(--t-micro) var(--ease-state);
}

.btn svg { width: 19px; height: 19px; flex: none; }

/* Diagonal sheen sweep */
.btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -75%;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-22deg) translateX(0);
  transition: transform 640ms var(--ease-entrance);
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { transform: skewX(-22deg) translateX(340%); }

.btn--primary {
  background: var(--grad-torque);
  color: #fff;
  box-shadow: var(--sh-red);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(236, 27, 36, .44), 0 3px 8px rgba(0, 0, 0, .45); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  color: var(--chrome-100);
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .04);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .1);
  box-shadow: var(--sh-2);
}

.btn--solid-light {
  background: var(--paper-ink);
  color: #fff;
}
.btn--solid-light:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

.btn--onred {
  background: #fff;
  color: var(--brand-red-deep);
  box-shadow: var(--sh-2);
}
.btn--onred:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }

.btn--outline-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
}
.btn--outline-light:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Text link with wiping underline */
.link-wipe {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-red-glow);
  padding-bottom: 3px;
  cursor: pointer;
}
.link-wipe::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-std) var(--ease-state);
}
.link-wipe:hover::after, .link-wipe:focus-visible::after { transform: scaleX(1); }
.link-wipe svg { width: 15px; height: 15px; transition: transform var(--t-micro) var(--ease-state); }
.link-wipe:hover svg { transform: translateX(4px); }
.section--paper .link-wipe { color: var(--brand-red-deep); }

/* --------------------------------------------------------------------------
   7. SCROLL PROGRESS
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad-glow);
  z-index: var(--z-critical);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. TOP BAR
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ink-900);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 44px;
  padding-block: .3rem;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--steel-300);
  transition: color var(--t-micro) var(--ease-state);
}
a.topbar__item:hover { color: #fff; }
.topbar__item svg { width: 15px; height: 15px; flex: none; color: var(--brand-red); }
.topbar__phone { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; color: var(--chrome-100); }
.topbar__social { margin-left: auto; display: flex; align-items: center; gap: .35rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--steel-300);
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-state),
              color var(--t-micro) var(--ease-state),
              background-color var(--t-micro) var(--ease-state);
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover {
  transform: rotate(-6deg);
  color: #fff;
  background: var(--brand-red);
}

/* Live open/closed status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .16rem .6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status--open { color: #4ade80; border-color: rgba(74, 222, 128, .38); background: rgba(74, 222, 128, .1); }
.status--open .status__dot { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse-dot 2.4s infinite; }
.status--closed { color: #fca5a5; border-color: rgba(252, 165, 165, .35); background: rgba(252, 165, 165, .09); }
.status--closed .status__dot { background: #fca5a5; }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* --------------------------------------------------------------------------
   9. HEADER / NAV
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-std) var(--ease-state),
              border-color var(--t-std) var(--ease-state),
              box-shadow var(--t-std) var(--ease-state);
}
.header.is-stuck {
  background: rgba(14, 17, 22, .82);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: var(--sh-2);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .header.is-stuck {
    background: rgba(14, 17, 22, .66);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}

/* LOGO AREA — image only. No text node, no pseudo-element content.
   The source logo ships on an opaque white background, so on dark surfaces it
   is presented as a deliberate rounded plate rather than a raw white box. */
.logo-plate {
  background: #fff;
  border-radius: 9px;
  padding: 7px 11px;
  box-shadow: var(--sh-1);
  object-fit: contain;
}

.brand {
  flex: none;
  display: block;
  line-height: 0;
  border-radius: 9px;
}
.brand img {
  width: 196px;
  height: 52px;
  transition: transform var(--t-std) var(--ease-state), box-shadow var(--t-std) var(--ease-state);
}
.brand:hover img { transform: scale(1.03); box-shadow: var(--sh-2); }

.nav__list {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  display: block;
  padding: .6rem .85rem;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--chrome-100);
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--t-micro) var(--ease-state);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .32rem;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-std) var(--ease-state);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: #fff; }

/* Services mega dropdown */
.nav__item { position: relative; }
.nav__toggle { display: inline-flex; align-items: center; gap: .35rem; }
.nav__toggle svg { width: 12px; height: 12px; transition: transform var(--t-micro) var(--ease-state); }
.nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  width: min(90vw, 660px);
  padding: 1.5rem;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t-std) var(--ease-state),
              transform var(--t-std) var(--ease-entrance),
              visibility var(--t-std);
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }

.mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem; }
.mega__link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem .8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color var(--t-micro) var(--ease-state), transform var(--t-micro) var(--ease-state);
}
.mega__link:hover { background: rgba(255, 255, 255, .06); transform: translateX(4px); }
.mega__num {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brand-red);
  flex: none;
}
.mega__name { font-family: var(--font-display); font-size: .9rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.mega__desc { display: block; font-family: var(--font-body); font-size: .76rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--steel-300); line-height: 1.4; }
.mega__foot { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .08); }

/* Burger */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
}
.burger__box { position: relative; width: 22px; height: 14px; }
.burger__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--chrome-100);
  border-radius: 2px;
  transition: transform var(--t-std) var(--ease-entrance), opacity var(--t-micro) linear;
}
.burger__bar:nth-child(1) { top: 0; }
.burger__bar:nth-child(2) { top: 6px; }
.burger__bar:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--ink-900);
  padding: 5.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-std) var(--ease-state), visibility var(--t-std);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__close { position: absolute; top: 1.5rem; right: var(--gutter); width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__list { display: flex; flex-direction: column; gap: .2rem; }
.drawer__link {
  display: block;
  padding: .9rem .2rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  opacity: 0;
  transform: translateY(18px);
}
.drawer.is-open .drawer__link {
  animation: drawer-in 460ms var(--ease-entrance) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 90ms);
}
@keyframes drawer-in { to { opacity: 1; transform: translateY(0); } }
.drawer__sub { padding-left: 1rem; font-size: 1rem; color: var(--steel-300); }
.drawer__cta { margin-top: 1.8rem; display: grid; gap: .7rem; }

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: -78px;
  padding-top: calc(78px + clamp(4rem, 10vh, 8rem));
  padding-bottom: clamp(4rem, 9vh, 7rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--grad-night);
}

.hero__layer { position: absolute; inset: -12% -4%; z-index: -3; will-change: transform; }

/* Source photo is only 450x300 — blur it hard so it reads as atmosphere, not a photo */
.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(26px) saturate(115%) brightness(.5);
  transform: scale(1.18);
  opacity: .78;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 65% at 22% 18%, rgba(236, 27, 36, .17) 0%, transparent 62%),
    linear-gradient(180deg, rgba(8, 9, 12, .58) 0%, rgba(8, 9, 12, .82) 62%, var(--ink-900) 100%);
  pointer-events: none;
}

/* Red speed streaks */
.hero__streaks { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; will-change: transform; }
.streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  opacity: .5;
  transform: skewX(-24deg);
}
.streak:nth-child(1) { top: 24%; left: -12%; width: 46%; }
.streak:nth-child(2) { top: 33%; left: -6%; width: 26%; opacity: .3; }
.streak:nth-child(3) { top: 68%; right: -10%; width: 38%; opacity: .34; }

.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--brand-red-glow); -webkit-text-fill-color: var(--brand-red-glow); }
.hero .lede { max-width: 60ch; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 2.6rem; }

/* Floating spec chips */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--sh-1), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.chip svg { width: 15px; height: 15px; color: var(--brand-red-glow); flex: none; }
.chip--float { animation: float 7.5s var(--ease-state) infinite alternate; }
.chip--float:nth-child(2) { animation-duration: 9s; animation-delay: -2.5s; }
.chip--float:nth-child(3) { animation-duration: 6.5s; animation-delay: -1.2s; }

@keyframes float {
  from { transform: translateY(-6px); }
  to { transform: translateY(6px); }
}

/* Hero word-by-word clip reveal */
.reveal-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.reveal-word > span {
  display: inline-block;
  transform: translateY(105%);
  animation: word-up 780ms var(--ease-entrance) forwards;
  animation-delay: calc(var(--w, 0) * 62ms + 260ms);
}
@keyframes word-up { to { transform: translateY(0); } }

/* Sequenced hero entrance */
.hero-seq { opacity: 0; transform: translateY(22px); animation: seq-in 700ms var(--ease-entrance) forwards; }
.hero-seq--1 { animation-delay: 120ms; }
.hero-seq--2 { animation-delay: 620ms; }
.hero-seq--3 { animation-delay: 740ms; }
.hero-seq--4 { animation-delay: 860ms; }
@keyframes seq-in { to { opacity: 1; transform: translateY(0); } }

/* Compact page hero for interior pages */
.pagehero {
  position: relative;
  margin-top: -78px;
  padding-top: calc(78px + clamp(3.5rem, 8vh, 5.5rem));
  padding-bottom: clamp(2.75rem, 6vh, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--grad-night);
}
.pagehero__inner { position: relative; z-index: 1; max-width: 820px; }
.pagehero h1 { margin-bottom: 1.1rem; }
.pagehero .lede { max-width: 62ch; }
.pagehero .btn-row { margin-top: 1.9rem; }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; color: var(--steel-300); margin-bottom: 1.4rem; }
.crumbs a { transition: color var(--t-micro) var(--ease-state); }
.crumbs a:hover { color: var(--brand-red-glow); }
.crumbs svg { width: 11px; height: 11px; opacity: .5; }
.crumbs [aria-current] { color: var(--chrome-100); }

/* --------------------------------------------------------------------------
   11. TELEMETRY GAUGES
   -------------------------------------------------------------------------- */
.telemetry {
  position: relative;
  background: var(--ink-800);
  border-block: 1px solid rgba(255, 255, 255, .07);
  padding-block: clamp(2.5rem, 5vw, 3.6rem);
}
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gauge { position: relative; text-align: center; padding: .5rem; }
.gauge:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .13), transparent);
}
.gauge__dial { position: relative; width: 106px; height: 62px; margin: 0 auto .55rem; }
.gauge__dial svg { width: 100%; height: 100%; overflow: visible; }
.gauge__track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 6; stroke-linecap: round; }
.gauge__fill {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transition: stroke-dashoffset 1.5s var(--ease-entrance);
}
.gauge.is-live .gauge__fill { stroke-dashoffset: var(--dash, 30); }
.gauge__value {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.gauge__label {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-300);
}

/* --------------------------------------------------------------------------
   12. SPLIT / FEATURE BLOCKS
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
.split--wide-right { grid-template-columns: .85fr 1.15fr; }
.split__media { position: relative; }

/* Media frame — never exceeds the source image's native width */
.frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
  border: 1px solid rgba(255, 255, 255, .1);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame--square { aspect-ratio: 1; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 9, 12, .5) 100%);
  pointer-events: none;
}
.section--paper .frame { border-color: var(--paper-line); box-shadow: 0 18px 44px rgba(16, 20, 26, .14); }

/* Floating stat badge overlapping the frame */
.frame-badge {
  position: absolute;
  right: -14px;
  bottom: -18px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--grad-torque);
  box-shadow: var(--sh-red);
  z-index: 2;
  text-align: center;
}
.frame-badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: #fff; }
.frame-badge span { font-family: var(--font-display); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }

/* Checklist */
.checklist { display: grid; gap: .85rem; margin-top: 1.6rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist svg { width: 21px; height: 21px; flex: none; color: var(--brand-red-glow); margin-top: 2px; }
.section--paper .checklist svg { color: var(--brand-red); }
.checklist span { color: var(--steel-300); }
.section--paper .checklist span { color: var(--paper-muted); }

/* Value pair cards */
.valuegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.valuecard { padding: clamp(1.6rem, 3vw, 2.2rem); }
.valuecard h3 { margin-bottom: .85rem; }
.valuecard p { color: var(--steel-300); font-size: .98rem; }
.section--paper .valuecard p { color: var(--paper-muted); }
.valuecard__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(236, 27, 36, .13);
  border: 1px solid rgba(236, 27, 36, .28);
  color: var(--brand-red-glow);
  margin-bottom: 1.15rem;
}
.valuecard__ico svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   13. SERVICE INDEX (numbered parts list)
   -------------------------------------------------------------------------- */
.svcindex { border-top: 1px solid rgba(255, 255, 255, .1); }
.section--paper .svcindex { border-top-color: var(--paper-line); }

.svcrow {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: clamp(1.4rem, 2.6vw, 2rem) .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: transform var(--t-std) var(--ease-state), background-color var(--t-std) var(--ease-state), padding-left var(--t-std) var(--ease-state);
}
.section--paper .svcrow { border-bottom-color: var(--paper-line); }
.svcrow:hover { background: rgba(255, 255, 255, .035); padding-left: 1.4rem; }
.section--paper .svcrow:hover { background: rgba(16, 20, 26, .035); }

.svcrow__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--steel-300);
  transition: color var(--t-std) var(--ease-state);
}
.svcrow:hover .svcrow__num { color: var(--brand-red-glow); }
.svcrow__name { font-family: var(--font-display); font-size: clamp(1.35rem, 2.7vw, 2rem); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; }
.svcrow__desc { font-size: .9rem; color: var(--steel-300); margin-top: .3rem; }
.section--paper .svcrow__desc { color: var(--paper-muted); }

.svcrow__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--chrome-100);
  flex: none;
  transition: transform var(--t-std) var(--ease-state), background-color var(--t-std) var(--ease-state), border-color var(--t-std) var(--ease-state), color var(--t-std) var(--ease-state);
}
.section--paper .svcrow__arrow { border-color: var(--paper-line); color: var(--paper-ink); }
.svcrow__arrow svg { width: 19px; height: 19px; }
.svcrow:hover .svcrow__arrow { background: var(--brand-red); border-color: var(--brand-red); color: #fff; transform: rotate(-45deg); }

/* Hover-revealed image panel (pointer devices only) */
.svcpeek {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  aspect-ratio: 435 / 336;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sh-3);
  border: 1px solid rgba(255, 255, 255, .16);
  pointer-events: none;
  opacity: 0;
  z-index: var(--z-dropdown);
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity 240ms var(--ease-state), transform 240ms var(--ease-entrance);
}
.svcpeek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svcpeek img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   14. CARD GRIDS + 3D TILT
   -------------------------------------------------------------------------- */
.tilt-scene { perspective: 1200px; }

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.tcard {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-entrance), box-shadow var(--t-std) var(--ease-state);
  will-change: transform;
}
.tcard.is-tilting { transition: box-shadow var(--t-std) var(--ease-state); }
.tcard:hover { box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, .12); }

/* Cursor-tracking specular highlight */
.tcard__spec {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 62%);
  opacity: 0;
  transition: opacity var(--t-std) var(--ease-state);
  pointer-events: none;
  z-index: 3;
}
.tcard:hover .tcard__spec { opacity: 1; }
.section--paper .tcard__spec { background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 27, 36, .09), transparent 62%); }

/* Service card */
.svccard { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.svccard__media { aspect-ratio: 435 / 300; overflow: hidden; position: relative; }
.svccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 620ms var(--ease-entrance); }
.svccard:hover .svccard__media img { transform: scale(1.07); }
.svccard__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.svccard__body p { font-size: .93rem; color: var(--steel-300); flex: 1; }
.section--paper .svccard__body p { color: var(--paper-muted); }

/* Team card — bio is always visible (hover-only content is unusable on touch).
   Hover keeps a subtle image zoom and a red rule under the role. */
.person { overflow: hidden; display: flex; flex-direction: column; cursor: default; }
.person__media { position: relative; aspect-ratio: 250 / 209; overflow: hidden; background: var(--ink-700); }
.person__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 620ms var(--ease-entrance); }
.person:hover .person__media img { transform: scale(1.06); }
/* Source headshots have mixed white / tan backdrops. A bottom inner shadow
   settles every one of them into the card instead of ending on a hard edge. */
.person__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -42px 58px -30px rgba(8, 9, 12, .62), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.section--paper .person__media::after { box-shadow: inset 0 -42px 58px -34px rgba(16, 20, 26, .3), inset 0 0 0 1px rgba(16, 20, 26, .07); }
.person__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.person__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.person__role {
  position: relative;
  align-self: flex-start;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-red-glow);
  padding-bottom: 4px;
}
.person__role::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--brand-red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-std) var(--ease-state);
}
.person:hover .person__role::after { transform: scaleX(1); }
.person__bio { margin-top: .5rem; font-size: .9rem; line-height: 1.62; color: var(--steel-300); }
.section--paper .person__role { color: var(--brand-red-deep); }
.section--paper .person__bio { color: var(--paper-muted); }

/* --------------------------------------------------------------------------
   15. REVIEWS
   -------------------------------------------------------------------------- */
.revtabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.revtab {
  padding: .58rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  min-height: 44px;
  color: var(--steel-300);
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: color var(--t-micro) var(--ease-state), background-color var(--t-micro) var(--ease-state), border-color var(--t-micro) var(--ease-state);
}
.revtab:hover { color: #fff; border-color: rgba(255, 255, 255, .34); }
.revtab[aria-selected="true"] { background: var(--grad-torque); border-color: transparent; color: #fff; box-shadow: var(--sh-red); }

.revgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }

.review { padding: 1.6rem; display: flex; flex-direction: column; gap: .95rem; }
.review__top { display: flex; align-items: center; gap: .8rem; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-torque);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  flex: none;
  box-shadow: var(--sh-1);
}
.review__who { flex: 1; min-width: 0; }
.review__name { font-family: var(--font-display); font-size: .98rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.review__src { display: flex; align-items: center; gap: .35rem; font-size: .74rem; color: var(--steel-300); }
.review__src svg { width: 13px; height: 13px; }
.section--paper .review__src { color: var(--paper-muted); }
.stars { display: flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; color: #fbbf24; }
.review__text { font-size: .95rem; color: var(--steel-300); flex: 1; }
.section--paper .review__text { color: var(--paper-muted); }
.review__tag {
  align-self: flex-start;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--brand-red-glow);
  background: rgba(236, 27, 36, .12);
  border: 1px solid rgba(236, 27, 36, .26);
}
.section--paper .review__tag { color: var(--brand-red-deep); }

/* Filter animation states */
.review[hidden] { display: none; }
.review.is-entering { animation: rev-in 340ms var(--ease-entrance) forwards; animation-delay: calc(var(--r, 0) * 55ms); opacity: 0; }
@keyframes rev-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* Empty-state card — never a fabricated review */
.review--empty { align-items: flex-start; justify-content: center; text-align: left; gap: 1rem; }
.review--empty p { font-size: .95rem; color: var(--steel-300); }

/* --------------------------------------------------------------------------
   16. BADGES / MARQUEE
   -------------------------------------------------------------------------- */
.badgestrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.2rem); }
/* Every partner badge is dark artwork on a transparent background (built for
   light pages), so on dark sections they must be knocked out to white. */
.badgestrip img {
  height: 46px;
  width: auto;
  opacity: .58;
  filter: brightness(0) invert(1);
  transition: opacity var(--t-std) var(--ease-state), transform var(--t-std) var(--ease-state);
}
.badgestrip img:hover { opacity: 1; transform: translateY(-3px); }
.section--paper .badgestrip img { opacity: .68; filter: grayscale(1); }
.section--paper .badgestrip img:hover { opacity: 1; filter: none; }

.paystrip { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.paystrip img { height: 26px; width: auto; border-radius: 4px; opacity: .8; }

/* --------------------------------------------------------------------------
   17. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.faq__item { overflow: hidden; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  min-height: 56px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
}
.faq__icon { position: relative; width: 17px; height: 17px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--brand-red-glow);
  border-radius: 2px;
  transition: transform var(--t-std) var(--ease-state);
}
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 2px; translate: 0 -50%; }
.faq__icon::after { left: 50%; top: 0; width: 2px; height: 100%; translate: -50% 0; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg) scaleX(0); }
.section--paper .faq__icon::before, .section--paper .faq__icon::after { background: var(--brand-red); }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-entrance); }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 1.4rem 1.35rem; color: var(--steel-300); font-size: .96rem; }
.section--paper .faq__a p { color: var(--paper-muted); }

/* --------------------------------------------------------------------------
   18. CTA BAND
   -------------------------------------------------------------------------- */
.ctaband {
  position: relative;
  background: var(--grad-torque);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.ctaband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .3;
  background-image:
    repeating-linear-gradient(115deg, rgba(0, 0, 0, .3) 0 12px, transparent 12px 26px),
    repeating-linear-gradient(65deg, rgba(0, 0, 0, .18) 0 8px, transparent 8px 30px);
}
.ctaband h2 { color: #fff; margin-bottom: 1rem; }
.ctaband p { color: rgba(255, 255, 255, .9); margin: 0 auto 2rem; max-width: 58ch; }
.ctaband .btn-row { justify-content: center; }
.ctaband .eyebrow { color: rgba(255, 255, 255, .92); justify-content: center; }
.ctaband .eyebrow::before { background: rgba(255, 255, 255, .8); }

/* --------------------------------------------------------------------------
   19. LOCATION + HOURS
   -------------------------------------------------------------------------- */
.maplayout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: stretch; }
.mapframe { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); box-shadow: var(--sh-3); min-height: 380px; }
.mapframe iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }
.section--paper .mapframe { border-color: var(--paper-line); }

.hours { padding: 1.8rem; }
.hours__list { margin: 1.2rem 0; }
.hours__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .62rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .94rem;
}
.section--paper .hours__list li { border-bottom-color: var(--paper-line); }
.hours__list li:last-child { border-bottom: 0; }
.hours__day { color: var(--steel-300); }
.section--paper .hours__day { color: var(--paper-muted); }
.hours__time { font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; }
.hours__list li.is-today .hours__day, .hours__list li.is-today .hours__time { color: var(--brand-red-glow); }
.section--paper .hours__list li.is-today .hours__day, .section--paper .hours__list li.is-today .hours__time { color: var(--brand-red-deep); }
.hours__closed { color: var(--steel-300); opacity: .75; }

.nap { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.nap__row { display: flex; gap: .85rem; align-items: flex-start; }
.nap__row svg { width: 19px; height: 19px; color: var(--brand-red-glow); flex: none; margin-top: 4px; }
.section--paper .nap__row svg { color: var(--brand-red); }
.nap__label { font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-300); }
.section--paper .nap__label { color: var(--paper-muted); }
.nap__value { font-size: .98rem; }
a.nap__value:hover { color: var(--brand-red-glow); }

/* Service-area chips */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; }
.area {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  min-height: 44px;
  border-radius: 999px;
  font-size: .86rem;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .03);
  transition: border-color var(--t-micro) var(--ease-state), background-color var(--t-micro) var(--ease-state), transform var(--t-micro) var(--ease-state);
}
.section--paper .area { border-color: var(--paper-line); background: #fff; }
.area:hover { border-color: var(--brand-red); background: rgba(236, 27, 36, .1); transform: translateY(-2px); }
.area svg { width: 14px; height: 14px; color: var(--brand-red-glow); }

/* --------------------------------------------------------------------------
   20. FORM
   -------------------------------------------------------------------------- */
.formwrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { padding: clamp(1.6rem, 3.5vw, 2.5rem); }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: .45rem;
}
.section--paper .field label { color: var(--paper-muted); }
.field .req { color: var(--brand-red-glow); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .78rem 1rem;
  font-size: .98rem;
  color: var(--chrome-100);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  transition: border-color var(--t-micro) var(--ease-state), background-color var(--t-micro) var(--ease-state), box-shadow var(--t-micro) var(--ease-state);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(152, 161, 174, .65); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a1ae' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 17px; padding-right: 2.6rem; }
.field select option { background: var(--ink-700); color: var(--chrome-100); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-red-glow);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(255, 58, 68, .3);
}

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #f87171; }
.field__err {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: #fca5a5;
  margin-top: .4rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-micro) var(--ease-state), transform var(--t-micro) var(--ease-state);
}
.field__err svg { width: 14px; height: 14px; flex: none; }
.field.has-error .field__err { opacity: 1; transform: translateY(0); }

.consent { display: flex; gap: .7rem; align-items: flex-start; grid-column: 1 / -1; }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 3px; accent-color: var(--brand-red); }
.consent label { font-family: var(--font-body); font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--steel-300); margin: 0; }

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

.form__submit { grid-column: 1 / -1; width: 100%; }
.form__submit[data-state="sending"] { pointer-events: none; opacity: .82; }
.form__submit[data-state="sending"] .btn__label { visibility: hidden; }
.form__submit[data-state="sending"]::before {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  z-index: 2;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { grid-column: 1 / -1; font-size: .9rem; }
.form__status[data-tone="error"] { color: #fca5a5; }
.form__status[data-tone="ok"] { color: #86efac; }

/* Contact side rail */
.contactrail { display: grid; gap: 1rem; }
.contactcard {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem;
  cursor: pointer;
  transition: transform var(--t-std) var(--ease-state), box-shadow var(--t-std) var(--ease-state);
}
.contactcard:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.contactcard__ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: rgba(236, 27, 36, .13);
  border: 1px solid rgba(236, 27, 36, .28);
  color: var(--brand-red-glow);
  flex: none;
}
.contactcard__ico svg { width: 23px; height: 23px; }
.contactcard__label { font-family: var(--font-display); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-300); }
.section--paper .contactcard__label { color: var(--paper-muted); }
.contactcard__value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }

/* --------------------------------------------------------------------------
   21. FOOTER
   -------------------------------------------------------------------------- */
.footer { position: relative; background: var(--ink-900); padding-top: clamp(3.5rem, 7vw, 5rem); isolation: isolate; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.35fr; gap: clamp(1.8rem, 4vw, 3rem); }
/* LOGO AREA — image only. */
.footer__brand { display: block; line-height: 0; margin-bottom: 1.2rem; border-radius: 6px; }
.footer__brand img { width: 198px; height: 53px; }
.footer__blurb { font-size: .93rem; color: var(--steel-300); margin-bottom: 1.4rem; }
.footer__social { display: flex; gap: .4rem; }
.footer h4 { font-size: .74rem; letter-spacing: .16em; color: var(--steel-300); margin-bottom: 1.15rem; }
.footer__links { display: grid; gap: .6rem; }
.footer__links a { font-size: .93rem; color: var(--chrome-100); opacity: .82; transition: opacity var(--t-micro) var(--ease-state), color var(--t-micro) var(--ease-state), transform var(--t-micro) var(--ease-state); display: inline-block; }
.footer__links a:hover { opacity: 1; color: var(--brand-red-glow); transform: translateX(3px); }

.footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem; padding-block: 2.2rem; margin-top: 3rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__badges img { height: 34px; width: auto; opacity: .42; filter: brightness(0) invert(1); transition: opacity var(--t-std) var(--ease-state); }
.footer__badges img:hover { opacity: .92; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .86rem;
  color: var(--steel-300);
}
.footer__credit a { color: var(--chrome-100); font-weight: 600; position: relative; transition: color var(--t-micro) var(--ease-state); }
.footer__credit a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform var(--t-std) var(--ease-state); }
.footer__credit a:hover { color: var(--brand-red-glow); }
.footer__credit a:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   22. STICKY MOBILE ACTION BAR
   -------------------------------------------------------------------------- */
.mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  padding: .55rem .55rem calc(.55rem + env(safe-area-inset-bottom, 0px));
  gap: .55rem;
  background: rgba(14, 17, 22, .9);
  border-top: 1px solid rgba(255, 255, 255, .1);
  transform: translateY(110%);
  transition: transform 380ms var(--ease-entrance);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .mobilebar { background: rgba(14, 17, 22, .74); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
}
.mobilebar.is-up { transform: translateY(0); }
.mobilebar a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
}
.mobilebar svg { width: 19px; height: 19px; flex: none; }
.mobilebar__call { position: relative; background: var(--grad-torque); box-shadow: var(--sh-red); }
.mobilebar__call::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid var(--brand-red-glow);
  animation: ring 4s var(--ease-state) infinite;
  pointer-events: none;
}
@keyframes ring {
  0%, 72% { opacity: 0; transform: scale(1); }
  80% { opacity: .75; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.09); }
}
/* Specificity must beat `.mobilebar a { color:#fff }` — white on WhatsApp
   green is only ~2:1, whereas this dark green clears AA at 6.84:1. */
.mobilebar a.mobilebar__wa { background: #25d366; color: #04361a; }

/* --------------------------------------------------------------------------
   23. DEMO POPUP
   -------------------------------------------------------------------------- */
.pop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(4, 5, 7, .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms var(--ease-state), visibility 380ms;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .pop { -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
}
.pop.is-open { opacity: 1; visibility: visible; }

.pop__box {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: rgba(21, 26, 33, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--sh-3);
  padding: 2.35rem 1.85rem 1.85rem;
  text-align: center;
  transform: scale(.92) translateY(12px);
  opacity: 0;
  transition: transform 420ms var(--ease-entrance), opacity 420ms var(--ease-state);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .pop__box { background: rgba(21, 26, 33, .84); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
}
.pop.is-open .pop__box { transform: scale(1) translateY(0); opacity: 1; }

.pop__accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-glow); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pop__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--steel-300);
  transition: color var(--t-micro) var(--ease-state), background-color var(--t-micro) var(--ease-state);
}
.pop__close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.pop__close svg { width: 19px; height: 19px; }
.pop__logo { width: 190px; height: 50px; margin: 0 auto 1.35rem; }
.pop__box h2 { font-size: clamp(1.35rem, 4.4vw, 1.75rem); margin-bottom: .9rem; }
.pop__box > p { font-size: .95rem; color: var(--steel-300); margin: 0 auto 1.5rem; max-width: 42ch; }
.pop__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.6rem; }
.pop__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-red-glow);
  background: rgba(236, 27, 36, .12);
  border: 1px solid rgba(236, 27, 36, .27);
}
.pop__badge svg { width: 13px; height: 13px; }
.pop__later { display: block; margin: .9rem auto 0; font-size: .86rem; color: var(--steel-300); padding: .5rem 1rem; min-height: 44px; transition: color var(--t-micro) var(--ease-state); }
.pop__later:hover { color: #fff; }

/* --------------------------------------------------------------------------
   24. PAGE CURTAIN
   -------------------------------------------------------------------------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-critical);
  display: grid;
  place-items: center;
  background: var(--ink-900);
  transform-origin: top;
  pointer-events: none;
}
.curtain img { width: 198px; height: 53px; }
.curtain.is-gone { animation: curtain-up 600ms var(--ease-entrance) forwards; }
@keyframes curtain-up {
  0% { transform: translateY(0); opacity: 1; }
  40% { opacity: 1; }
  100% { transform: translateY(-101%); opacity: 1; }
}

/* --------------------------------------------------------------------------
   25. SCROLL-TRIGGERED ENTRANCES
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity 720ms var(--ease-entrance), transform 720ms var(--ease-entrance);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
[data-animate].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   26. UTILITIES
   -------------------------------------------------------------------------- */
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: var(--z-critical);
  padding: .8rem 1.3rem;
  border-radius: 0 0 10px 10px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 600;
  transition: top var(--t-std) var(--ease-state);
}
.skip:focus { top: 0; }

.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;
}

.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--steel-300); }
.section--paper .prose p { color: var(--paper-muted); }
.prose h3 { margin: 2rem 0 .9rem; }

.center { text-align: center; }
.mt-lg { margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.stack-sm { display: grid; gap: .9rem; }

/* --------------------------------------------------------------------------
   27. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav__list { display: none; }
  .burger { display: inline-flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .maplayout { grid-template-columns: 1fr; }
  .formwrap { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .revgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split--flip .split__media { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gauges { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .gauge:nth-child(2)::after { display: none; }
  .valuegrid { grid-template-columns: 1fr; }
  .svcpeek { display: none; }
  .topbar__item--address, .topbar__item--hours { display: none; }
}

@media (max-width: 768px) {
  body { padding-bottom: 74px; }
  .mobilebar { display: flex; }
  .revgrid { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .svcrow { grid-template-columns: 46px 1fr auto; gap: .9rem; }
  .svcrow__arrow { width: 40px; height: 40px; }
  .frame-badge { right: 10px; bottom: -14px; padding: .8rem 1rem; }
  .shear-top, .shear-bottom { clip-path: none; margin-top: 0; }
}

@media (max-width: 680px) {
  /* The header CTA no longer fits beside the logo and burger. Both drawer and
     the sticky bottom bar already expose Book / Call, so drop it here. */
  .header .nav > .btn--primary { display: none; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gauges { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  /* Scoped to button rows only — never the header or inline buttons. */
  .btn-row { flex-direction: column; }
  .btn-row > .btn { width: 100%; }
  .brand img { width: 158px; height: 42px; padding: 5px 8px; }
  .tick { display: none; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* --------------------------------------------------------------------------
   28. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] { opacity: 1 !important; transform: none !important; }
  .hero-seq, .reveal-word > span, .drawer__link { opacity: 1 !important; transform: none !important; animation: none !important; }
  .curtain { display: none !important; }
  .hero__photo { filter: blur(26px) saturate(115%) brightness(.5); }
}

/* --------------------------------------------------------------------------
   29. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .header, .mobilebar, .pop, .curtain, .progress, .ctaband, .drawer { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .section { padding-block: 1rem; }
}
