/* ==========================================================================
   GRIMM REPAIRS — Mobile Mechanic | North Carolina
   Hand-written CSS. No build step.
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --panel: #111111;
  --panel-2: #151515;
  --line: #262626;
  --line-2: #333333;
  --red: #cc1111;
  --red-hi: #e01b1b;
  --red-txt: #ff3b3b; /* AA-contrast red reserved for small text on dark */
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
  --clip: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --clip-sm: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Sticky header clearance for in-page anchor jumps. */
section[id], [id]:target { scroll-margin-top: 84px; }

body {
  margin: 0;
  background-color: var(--black);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(204, 17, 17, 0.07), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23191919' stroke-width='1.2'%3E%3Cpath d='M28 1 L52 15 L52 43 L28 57 L4 43 L4 15 Z'/%3E%3Cpath d='M28 49 L52 63 L52 91 L28 105 L4 91 L4 63 Z'/%3E%3Cpath d='M0 -7 L24 7 L24 35 L0 49 L-24 35 L-24 7 Z'/%3E%3Cpath d='M56 -7 L80 7 L80 35 L56 49 L32 35 L32 7 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--gray-300);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .head {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.red { color: var(--red-hi); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 500;
  color: var(--red-txt);
  margin: 0 0 12px;
  display: block;
}
h1.big { font-size: clamp(38px, 7.5vw, 76px); }
h2.sect { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 14px; }
h3 { font-size: 20px; }
.lede { color: var(--gray-400); font-size: 16px; max-width: 62ch; }

/* ---------- Inline icons ----------
   Every glyph that used to be an emoji entity is now a hand-drawn inline
   <svg> from build.py's ICONS dict. They inherit colour via currentColor,
   so a red button gets a white icon and a .why card gets the red accent
   automatically, with zero extra markup per placement. */
svg.ico-inline {
  width: 1em; height: 1em; flex: 0 0 auto;
  vertical-align: -0.125em; margin-right: .5em;
}
/* Buttons lay their icon out with flex `gap`, so the inline margin above
   would double the spacing there — cancel it in that one context only. */
.btn svg.ico-inline { margin-right: 0; }
.btn { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 15px; font-weight: 600;
  padding: 14px 26px; border: 1px solid transparent; cursor: pointer;
  clip-path: var(--clip-sm);
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn-red { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.btn-red:hover, .btn-red:focus-visible { background: var(--red-hi); box-shadow: 0 0 26px rgba(224, 27, 27, .55); }
.btn-red:active { transform: scale(.985); }
/* Sheen: a soft diagonal light band sweeps across the button once per
   hover, via a ::after pseudo-element so it never affects the label's
   layout or hit area. Re-triggers on every fresh :hover because the
   transform resets to its off-screen start position on hover-out. */
.btn-red::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: translateX(-120%);
}
.btn-red:hover::after { transition: transform .6s ease; transform: translateX(120%); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--white); border-color: var(--line-2); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--red); color: #fff; box-shadow: 0 0 22px rgba(204,17,17,.28); }
.btn-block { width: 100%; }

/* ---------- Focus + skip link ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #ff4040; outline-offset: 3px;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 1px; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 20px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: 14px;
  clip-path: var(--clip-sm); transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 8, 8, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* ---------- Scroll progress bar ----------
   Thin red bar pinned to the header's bottom edge, showing read progress
   as a percentage of full-page scroll. `scaleX` is driven by script.js on
   a throttled scroll listener. Hidden completely under reduced-motion
   (it is a motion-driven affordance with no static equivalent worth
   keeping) and simply absent with JS off, since nothing else in the
   layout depends on it. */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--red); transform-origin: left center; transform: scaleX(0);
  pointer-events: none;
}
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: 0 0 16px rgba(204, 17, 17, .45);
}
.brand-txt { font-family: var(--head); text-transform: uppercase; line-height: 1; min-width: 0; }
.brand-txt strong { display: block; color: #fff; font-size: 19px; letter-spacing: .04em; font-weight: 600; }
.brand-txt span { display: block; color: var(--gray-400); font-size: 9.5px; letter-spacing: .2em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .1em;
  font-size: 13.5px; color: var(--gray-300); transition: color .16s ease;
}
.nav a:hover { color: var(--red-txt); }
.nav .btn { margin-left: 4px; }
.nav a.btn-red { color: #fff; }
.nav a { padding: 11px 0; }
.burger {
  display: none; background: none; border: 1px solid var(--line-2); color: #fff;
  width: 46px; height: 44px; cursor: pointer; align-items: center; justify-content: center;
  clip-path: var(--clip-sm);
}
.burger span { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
  transition: transform .2s ease, top .2s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #0b0b0b; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 15px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: var(--gray-300);
}
.mobile-nav a.cta { color: #fff; background: var(--red); border-bottom: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: saturate(.9); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,6,6,.97) 0%, rgba(6,6,6,.9) 48%, rgba(6,6,6,.66) 100%),
    linear-gradient(180deg, rgba(6,6,6,.6) 0%, rgba(6,6,6,0) 28%, rgba(6,6,6,.9) 100%);
}
/* padding-block only — a shorthand here would wipe out .wrap's 20px side gutters */
.hero-inner { position: relative; padding-block: clamp(56px, 9vw, 110px); }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 17px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 520px; }

/* ---------- Hero entrance ----------
   Pure CSS stagger, no JS gate, so it plays identically with JS disabled.
   The h1 starts its own animation at 70ms and is legible well inside
   ~250ms total, so LCP is not meaningfully delayed. `both` fill mode keeps
   each element invisible before its own delay elapses and settled
   afterwards; the animation fires once, on page load, and never repeats. */
.hero-inner > .eyebrow,
.hero-inner > h1,
.hero-inner > .lede,
.hero-inner > .hero-ctas,
.hero-inner .statcard {
  animation: hero-in .5s cubic-bezier(.22,.61,.36,1) both;
}
.hero-inner > .eyebrow { animation-delay: 0ms; }
.hero-inner > h1 { animation-delay: 70ms; }
.hero-inner > .lede { animation-delay: 150ms; }
.hero-inner > .hero-ctas { animation-delay: 230ms; }
.hero-inner .statcard:nth-of-type(1) { animation-delay: 310ms; }
.hero-inner .statcard:nth-of-type(2) { animation-delay: 360ms; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.statcard {
  background: rgba(17,17,17,.86); border: 1px solid var(--line-2); padding: 18px 18px;
  clip-path: var(--clip-sm);
}
.statcard strong { display: block; font-family: var(--head); font-size: 24px; color: var(--red-hi); line-height: 1; }
.statcard span { display: block; font-size: 12.5px; color: var(--gray-400); margin-top: 7px; letter-spacing: .04em; }

/* ---------- Stats bar ---------- */
.statsbar { background: #0d0d0d; border-bottom: 1px solid var(--line); }
.statsbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.statsbar-item { padding: 26px 12px; text-align: center; border-right: 1px solid var(--line); }
.statsbar-item:last-child { border-right: none; }
.statsbar-item b { display: block; font-family: var(--head); font-size: clamp(24px, 3.4vw, 34px); color: #fff; line-height: 1; }
.statsbar-item span {
  display: block; font-size: 11px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gray-400); margin-top: 8px;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  clip-path: var(--clip); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  display: flex; flex-direction: column; position: relative;
}
/* Top-edge accent wipe: an absolutely-positioned bar that grows from 0 to
   full width left-to-right on hover. Sits above .card-thumb via z-index
   since the thumb is the card's first child. Desktop/hover-capable only —
   on touch devices :hover can stick after a tap, which would leave the
   card permanently "lit" and the bar permanently drawn. */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--red); z-index: 2; pointer-events: none;
}
@media (hover: hover) {
  .card:hover { border-color: rgba(204,17,17,.65); box-shadow: 0 0 30px rgba(204,17,17,.24); transform: translateY(-4px); }
  .card:hover::before { width: 100%; transition: width .26s ease; }
  .card:hover .card-thumb img { opacity: 1; transform: scale(1.06); }
}
.card-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card-thumb img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; opacity: .82; transition: opacity .25s ease, transform .35s ease; }
.card-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,.85) 100%);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--gray-400); line-height: 1.55; }
.card-link {
  margin-top: auto; padding-top: 14px; font-family: var(--head); text-transform: uppercase;
  letter-spacing: .12em; font-size: 12.5px; color: var(--red-txt);
}
.card:hover .card-link { color: #ff3a3a; }

/* ---------- Steps ---------- */
.step {
  background: var(--panel-2); border: 1px solid var(--line); clip-path: var(--clip);
  padding: 26px 22px 24px; position: relative; transition: border-color .2s ease, box-shadow .2s ease;
}
.step:hover { border-color: rgba(204,17,17,.6); box-shadow: 0 0 26px rgba(204,17,17,.2); }
.step .num {
  font-family: var(--head); font-size: 42px; line-height: 1; color: rgba(204,17,17,.9);
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray-400); }

/* ---------- Step connector ----------
   A purely decorative line joining the four "How It Works" steps. Desktop:
   a horizontal line centred through the row, level with the step numbers,
   drawing left-to-right when the section scrolls into view. Mobile: a
   vertical line down the left edge instead, since the steps stack. Reuses
   the existing .steps-wrap reveal/revealed lifecycle from script.js, so it
   is inert (never drawn) with JS disabled — acceptable since it is purely
   decorative and the numbered steps already communicate the sequence. */
.steps-wrap { position: relative; }
/* Default state: fully drawn. This is what no-JS visitors and anyone whose
   browser skips the observer see — the connector is just decoration, not
   something that should ever be permanently missing. */
.steps-connector {
  position: absolute; z-index: 0; pointer-events: none;
  top: 44px; left: 22px; right: 22px; height: 1px;
  background: linear-gradient(90deg, rgba(204,17,17,.55), rgba(204,17,17,.15));
  transform-origin: left center; transform: scaleX(1);
}
/* Only when script.js has actually queued this section for scroll-reveal
   (.reveal present) does the line start hidden and animate in on
   .revealed — keeping the JS-off and already-on-screen cases simple. */
.steps-wrap.reveal .steps-connector { transform: scaleX(0); }
.steps-wrap.reveal.revealed .steps-connector {
  transform: scaleX(1);
  transition: transform .7s cubic-bezier(.22,.61,.36,1) .15s;
}
.steps-wrap .grid, .steps-wrap .step { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .steps-connector {
    top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(204,17,17,.55), rgba(204,17,17,.15));
    transform-origin: top center; transform: scaleY(1);
  }
  .steps-wrap.reveal .steps-connector { transform: scaleY(0); }
  .steps-wrap.reveal.revealed .steps-connector {
    transform: scaleY(1);
    transition: transform .7s cubic-bezier(.22,.61,.36,1) .15s;
  }
}

/* ---------- Why us ---------- */
.why {
  border: 1px solid var(--line); background: var(--panel); clip-path: var(--clip);
  padding: 22px 20px; transition: border-color .2s ease, box-shadow .2s ease;
}
.why:hover { border-color: rgba(204,17,17,.55); box-shadow: 0 0 24px rgba(204,17,17,.18); }
.why h3 { font-size: 16px; margin-bottom: 8px; }
.why p { font-size: 14px; color: var(--gray-400); }
.why .ico {
  color: var(--red-txt); line-height: 1; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(204,17,17,.10);
  border: 1px solid rgba(204,17,17,.28);
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.why .ico svg { width: 22px; height: 22px; display: block; }
@media (hover: hover) {
  .why:hover .ico { background: rgba(204,17,17,.18); border-color: rgba(204,17,17,.5); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .why:hover .ico { transform: none; }
}

/* ---------- Area + CTA band ---------- */
.band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(204,17,17,.16), rgba(10,10,10,0) 60%),
    #0c0c0c;
}
.band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  /* padding-block only — see .hero-inner note above */
  padding-block: clamp(38px, 6vw, 62px);
}
.band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 10px; }
.band p { color: var(--gray-400); font-size: 15px; }
.band-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.area-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding: 0; list-style: none; }
.area-list li {
  border: 1px solid var(--line-2); background: var(--panel); clip-path: var(--clip-sm);
  padding: 12px 20px; font-family: var(--head); text-transform: uppercase;
  letter-spacing: .1em; font-size: 14px; color: #fff;
}
.area-list li em { display: block; font-style: normal; font-family: var(--body); font-size: 11.5px; color: var(--gray-400); letter-spacing: .04em; text-transform: none; margin-top: 2px; }
.area-list.compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.area-list.compact li { padding: 7px 10px; font-size: 11.5px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-list.compact li em { display: none; }
/* ---------- Collapsible town list (mobile) ----------
   All 33 towns are always in the HTML. `.is-collapsed` (added by JS only,
   see script.js #14) hides everything past the 12th on narrow screens so a
   no-JS visitor always sees the full list, while JS users get a shorter
   page with a real, keyboard-usable <button> to expand it. */
.towns-more { display: none; }
@media (max-width: 700px) {
  .area-list.is-collapsed li:nth-child(n+13) { display: none; }
  .js .towns-more {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 16px; padding: 12px 22px; width: 100%;
    background: transparent; border: 1px solid var(--line-2); color: #fff;
    font-family: var(--head); text-transform: uppercase; letter-spacing: .08em;
    font-size: 13px; font-weight: 600; cursor: pointer; clip-path: var(--clip-sm);
    transition: border-color .18s ease, background-color .18s ease;
  }
  .js .towns-more:hover { border-color: rgba(204,17,17,.55); background: rgba(204,17,17,.08); }
}
@media (max-width: 640px) {
  .area-list { gap: 8px; }
  .area-list li { padding: 9px 13px; font-size: 12.5px; letter-spacing: .06em; }
  .area-list li em { font-size: 10.5px; }
}

/* ---------- Footer ---------- */
.site-footer { background: #070707; border-top: 1px solid var(--line); padding: 50px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.foot-grid img.flogo { width: 62px; height: 62px; border-radius: 50%; box-shadow: 0 0 20px rgba(204,17,17,.4); margin-bottom: 14px; }
.foot-grid h2 { font-size: 14px; letter-spacing: .16em; margin-bottom: 14px; color: #fff; }
.foot-grid p, .foot-grid a { font-size: 14px; color: var(--gray-400); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-links a:hover, .foot-contact a:hover { color: var(--red-txt); }
.foot-contact { display: grid; gap: 9px; }
.foot-contact a { display: block; word-break: break-word; }
.foot-contact .phone { font-family: var(--head); font-size: 22px; color: #fff; letter-spacing: .02em; }
.foot-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--gray-400);
}

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 12.5px; color: var(--gray-400); padding: 16px 0 0; letter-spacing: .04em; display: block; }
.crumb a:hover { color: var(--red-txt); }
.crumb span { color: var(--gray-300); }

/* ---------- Service detail ---------- */
.svc-hero { border-bottom: 1px solid var(--line); padding: clamp(28px, 5vw, 48px) 0 clamp(40px, 6vw, 64px); }
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; }
.svc-hero-img { position: relative; clip-path: var(--clip); border: 1px solid var(--line-2); }
.svc-hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-hero h1 { font-size: clamp(32px, 5.4vw, 54px); margin-bottom: 14px; }
.svc-hero .lede { margin-bottom: 26px; }

.svc-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; align-items: start; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--gray-300);
  border: 1px solid var(--line); background: var(--panel); clip-path: var(--clip-sm); padding: 14px 16px;
}
.checklist li::before {
  content: "✓"; color: var(--red-txt); font-weight: 700; line-height: 1.4; flex: 0 0 auto;
}
.trust {
  border: 1px solid var(--line-2); background: var(--panel); clip-path: var(--clip);
  padding: 24px 22px; position: sticky; top: 88px;
}
.trust h3 { font-size: 17px; margin-bottom: 4px; }
.trust .sub { font-size: 12.5px; color: var(--gray-400); margin-bottom: 18px; }
.trust ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 13px; }
.trust li { display: flex; gap: 11px; font-size: 14px; color: var(--gray-300); line-height: 1.45; }
.trust li b { display: block; color: #fff; font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: 13.5px; font-weight: 600; }
.trust li .dot { color: var(--red-txt); flex: 0 0 auto; }
.trust li .dot svg { width: 22px; height: 22px; display: block; }
.trust .tel { display: block; text-align: center; margin-top: 10px; padding: 12px 8px; font-size: 14px; color: var(--gray-300); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: start; }
.callbox {
  border: 1px solid rgba(204,17,17,.5); background: linear-gradient(180deg, rgba(204,17,17,.14), rgba(17,17,17,.6));
  clip-path: var(--clip); padding: 26px 22px; text-align: center;
}
.callbox .phone-lg {
  display: block; font-family: var(--head); font-size: clamp(30px, 6.2vw, 46px);
  color: #fff; letter-spacing: .01em; margin: 6px 0 4px; line-height: 1.1;
}
.callbox .phone-lg:hover { color: var(--red-txt); }
.infocard { border: 1px solid var(--line); background: var(--panel); clip-path: var(--clip); padding: 22px 20px; }
.infocard h2, .infocard h3 { font-size: 16px; margin-bottom: 12px; }
.infocard p, .infocard li { font-size: 14.5px; color: var(--gray-400); }
.infocard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.infocard a { color: var(--gray-300); }
.infocard a:hover { color: var(--red-txt); }
.hours { display: grid; gap: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.hours div span:last-child { color: #fff; }
.hours div span.red:last-child { color: var(--red-txt); }

.formcard { border: 1px solid var(--line-2); background: var(--panel); clip-path: var(--clip); padding: 26px 22px; }
@media (min-width: 901px) {
  /* Right column (the quote form) is shorter than the left info column, so
     pin it in view instead of leaving a dead gap once it finishes scrolling
     past. `align-self: start` (contact-grid already sets it) keeps its
     natural height instead of stretching to match the taller column. */
  .formcard { position: sticky; top: calc(69px + 20px); align-self: start; }
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .12em;
  font-size: 11.5px; color: var(--gray-400); margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%; background: #0b0b0b; border: 1px solid var(--line-2); color: #fff;
  font-family: var(--body); font-size: 15px; padding: 12px 13px; border-radius: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,17,17,.18);
}
.field input::placeholder, .field textarea::placeholder { color: #8b8b8b; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--gray-400); margin-top: 12px; }

/* ---------- Thank you ---------- */
.ty { min-height: 62vh; display: flex; align-items: center; }
.ty-card {
  border: 1px solid var(--line-2); background: var(--panel); clip-path: var(--clip);
  padding: clamp(34px, 6vw, 60px) clamp(22px, 5vw, 52px); text-align: center; max-width: 720px; margin: 0 auto;
}
.ty-mark {
  width: 74px; height: 74px; margin: 0 auto 22px; border: 2px solid var(--red);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--red-hi); box-shadow: 0 0 30px rgba(204,17,17,.35);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 30px; display: grid; gap: 12px; max-width: 900px; align-content: start; }
@media (min-width: 1000px) {
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; max-width: none; align-items: start; }
  /* Odd item count would otherwise leave a lone card in the left column
     with a dead gap beside it — span the final item full-width instead. */
  .faq-list > .faq:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.faq {
  background: var(--panel); border: 1px solid var(--line); clip-path: var(--clip-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq:hover { border-color: var(--line-2); }
.faq[open] { border-color: rgba(204, 17, 17, .6); box-shadow: 0 0 22px rgba(204, 17, 17, .14); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none; cursor: pointer; padding: 18px 20px; min-height: 56px;
  font-family: var(--head); text-transform: uppercase; letter-spacing: .04em;
  font-size: 16.5px; font-weight: 600; color: #fff; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; font-family: var(--head); font-size: 26px; line-height: 1;
  color: var(--red-txt); transition: transform .25s cubic-bezier(.22,.61,.36,1), color .16s ease;
  display: inline-block;
}
/* Rotating the same glyph 45° ("+" → "×") reads as open/close without ever
   swapping characters mid-transition, which is what caused the old jump
   (a dash-content swap with no matching transform). */
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red-txt); }
.faq-a { padding: 0 20px 20px; border-top: 1px solid var(--line); margin-top: -1px; }
.faq-a p { padding-top: 16px; font-size: 15px; color: var(--gray-300); line-height: 1.7; margin: 0; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 900px) {
  .callbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(8, 8, 8, .97); border-top: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; padding: 12px 14px;
    font-family: var(--head); text-transform: uppercase; letter-spacing: .06em;
    font-size: 16px; font-weight: 600; clip-path: var(--clip-sm);
  }
  .callbar-call { flex: 3 1 0; background: var(--red); color: #fff; }
  .callbar-text {
    flex: 2 1 0; background: rgba(255, 255, 255, .04); color: #fff; border: 1px solid var(--line-2);
  }
  .callbar-call:active { background: var(--red-hi); }
  body { padding-bottom: 78px; }
  /* Never let the bar sit on top of the open hamburger menu. */
  body.nav-open .callbar { display: none; }
}
@media (max-width: 360px) {
  .callbar a { font-size: 14.5px; letter-spacing: .02em; padding: 12px 8px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: 1fr; }
  .trust { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  /* Touch-target floors for pointer-free devices. */
  .brand { min-height: 44px; }
  .crumb a, .crumb span { display: inline-block; padding: 14px 2px; }
  .crumb { padding-top: 4px; }
  .infocard a, .callbox .phone-lg { display: inline-block; min-height: 44px; padding: 10px 0; }
  .foot-links a, .foot-contact a { display: block; padding: 10px 0; min-height: 44px; line-height: 1.5; }
  .foot-links, .foot-contact { gap: 0; }
  .svc-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .statsbar-grid { grid-template-columns: repeat(2, 1fr); }
  .statsbar-item:nth-child(2) { border-right: none; }
  .statsbar-item:nth-child(1), .statsbar-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; max-width: none; }
  .hero-ctas .btn { width: 100%; }
  .band-ctas { width: 100%; }
  .band-ctas .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .brand-txt span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(6,6,6,.9) 0%, rgba(6,6,6,.93) 60%, rgba(6,6,6,.98) 100%); }
}
@media (max-width: 380px) {
  .brand-txt strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .card:hover .card-thumb img { transform: none; }
  .scroll-progress { display: none; }
}

/* ==========================================================================
   INTERACTION LAYER
   Everything below is progressive enhancement. With JS off none of these
   classes are ever applied, so the static page is unchanged.
   ========================================================================== */

/* ---------- Toasts ----------
   Sits above the sticky mobile call bar (78px reserve) and above the
   desktop back-to-top button, so the three never overlap. */
.toasts {
  position: fixed; right: 14px; z-index: 120;
  bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 10px; justify-items: end;
  max-width: min(340px, calc(100vw - 28px));
  pointer-events: none;
}
.toast {
  pointer-events: auto; cursor: pointer;
  background: #131313; color: var(--gray-100);
  border: 1px solid var(--line-2); border-left: 3px solid var(--red);
  clip-path: var(--clip-sm);
  padding: 13px 18px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
  opacity: 0; translate: 0 12px;
  transition: opacity .22s ease, translate .22s cubic-bezier(.22,.61,.36,1);
}
.toast.in { opacity: 1; translate: 0 0; }
.toast.out { opacity: 0; translate: 0 8px; }
@media (min-width: 901px) {
  /* Bottom-LEFT on desktop: the bottom-right corner belongs to the
     back-to-top button, and bottom-right toasts clipped the primary
     submit CTA on the contact page. */
  .toasts { left: 24px; right: auto; bottom: 24px; justify-items: start; }
}

/* ---------- Copy affordance (desktop pointer only) ---------- */
@media (min-width: 900px) and (hover: hover) {
  a.copyable { cursor: copy; }
}

/* ---------- Scroll reveal ----------
   Uses the independent `translate` property so element hover transforms
   (e.g. .card:hover) keep working untouched. */
.reveal {
  opacity: 0; translate: 0 16px;
  transition: opacity .5s cubic-bezier(.22,.61,.36,1),
              translate .5s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, translate;
}
.reveal.revealed { opacity: 1; translate: 0 0; will-change: auto; }

/* ---------- Icon stroke draw-in ----------
   Feature-card icons (.why .ico svg) draw themselves in when the card is
   revealed by the existing IntersectionObserver. Pure CSS: the stroke is
   hidden behind its own dash length until `.revealed` triggers the dash
   offset transition. A generous shared length covers every icon's actual
   path length without needing per-icon measurement. Inert with JS off
   (the .reveal/.revealed classes are only ever added by script.js, so
   without JS the icon is simply drawn in full from the start). */
.why .ico svg {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}
.why.reveal .ico svg {
  stroke-dashoffset: 120;
  transition: stroke-dashoffset .6s cubic-bezier(.22,.61,.36,1);
}
.why.reveal.revealed .ico svg { stroke-dashoffset: 0; }

/* ---------- Header scroll state ---------- */
.site-header { transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.site-header.scrolled {
  background: rgba(6, 6, 6, .97);
  border-bottom-color: var(--line-2);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
}

/* ---------- Active nav ---------- */
.nav a.is-active { color: var(--white); position: relative; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 2px; background: var(--red-hi);
}
.mobile-nav a.is-active { color: #fff; border-left: 3px solid var(--red); padding-left: 17px; }
.foot-links a.is-active, .foot-contact a.is-active { color: #fff; }
.foot-links a.is-active::before { content: "\203A\00a0"; color: var(--red-txt); }

/* ---------- Back to top (desktop only, never near the mobile call bar) ---------- */
.to-top { display: none; }
@media (min-width: 901px) {
  .to-top {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 24px; bottom: 24px; z-index: 100;
    width: 48px; height: 48px; padding: 0;
    background: #131313; color: #fff; border: 1px solid var(--line-2);
    border-bottom: 2px solid var(--red);
    clip-path: var(--clip-sm); cursor: pointer;
    font-size: 20px; line-height: 1;
    opacity: 0; visibility: hidden; translate: 0 10px;
    transition: opacity .22s ease, translate .22s ease, visibility .22s,
                border-color .18s ease, background-color .18s ease;
  }
  .to-top.show { opacity: 1; visibility: visible; translate: 0 0; }
  .to-top:hover { background: var(--red); border-color: var(--red); }
}

/* ---------- Form validation ---------- */
.field-error {
  display: none; margin: 7px 0 0; font-size: 12.5px; line-height: 1.4;
  color: var(--red-txt);
}
.field-error.on { display: block; }
.field input.has-error, .field textarea.has-error {
  border-color: var(--red); box-shadow: 0 0 0 2px rgba(204, 17, 17, .16);
}
.btn.is-sending { opacity: .72; cursor: progress; }
.btn:disabled { cursor: not-allowed; }

/* ---------- Image fade-in (JS-applied only) ---------- */
img.imgfade {
  filter: opacity(0);
  transition: filter .45s ease, opacity .25s ease, transform .35s ease;
}
img.imgfade.is-loaded { filter: opacity(1); }

/* ---------- 404 ---------- */
.nf { padding-top: clamp(40px, 6vw, 72px); }
.nf-card {
  border: 1px solid var(--line-2); background: var(--panel); clip-path: var(--clip);
  padding: clamp(30px, 5vw, 54px) clamp(22px, 5vw, 52px);
  text-align: center; max-width: 760px; margin: 0 auto;
}
.nf-code {
  display: block; font-family: var(--head); font-weight: 700;
  font-size: clamp(64px, 14vw, 128px); line-height: .9; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 2px rgba(204, 17, 17, .75);
  margin-bottom: 14px;
}
.nf-links {
  max-width: 760px; margin: 34px auto 0; padding: 24px 22px;
  border: 1px solid var(--line); background: rgba(17, 17, 17, .6); clip-path: var(--clip);
}
.nf-links h2 { font-size: 14px; letter-spacing: .16em; margin-bottom: 14px; }
.nf-links .foot-links {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px;
}
.nf-links .foot-links a { font-size: 14px; color: var(--gray-400); }
.nf-links .foot-links a:hover { color: var(--red-txt); }
@media (max-width: 760px) {
  .nf-links .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .nf-links .foot-links { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nf-links .foot-links a { display: block; padding: 10px 0; min-height: 44px; line-height: 1.5; }
}

/* ---------- Reduced motion: hard stop ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.revealed { opacity: 1 !important; translate: none !important; }
  img.imgfade, img.imgfade.is-loaded { filter: none !important; }
  .toast { opacity: 1 !important; translate: none !important; }
  .toast.out { opacity: 0 !important; }
  .to-top { translate: none !important; }
  .faq[open] summary::after { transform: rotate(45deg); }
}

/* ==========================================================================
   MASCOT LAYER — celebration, toasts, watermark
   Pure CSS. Everything animated here is disabled under reduced motion.
   ========================================================================== */

/* ---------- Hero banner framing ----------
   hero-bg.jpg is the banner art letterboxed onto a 16:9 near-black canvas, so a
   centred cover crop keeps the whole lockup intact instead of slicing the
   wordmark and phone number in half. */
.hero-media img { object-position: 50% 50%; opacity: .22; }
@media (max-width: 900px) { .hero-media img { object-position: 50% 50%; opacity: .2; } }
@media (max-width: 640px) { .hero-media img { object-position: 50% 50%; opacity: .18; } }

/* ---------- Thank-you celebration ---------- */
.ty-card { animation: ty-in .5s cubic-bezier(.22,.61,.36,1) both; }
@keyframes ty-in {
  from { opacity: 0; transform: translateY(12px) scale(.975); }
  to   { opacity: 1; transform: none; }
}

.ty-stage {
  position: relative;
  width: min(232px, 56vw);
  margin: 0 auto 22px;
  display: flex; justify-content: center;
}
.ty-mascot {
  position: relative; z-index: 2;
  width: 100%; height: auto; aspect-ratio: 640 / 782;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .6));
  animation: ty-rise .7s .18s cubic-bezier(.18,.85,.3,1.22) both,
             ty-float 4s 1.05s ease-in-out infinite;
}
@keyframes ty-rise {
  from { opacity: 0; transform: translateY(66px) scale(.94); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ty-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.ty-glow {
  position: absolute; z-index: 1; left: 50%; top: 54%;
  width: 168%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(204,17,17,.46) 0%, rgba(204,17,17,.18) 40%, rgba(204,17,17,0) 68%);
  animation: ty-pulse 1s .55s ease-out both;
}
@keyframes ty-pulse {
  0%   { opacity: 0; transform: scale(.55); }
  45%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: .62; transform: scale(.96); }
}

.ty-badge {
  position: absolute; z-index: 3; left: -6px; bottom: 8px;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-size: 21px; line-height: 1;
  border: 2px solid #0f0f0f; box-shadow: 0 0 22px rgba(204,17,17,.5);
  animation: ty-badge-in .35s .82s cubic-bezier(.2,.9,.3,1.4) both;
}
.ty-badge svg { width: 22px; height: 22px; stroke-width: 2.25; }
@keyframes ty-badge-in {
  from { opacity: 0; transform: scale(.3); }
  to   { opacity: 1; transform: scale(1); }
}

/* One-shot ember burst — 10 particles, no loop, no library. */
.ty-sparks { position: absolute; z-index: 1; left: 50%; top: 44%; width: 0; height: 0; pointer-events: none; }
.ty-sparks i {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: var(--red-hi); opacity: 0;
  animation: ty-spark .72s cubic-bezier(.15,.7,.35,1) .6s both;
}
.ty-sparks i:nth-child(2n) { background: #ffffff; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; --d: 74px; }
.ty-sparks i:nth-child(3n) { --d: 104px; }
@keyframes ty-spark {
  0%   { opacity: 0; transform: rotate(calc(var(--i) * 36deg)) translateY(-6px) scale(.5); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 36deg)) translateY(calc(-1 * var(--d, 88px))) scale(.2); }
}

.ty-lede { margin: 0 auto 26px; }
.ty-sub { font-size: 14.5px; color: var(--gray-400); margin-bottom: 24px; }
.ty-ctas { justify-content: center; margin-bottom: 0; }
@media (max-width: 600px) {
  .ty.sec { min-height: 0; padding: 22px 0 40px; }
  .ty-card { padding: 24px 20px 28px; }
  .ty-stage { width: min(140px, 40vw); margin-bottom: 12px; }
  .ty-badge { width: 30px; height: 30px; font-size: 15px; left: -4px; bottom: 4px; }
  .ty-lede { margin-bottom: 16px; font-size: 15px; }
  .ty-sub { margin-bottom: 16px; font-size: 13.5px; }
}

/* ---------- Mascot / link toast variants ---------- */
a.toast { display: block; color: var(--gray-100); text-decoration: none; }
a.toast:hover, a.toast:focus-visible { border-color: var(--red); color: #fff; }
.toast-mascot { display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px; }
.toast-mascot img {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
  background: #0e0e0e; border: 1px solid var(--line-2);
}
.toast-mascot .toast-txt { min-width: 0; }
a.toast .toast-txt::after { content: " \2192"; color: var(--red-txt); white-space: nowrap; }

/* Submit-button avatar */
.btn .btn-mascot {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  background: #0e0e0e; border: 1px solid rgba(255,255,255,.25);
}

/* ---------- Footer watermark ----------
   The mark is shipped as a grayscale alpha mask, not artwork, so it is painted
   in brand red from the token instead of arriving as an off-brand grey bitmap.
   Guarded behind @supports: without mask support the element paints nothing
   rather than dumping a solid red disc into the footer. */
.site-footer { position: relative; overflow: hidden; }
.foot-mark {
  position: absolute; z-index: 0; right: -46px; bottom: -58px;
  width: min(420px, 62vw); aspect-ratio: 1;
  pointer-events: none; user-select: none;
}
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .foot-mark {
    background: var(--red);
    opacity: .11;
    -webkit-mask-image: var(--mark); mask-image: var(--mark);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
}
.site-footer .wrap { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .foot-mark { right: -76px; bottom: -44px; width: 290px; opacity: .095; }
}

/* ---------- 404 mascot ---------- */
.nf-card-mascot {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px); align-items: center; text-align: left;
}
.nf-mascot {
  width: clamp(120px, 17vw, 190px); height: auto; aspect-ratio: 320 / 391;
  opacity: .62; filter: grayscale(.4) drop-shadow(0 14px 22px rgba(0,0,0,.55));
}
.nf-card-mascot .lede { margin: 0 0 24px; }
.nf-sub { font-size: 14.5px; color: var(--gray-400); margin-bottom: 24px; }
.nf-ctas { justify-content: flex-start; margin-bottom: 0; }
@media (max-width: 700px) {
  .nf-card-mascot { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; }
  .nf-card-mascot .lede { margin: 0 auto 24px; }
  .nf-ctas { justify-content: center; }
  .nf-mascot { width: 132px; }
}

/* ---------- Mobile services carousel ----------
   On phones the 4-across / 3-across service grids become a horizontal snap
   carousel instead of eight-plus stacked cards, cutting page length
   drastically. The rail is a real scroll container so it keeps working
   with JS disabled — only the dot indicator (purely decorative, aria-hidden)
   needs JS, and it degrades to "not present" without it. */
@media (max-width: 700px) {
  .carousel { position: relative; margin-left: -20px; margin-right: -20px; }
  .carousel-track.grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 20px;
    padding: 2px 20px 6px;
    gap: 14px;
    scrollbar-width: none;
  }
  .carousel-track.grid::-webkit-scrollbar { display: none; }
  .carousel-track.grid > .card,
  .carousel-track.grid > a {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .carousel-dots {
    display: flex; justify-content: center; align-items: center;
    gap: 6px; margin-top: 14px;
  }
  .carousel-dots .dot-ind {
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--line); transition: width .22s ease, background-color .22s ease;
  }
  .carousel-dots .dot-ind.active { width: 20px; background: var(--red); }
}
@media (min-width: 701px) {
  /* Above the carousel breakpoint, dots are never built/relevant. */
  .carousel-dots { display: none; }
}

/* ---------- Reduced motion: hard stop for the mascot layer ---------- */
@media (prefers-reduced-motion: reduce) {
  .ty-card, .ty-mascot, .ty-glow, .ty-badge { animation: none !important; }
  .ty-mascot, .ty-badge { opacity: 1; transform: none; }
  .ty-glow { opacity: .6; transform: translate(0, 0) scale(1); }
  .ty-sparks { display: none !important; }
}
