/* =============================================================
   AFTERMARKET PAGE - editorial layout with distinct rhythm
   from per-industry pages.

   Sections:
     1. HERO        - half-image split (same pattern as industry)
     2. PROMISE     - inline 'Any brand · Any make · Anywhere' strip
     3. INTRO       - asymmetric 2-col (pull-lede LHS / body RHS)
     4. ECOSYSTEM   - full-width dark band with the SVG centerpiece
     5. SERVICES    - 4 grouped clusters (Diagnose / Operate /
                       Restore / Enhance), each with its own
                       sub-header + numbered service rows
     6. CLOSE       - bookend CTA band with brand statement
   ============================================================= */


/* ═══════════════════════════════════════════════════════════
   INTRO BODY - the two follow-up paragraphs that sit below the
   .au-hero-pin (about-style) hero + overview block.
   ═══════════════════════════════════════════════════════════ */
/* Matches the .am-services ("What we deliver") band - same paper /
   ink tokens so the two sections share a background in both
   light and dark themes. */
.am-intro-body {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 6vw, 96px) 0;
}
.am-intro-body__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
}
.am-intro-body__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.am-intro-body__title em {
  font-style: normal;
  color: var(--accent, #F58220);
}
.am-intro-body p {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.7;
  color: var(--ink-80, var(--ink));
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════
   1. HERO BANNER - same pattern as per-industry pages
   ═══════════════════════════════════════════════════════════ */
.am-hero {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(56px, 7vw, 80px) 0 0;
  position: relative;
  overflow: hidden;
}
.am-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 30%, rgba(245, 130, 32, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(245, 130, 32, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.am-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}

.am-breadcrumb {
  position: absolute;
  top: calc(var(--header-h, 76px) + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container, 1320px);
  padding: 0 var(--gutter, 32px);
  z-index: 2;
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .am-breadcrumb { top: calc(var(--header-h, 76px) + 20px); }
}
.am-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 200ms ease;
}
.am-breadcrumb a:hover { color: var(--accent, #F58220); }
.am-breadcrumb [aria-current] { color: rgba(255, 255, 255, 0.85); }

.am-hero--split .am-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  min-height: clamp(360px, 42vw, 520px);
}
.am-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px) 0;
}
.am-hero__title {
  font-family: "Raleway", sans-serif;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: clamp(8px, 1.2vw, 14px) 0 clamp(16px, 2vw, 22px);
  color: #FFFFFF;
}
@media (max-width: 767px) {
  .am-hero__title { font-size: 28px; line-height: 1.15; }
}
.am-hero__lede {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 60ch;
}
.am-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.4vw, 28px);
}
.am-hero__media {
  position: relative;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  margin-top: clamp(12px, 2vw, 20px);
  background: #0A0809;
}
.am-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 36vw, 460px);
  object-fit: cover;
  object-position: center;
}
.am-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(10, 8, 9, 0.35) 0%, rgba(10, 8, 9, 0) 35%);
}
@media (max-width: 767px) {
  .am-hero--split .am-hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 24px);
    min-height: 0;
  }
  .am-hero__media {
    border-radius: 14px;
    margin-top: 8px;
  }
  .am-hero__media img {
    min-height: clamp(200px, 50vw, 280px);
  }
}


/* ═══════════════════════════════════════════════════════════
   2. PROMISE STRIP - inline 'Any brand · Any make · Anywhere'
   Thin horizontal band, vertical separators between items.
   ═══════════════════════════════════════════════════════════ */
.am-promise {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(28px, 3vw, 40px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.am-promise__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
}
.am-promise__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.am-promise__label {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #FFFFFF;
}
/* Last "Anywhere" gets the orange accent */
.am-promise__item:last-child .am-promise__label {
  color: var(--accent, #F58220);
}
.am-promise__sep {
  display: inline-block;
  width: 1px;
  height: clamp(18px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.25);
}


/* ═══════════════════════════════════════════════════════════
   3. INTRO - asymmetric 2-col
   ═══════════════════════════════════════════════════════════ */
.am-intro {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(56px, 6vw, 96px) 0;
}
.am-intro__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: start;
}
.am-intro__lede {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin: 0;
  position: relative;
  padding-top: clamp(18px, 2.4vw, 28px);
}
.am-intro__lede::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent, #F58220);
}
.am-intro__body {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 22px);
}
.am-intro__body p {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 72ch;
}
@media (max-width: 1023px) {
  .am-intro__inner {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 32px);
  }
}


/* ═══════════════════════════════════════════════════════════
   4. ECOSYSTEM - full-width dark band with SVG centerpiece
   ═══════════════════════════════════════════════════════════ */
.am-ecosystem {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(64px, 7vw, 112px) 0;
  border-top: 1px solid rgba(245, 130, 32, 0.25);
  border-bottom: 1px solid rgba(245, 130, 32, 0.25);
  position: relative;
  overflow: hidden;
}
.am-ecosystem::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 130, 32, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(245, 130, 32, 0.05) 0%, transparent 50%);
}
.am-ecosystem__inner {
  position: relative;
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.am-ecosystem__header {
  max-width: 64ch;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.am-ecosystem__eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  margin: 0 0 14px;
}
.am-ecosystem__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin: 0 0 clamp(14px, 1.6vw, 20px);
}
.am-ecosystem__sub {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
/* ── Service orbit ─────────────────────────────────────────
   Interactive replacement for the old static .am-ecosystem__figure
   SVG. Driven by js/aftermarket-orbit.js. */
.am-orbit {
  /* Tunables. Keep --orbit-radius < --orbit-size/2 by at least
     --sat-size/2 so satellites don't clip the bounding box.
     Gear & disc grew here to fit the full card-length copy in the
     centre disc without clipping the text against the circular edge. */
  --orbit-size:   clamp(520px, 64vw, 760px);
  --orbit-radius: clamp(220px, 28vw, 330px);
  --gear-size:    clamp(280px, 34vw, 400px);
  --sat-size:     clamp(56px, 6vw, 76px);
  --sat-icon:     calc(var(--sat-size) * 0.52);
  --accent:       #F58220;

  position: relative;
  margin: 0 auto;
  width: var(--orbit-size);
  max-width: 100%;
  aspect-ratio: 1 / 1;
}
.am-orbit__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* Decorative orbit ring + faint dotted markers at each satellite slot. */
.am-orbit__ring {
  position: absolute;
  width: calc(var(--orbit-radius) * 2);
  height: calc(var(--orbit-radius) * 2);
  border-radius: 50%;
  border: 1px solid rgba(245, 130, 32, 0.35);
  pointer-events: none;
  box-shadow:
    inset 0 0 60px rgba(245, 130, 32, 0.06),
    0 0 80px rgba(245, 130, 32, 0.05);
}
.am-orbit__ring::before,
.am-orbit__ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.am-orbit__ring::after {
  inset: 14px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.04);
}

/* Central rotating gear - photoreal steel gear (same asset used on
   About > Milestones). The wrapper is the rotating element; the
   accompanying .am-orbit__gear-glow is a separate static layer so the
   ambient orange wash doesn't spin with the gear. */
.am-orbit__gear {
  position: absolute;
  width: var(--gear-size);
  height: var(--gear-size);
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: am-orbit-spin 36s linear infinite;
}
.am-orbit__gear-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.50));
}
/* Static warm-orange wash behind the gear so the steel doesn't feel
   cold against the dark band. Sits inside .am-orbit__gear but won't
   spin because we counter-rotate via a paused animation - actually
   simpler: keep it absolutely positioned and skip the rotation by
   placing it *outside* the rotating element. */
.am-orbit__gear-glow {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(245, 130, 32, 0.30) 0%,
      rgba(245, 130, 32, 0.10) 38%,
      rgba(245, 130, 32, 0)    72%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}
@keyframes am-orbit-spin {
  to { transform: rotate(360deg); }
}

/* Centre info panel sits inside the gear's hub as a frosted dark
   disc so the active service copy reads cleanly against the steel
   gear behind. Locked to a perfect circle - width and height both
   pinned to the same calc(...) value so a long description can't
   stretch the disc into an oval. overflow:hidden is the belt-and-
   braces. */
.am-orbit__center {
  --center-size: calc(var(--gear-size) * 0.86);
  position: absolute;
  width: var(--center-size);
  height: var(--center-size);
  border-radius: 50%;
  text-align: center;
  /* Inner padding sized so a 9-line desc fits without clipping at the
     disc curve. Smaller on tighter viewports. */
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px);
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 14, 8, 0.94), rgba(10, 8, 9, 0.97));
  border: 1px solid rgba(245, 130, 32, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(10, 8, 9, 0.6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.am-orbit__eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 6px;
}
.am-orbit__name {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: #FFFFFF;
  margin: 0 0 8px;
  transition: opacity 160ms ease, transform 160ms ease;
  /* Up to 4 lines for the longest titles ("Power upgrade (within
     existing foundation & site conditions)"); anything longer
     ellipsises. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.am-orbit__desc {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  /* Card descriptions run ~130 chars / 6-7 lines at 11px in the
     inscribed text rectangle. Clamp at 7 as a graceful fallback. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
}
.am-orbit__name.is-out,
.am-orbit__desc.is-out {
  opacity: 0;
  transform: translateY(4px);
}

/* Satellite layout. Each .am-orbit__sat is positioned absolutely at
   the centre of the stage and pushed out along its angle to land on
   the ring. The second rotate keeps the icon upright. */
.am-orbit__satellites {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.am-orbit__sat {
  /* 10 satellites spread around 360deg; first satellite sits at 12 o'clock
     (the -90deg shift). aspect-ratio belt-and-braces so nothing
     downstream can squish the tile into an oval. */
  --angle: calc((360deg / 10) * var(--i) - 90deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--sat-size);
  height: var(--sat-size);
  aspect-ratio: 1 / 1;
  margin: calc(var(--sat-size) / -2) 0 0 calc(var(--sat-size) / -2);
  transform: rotate(var(--angle)) translate(var(--orbit-radius)) rotate(calc(var(--angle) * -1));
  flex-shrink: 0;
}
.am-orbit__sat-btn {
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 60%);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    background 280ms ease,
    box-shadow 280ms ease;
}
.am-orbit__sat-btn img {
  width: var(--sat-icon);
  height: var(--sat-icon);
  display: block;
  pointer-events: none;
  transition: transform 320ms ease, filter 280ms ease;
}
.am-orbit__sat-btn:hover {
  border-color: rgba(245, 130, 32, 0.55);
  background: radial-gradient(circle at 30% 25%, rgba(245, 130, 32, 0.20), rgba(245, 130, 32, 0.04) 70%);
  transform: scale(1.08);
}
.am-orbit__sat.is-active .am-orbit__sat-btn {
  border-color: var(--accent);
  background: radial-gradient(circle at 30% 25%, rgba(245, 130, 32, 0.35), rgba(245, 130, 32, 0.08) 70%);
  box-shadow:
    0 0 0 4px rgba(245, 130, 32, 0.14),
    0 12px 28px rgba(245, 130, 32, 0.28);
  transform: scale(1.15);
}
.am-orbit__sat.is-active .am-orbit__sat-btn img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px rgba(245, 130, 32, 0.45));
}
.am-orbit__sat-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Pause the gear when the user is interacting - feels more controlled. */
.am-orbit__stage:hover .am-orbit__gear,
.am-orbit__stage:focus-within .am-orbit__gear {
  animation-play-state: paused;
}

/* Light-mode flip. The orbit sits on the .am-ecosystem band which
   the existing light-mode rule below already paints warm-paper. */
[data-theme="light"] .am-orbit__ring {
  border-color: rgba(245, 130, 32, 0.30);
  box-shadow:
    inset 0 0 60px rgba(245, 130, 32, 0.05),
    0 0 80px rgba(245, 130, 32, 0.04);
}
[data-theme="light"] .am-orbit__ring::before {
  border-color: rgba(35, 31, 32, 0.08);
}
[data-theme="light"] .am-orbit__ring::after {
  border-color: rgba(35, 31, 32, 0.06);
}
[data-theme="light"] .am-orbit__center {
  background: radial-gradient(circle at 50% 40%, #FFFFFF, #FAFAF8);
  border-color: rgba(245, 130, 32, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 16px 40px rgba(35, 31, 32, 0.14),
    0 0 0 6px rgba(250, 250, 248, 0.85);
}
/* The gear's heavy black drop-shadow (tuned for the dark band) reads as an
   ugly grey blob behind the gear on warm paper. Soften it for light mode. */
[data-theme="light"] .am-orbit__gear-img {
  filter: drop-shadow(0 8px 20px rgba(35, 31, 32, 0.14));
}
[data-theme="light"] .am-orbit__eyebrow { color: rgba(35, 31, 32, 0.58); }
[data-theme="light"] .am-orbit__name    { color: #231F20; }
[data-theme="light"] .am-orbit__desc    { color: rgba(35, 31, 32, 0.8); }
[data-theme="light"] .am-orbit__sat-btn {
  border-color: rgba(35, 31, 32, 0.14);
  background: radial-gradient(circle at 30% 25%, #FFFFFF, rgba(255, 255, 255, 0.85) 60%);
}
[data-theme="light"] .am-orbit__sat-btn:hover {
  background: radial-gradient(circle at 30% 25%, rgba(245, 130, 32, 0.15), rgba(245, 130, 32, 0.04) 70%);
}
[data-theme="light"] .am-orbit__sat.is-active .am-orbit__sat-btn {
  background: radial-gradient(circle at 30% 25%, rgba(245, 130, 32, 0.30), rgba(245, 130, 32, 0.08) 70%);
}

/* Mobile: orbit collapses to a static ring of icons with no rotation,
   tightened radius. Below 600px we hide the orbit entirely - the
   .am-services grid right below covers the same content as accessible
   cards, which is the better small-screen UX. */
@media (max-width: 767px) {
  .am-orbit {
    --orbit-size:   clamp(340px, 88vw, 460px);
    --orbit-radius: clamp(135px, 36vw, 185px);
    --gear-size:    clamp(170px, 42vw, 220px);
    --sat-size:     clamp(48px, 12vw, 60px);
  }
  .am-orbit__gear { animation: none; opacity: 0.85; }
  .am-orbit__name { font-size: var(--fs-s); }
  .am-orbit__desc { font-size: var(--fs-xs); }
}
@media (max-width: 479px) {
  .am-orbit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .am-orbit__gear { animation: none; }
  .am-orbit__sat-btn,
  .am-orbit__sat-btn img,
  .am-orbit__name,
  .am-orbit__desc { transition: none; }
}


/* ═══════════════════════════════════════════════════════════
   5. SERVICES GRID - 10 cards, each with an icon
   ═══════════════════════════════════════════════════════════ */
.am-services {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 6vw, 96px) 0;
}
.am-services__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.am-services__header {
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 720px;
}
.am-services__eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  margin: 0 0 12px;
}
.am-services__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0;
}

.am-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}
.am-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  padding: clamp(22px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.am-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.am-card__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.am-card__name {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0;
}
.am-card__name-meta {
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82em;
  margin-top: 4px;
}
.am-card__desc {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════
   6. REPLACEMENT OF GLOBAL MAKES - region grid
   ═══════════════════════════════════════════════════════════ */
.am-replacements {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(56px, 6vw, 96px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.am-replacements__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.am-replacements__header {
  max-width: 720px;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.am-replacements__eyebrow {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #F58220);
  margin: 0 0 12px;
}
.am-replacements__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 14px;
}
.am-replacements__sub {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 60ch;
}

.am-replacements__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  margin-bottom: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.am-replacements__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.am-replacements__stat-num {
  font-family: "Raleway", sans-serif;
  font-feature-settings: "tnum" 1;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent, #F58220);
}
.am-replacements__stat-label {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-s);
  color: rgba(255, 255, 255, 0.7);
}

/* Tabbed regions: country tab bar at top, single panel below
   ─────────────────────────────────────────────────────────── */
.am-regions-tabs {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

/* Tab bar */
.am-regions-tabs__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 clamp(8px, 1.6vw, 24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.am-regions-tab {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: clamp(18px, 2vw, 28px) clamp(16px, 2vw, 32px);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: nowrap;
}
.am-regions-tab:hover { color: rgba(255, 255, 255, 0.85); }
.am-regions-tab:focus-visible {
  outline: 2px solid var(--accent, #F58220);
  outline-offset: -4px;
}
.am-regions-tab.is-active {
  color: var(--accent, #F58220);
  border-bottom-color: var(--accent, #F58220);
}

/* Panel container */
.am-regions-tabs__panels {
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px) clamp(40px, 4.5vw, 64px);
}
.am-regions-panel {
  display: block;
}
.am-regions-panel[hidden] { display: none; }
.am-regions-panel__title {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-l);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 clamp(28px, 3vw, 44px);
}
.am-regions-panel__country {
  color: var(--accent, #F58220);
}

/* Brand chip grid */
.am-regions-panel__brands {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
}
.am-regions-panel__brands li {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.6vw, 20px);
}

@media (max-width: 1199px) {
  .am-regions-panel__brands { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .am-regions-panel__brands { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .am-regions-tab {
    padding: clamp(12px, 2.4vw, 18px) clamp(10px, 2.4vw, 18px);
    font-size: var(--fs-s);
  }
  .am-regions-panel__brands { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .am-regions-panel__brands { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   7. CLOSING CTA BAND
   ═══════════════════════════════════════════════════════════ */
.am-close {
  background: #0A0809;
  color: #FFFFFF;
  padding: clamp(64px, 7vw, 112px) 0;
  text-align: center;
  border-top: 1px solid rgba(245, 130, 32, 0.25);
}
.am-close__inner {
  max-width: var(--container, 1320px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 80px);
}
.am-close__statement {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 clamp(14px, 1.8vw, 22px);
}
.am-close__statement em {
  font-style: normal;
  color: var(--accent, #F58220);
}
.am-close__sub {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-m);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 60ch;
  margin: 0 auto clamp(24px, 2.8vw, 32px);
}
.am-close__ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════
   LIGHT MODE - flip all dark surfaces to warm paper.
   ═══════════════════════════════════════════════════════════ */
[data-theme="light"] .am-hero,
[data-theme="light"] .am-promise,
[data-theme="light"] .am-intro,
[data-theme="light"] .am-ecosystem,
[data-theme="light"] .am-services,
[data-theme="light"] .am-replacements,
[data-theme="light"] .am-close {
  background: #FAFAF8;
  color: #231F20;
}
[data-theme="light"] .am-hero__title,
[data-theme="light"] .am-promise__label,
[data-theme="light"] .am-intro__lede,
[data-theme="light"] .am-ecosystem__title,
[data-theme="light"] .am-services__title,
[data-theme="light"] .am-card__name,
[data-theme="light"] .am-replacements__title,
[data-theme="light"] .am-close__statement {
  color: #231F20;
}
[data-theme="light"] .am-replacements__sub,
[data-theme="light"] .am-replacements__stat-label {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .am-replacements__stats {
  border-top-color: rgba(35, 31, 32, 0.10);
  border-bottom-color: rgba(35, 31, 32, 0.10);
}
/* Region tabs + brand panels (active tab / country stay orange via --accent). */
[data-theme="light"] .am-regions-tabs__tabs {
  border-bottom-color: rgba(35, 31, 32, 0.12);
}
[data-theme="light"] .am-regions-tab {
  color: rgba(35, 31, 32, 0.58);
}
[data-theme="light"] .am-regions-tab:hover {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .am-regions-panel__title {
  color: #231F20;
}
[data-theme="light"] .am-regions-panel__brands li {
  color: rgba(35, 31, 32, 0.8);
  background: rgba(35, 31, 32, 0.03);
  border-color: rgba(35, 31, 32, 0.10);
}
[data-theme="light"] .am-replacements {
  border-top-color: rgba(35, 31, 32, 0.06);
}
[data-theme="light"] .am-hero__lede {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .am-intro__body p,
[data-theme="light"] .am-ecosystem__sub,
[data-theme="light"] .am-card__desc,
[data-theme="light"] .am-close__sub {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .am-card__name-meta {
  color: rgba(35, 31, 32, 0.58);
}
[data-theme="light"] .am-card {
  background: var(--paper-elev, #F5F4F1);
  border-color: var(--ink-06);
}
[data-theme="light"] .am-card:hover {
  border-color: var(--accent);
}
[data-theme="light"] .am-promise {
  border-top-color: rgba(35, 31, 32, 0.08);
  border-bottom-color: rgba(35, 31, 32, 0.08);
}
[data-theme="light"] .am-promise__sep {
  background: rgba(35, 31, 32, 0.25);
}
[data-theme="light"] .am-breadcrumb,
[data-theme="light"] .am-breadcrumb a {
  color: rgba(35, 31, 32, 0.58);
}
[data-theme="light"] .am-breadcrumb [aria-current] {
  color: rgba(35, 31, 32, 0.8);
}
[data-theme="light"] .am-ecosystem__figure {
  background: rgba(35, 31, 32, 0.03);
  border-color: rgba(35, 31, 32, 0.08);
}
/* Light mode: swap dark SVG → original colour SVG */
[data-theme="light"] .am-ecosystem__figure .am-ecosystem__figure-img--on-dark  { display: none; }
[data-theme="light"] .am-ecosystem__figure .am-ecosystem__figure-img--on-light { display: block; }
