/* ==========================================================================
   FGR AUTO LOCK — design system: component layer
   Loaded last. Tokens live in styles.css :root; this file only consumes them.

   Surfaces:  dark  = obsidian/carbon (header, hero, feature bands, footer)
              light = white / #F4F6F8 (editorial content, forms, FAQs)
   Accent:    Ferrari red (Rosso Corsa), used for actions, active states and
              a few technical highlights only.
   Shape:     6px controls · 10px cards · 16px large media. No pills.

   Sections
     1. Base & type          7. Hero
     2. Buttons & links      8. Service list & cards
     3. Dispatch bar         9. Feature bands (dark)
     4. Header               10. Forms
     5. Mega menu            11. FAQ, tables, testimonials
     6. Mobile drawer & bar  12. Page-specific blocks
                             13. Footer
                             14. Motion
   ========================================================================== */

/* ---------- 1. Base & type ---------- */
body { background: var(--paper); color: var(--ink-body); font-family: var(--sans); font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem); line-height: 1.65; }
body::after { display: none !important; } /* retire the film-grain overlay */

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); text-transform: none; text-wrap: balance; }
h1 { font-size: var(--t-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2, .band h2, .hang__body h2 { font-size: var(--t-h2); font-weight: 750; letter-spacing: -0.03em; line-height: 1.06; }
h3 { font-size: var(--t-card); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-weight: 700; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--ink-body); font-weight: 400; letter-spacing: -0.005em; }
.prose { max-width: var(--measure-read); }
.prose p, .hang__body > p { line-height: 1.7; }

/* Technical labels: small uppercase eyebrows, used sparingly */
.label, .eyebrow, .hang__aside > .label {
  font-family: var(--sans); font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-ink);
}
.hang__aside > .label { color: var(--ink-mute); }
.hang__aside > .label::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--accent-fill); }
.fig { font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Sections: alternate white / cool grey, separated cleanly */
.band { border-top: 0; }
main > section.band:nth-of-type(even) { background: var(--paper-2); }
.crumbs { font-size: 0.85rem; color: var(--ink-mute); }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
::selection { background: rgba(212, 0, 0, 0.2); }

/* ---------- 2. Buttons & links ----------
   Flat block with one angled cut at the top-right corner, bold spaced capitals,
   and a two-tone accent rule sitting under the left edge.
     ::before  the solid block, clipped to the cut shape
     ::after   the accent rule (two short bars) just below the button
   The button box stays rectangular for focus rings and hit areas.
   Hover: the block deepens and the accent bars draw out. */
.btn {
  --cut: 12px;
  --btn-fill: var(--accent-fill);
  --btn-fill-hover: var(--accent-fill-hover);
  --bar-1: #FFFFFF;          /* first accent bar */
  --bar-2: var(--accent-fill);/* second accent bar */
  --bar-1-w: 24px; --bar-2-w: 20px; --bar-gap: 4px;
  position: relative; isolation: isolate;
  min-height: 46px; padding: 0 24px; gap: 10px;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff !important; text-shadow: none;
  transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
}
.btn--sm { --cut: 10px; min-height: 40px; padding: 0 18px; font-size: 0.75rem; letter-spacing: 0.11em; }
.btn--block { --cut: 14px; }
/* the block */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--btn-fill);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background-color 180ms ease;
}
/* the accent rule */
.btn::after {
  content: ""; position: absolute; left: 0; top: calc(100% + 5px); height: 3px; pointer-events: none;
  width: calc(var(--bar-1-w) + var(--bar-gap) + var(--bar-2-w) + 24px);
  background:
    linear-gradient(var(--bar-1), var(--bar-1)) 0 0 / var(--bar-1-w) 100% no-repeat,
    linear-gradient(var(--bar-2), var(--bar-2)) calc(var(--bar-1-w) + var(--bar-gap)) 0 / var(--bar-2-w) 100% no-repeat;
  transition: background-size 260ms var(--mo-out, ease), background-position 260ms var(--mo-out, ease);
}
.btn:hover::before, .btn:focus-visible::before { background-color: var(--btn-fill-hover); }
.btn:hover::after, .btn:focus-visible::after {
  background-size: calc(var(--bar-1-w) + 12px) 100%, calc(var(--bar-2-w) + 12px) 100%;
  background-position: 0 0, calc(var(--bar-1-w) + 12px + var(--bar-gap)) 0;
}
.btn svg { flex: none; }
.btn:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; box-shadow: none !important; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn:active { transform: translateY(1px); }
/* Rows of buttons leave room for the accent rule */
.btn-row { row-gap: 18px; }
.btn-row > .btn, .mega__call, .callbar .btn, .integrity-panel .btn, .cta-stack .btn { margin-bottom: 8px; }

/* The header is a fixed-height bar: buttons there skip the accent rule underneath */
.masthead .btn::after { display: none; }

/* Primary: Ferrari red block */
.btn--call { --btn-fill: var(--accent-fill); --btn-fill-hover: var(--accent-fill-hover); }

/* Secondary: dark block on light surfaces, white block on dark ones */
.btn--line { --btn-fill: var(--ink); --btn-fill-hover: #2B3038; --bar-1: var(--ink); color: var(--paper) !important; }
.cine-hero .btn--line, .invert .btn--line, .statement .btn--line, .interrupt .btn--line, .final-cta .btn--line, .call-band .btn--line, .fgr-text, .fgr-quote {
  --btn-fill: #FFFFFF; --btn-fill-hover: #E6E9ED; --bar-1: #FFFFFF; color: #111318 !important;
}
/* Light-surface primary buttons: first bar in ink so it shows on white */
main > section:not(.invert):not(.call-band):not(.final-cta):not(.interrupt):not(.statement) .btn--call,
.price-card .btn--call, .quote-form .btn--call, .hero .btn--call { --bar-1: var(--ink); }
.cine-hero .btn--call, .invert .btn--call, .call-band .btn--call, .final-cta .btn--call, .interrupt .btn--call, .statement .btn--call,
.masthead .btn--call, .mega .btn--call, .callbar .btn--call, .colophon .btn--call, .drawer .btn--call, .integrity-panel .btn--call { --bar-1: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before, .btn::after { transition: none !important; }
}
@media (forced-colors: active) {
  .btn::before { display: none; }
  .btn { border: 1px solid ButtonText !important; }
}

/* Text links */
.service-card__link, .hang__body a:not(.btn), .prose a:not(.btn) { color: var(--accent-ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.service-card__link:hover, .hang__body a:not(.btn):hover, .prose a:not(.btn):hover { color: var(--accent-dim); }
.invert a:not(.btn), .final-cta a:not(.btn), .capability a:not(.btn) { color: var(--accent-on-dark); }

/* ---------- 3. Dispatch bar ---------- */
.fgr-topbar { background: var(--obsidian); color: var(--ink-mute-on-dark); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--rule-on-dark); }
.fgr-topbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 36px; padding-block: 6px; }
.fgr-topbar a { color: var(--ink-on-dark); font-weight: 800; text-decoration: none; }
.fgr-topbar a:hover { color: var(--accent-on-dark); }
/* Status dots: the three dots light green one after another */
.fgr-topbar__dot, .fgr-topbar__sep { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); font-size: 0; line-height: 0; color: transparent; overflow: hidden; animation: topbarDot 2.4s ease-in-out infinite; }
.fgr-topbar__in > .fgr-topbar__sep:nth-child(3) { animation-delay: 0.8s; }
.fgr-topbar__in > .fgr-topbar__sep:nth-child(5) { animation-delay: 1.6s; }
@keyframes topbarDot {
  0%, 28% { background: #3CCB7F; box-shadow: 0 0 0 3px rgba(60, 203, 127, 0.22); }
  36%, 100% { background: rgba(255, 255, 255, 0.28); box-shadow: 0 0 0 0 rgba(60, 203, 127, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .fgr-topbar__dot, .fgr-topbar__sep { animation: none; }
  .fgr-topbar__dot { background: #3CCB7F; }
}
@media (max-width: 700px) { .fgr-topbar__sep, .fgr-topbar__in > span:nth-child(4) { display: none; } .fgr-topbar { font-size: 0.68rem; } }

/* ---------- 4. Header ---------- */
/* Solid at the top of the page; frosted glass once scrolling, so the page shows through.
   The backdrop filter dims the page behind it, so a light tint stays legible even over white sections. */
.masthead, .masthead.is-scrolled {
  background: var(--carbon); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none; z-index: var(--z-header);
}
/* The glass sits on a layer behind the header's contents, not on the header itself: an element with
   its own backdrop-filter stops the mega menu inside it from filtering the page underneath. */
.masthead::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: transparent; transition: background-color var(--transition-standard) ease; }
.masthead.is-scrolled { background: transparent; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
.masthead.is-scrolled::before { background: rgba(16, 19, 24, 0.4); backdrop-filter: blur(10px) brightness(0.4) saturate(1.4); -webkit-backdrop-filter: blur(10px) brightness(0.4) saturate(1.4); }
.masthead__inner, .masthead.is-scrolled .masthead__inner { min-height: 72px; } /* constant height while scrolling */
.masthead__end { gap: 10px; align-items: center; }
.masthead .status { display: none !important; }
.fgr-wordmark { display: inline-flex; align-items: center; margin-right: 8px; flex: none; border: 0 !important; text-decoration: none; }
/* Logo: transparent PNG/WebP, cropped tight to the artwork, sized by height */
.fgr-logo { display: block; flex: none; line-height: 0; }
.fgr-logo img { display: block; width: auto; height: 100%; }
.fgr-logo--header { height: 48px; }
.fgr-logo--footer { height: 72px; }
@media (max-width: 1220px) { .fgr-logo--header { height: 42px; } }
@media (max-width: 400px) { .fgr-logo--header { height: 38px; } }
.fgr-wordmark:focus-visible { outline-offset: 6px; border-radius: 4px; }
.nav-toggle { color: var(--ink-on-dark); border-color: var(--rule-firm-on-dark) !important; border-radius: var(--radius-small) !important; }
.nav-toggle:hover { border-color: rgba(255, 255, 255, 0.5) !important; }
/* Secondary header actions only where they fit */
.fgr-text, .fgr-quote { display: none !important; }
@media (min-width: 1680px) { .fgr-quote { display: inline-flex !important; } }
@media (min-width: 1880px) { .fgr-text { display: inline-flex !important; } }
@media (min-width: 1221px) and (max-width: 1339px) { .fgr-logo--header { height: 40px; } }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .masthead, .masthead.is-scrolled, .masthead.is-scrolled::before { background: rgba(20, 23, 28, 0.96); }
  .mega, .drawer { background: var(--carbon) !important; }
}
/* Theme toggle (light / dark) */
.theme-toggle { display: inline-grid !important; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--rule-firm-on-dark); border-radius: var(--radius-small) !important; background: transparent; color: var(--ink-on-dark); cursor: pointer; transition: border-color var(--transition-fast) ease, background-color var(--transition-fast) ease; }
.theme-toggle:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- 5. Mega menu ---------- */
.mnav { display: none; }
@media (min-width: 1221px) {
  .masthead__inner { position: static; }
  .mnav { display: flex; align-self: stretch; margin-left: 28px; margin-right: auto; }
  .mnav__list { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .mnav__item { display: flex; align-items: stretch; position: static; }
  .mnav__trigger, .mnav__link {
    position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
    border: 0; background: none; cursor: pointer; white-space: nowrap; text-decoration: none;
    font-family: var(--sans); font-size: 0.92rem; font-weight: 600; color: var(--ink-body-on-dark);
    transition: color var(--transition-fast) ease;
  }
  .mnav__trigger::after, .mnav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
    background: var(--accent-fill); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-standard) var(--ease-out);
  }
  .mnav__trigger:hover, .mnav__link:hover, .mnav__trigger[aria-expanded="true"], .mnav__link[aria-current="page"] { color: #fff; }
  .mnav__trigger[aria-expanded="true"]::after, .mnav__link[aria-current="page"]::after, .mnav__link:hover::after { transform: scaleX(1); }
  .mnav__chev { opacity: 0.7; transition: transform var(--transition-standard) var(--ease-out); }
  .mnav__trigger[aria-expanded="true"] .mnav__chev { transform: rotate(180deg); }
  .mnav__trigger:focus-visible, .mnav__link:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: -8px; border-radius: var(--radius-small); }

  /* Full-width panel anchored to the bottom of the sticky header */
  .mega {
    position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-menu);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01)); backdrop-filter: blur(14px) brightness(0.5) saturate(1.6); -webkit-backdrop-filter: blur(14px) brightness(0.5) saturate(1.6);
    border-top: 1px solid rgba(255, 255, 255, 0.22); border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); animation: megaIn var(--transition-standard) var(--ease-out);
  }
  .mega[hidden] { display: none; }
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
  .mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-top: 32px; padding-bottom: 36px; }
  .mega__eyebrow { margin: 0 0 16px; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #E4E8EE; }
  .mega ul { list-style: none; margin: 0; padding: 0; }
  .mega, .mega a { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); }
  .mega .btn { text-shadow: none; }
  .mega__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .mega__card {
    display: grid; align-content: start; gap: 6px; height: 100%; padding: 18px 20px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: var(--radius-medium); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: var(--ink-on-dark); text-decoration: none;
    transition: border-color var(--transition-fast) ease, background-color var(--transition-fast) ease;
  }
  .mega__card:hover, .mega__card:focus-visible { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.14); outline: none; }
  .mega__card:focus-visible { box-shadow: 0 0 0 2px var(--accent-on-dark); }
  .mega__card[aria-current="page"] { border-color: var(--accent-on-dark); }
  .mega__t { font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
  .mega__d { font-size: 0.86rem; line-height: 1.45; color: #E4E8EE; }
  .mega__time { margin-top: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-dark); }
  .mega__main--areas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; }
  .mega__cols { columns: 2; column-gap: 28px; }
  .mega__cols li { break-inside: avoid; }
  .mega__cols a { display: block; padding: 7px 0; font-size: 0.93rem; color: var(--ink-body-on-dark); text-decoration: none; }
  .mega__cols a:hover, .mega__cols a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent-on-dark); }
  .mega__aside { padding-left: 36px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
  .mega__links a { display: block; padding: 8px 0; font-weight: 600; color: var(--ink-on-dark); text-decoration: none; }
  .mega__links a:hover, .mega__links a:focus-visible, .mega__links a[aria-current="page"] { color: var(--accent-on-dark); }
  .mega__call { margin-top: 20px; }
  .mnav__item:has(.mega--small) { position: relative; }
  .mega--small { left: 0; right: auto; min-width: 220px; padding: 10px 22px; border: 1px solid var(--rule-on-dark); border-radius: 0 0 var(--radius-medium) var(--radius-medium); }
}
@media (min-width: 1221px) and (max-width: 1399px) {
  .mnav { margin-left: 10px; }
  .mnav__trigger, .mnav__link { padding: 0 10px; font-size: 0.9rem; }
  .mega__inner { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
}
/* Clear light glass: used when the menu opens over light content (set by fgr.js) */
@media (min-width: 1221px) {
  .mega.mega--light { background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.38)); backdrop-filter: blur(14px) brightness(1.04) saturate(1.6); -webkit-backdrop-filter: blur(14px) brightness(1.04) saturate(1.6); border-top: 1px solid rgba(255, 255, 255, 0.7); border-bottom: 1px solid rgba(17, 19, 24, 0.12); box-shadow: 0 30px 60px -34px rgba(17, 19, 24, 0.45); }
  .mega--light, .mega--light a { text-shadow: none; }
  .mega--light .mega__eyebrow { color: #3A404A; }
  .mega--light .mega__card { background: rgba(255, 255, 255, 0.45); border-color: rgba(17, 19, 24, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); color: #111318; }
  .mega--light .mega__card:hover, .mega--light .mega__card:focus-visible { background: rgba(255, 255, 255, 0.7); border-color: rgba(179, 0, 0, 0.45); }
  .mega--light .mega__d { color: #2E343D; }
  .mega--light .mega__time { color: #B30000; }
  .mega--light .mega__aside { border-left-color: rgba(17, 19, 24, 0.14); }
  .mega--light .mega__links a { color: #111318; }
  .mega--light .mega__links a:hover, .mega--light .mega__links a:focus-visible { color: #B30000; }
  .mega--light .mega__cols a { color: #2E343D; }
  .mega--light .mega__cols a:hover, .mega--light .mega__cols a:focus-visible { color: #111318; text-decoration-color: #B30000; }
}
@keyframes megaIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 6. Mobile drawer & call bar ---------- */
.drawer { background: rgba(16, 19, 24, 0.42); backdrop-filter: blur(12px) brightness(0.36) saturate(1.4); -webkit-backdrop-filter: blur(12px) brightness(0.36) saturate(1.4); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.drawer a { color: var(--ink-on-dark); border-color: var(--rule-on-dark) !important; }
.drawer a:hover { color: var(--accent-on-dark); }
.drawer .label { color: var(--ink-mute-on-dark); }
.drawer__said { color: var(--ink-mute-on-dark); }
.drawer__status { color: var(--ink-body-on-dark); }
.callbar { background: rgba(11, 13, 16, 0.96); border-top: 1px solid var(--rule-on-dark); backdrop-filter: blur(8px); z-index: var(--z-callbar); }

/* ---------- 7. Hero ---------- */
.cine-hero { background: var(--obsidian); }
/* Keep the subject visible: a left-weighted grade for legibility, lighter on the right */
.cine-hero__grade { background: linear-gradient(95deg, rgba(11, 13, 16, 0.94) 0%, rgba(11, 13, 16, 0.78) 38%, rgba(11, 13, 16, 0.25) 70%, rgba(11, 13, 16, 0.45) 100%), linear-gradient(0deg, rgba(11, 13, 16, 0.85) 0%, rgba(11, 13, 16, 0) 35%); }
.cine-hero__eyebrow { font-family: var(--sans); font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.12em; color: var(--accent-on-dark); }
.cine-hero__title { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; max-width: 15ch; color: #fff; }
.cine-hero__lede { color: var(--ink-body-on-dark); max-width: 54ch; line-height: 1.6; }
.cine-hero__actions { gap: 12px; }
/* Guarantees: a quiet checked list, not pills */
.fgr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule-on-dark); max-width: 640px; }
.fgr-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 0.86rem; font-weight: 600; color: var(--ink-body-on-dark); }
.fgr-chips li::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--accent-on-dark); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Service-page hero */
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 20px; }

/* Image placeholders awaiting real photos: neutral, not decorative */
.ph { background: var(--paper-2) !important; border: 1px dashed var(--rule-firm); border-radius: var(--radius-large) !important; }
.ph::before, .ph::after { display: none !important; }
.ph__mark { opacity: 0.35; filter: grayscale(1); }

/* ---------- 8. Service list & cards ---------- */
/* One surface treatment for every card: white, thin border, no stacked shadows */
.card, .service-card, .process-step, .faceoff__side, .field-report, .testimonial-feature,
.make-matrix__col, .quote, .fgr-card, .fgr-make, .trust-item, .callout {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-medium) !important; box-shadow: none;
}
main > section.band:nth-of-type(even) :is(.service-card, .pricing-factors > div, .faceoff, .process-step, .fgr-card, .fgr-make) { background: var(--panel); }
/* Pricing factors & arrival grid: one panel split by hairlines */
.pricing-factors { gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-medium) !important; overflow: hidden; }
.pricing-factors > div { border: 0 !important; border-radius: 0 !important; background: var(--panel); }
.pricing-factors dt { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-mute); }
.pricing-factors dd.fig { color: var(--accent-ink); }

/* Real photos in page heroes and sidebars */
.svc-photo { display: block; min-width: 0; max-width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-large); background: var(--paper-2); }
.svc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-card:hover, .fgr-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }

/* Homepage service sequence */
.editorial-services { border-top: 0; display: grid; gap: 12px; }
.editorial-service {
  position: relative; grid-template-columns: 56px minmax(0, 1fr); gap: 20px;
  padding: 32px 32px 30px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-medium) !important;
  box-shadow: none; transition: border-color var(--transition-standard) ease, box-shadow var(--transition-standard) ease;
}
.editorial-service:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.editorial-service.is-current { border-color: var(--accent-border); }
.editorial-service__index { padding-top: 4px; font-size: 0; }
.editorial-service__index strong { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.editorial-service.is-current .editorial-service__index strong { color: var(--accent-ink); }
.editorial-service__title { display: block; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); margin: 0 0 6px; padding-right: 150px; }
.editorial-service__said { font-family: var(--sans); font-size: 0.9rem; font-style: italic; color: var(--ink-mute); margin-bottom: 12px; }
.editorial-service p { font-size: 1rem; line-height: 1.65; max-width: 58ch; }
.editorial-service__cta { margin-top: 18px; gap: 18px; }
.editorial-service__media { border-radius: var(--radius-medium) !important; }
.editorial-service__media img { filter: saturate(0.9) contrast(1.05) brightness(0.92); }
.editorial-service:hover .editorial-service__media img { filter: saturate(1) contrast(1.05) brightness(0.98); transform: none; }
.editorial-service__media::before { background: linear-gradient(180deg, rgba(11, 13, 16, 0) 55%, rgba(11, 13, 16, 0.55) 100%); }
.editorial-service__badge { border-radius: var(--radius-small); background: rgba(11, 13, 16, 0.8); color: #fff; border-color: rgba(255, 255, 255, 0.25); font-family: var(--sans); font-weight: 700; }
.service-scroll__panel { border-radius: var(--radius-large) !important; }
.service-scroll__panel img { filter: saturate(0.9) contrast(1.05) brightness(0.9); }
@media (max-width: 860px) {
  .editorial-service { grid-template-columns: 1fr; padding: 24px 20px; gap: 10px; }
  .editorial-service__title { padding-right: 0; }
}
/* "Most popular" marker */
.pop-badge {
  position: absolute; top: 20px; right: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius-small); background: var(--accent-fill); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
}
.pop-badge svg { flex: none; color: #FFD25A; }
@media (max-width: 860px) { .editorial-service:has(.pop-badge) { padding-top: 56px; } .pop-badge { top: 16px; left: 20px; right: auto; } }

/* Additional service cards */
.fgr-extra h2 { margin: 8px 0 24px; }
.fgr-cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .fgr-cards { grid-template-columns: 1fr 1fr; } }
.fgr-card { padding: 26px 28px; transition: border-color var(--transition-standard) ease, box-shadow var(--transition-standard) ease; }
.fgr-card__tag { display: inline-block; padding: 4px 8px; border-radius: 4px; background: var(--accent-wash); color: var(--accent-ink); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.fgr-card h3 { margin: 14px 0 6px; }
.fgr-card__said { color: var(--ink-mute); font-style: italic; font-weight: 500; font-size: 0.92rem; }
.fgr-card p { margin: 10px 0 14px; }

/* Process steps */
.process-step { padding: 24px; }
.process-step__n { font-family: var(--sans); font-weight: 800; color: var(--accent-ink); }
.process-step h3 { font-size: 1.05rem; }

/* Related services (index rows) */
.index-row { border-color: var(--rule) !important; transition: background-color var(--transition-fast) ease; }
.index-row:hover { background: var(--paper-2); }

/* Spec strip: one panel, straight dividers */
.spec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; background: var(--panel) !important; border: 1px solid var(--rule) !important; border-radius: var(--radius-medium); overflow: hidden; }
.spec-strip > div, .spec-strip > div + div, .spec-strip > div:nth-child(odd), .spec-strip > div:nth-child(even) { padding: 20px 24px !important; margin: 0; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.spec-strip > div + div { border-left: 1px solid var(--rule) !important; }
.spec-strip dt { margin: 0 0 6px; font-family: var(--sans) !important; font-size: var(--t-eyebrow) !important; font-weight: 700; letter-spacing: 0.1em !important; text-transform: uppercase; color: var(--ink-mute) !important; }
.spec-strip dd { margin: 0; font-family: var(--sans) !important; font-size: 1rem !important; font-weight: 700; line-height: 1.35; color: var(--ink) !important; }
@media (max-width: 900px) {
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip > div:nth-child(odd) { border-left: 0 !important; }
  .spec-strip > div:nth-child(n+3) { border-top: 1px solid var(--rule) !important; }
}
@media (max-width: 480px) {
  .spec-strip { grid-template-columns: minmax(0, 1fr); }
  .spec-strip > div + div { border-left: 0 !important; border-top: 1px solid var(--rule) !important; }
}

/* ---------- 9. Feature bands (dark) ---------- */
.invert, .interrupt, .final-cta, .call-band.invert, .statement, .capability.invert { background: var(--obsidian) !important; color: var(--ink-body-on-dark); }
.invert h2, .invert h3, .final-cta h2, .capability h2, .capability h3 { color: var(--ink-on-dark); }
.invert .label, .statement .label, .interrupt__eyebrow, .final-cta__eyebrow, .capability .label { color: var(--accent-on-dark); }
.interrupt { border: 0; }
.interrupt::before { display: none; }
.interrupt__headline, .statement__headline, .final-cta__headline { color: #fff; text-transform: none; letter-spacing: -0.035em; }
.interrupt__phone { font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.interrupt__phone:hover { color: var(--accent-on-dark); }
.statement__media { filter: saturate(0.85) contrast(1.05) brightness(0.6); }
.statement__grade { background: linear-gradient(95deg, rgba(11, 13, 16, 0.94) 0%, rgba(11, 13, 16, 0.7) 50%, rgba(11, 13, 16, 0.5) 100%); }
.statement__meta strong { color: var(--accent-on-dark); }
.statement__meta span { font-family: var(--sans); color: var(--ink-mute-on-dark); }
.final-cta__headline { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem); }
.final-cta::before { display: none; } /* drop the decorative grid texture */
/* Positioning statement: editorial weight, not hairline */
.positioning__statement { font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; max-width: 24ch; }
.call-band { border-top: 0; }

/* Service-at-a-glance strip */
.fgr-fleet { background: var(--carbon); color: var(--ink-body-on-dark); padding-block: 32px; border-bottom: 1px solid var(--rule-on-dark); }
.fgr-fleet__in { display: grid; gap: 24px; align-items: center; }
.fgr-fleet__media img { display: block; width: 100%; height: auto; border-radius: var(--radius-medium); }
.fgr-fleet__stats { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--rule-on-dark); border-radius: var(--radius-medium); overflow: hidden; }
.fgr-fleet__stats div { padding: 18px 20px; background: none; border: 0; border-radius: 0; }
.fgr-fleet__stats div + div { border-left: 1px solid var(--rule-on-dark); }
.fgr-fleet__stats div:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule-on-dark); }
.fgr-fleet__stats div:nth-child(4) { border-top: 1px solid var(--rule-on-dark); }
.fgr-fleet__stats dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute-on-dark); }
.fgr-fleet__stats dd { margin: 6px 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
@media (min-width: 900px) {
  .fgr-fleet__in { grid-template-columns: 400px 1fr; gap: 48px; }
  .fgr-fleet__stats { grid-template-columns: repeat(2, 1fr); }
  .fgr-fleet__stats div:nth-child(3), .fgr-fleet__stats div:nth-child(4) { border-top: 0; border-left: 1px solid var(--rule-on-dark); }
}

/* Capability (European / advanced platforms) */
.capability__media, .capability__media img { border-radius: var(--radius-large) !important; }
.capability__media img { filter: saturate(0.9) brightness(0.9); }

/* ---------- 10. Forms ---------- */
.quote-form { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-large) !important; box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 40px); }
.field { gap: 8px; }
.field .label, .quote-form .label { font-size: 0.875rem; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field .label::before { display: none; }
.req { color: var(--error); }
.field input, .field select, .field textarea, .quote-form input:not([type=radio]):not([type=checkbox]), .quote-form select, .quote-form textarea {
  min-height: 48px; padding: 12px 14px; border: 1px solid var(--rule-firm); border-radius: var(--radius-small) !important;
  background: var(--panel); color: var(--ink); font: 400 1rem/1.4 var(--sans); box-shadow: none;
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}
.field textarea { min-height: 112px; }
.field input::placeholder, .field textarea::placeholder { color: #7A828E; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field-hover); }
.field input:focus, .field select:focus, .field textarea:focus, .quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--accent-fill); box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.18);
}
.quote-form input[type=radio], .quote-form input[type=checkbox] { accent-color: var(--accent-fill); width: 18px; height: 18px; }
/* Errors: colour plus an icon and text, never colour alone */
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .field [aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important; }
.field__err, .field .field__err { color: var(--error); font-size: 0.85rem; font-weight: 600; }
.field__err:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 50%; background: var(--error); color: #fff; font-size: 0.7rem; font-weight: 800; vertical-align: -2px; }
.form-status--ok { color: var(--ok-500); font-weight: 600; }
.form-status--error { color: var(--error); font-weight: 600; }
/* Fields within a step */
.form-step > * + * { margin-top: 22px; }
.radio-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-set legend { margin-bottom: 10px; }
.radio-row { display: grid; gap: 8px; }
.radio-row label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rule-firm); border-radius: var(--radius-small); background: var(--panel); font-size: 0.95rem; color: var(--ink); cursor: pointer; transition: border-color var(--transition-fast) ease, background-color var(--transition-fast) ease; }
.radio-row label:hover { border-color: var(--field-hover); }
.radio-row label:has(input:checked) { border-color: var(--accent-fill); background: var(--accent-wash); }
.radio-row label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.18); }
.form-step-nav { margin-top: 24px; gap: 10px; }
/* Step progress */
.form-progress__step { width: 30px; height: 30px; border: 2px solid var(--rule-firm); border-radius: 50% !important; background: var(--panel); color: var(--ink-mute); font-weight: 800; font-size: 0.8rem; }
.form-progress__step.is-current { border-color: var(--accent-fill); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-wash); }
.form-progress__step.is-done { border-color: var(--accent-fill); background: var(--accent-fill); color: #fff; }
.form-progress__bar { background: var(--rule); height: 2px; }
.form-progress__label { font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- 11. FAQ, tables, testimonials ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border: 0 !important; border-bottom: 1px solid var(--rule) !important; border-radius: 0 !important; background: none !important; }
.faq summary { position: relative; padding: 20px 44px 20px 0; font-size: 1.05rem; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "" !important; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute); background: none !important; transform: rotate(45deg); transition: transform var(--transition-standard) var(--ease-out), border-color var(--transition-fast) ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--accent-fill); }
.faq summary:hover { color: var(--accent-ink); }
.faq summary:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; border-radius: 4px; }
.faq details > *:not(summary) { max-width: var(--measure-read); padding-bottom: 20px; color: var(--ink-body); line-height: 1.7; }

.data-table { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-medium) !important; overflow: hidden; }
.data-table thead th { background: var(--paper-2); color: var(--ink); font-family: var(--sans); font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.data-table tbody tr { border-radius: 0 !important; }
.data-table .col-us { background: var(--col-us-bg); }
.data-table thead th.col-us { color: var(--accent-ink); }
.data-table thead th.col-us::after, .data-table .col-us-mark::after { background-color: var(--accent-fill) !important; }

/* Testimonials */
.testimonial-feature { padding: clamp(24px, 3vw, 40px); border-top: 1px solid var(--rule); }
.testimonial-feature__main blockquote { font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; }
.testimonial-feature__meta .fig { color: var(--accent-ink); }
.testimonial-index { border-left-color: var(--rule); }
.testimonial-index li.is-active { border-left: 2px solid var(--accent-fill); }
.field-report { padding: clamp(24px, 3vw, 40px); }
.field-report__stars, .fgr-rating__stars { color: var(--star); letter-spacing: 2px; font-size: 0.9rem; }
.field-report blockquote, .field-report__quote { font-weight: 500; color: var(--ink); letter-spacing: -0.015em; line-height: 1.45; }
.field-report__case { font-family: var(--sans); font-weight: 700; color: var(--ink-mute); letter-spacing: 0.08em; }
.quote::before { color: var(--rule-firm) !important; }
.fgr-rating { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 0.95rem; color: var(--ink); }

/* Contact: large phone panel never breaks the number */
.pair > .integrity-panel { container-type: inline-size; }
.pair > .integrity-panel a.fig, .integrity-panel a.fig { font-size: clamp(1.5rem, 10.5cqi, 3.25rem) !important; white-space: nowrap; font-weight: 800 !important; letter-spacing: -0.03em !important; }
/* Integrity panel: the one dark card on light pages (standards, direct call) */
.integrity-panel { background: var(--obsidian) !important; color: var(--ink-body-on-dark); border: 1px solid var(--obsidian) !important; border-radius: var(--radius-medium) !important; padding: clamp(28px, 3.5vw, 48px) !important; }
.integrity-panel h2, .integrity-panel h3 { color: #fff; }
.integrity-panel p { color: var(--ink-body-on-dark); }
.integrity-panel__list li { border-color: var(--rule-on-dark) !important; color: var(--ink-body-on-dark); }
.integrity-panel__list li::before { color: var(--accent-on-dark) !important; }

/* Notes & callouts */
.warning-panel { background: var(--warn-bg); border: 1px solid var(--warn-border); border-left: 3px solid var(--warn-strong); border-radius: var(--radius-medium) !important; }
.warning-panel__icon { color: var(--warn-strong); }
.chip { border-radius: var(--radius-small) !important; border: 1px solid var(--rule-firm); background: var(--panel); color: var(--ink); font-weight: 600; }
.chip:hover { border-color: var(--accent-border); background: var(--accent-wash); }
.chip--urgent { border-color: var(--warn-border); background: var(--warn-bg); color: var(--warn-ink); }
.trust-item__icon, .warranty-badge { color: var(--ok-500); }

/* ---------- 12. Page-specific blocks ---------- */
/* Vehicle make cards + filter */
.fgr-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.fgr-filter button { min-height: 38px; padding: 0 14px; border-radius: var(--radius-small); border: 1px solid var(--rule-firm); background: var(--panel); font: 600 0.85rem var(--sans); color: var(--ink); cursor: pointer; transition: border-color var(--transition-fast) ease, background-color var(--transition-fast) ease; }
.fgr-filter button:hover { border-color: var(--ink); }
@media (max-width: 767px) { .fgr-filter button { min-height: 44px; } }
.fgr-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fgr-makes { display: grid; gap: 12px; }
@media (min-width: 700px) { .fgr-makes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fgr-makes { grid-template-columns: repeat(3, 1fr); } }
.fgr-make { padding: 18px 20px; }
.fgr-make[hidden] { display: none; }
.fgr-make h3 { margin: 0 0 4px; font-size: 1.1rem; }
.fgr-make__models { margin: 0 0 12px; font-size: 0.86rem; color: var(--ink-mute); }
.fgr-make dl { margin: 0; padding: 12px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; background: none; line-height: 1.45; }
.fgr-make dt { display: inline; font-weight: 700; color: var(--ink); font-size: 0.82rem; }
.fgr-make dt::after { content: ": "; }
.fgr-make dd { display: inline; margin: 0; font-size: 0.82rem; color: var(--ink-body); }

/* Dealer vs FGR: step tracks */
.race { gap: 16px; }
.race__lane { padding: 24px !important; border: 1px solid var(--rule) !important; border-radius: var(--radius-medium); background: var(--panel); }
.race__lane--us { border-color: var(--accent-border) !important; }
.race__lane h4 { margin: 0 0 22px !important; font-family: var(--sans) !important; font-size: var(--t-eyebrow) !important; font-weight: 700; letter-spacing: 0.1em !important; color: var(--ink-mute); }
.race__lane--us h4 { color: var(--accent-ink) !important; }
.race__path { position: relative; display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 !important; counter-reset: racestep; font-family: var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; }
.race__arrow { display: none; }
.race__path::before { content: ""; position: absolute; top: 15px; left: 10%; right: 10%; border-top: 2px dashed var(--rule-firm); }
.race__lane--us .race__path::before { border-top: 2px solid var(--accent-fill); }
.race__step { position: relative; display: flex !important; flex-direction: column; align-items: center; gap: 10px; padding: 0 !important; border: 0 !important; text-align: center; font-size: 0.82rem; font-weight: 600; line-height: 1.25; color: var(--ink-mute) !important; counter-increment: racestep; white-space: nowrap; }
.race__step::before { content: counter(racestep); position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); border: 2px solid var(--rule-firm); font-size: 0.8rem; font-weight: 800; color: var(--ink-mute); }
.race__lane--us .race__step { color: var(--ink) !important; }
.race__lane--us .race__step::before { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; box-shadow: 0 0 0 4px var(--panel); }
.race__lane--us .race__step:last-child::before { content: "✓"; background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 480px) { .race__step { font-size: 0.72rem; } .race__step::before { width: 28px; height: 28px; } .race__path::before { top: 13px; } }
.faceoff__side--us .faceoff__fig { color: var(--accent-ink); }

/* Coverage map */
.real-map .leaflet-tile-pane { filter: saturate(0.6) contrast(1.02) !important; }
.real-map, .real-map .leaflet-container { background: var(--paper-2) !important; border-radius: var(--radius-large); overflow: hidden; }
.rm-node { background: #fff; border-color: var(--obsidian); }
.rm-node--hub, .rm-marker.is-active .rm-node { background: var(--accent-fill); border-color: var(--accent-fill); }
.leaflet-tooltip.rm-label { background: var(--obsidian); color: #fff; border-color: var(--obsidian); border-radius: 4px; font-family: var(--sans); }
path.rm-route { stroke: rgba(17, 19, 24, 0.35); }
path.rm-ring { stroke: rgba(212, 0, 0, 0.45); }
path.rm-route.is-active { stroke: var(--accent-fill); }
.coverage caption { color: var(--accent-ink); }
.coverage .eta { font-family: var(--sans); font-weight: 700; color: var(--accent-ink); }
@media (max-width: 720px) { .coverage th { white-space: normal; } }
/* Map status tag: clear of the zoom control, static (no pulsing) */
.dispatch-map__tag { top: 12px; left: auto; right: 12px; padding: 6px 10px; border-radius: 4px; background: rgba(11, 13, 16, 0.85); color: #fff; font-family: var(--sans); font-size: 0.68rem; font-weight: 700; }
.dispatch-map__tag::before { background: #3CCB7F; }

/* Guarantees row above the footer */
.fgr-guarantees { background: var(--carbon); border-top: 1px solid var(--rule-on-dark); padding-block: 28px; }
.fgr-guarantees__in { display: grid; gap: 18px; }
@media (min-width: 760px) { .fgr-guarantees__in { grid-template-columns: repeat(4, 1fr); } }
.fgr-guarantees strong { display: block; margin-bottom: 4px; color: var(--ink-on-dark); font-size: 0.95rem; }
.fgr-guarantees span { font-size: 0.84rem; color: var(--ink-mute-on-dark); }

/* Pricing: service-page price card, price list tiles */
.price-card { margin: 8px 0 32px; padding: clamp(20px, 2.5vw, 28px); background: var(--panel); border: 1px solid var(--rule); border-left: 3px solid var(--accent-fill); border-radius: var(--radius-medium); }
.price-card__label { margin: 0 0 10px; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.price-card__rows { display: grid; }
.price-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.98rem; color: var(--ink-body); }
.price-card__row:first-child { padding-top: 0; }
.price-card__row strong { flex: none; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.price-card__terms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 18px 0 0; }
.price-card__terms dt { margin-bottom: 4px; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.price-card__terms dd { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-body); }
.price-card__row--dealer { color: var(--ink-mute); }
.price-card__row--dealer strong { font-size: 1.05rem !important; font-weight: 700; color: var(--ink-mute) !important; }
.price-card__claims { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.price-card__claims li { position: relative; padding-left: 22px; font-size: 0.92rem; font-weight: 600; color: var(--ok-700); }
.price-card__claims li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 10px; height: 6px; border-left: 2px solid var(--ok-500); border-bottom: 2px solid var(--ok-500); transform: rotate(-45deg); }
.price-card__note { margin: 18px 0 0; font-size: 0.85rem; line-height: 1.55; color: var(--ink-mute); }
.price-card .btn-row { margin-top: 18px; align-items: center; }
.price-card__more { margin-left: 4px; font-size: 0.92rem; font-weight: 600; color: var(--accent-ink); }
.price-card__factors-title { margin: 0 0 14px; }
@media (max-width: 640px) { .price-card__terms { grid-template-columns: 1fr; } .price-card__row { flex-direction: column; gap: 2px; } }

.price-group__title { margin: 32px 0 12px; font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.price-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 24px; }
.price-tile { display: flex; flex-direction: column; padding: 22px 24px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-medium); transition: border-color var(--transition-standard) ease, box-shadow var(--transition-standard) ease; }
.price-tile:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.price-tile__cat { margin: 0 0 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.price-tile h4 { margin: 0 0 14px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; }
.price-tile h4 a { color: var(--ink); text-decoration: none; }
.price-tile h4 a:hover { color: var(--accent-ink); }
.price-tile .price-card__row strong { font-size: 1.25rem; }
.price-tile__inc { margin: 14px 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--ink-body); flex: 1; }
.price-tile__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; }
.price-tile__links a { font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }

/* Dealership comparison */
.versus th[scope=row] { font-weight: 700; color: var(--ink); }
.data-table.versus th, .data-table.versus td { padding: 16px 20px; vertical-align: top; }
.data-table.versus td:last-child, .data-table.versus th:last-child { padding-right: 20px; }
@media (max-width: 720px) { .data-table.versus th, .data-table.versus td { padding: 6px 18px; } .data-table.versus tr { padding-block: 12px; } .data-table.versus th[scope=row] { width: auto !important; max-width: none !important; padding-bottom: 10px; font-size: 1rem; } }
.hang__body a.job-route, .hang__body a.job-route:hover { color: var(--ink-body); font-weight: 400; text-decoration: none; }
.hang__body a.price-tile__links, .price-tile h4 a { font-weight: 700; }
.dealer-right__title { margin: 36px 0 14px; }
.dealer-right { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.dealer-right__item { padding: 20px 22px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-medium); }
.dealer-right__item h3, .dealer-right__item h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.dealer-right__item p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-body); }
.compare-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.compare-links a { font-weight: 600; color: var(--accent-ink); }
.job-routes { display: grid; gap: 10px; }
.job-route { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 18px 22px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-medium); color: var(--ink-body); text-decoration: none; transition: border-color var(--transition-standard) ease, box-shadow var(--transition-standard) ease; }
.job-route:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.job-route__job { font-weight: 700; color: var(--ink); }
.job-route__text { font-size: 0.94rem; line-height: 1.6; }
.job-route__price { font-size: 0.85rem; color: var(--ink-mute); white-space: nowrap; }
.job-route__price strong { font-size: 1.05rem; color: var(--ink); }
@media (max-width: 860px) { .job-route { grid-template-columns: 1fr; } }

/* ---------- 13. Footer ---------- */
.colophon { background: var(--obsidian) !important; border-top: 1px solid var(--rule-on-dark); color: var(--ink-body-on-dark); }
.colophon::before { display: none; }
.colophon .fgr-wordmark { margin-bottom: 16px; }
.colophon__brand p { color: var(--ink-mute-on-dark); font-size: 0.95rem; line-height: 1.6; }
.colophon__brand p strong { color: var(--ink-on-dark); }
.colophon h2 { margin-bottom: 14px; font-family: var(--sans); font-size: var(--t-eyebrow); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-on-dark); }
.colophon li { color: var(--ink-body-on-dark); }
.colophon a { color: var(--ink-body-on-dark); text-decoration: none; }
.colophon a:hover { color: #fff; }
/* Footer link hover: an underline drawn on the text itself, so it follows each
   wrapped line and ends exactly where the wording ends (no full-width bar). */
.colophon__grid a:not(.btn):not(.fgr-wordmark), .colophon__legal nav a {
  display: inline; text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(var(--accent-on-dark), var(--accent-on-dark)) no-repeat 0 100% / 0 1px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size var(--transition-standard) var(--ease-out), color var(--transition-fast) ease;
}
.colophon__grid a:not(.btn):not(.fgr-wordmark):hover, .colophon__grid a:not(.btn):not(.fgr-wordmark):focus-visible,
.colophon__legal nav a:hover, .colophon__legal nav a:focus-visible { background-size: 100% 1px; }
.colophon__grid a:not(.btn)::after, .colophon__legal nav a::after { display: none !important; }
@media (prefers-reduced-motion: reduce) { .colophon__grid a, .colophon__legal nav a { transition: none; } }
.colophon__contact svg { color: var(--ink-mute-on-dark); }
.colophon__legal { border-top: 1px solid var(--rule-on-dark) !important; color: var(--ink-mute-on-dark); }
.colophon__pay span { border: 1px solid var(--rule-firm-on-dark); border-radius: 4px !important; background: none; font-family: var(--sans); font-weight: 700; color: var(--ink-mute-on-dark); }

/* ---------- 14. Motion ----------
   One motion vocabulary for every page. Tokens below; a tighter mobile set
   follows. Reveals use opacity + transform only and are applied by motion.js
   to content below the first screen (never to the first screen itself). */
:root {
  --mo-dist: 16px;          /* block / card travel */
  --mo-dist-hero: 18px;     /* hero entrance travel */
  --mo-dur: 520ms;          /* section reveal */
  --mo-dur-item: 440ms;     /* card / list item reveal */
  --mo-dur-hero: 620ms;     /* hero entrance */
  --mo-stagger: 70ms;       /* between items that enter together */
  --mo-press: 120ms;        /* touch / click feedback */
  --mo-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mo-inout: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 767px) {
  :root { --mo-dist: 10px; --mo-dist-hero: 12px; --mo-dur: 360ms; --mo-dur-item: 320ms; --mo-dur-hero: 440ms; --mo-stagger: 40ms; --mo-press: 90ms; }
}

/* Scroll reveals (set by motion.js) */
[data-reveal] { transition: opacity var(--mo-dur) var(--mo-out), transform var(--mo-dur) var(--mo-out); }
[data-reveal="block"] { opacity: 0; transform: translateY(var(--mo-dist)); }
[data-reveal="item"] { opacity: 0; transform: translateY(var(--mo-dist)); transition-duration: var(--mo-dur-item); transition-delay: calc(var(--mo-i, 0) * var(--mo-stagger)); }
[data-reveal="media"] { opacity: 0; transform: scale(1.02); transform-origin: 50% 60%; transition-duration: calc(var(--mo-dur) + 160ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Hover transitions on revealed cards keep their own timing once settled */
[data-reveal="item"].is-in { transition-delay: 0ms; transition-property: opacity, transform, border-color, box-shadow, background-color; transition-duration: var(--mo-dur-item), var(--mo-dur-item), 220ms, 220ms, 220ms; }

/* Line reveals: dealership vs FGR tracks draw their connector, then the stops settle */
.race__lane[data-reveal] .race__path::before { transform: scaleX(0); transform-origin: left center; transition: transform 700ms var(--mo-inout) 120ms; }
.race__lane[data-reveal].is-in .race__path::before { transform: scaleX(1); }
.race__lane[data-reveal] .race__step::before { transform: scale(0.6); opacity: 0; transition: transform 260ms var(--mo-out), opacity 200ms linear; }
.race__lane[data-reveal].is-in .race__step::before { transform: none; opacity: 1; }
.race__lane[data-reveal].is-in .race__step:nth-child(1)::before { transition-delay: 160ms; }
.race__lane[data-reveal].is-in .race__step:nth-child(3)::before { transition-delay: 300ms; }
.race__lane[data-reveal].is-in .race__step:nth-child(5)::before { transition-delay: 440ms; }
.race__lane[data-reveal].is-in .race__step:nth-child(7)::before { transition-delay: 580ms; }
.race__lane[data-reveal].is-in .race__step:nth-child(9)::before { transition-delay: 720ms; }
/* Service-page steps: the number settles a beat after its row */
.steps > li[data-reveal] .steps__n { display: inline-block; transform: translateX(-6px); opacity: 0; transition: transform 300ms var(--mo-out) 120ms, opacity 240ms linear 120ms; }
.steps > li[data-reveal].is-in .steps__n { transform: none; opacity: 1; }
/* Price cards: the accent rule draws down the left edge */
.price-card { position: relative; }
.price-card[data-reveal]::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; border-radius: var(--radius-medium) 0 0 var(--radius-medium); background: var(--accent-fill); transform: scaleY(0); transform-origin: top; transition: transform 600ms var(--mo-inout) 150ms; }
.price-card[data-reveal].is-in::before { transform: scaleY(1); }

/* Page heroes: a short entrance on load (CSS only, so it never waits on scripts) */
@keyframes moRise { from { opacity: 0; transform: translateY(var(--mo-dist-hero)); } to { opacity: 1; transform: none; } }
@keyframes moFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes moSettle { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.hero .label, .hero h1, .hero .lede, .hero .btn-row > :not(.btn--call), .hero > p:not(.label):not(.lede), .hero > div > p:not(.label):not(.lede) { animation: moRise var(--mo-dur-hero) var(--mo-out) backwards; }
.hero .label { animation-duration: calc(var(--mo-dur-hero) - 120ms); }
.hero h1 { animation-delay: 50ms; }
.hero .lede { animation-delay: 120ms; }
.hero .btn-row > :not(.btn--call) { animation-delay: 190ms; }
.hero > p:not(.label):not(.lede), .hero > div > p:not(.label):not(.lede) { animation-delay: 250ms; }
.hero .svc-photo { animation: moSettle calc(var(--mo-dur-hero) + 200ms) var(--mo-out) 80ms backwards; }
.hero .specs { animation: moFade var(--mo-dur-hero) var(--mo-out) 260ms backwards; }
/* Homepage hero: copy is there from the first frame and rises in briefly over the video */
.cine-hero__eyebrow, .cine-hero__title, .cine-hero__lede, .cine-hero__actions > :not(.btn--call), .fgr-chips { animation: moRise var(--mo-dur-hero) var(--mo-out) backwards; }
.cine-hero__title { animation-delay: 60ms; }
.cine-hero__lede { animation-delay: 140ms; }
.cine-hero__actions > :not(.btn--call) { animation-delay: 210ms; }
.fgr-chips { animation-name: moFade; animation-delay: 280ms; }

/* Header: settles in on the first page of a visit only (flag set in <head>) */
@keyframes moDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.first-visit .masthead__inner > .fgr-wordmark { animation: moDrop 260ms var(--mo-out) backwards; }
/* The nav itself never animates: a transform would make it the positioning box for the
   full-width mega menu, and an opacity animation can leave the menu's backdrop-filter glass
   stuck invisible in Chrome. It is simply there from the first frame. */
.first-visit .masthead__end { animation: moDrop 300ms var(--mo-out) 120ms backwards; }
.first-visit .masthead__end .btn--call { animation: none; }

/* Mobile menu: drops in from under the header; links follow in a short run.
   Closing plays the reverse briefly (class set by the menu script). */
@keyframes moDrawerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes moDrawerOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px); } }
.drawer:not([hidden]) { animation: moDrawerIn 220ms var(--mo-out) backwards; }
.drawer.is-closing { animation: moDrawerOut 160ms var(--mo-inout) both; }
.drawer:not([hidden]) nav > * { animation: moFade 200ms linear backwards; }
.drawer:not([hidden]) nav > *:nth-child(n+2) { animation-delay: 30ms; }
.drawer:not([hidden]) nav > *:nth-child(n+4) { animation-delay: 60ms; }
.drawer:not([hidden]) nav > *:nth-child(n+6) { animation-delay: 90ms; }
.drawer:not([hidden]) nav > *:nth-child(n+8) { animation-delay: 120ms; }
.nav-toggle svg path { transition: transform 200ms var(--mo-inout), opacity 150ms linear; transform-origin: center; transform-box: fill-box; }

/* Quote form: each step slides in from the direction of travel */
@keyframes moStepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.form-step + .form-step:not([hidden]) { animation: moStepIn 240ms var(--mo-out) backwards; }
.form-status.is-visible { animation: moRise 280ms var(--mo-out) backwards; }
.form-progress__step { transition: background-color 200ms var(--mo-inout), border-color 200ms var(--mo-inout), color 200ms var(--mo-inout), box-shadow 200ms var(--mo-inout); }
.field input, .field select, .field textarea { transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease; }

/* Touch and press feedback: immediate, small, never changes layout */
.btn, .mega__card, .editorial-service, .price-tile, .job-route, .index-row, .fgr-card, .fgr-make, .radio-row label, .chip, .faq summary, .theme-toggle, .nav-toggle, .fgr-filter button, .drawer a { -webkit-tap-highlight-color: transparent; }
.btn:active { transition-duration: var(--mo-press); }
.editorial-service:active, .price-tile:active, .job-route:active, .index-row:active, .mega__card:active { transform: scale(0.99); transition: transform var(--mo-press) ease; }
.radio-row label:active, .fgr-filter button:active, .theme-toggle:active, .nav-toggle:active, .chip:active { transform: scale(0.97); transition: transform var(--mo-press) ease; }
.faq summary:active { background: var(--accent-wash); }
.drawer a:active { background: rgba(255, 255, 255, 0.06); }
/* Hover lifts only where a real pointer exists */
@media (hover: hover) and (pointer: fine) {
  .editorial-service:hover, .price-tile:hover, .job-route:hover, .fgr-card:hover { transform: translateY(-2px); }
  .btn--call:hover { transform: translateY(-1px); }
  .btn--call:hover svg { transform: rotate(-8deg); }
  .btn--call svg, .btn--line svg { transition: transform 200ms var(--mo-out); }
  .index-row:hover .index-row__arrow, .price-tile__links a:hover, .compare-links a:hover { transform: translateX(3px); }
  .price-tile__links a, .compare-links a { display: inline-block; transition: transform 200ms var(--mo-out), color 150ms ease; }
}
@media (hover: none) {
  .editorial-service:hover, .price-tile:hover, .job-route:hover, .fgr-card:hover, .service-card:hover { transform: none; box-shadow: none; }
}

/* Mobile call bar: steps aside while the keyboard is up, returns after */
.callbar { transition: transform 220ms var(--mo-inout), opacity 180ms linear; }
.callbar.is-tucked { transform: translateY(110%); opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .mega { animation: none; }
  .btn, .mega__card, .editorial-service, .fgr-card, .fgr-filter button, .mnav__trigger::after, .mnav__link::after, .mnav__chev, .faq summary::after { transition: none !important; }
  [data-reveal], [data-reveal] *, [data-reveal]::before { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero *, .cine-hero *, .fgr-chips, .first-visit .masthead__inner > *, .drawer, .drawer *, .form-step, .form-status { animation: none !important; }
  .callbar.is-tucked { transform: none; opacity: 0; }
}
