/* AltTune Marketing Site — v3 (matching Website.jpg template exactly)
   Anchored to colors_and_type.css tokens. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ------------------------------------------------------------------
   PRIMITIVES
   ------------------------------------------------------------------ */
/* Eyebrow — one constant, understated label style site-wide: neutral grey,
   lighter weight (no orange brand accent). On dark backgrounds it flips to a
   light tint so it stays readable. */
.at-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-block;
}
.at-eyebrow-light,
.at-section.dark .at-eyebrow,
.at-final-cta .at-eyebrow,
.at-cta-banner .at-eyebrow { color: rgba(255,255,255,0.6); }

.at-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.015em;
  line-height: 0.98;
  margin: 0;
  color: var(--rubber-black);
  text-transform: uppercase;
}
.at-h2-light { color: #fff; }

/* Content-section heading — lighter, smaller display title used for
   "content beside an image" rows (less shouty than the hero .at-h2). */
.at-content-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 31px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--rubber-black);
  margin: 14px 0 18px;
}
.at-content-title-light { color: #fff; }

/* =========================================================================
   GLOBAL BUTTON STYLE
   ─ All buttons share a flat 8 px corner radius (no more pill).
   ─ .at-btn-primary is the default site-wide button: BLACK with an orange
     "wipe-in from left" hover animation (mirrors the header CTA pattern).
   ─ .at-btn-dark / .at-btn-light / .at-btn-orange remain as alt variants.
   ========================================================================= */
.at-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 220ms ease,
              border-color 280ms cubic-bezier(.32,.72,0,1),
              background-color 220ms ease;
}
.at-btn-sm { font-size: 10px; padding: 10px 18px; }

/* PRIMARY — black button with orange wipe-in hover.
   The text gets its OWN transition layer (.at-btn-primary > span/text content
   wrapped in a flex row), but to keep markup untouched we animate the text
   via the parent's color + a subtle translate3d on the children. */
.at-btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--rubber-black);
  color: #fff;
  border-color: var(--rubber-black);
}
.at-btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--performance-orange);
  transform: translate3d(-101%, 0, 0) skewX(-8deg);
  transform-origin: left center;
  transition: transform 540ms cubic-bezier(.32,.72,0,1);
  z-index: -1;
}
/* Direct children of the button (text + icons) get a smooth shift on hover */
.at-btn-primary > * {
  transition: transform 540ms cubic-bezier(.32,.72,0,1),
              color    340ms cubic-bezier(.32,.72,0,1);
  position: relative;
  z-index: 1;
}
/* Hover changes only colors + the inner content shift (via children).
   No letter-spacing / padding changes — those would resize the button and
   make it "jump" when the button is anchored to one edge (e.g. flex-end). */
.at-btn-primary:hover {
  color: #fff;
  border-color: var(--performance-orange);
}
.at-btn-primary:hover > * {
  transform: translate3d(4px, 0, 0);   /* span/icon slides right inside the fixed frame */
}
.at-btn-primary:hover::before {
  transform: translate3d(0, 0, 0) skewX(0deg);
}

/* Variants — same 8 px radius, simpler hovers */
.at-btn-dark { background: var(--rubber-black); color: #fff; border-color: var(--rubber-black); }
.at-btn-dark:hover { background: #1a1917; }
.at-btn-light { background: #fff; color: var(--rubber-black); border-color: var(--steel-silver); }
.at-btn-light:hover { background: var(--steel-silver-100); }
.at-btn-orange { background: var(--performance-orange); color: #fff; border-color: var(--performance-orange); }
.at-btn-orange:hover { background: var(--performance-orange-700); border-color: var(--performance-orange-700); }
.at-btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.at-btn-outline-light:hover { border-color: #fff; }
.at-btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.at-btn-ghost-dark:hover { border-color: rgba(255,255,255,0.45); }

/* =========================================================================
   PILL TABS — reusable segmented control with a sliding active "pill".
   Same look as the vehicle-compat view toggle, extracted to a shared class.
   Markup:
     <div class="at-pill-tabs" role="tablist">
       <span class="at-pill-tabs__pill" aria-hidden="true"></span>   (optional — main.js inserts one if absent)
       <button class="at-pill-tabs__btn is-active" role="tab">One</button>
       <button class="at-pill-tabs__btn" role="tab">Two</button>
     </div>
   main.js positions the pill to the .is-active button and slides it on click.
   The consumer owns the .is-active state (so it can also switch its panels).
   ========================================================================= */
.at-pill-tabs {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--steel-silver-50, #f8f7f7);
  border: 1px solid var(--steel-silver, #d9d8d8);
  border-radius: 999px;
  max-width: 100%;
}
.at-pill-tabs__pill {
  position: absolute;
  top: 3px;
  left: 0;
  bottom: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--rubber-black, #050505);
  z-index: 0;
  pointer-events: none;
  transform: translateX(0);
}
/* Transitions are enabled only after the first positioning (main.js adds
   .is-ready) so the pill doesn't slide in from the left on load. */
.at-pill-tabs.is-ready .at-pill-tabs__pill {
  transition:
    transform .34s cubic-bezier(.4, .7, .2, 1),
    width .34s cubic-bezier(.4, .7, .2, 1);
}
.at-pill-tabs__btn {
  position: relative;
  z-index: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--rubber-black, #050505);
  opacity: .55;
  transition: color .22s ease, opacity .22s ease;
}
.at-pill-tabs__btn:hover { opacity: .9; }
.at-pill-tabs__btn.is-active { color: #fff; opacity: 1; }
.at-pill-tabs__btn:focus-visible { outline: 2px solid var(--performance-orange, #f26921); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .at-pill-tabs.is-ready .at-pill-tabs__pill { transition: none; }
}

.at-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.at-container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* Arrow chevron in a circle (used in many CTAs) */
.at-arrow-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--performance-orange);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; flex: 0 0 36px;
}
.at-arrow-circle svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------
   TOP NAV (sits over hero — turns glassmorphic on scroll)
   ------------------------------------------------------------------ */
.at-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 32px;
  pointer-events: none;
}
.at-nav-inner {
  pointer-events: auto;
  position: relative; /* positioning context for the wide Shop mega menu */
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto;
  padding-inline: var(--at-gutter);
  padding-top: 6px;
  padding-bottom: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,0);
  border: 1px solid rgba(0,0,0,0);
  box-shadow:
    0 1px 0 rgba(255,255,255,0) inset,
    0 10px 30px rgba(0,0,0,0),
    0 2px 6px rgba(0,0,0,0);
  -webkit-backdrop-filter: blur(0px) saturate(140%);
          backdrop-filter: blur(0px) saturate(140%);
  transition:
    background 520ms cubic-bezier(.32,.72,0,1),
    border-color 520ms cubic-bezier(.32,.72,0,1),
    box-shadow 520ms cubic-bezier(.32,.72,0,1),
    backdrop-filter 520ms cubic-bezier(.32,.72,0,1),
    -webkit-backdrop-filter 520ms cubic-bezier(.32,.72,0,1);
}
.at-nav.is-scrolled .at-nav-inner {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  box-shadow: 0 0 30px 0px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
          backdrop-filter: blur(22px) saturate(160%);
}

/* Brand — keep size constant so the bar doesn't shrink/jump.
   Cross-fade the dark/light wordmarks via opacity. */
.at-nav-brand {
  position: relative;
  display: inline-flex;
  line-height: 0;
}
.at-nav-brand img {
  display: block;
  height: 52px;
  transition: opacity 520ms cubic-bezier(.32,.72,0,1);
}
.at-nav-brand .light-mark {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.at-nav-brand .dark-mark { opacity: 1; }
.at-nav.is-scrolled .at-nav-brand .dark-mark { opacity: 0; }
.at-nav.is-scrolled .at-nav-brand .light-mark { opacity: 1; }

.at-nav-links {
  display: flex; gap: 32px; align-items: center;
}
.at-nav-links > .at-nav-link {
  position: relative;
}
.at-nav-links a {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 520ms cubic-bezier(.32,.72,0,1);
}
.at-nav.is-scrolled .at-nav-links a { color: var(--rubber-black); }
.at-nav-links a:hover { color: var(--performance-orange); }
.at-nav.is-scrolled .at-nav-links a:hover { color: var(--performance-orange); }
.at-nav-links a .caret { font-size: 9px; opacity: 0.6; transition: transform 200ms; }
/* .at-nav-link.is-open a .caret rotates instead — see JS-driven open state */

/* ===== Dropdown ===== */
.at-nav-dropdown {
  position: absolute;
  top: 100%; left: -16px;
  margin-top: 12px;
  min-width: 240px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);
  padding: 10px;
  /* Single-column stack of links. */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(.4,0,.2,1),
              transform 220ms cubic-bezier(.4,0,.2,1);
  z-index: 60;
}
/* Open state — driven by JS safe-polygon menu-aim (see main.js).
   :focus-within keeps keyboard nav working. We drop :hover here so JS
   fully owns open/close: a CSS :hover would close the menu the instant
   the cursor strays even one pixel, fighting the safe-polygon timer. */
.at-nav-link.is-open .at-nav-dropdown,
.at-nav-link:focus-within .at-nav-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.at-nav-link.is-open a .caret { transform: rotate(180deg); }
.at-nav-dropdown::before {
  /* invisible bridge so the cursor can move from link to dropdown */
  content: ""; position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.at-nav-dropdown-link {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--rubber-black) !important;
  text-decoration: none;
  transition: background 160ms, color 160ms;
}
.at-nav-dropdown-link .lbl-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.at-nav-dropdown-link:hover {
  background: var(--steel-silver-100);
  color: var(--performance-orange) !important;
}
.at-nav-dropdown-link .arr {
  width: 14px; height: 14px;
  color: var(--fg-3);
  transition: transform 160ms, color 160ms;
}
.at-nav-dropdown-link:hover .arr {
  transform: translateX(2px);
  color: var(--performance-orange);
}

/* ===== Shop MEGA dropdown (taxonomy-driven; inc/shop-mega-menu.php) ===== */
/* The mega item opts out of link-relative positioning so its (wide) dropdown
   is anchored to .at-nav-inner's right edge instead of the Shop link, which
   sits mid-cluster and would otherwise push the panel off-screen. */
.at-nav-links > .at-nav-link.at-nav-link--mega { position: static; }
.at-nav-dropdown--mega {
  /* Wide three-pane panel, right-aligned to the nav container (near the cart),
     so it has room to be wide while staying inside the viewport. */
  top: 100%;
  left: auto; right: var(--at-gutter, 16px);
  width: min(980px, calc(100vw - 40px));
  min-width: 0;
  padding: 0;
  display: block;
  transform-origin: top right;
}
.at-mega {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 360px;
  align-items: stretch;
  min-height: 320px;
}
/* Left: category list */
.at-mega-cats {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.at-mega-cat {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--rubber-black) !important;
  text-decoration: none;
  transition: background 160ms, color 160ms;
}
.at-mega-cat .arr {
  width: 15px; height: 15px;
  color: var(--fg-3);
  opacity: 0;
  transform: translateX(-3px);
  transition: transform 160ms, color 160ms, opacity 160ms;
}
.at-mega-cat:hover,
.at-mega-cat.is-active {
  background: var(--steel-silver-100);
  color: var(--performance-orange) !important;
}
.at-mega-cat.is-active .arr,
.at-mega-cat:hover .arr {
  opacity: 1;
  transform: translateX(0);
  color: var(--performance-orange);
}
/* Middle: the hovered category's subcategories */
.at-mega-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
}
.at-mega-panel { display: none; }
.at-mega-panel.is-active {
  display: flex;
  flex: 1 1 auto; /* fill the detail column so .at-mega-all sits at the bottom */
  flex-direction: column;
  gap: 10px;
  animation: at-mega-fade 220ms cubic-bezier(.4,0,.2,1);
}
@keyframes at-mega-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.at-mega-desc {
  margin: 0;
  font-size: 12.5px; line-height: 1.5;
  color: var(--fg-2);
}
.at-mega-subs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.at-mega-sub {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12.5px; font-weight: 500;
  color: var(--rubber-black) !important;
  text-decoration: none;
  transition: background 140ms, color 140ms;
}
.at-mega-sub:hover {
  background: var(--steel-silver-100);
  color: var(--performance-orange) !important;
}
.at-mega-sub-count {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  color: var(--fg-3);
}
.at-mega-sub:hover .at-mega-sub-count { color: var(--performance-orange); }
.at-mega-all {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--fg-2) !important;
  text-decoration: none;
  transition: color 160ms;
}
.at-mega-all:hover { color: var(--rubber-black) !important; }
.at-mega-all .arr { width: 15px; height: 15px; transition: transform 160ms; }
.at-mega-all:hover .arr { transform: translateX(3px); }
/* Right: representative image (swaps on hover) */
.at-mega-media {
  padding: 18px;
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid rgba(0,0,0,0.06);
}
.at-mega-img {
  width: 100%; height: 100%;
  min-height: 260px;
  /* Always show the full image, never cropped. */
  object-fit: contain;
  border-radius: 14px;
  background: var(--steel-silver-100);
  transition: opacity 180ms ease;
}
.at-mega-img.is-swapping { opacity: 0; }

.at-nav-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.at-nav-utility {
  display: flex; gap: 22px;
  align-items: center;
  font-family: var(--font-sans); font-size: 12px;
  color: rgba(255,255,255,0.78);
  transition: color 320ms cubic-bezier(.32,.72,0,1), max-height 320ms cubic-bezier(.32,.72,0,1), opacity 240ms ease, margin 320ms ease;
  max-height: 24px; opacity: 1; overflow: hidden;
}
.at-nav-utility a { color: inherit; text-decoration: none; }
.at-nav-utility a:hover { color: #fff; }
.at-nav.is-scrolled .at-nav-utility a { color: var(--rubber-black); opacity: 0.7; }
.at-nav.is-scrolled .at-nav-utility a:hover { opacity: 1; }
.at-nav-actions-row { display: flex; gap: 12px; align-items: center; }
.at-nav-login {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: #fff; text-decoration: none;
  transition: color 520ms cubic-bezier(.32,.72,0,1);
}
.at-nav.is-scrolled .at-nav-login { color: var(--rubber-black); }

/* Slot wrapper for the "Become a dealer" CTA. Reserves the width of the
   hover state (wider letter-spacing) so the button can expand in place
   without nudging the rest of the nav. The ghost ::after carries the
   same label at the expanded tracking and defines the grid cell width;
   the real button overlays it. */
.at-nav-cta-slot {
  display: inline-grid;
}
.at-nav-cta-slot > .at-btn,
.at-nav-cta-slot::after {
  grid-area: 1 / 1;
}
.at-nav-cta-slot::after {
  content: attr(data-label);
  /* Match .at-btn / .at-btn-sm typography exactly, but at the hover
     letter-spacing so the slot is sized to the widest state. */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;            /* .at-btn-sm */
  text-transform: uppercase;
  letter-spacing: 0.22em;     /* hover state */
  padding: 10px 18px;         /* .at-btn-sm */
  white-space: nowrap;
  visibility: hidden;
  pointer-events: none;
  /* Match the button's border so widths align to the pixel. */
  border: 1px solid transparent;
  border-radius: 6px;
}

/* "Become a dealer" button — ghost (transparent + white border) over the
   hero; reverts to the filled orange primary once the sticky bar appears.
   Hover: an orange wipe slides in from the left, the border picks up orange,
   and letter-spacing eases out. No vertical jump. */
.at-nav .at-nav-actions .at-btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  transition:
    color 380ms cubic-bezier(.32,.72,0,1),
    border-color 420ms cubic-bezier(.32,.72,0,1),
    border-radius 320ms cubic-bezier(.32,.72,0,1),
    letter-spacing 520ms cubic-bezier(.32,.72,0,1);
}
.at-nav .at-nav-actions .at-btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--performance-orange);
  transform: translate3d(-103%, 0, 0) skewX(-8deg);
  transform-origin: left center;
  transition: transform 620ms cubic-bezier(.32,.72,0,1);
  z-index: -1;
}
.at-nav .at-nav-actions .at-btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: var(--performance-orange);
  letter-spacing: 0.22em;
  transform: none;
}
.at-nav .at-nav-actions .at-btn-primary:hover::before {
  transform: translate3d(0, 0, 0) skewX(0deg);
}
.at-nav.is-scrolled .at-nav-actions .at-btn-primary {
  background: var(--rubber-black);
  color: #fff;
  border-color: var(--rubber-black);
  border-radius: 8px;
}
.at-nav.is-scrolled .at-nav-actions .at-btn-primary:hover {
  background: var(--rubber-black);
  border-color: var(--performance-orange);
  transform: none;
}

/* Add top padding to hero so the fixed nav doesn't cover content */
.at-hero { padding-top: 88px; }

/* ============================================================
   HERO — full-width rounded card with nav inside.
   Bottom strip floats centered, overlapping the hero bottom.
   ============================================================ */
.at-hero {
  position: relative;
  background: #fff;
  padding: 15px 32px;
  overflow: visible;
}
.at-hero-inner {
  max-width: 1860px; margin: 0 auto;
  position: relative;
}

/* Hero card */
.at-hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1860 / 1050;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 600px 380px at 22% 45%, rgba(0,0,0,0.45) 0%, transparent 65%),
    url('../img/photos/hero-ecu.jpg') center/cover no-repeat,
    var(--surface-dark);
  /* Shape carved by an inline <clipPath> in the Hero JSX so it can be
     morphed on load (rectangle → cutout). See clipPath#hero-clip. */
  clip-path: url(#hero-clip);
}
.at-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0) 75%);
  pointer-events: none;
}

/* Hero content (left) — inset to a centered 1440px column.
   Background photo still spans the full at-hero-photo (up to 1860px). */
.at-hero-content {
  position: absolute;
  left: max(64px, calc(50% - 656px));
  top: 200px;
  z-index: 2;
  max-width: 540px;
}
.at-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.at-hero-sub {
  font-size: 13px; line-height: 1.5;
  color: var(--steel-silver);
  max-width: 360px;
  margin: 0;
}

/* Circuit-line accent — bottom-left corner of hero (PNG with alpha) */
.at-hero-accent {
  position: absolute;
  bottom: 0; left: 0;
  width: 260px;
  height: 250px;
  z-index: 1;
  background: url('../img/illustrations/hero-bottom-circuit.png') left bottom / contain no-repeat;
  pointer-events: none;
}
.at-hero-accent::before,
.at-hero-accent::after { content: none; display: none; }

/* Right side CTA stack — three rows with animated curved connector lines. */
.at-hero-ctas {
  position: absolute;
  top: 180px;
  right: max(56px, calc(50% - 664px));
  display: flex; flex-direction: column; gap: 25px;
  z-index: 3;
  width: 300px;
}
.at-hero-cta {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  column-gap: 12px;
  align-items: center;
  padding: 0 4px 9px;
  text-decoration: none;
  color: #fff;
  opacity: 0.7;
  transition: color 320ms cubic-bezier(.32,.72,0,1),
              opacity 320ms cubic-bezier(.32,.72,0,1);
}
.at-hero-cta:hover { opacity: 1; }
.at-hero-cta-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: color 320ms cubic-bezier(.32,.72,0,1);
}
.at-hero-cta-icon svg { width: 100%; height: 100%; }
.at-hero-cta-icon svg .accent { stroke: var(--performance-orange); transition: stroke 320ms cubic-bezier(.32,.72,0,1); }
.at-hero-cta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.at-hero-cta-label {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: -0.005em; line-height: 1.1;
  color: #fff;
  transition: color 320ms cubic-bezier(.32,.72,0,1),
              letter-spacing 520ms cubic-bezier(.32,.72,0,1);
}
.at-hero-cta-sub {
  font-family: var(--font-sans); font-size: 11px;
  color: rgba(255,255,255,0.65);
  transition: color 320ms cubic-bezier(.32,.72,0,1),
              letter-spacing 520ms cubic-bezier(.32,.72,0,1);
}
.at-hero-cta:hover .at-hero-cta-label { letter-spacing: 0.015em; }
.at-hero-cta:hover .at-hero-cta-sub   { letter-spacing: 0.03em; }
.at-hero-cta-arrow {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  align-self: start;
  color: rgba(255,255,255,0.8);
  transition: color 320ms cubic-bezier(.32,.72,0,1), transform 520ms cubic-bezier(.32,.72,0,1);
}
.at-hero-cta-arrow svg { width: 100%; height: 100%; }

/* Animated connector line — sits at the bottom edge of the card, full width.
   Two paths overlap:
   - .base  draws on initial load and then stays at its resting stroke,
            unchanged on hover (per design).
   - .hover sits invisible (stroke-dashoffset: 1) by default and draws
            in left-to-right on row hover. */
.at-hero-cta-line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 22px;
  pointer-events: none;
  overflow: visible;
}
.at-hero-cta-line .base {
  fill: none;
  stroke: rgba(255,255,255,0.5);
  stroke-width: 1;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: hero-cta-draw 1400ms cubic-bezier(.22,.61,.36,1) forwards;
}
.at-hero-cta-line .hover {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 700ms cubic-bezier(.22,.61,.36,1);
}
.at-hero-cta:hover .at-hero-cta-line .hover { stroke-dashoffset: 0; }
/* Stagger the BASE line draws so they cascade with the cards' rise-in */
.at-hero-ctas .at-hero-cta:nth-child(1) .at-hero-cta-line .base { animation-delay: 700ms; }
.at-hero-ctas .at-hero-cta:nth-child(2) .at-hero-cta-line .base { animation-delay: 900ms; }
.at-hero-ctas .at-hero-cta:nth-child(3) .at-hero-cta-line .base { animation-delay: 1100ms; }
@keyframes hero-cta-draw {
  to { stroke-dashoffset: 0; }
}

/* Hover feedback — content (icon, text, arrow) fades from 0.85 → 1 with
   ease; arrow also nudges up-right. The two SVG line paths handle their
   own draw-in (base) and grow-on-hover (hover) behavior. */
.at-hero-cta-icon,
.at-hero-cta-text {
  opacity: 1;
}
.at-hero-cta-arrow {
  opacity: 0.85;
  transition: color 320ms cubic-bezier(.32,.72,0,1),
              opacity 320ms cubic-bezier(.22,.61,.36,1),
              transform 520ms cubic-bezier(.32,.72,0,1);
}
.at-hero-cta:hover .at-hero-cta-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

@media (prefers-reduced-motion: reduce) {
  .at-hero-cta-line .base { animation: none; stroke-dashoffset: 0; }
  .at-hero-cta-line .hover { transition: none; }
}

/* Last CTA (direction="down") flips its connector + padding so the line
   sits at the top of the row and the breathing room is above it. */
.at-hero-cta.dir-down {
  padding: 9px 4px 0;
}
.at-hero-cta.dir-down .at-hero-cta-line {
  top: 0;
  bottom: auto;
}
/* On the down-direction CTA, the arrow detaches from the grid and pins
   to the top-right so it sits above the curved connector line. */
.at-hero-cta.dir-down .at-hero-cta-arrow {
  position: absolute;
  top: 0;
  right: 0;
}

/* =============================================================
   FLOATING BOTTOM FEATURE STRIP
   Sits inside `.at-hero-inner`, position absolute relative to it.
   Overlaps the hero photo's bottom edge by ~48px.
   White curved "pill" background gives it the negative-space dock.
   ============================================================= */
.at-hero-strip {
  position: absolute;
  /* Fill the bottom-right notch area. Tiny inset on top + left
     to keep equal breathing room against the notch edges; flush right
     and bottom against the container. Notch geom (SVG mask): x:727→1799,
     y:909→1050 of 1860×1050 (39.1%→96.7%, 86.6%→100%). */
  left: 33.1%;
  right: 0;
  top: 87.4%;
  bottom: 0;
  z-index: 4;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.at-hero-strip-card {
  flex: 1;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 200ms, filter 200ms;
  height: 100%;
  min-height: 0;
  position: relative;
}
.at-hero-strip-card:hover { transform: translateY(-2px); filter: brightness(1.05); }
/* Photo-only cards are informational — disable the hover lift entirely. */
.at-hero-strip-card.with-photo,
.at-hero-strip-card.with-photo:hover {
  transform: none;
  filter: none;
  cursor: default;
}

/* Card 1: 20+ YEARS — sized to its shape so it doesn't reserve empty
   space to the left of the curve. Aspect-ratio matches the SVG (216×135). */
.at-hero-strip-card.years {
  flex: 0 0 auto;
  width: auto;
  aspect-ratio: 216 / 135;
  height: 100%;
  background: var(--surface-dark);
  color: #fff;
  border-radius: 0;
  -webkit-mask: url('../img/illustrations/shape-20y.svg') center/100% 100% no-repeat;
          mask: url('../img/illustrations/shape-20y.svg') center/100% 100% no-repeat;
  padding: 0 18px 0 56px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 6px;
}
.at-hero-strip-card.years .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 32px; letter-spacing: -0.02em; line-height: 1;
}
.at-hero-strip-card.years .num sup {
  font-size: 16px; vertical-align: super; opacity: 0.85; margin-left: 1px;
}
.at-hero-strip-card.years .lbl {
  font-family: var(--font-display); font-weight: 700;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}
.at-hero-strip-card.years .lbl small {
  display: block; opacity: 0.55; margin-top: 2px;
  font-weight: 500; letter-spacing: 0.18em;
}

/* Cards with photo on left, content right.
   Photo is inset (padding around it) and rounded; card itself acts as a tray. */
.at-hero-strip-card.with-photo {
  background: var(--steel-silver-100);
  align-items: stretch;
  padding: 8px;
  gap: 12px;
}
.at-hero-strip-card.with-photo .photo {
  flex: 0 0 30%;
  align-self: stretch;
  background-size: cover; background-position: center;
  border-radius: 8px;
}
.at-hero-strip-card.with-photo .content {
  flex: 1;
  padding: 4px 10px 4px 4px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px;
}

/* Variant: the 3rd card (Engineer Support) — white card with a light border */
.at-hero-strip-card.with-photo.outlined {
  background: #fff;
  border: 1px solid var(--border-2, rgba(0,0,0,0.08));
}
.at-hero-strip-card.with-photo .eyebrow {
  font-family: var(--font-display); font-weight: 800;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rubber-black);
}
.at-hero-strip-card.with-photo .title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: -0.005em; line-height: 1.15;
  color: var(--rubber-black);
  margin: 0;
}
.at-hero-strip-card.with-photo .listrow {
  font-family: var(--font-sans); font-size: 10px;
  color: var(--fg-2); line-height: 1.4;
  margin-top: 2px;
}
.at-hero-strip-card.with-photo .listrow div {
  display: flex; align-items: center; gap: 6px;
}

/* Card 4: One platform — real orange-streak photo background */
.at-hero-strip-card.platform {
  background: var(--rubber-black);
  color: #fff;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.at-hero-strip-card.platform::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/photos/orange-streak-card.jpg') center/cover no-repeat;
  transform: scale(1.001);
  transition: transform 760ms cubic-bezier(.32,.72,0,1);
  z-index: 0;
}
.at-hero-strip-card.platform::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(5,5,5,0.78) 0%, rgba(5,5,5,0.45) 45%, rgba(5,5,5,0.15) 100%);
  z-index: 1;
  pointer-events: none;
}
.at-hero-strip-card.platform:hover::before {
  transform: scale(1.06);
}
.at-hero-strip-card.platform .content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 14px 18px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px;
}
.at-hero-strip-card.platform .eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
}
.at-hero-strip-card.platform .link {
  font-family: var(--font-sans); font-size: 11px;
  color: #fff; text-decoration: underline; text-underline-offset: 3px;
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .at-hero-photo { height: 580px; aspect-ratio: auto; }
  .at-hero-content { top: 120px; left: 40px; width:calc(100% - 330px); }
  .at-hero-ctas { top: 120px; right: 32px; width: 240px; }
  .at-hero-strip { bottom: 0; }
}
@media (max-width: 768px) {
  .at-hero-photo {
    height: 540px;
    aspect-ratio: auto;
    -webkit-mask: none;
            mask: none;
    border-radius: clamp(14px, 3vw, 22px);
  }
  /* Mobile overlay: re-orient the hero gradient to a VERTICAL wash — darker at
     the bottom, fading to transparent at the top (the desktop 120deg diagonal
     reads wrong on a tall portrait crop). Stronger/taller than before so the
     text stays legible over a busy photo. */
  .at-hero-photo::after {
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 80%);
  }
  /* Bottom-left circuit accent — much smaller on phones so it doesn't dominate. */
  .at-hero-accent { width: 120px; height: 116px; }
  .at-hero-content { position: static; padding: 120px 24px 24px; max-width: none; width:100%; }
  .at-hero-ctas { position: static; width: auto; padding: 0 24px 24px; }
  /* Strip moves below the hero on mobile — stacked, full width, each
     card on its own row. */
  .at-hero-strip {
    position: static; transform: none;
    width: auto; margin: 16px;
    border-radius: 0;
    display: flex; flex-direction: column;
    gap: 10px;
    overflow: visible;
    padding: 0;
  }
  .at-hero-strip-card,
  .at-hero-strip-card.years {
    flex: 1 1 auto;
    width: 100%;
    min-height: 76px;
    aspect-ratio: auto;
    height: auto;
    scroll-snap-align: none;
  }
  /* Restore the years card to a normal block on mobile (its desktop
     SVG mask would only show the curved silhouette at narrow widths). */
  .at-hero-strip-card.years {
    -webkit-mask: none;
            mask: none;
    background: var(--surface-dark);
    border-radius: 14px;
    padding: 20px 22px;
  }
}

/* =============================================================
   HERO ENTRANCE — cascading Apple-style reveal on initial paint.
   - Shape rises into place with a soft scale+fade.
   - Title, subtitle, CTAs and strip cards cascade in sequence
     using a single ease (cubic-bezier(.32,.72,0,1)) and tight,
     overlapping delays so the section settles in one breath.
   - All states use `both` fill so the resting state holds.
   - Honors prefers-reduced-motion.
   ============================================================= */
@keyframes at-rise {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes at-rise-sm {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes at-strip-cascade {
  0%   { opacity: 0; transform: translate3d(0, 36px, 0) scale(0.94); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes at-rise-from-right {
  from { opacity: 0; transform: translate3d(18px, 0, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes at-shape-in {
  0%   { opacity: 0; transform: scale(1.06); filter: blur(8px) brightness(0.7); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1);    filter: blur(0)   brightness(1); }
}

.at-hero-photo {
  animation: at-shape-in 1800ms cubic-bezier(.16, 1, .3, 1) both;
  transform-origin: 50% 50%;
}

.at-hero-title {
  animation: at-rise 900ms cubic-bezier(.32,.72,0,1) 220ms both;
}
.at-hero-sub {
  animation: at-rise 900ms cubic-bezier(.32,.72,0,1) 340ms both;
}

.at-hero-ctas .at-hero-cta {
  animation: at-rise-from-right 780ms cubic-bezier(.32,.72,0,1) both;
}
.at-hero-ctas .at-hero-cta:nth-child(1) { animation-delay: 460ms; }
.at-hero-ctas .at-hero-cta:nth-child(2) { animation-delay: 560ms; }
.at-hero-ctas .at-hero-cta:nth-child(3) { animation-delay: 660ms; }

/* Strip cards cascade in AFTER the hero copy + CTAs have settled.
   Tight per-card stagger (180ms) with a longer 1000ms ease so each
   card visibly arrives behind the previous one — true waterfall. */
.at-hero-strip .at-hero-strip-card {
  animation: at-strip-cascade 1000ms cubic-bezier(.22,.61,.36,1) both;
  transform-origin: 50% 100%;
}
.at-hero-strip .at-hero-strip-card:nth-child(1) { animation-delay: 2000ms; }
.at-hero-strip .at-hero-strip-card:nth-child(2) { animation-delay: 2180ms; }
.at-hero-strip .at-hero-strip-card:nth-child(3) { animation-delay: 2360ms; }
.at-hero-strip .at-hero-strip-card:nth-child(4) { animation-delay: 2540ms; }

/* Nav fades in after the hero settles so it doesn't compete. */
.at-nav {
  animation: at-rise-sm 700ms cubic-bezier(.32,.72,0,1) 120ms both;
}

@media (prefers-reduced-motion: reduce) {
  .at-hero-photo,
  .at-hero-title,
  .at-hero-sub,
  .at-hero-ctas .at-hero-cta,
  .at-hero-strip .at-hero-strip-card,
  .at-nav {
    animation: none !important;
  }
}

/* ── Currency switcher (WOOCS) — flag dropdown in the utility row ────── */
.at-nav-currency { position: relative; display: inline-flex; align-items: center; margin: 0; }
.at-nav-currency-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; outline: 0; padding: 0; margin: 0;
  font-family: var(--font-sans); font-size: 12px; line-height: 24px;
  color: inherit; cursor: pointer;
}
.at-nav-currency-flag {
  width: 28px; height: 14px; border-radius: 2px; object-fit: cover; display: block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.at-nav-currency-code { letter-spacing: 0.02em; }
.at-nav-currency-caret { transition: transform 220ms cubic-bezier(.32,.72,0,1); }
.at-nav-currency-toggle[aria-expanded="true"] .at-nav-currency-caret { transform: rotate(180deg); }
.at-nav-currency-toggle:focus-visible { outline: 1px solid var(--performance-orange); outline-offset: 3px; border-radius: 2px; }

/* Open menu is position:fixed (JS sets top/left) so the utility row's
   overflow:hidden + max-height never clips it. */
.at-nav-currency-menu {
  position: fixed; z-index: 60; min-width: 116px; margin: 0; padding: 6px;
  list-style: none; border-radius: 10px;
  background: #fff; box-shadow: 0 12px 34px rgba(15,17,21,0.18), 0 0 0 1px rgba(15,17,21,0.06);
}
.at-nav-currency-menu[hidden] { display: none; }
.at-nav-currency-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: transparent; border: 0; cursor: pointer;
  padding: 7px 10px; border-radius: 6px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--rubber-black); text-align: left;
}
.at-nav-currency-item:hover { background: rgba(15,17,21,0.05); }
.at-nav-currency-item.is-active { background: rgba(15,17,21,0.06); }
.at-nav-currency-item .at-nav-currency-flag { width: 28px; height: 14px; }

/* Toggle colour follows the nav text colour across states (mirrors .at-nav-login).
   The code span + caret inherit currentColor from the toggle. */
.at-nav.is-scrolled .at-nav-currency-toggle,
body.at-nav-on-light .at-nav-currency-toggle,
body.bad-nav-light .at-nav .at-nav-currency-toggle { color: var(--rubber-black); }
/* Dark-nav pages stay white even when scrolled (mirrors .at-nav-login). */
body.bad-nav-dark .at-nav.is-scrolled .at-nav-currency-toggle { color: #fff; }

/* Mobile panel footer: group the two UTILITY controls (currency + cart) into a
   single two-up row of twin chips, with the primary CTA + secondary login
   stacked below — instead of four full-width items all stacked. */
.at-mobile-nav-foot__utility { display: flex; gap: 10px; margin-bottom: 2px; }
.at-mobile-nav-foot__utility > * { flex: 1 1 0; min-width: 0; margin: 0; }
.at-mobile-nav-currency .at-nav-currency { display: flex; width: 100%; }
.at-mobile-nav-foot__utility .at-nav-currency-toggle,
.at-mobile-nav-foot__utility .at-mobile-nav-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: var(--pure-white, #fff);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--rubber-black);
}
.at-mobile-nav-foot__utility .at-nav-currency-toggle:hover,
.at-mobile-nav-foot__utility .at-mobile-nav-cart:hover {
  color: var(--performance-orange);
  border-color: var(--performance-orange);
}
