/* AltTune marketing site v3 — Mid sections */

/* ------------------------------------------------------------------
   SECTION: Trusted-by logos (infinite horizontal scroller)
   ------------------------------------------------------------------ */
.at-trusted {
  background: #fff;
  padding: 56px 32px 48px;
  overflow: hidden;
  max-width: 1408px;
  margin: 0 auto;
}
.at-trusted-heading {
  text-align: center;
  font-family: var(--font-display); font-weight: 500;
  font-size: 12px; letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 auto 32px;
}
.at-trusted-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* fade edges so logos appear/disappear smoothly */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.at-trusted-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: trustedScroll 40s linear infinite;
  /* GPU-composite the whole track so the long element scrolls smoothly on
     mobile (avoids the per-frame repaint jank that read as "jumping"). */
  will-change: transform;
  backface-visibility: hidden;
}
/* Two IDENTICAL groups sit side by side; translating the track by exactly -50%
   lands group B precisely where group A started, so the loop is seamless (no
   jump-back). Each group is one full copy of the logo set. */
.at-trusted-group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
/* Spacing via margin (not `gap`) so the gap between the two groups equals the
   inter-logo gap — keeping the wrap perfectly seamless. */
.at-trusted-group > * { margin-right: 64px; }
/* Pause on hover ONLY on devices with a real pointer. On touch screens a tap
   registers as a sticky :hover that would freeze / stutter the marquee. */
@media (hover: hover) {
  .at-trusted:hover .at-trusted-track { animation-play-state: paused; }
}
@keyframes trustedScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .at-trusted-track { animation: none; }
}
.at-trusted-track img {
  height: 52px; width: auto;
  opacity: 0.78;
  filter: grayscale(1);
  transition: opacity 200ms, filter 200ms;
  flex: 0 0 auto;
}
.at-trusted-track img:hover { opacity: 1; filter: grayscale(0); }
.at-trusted-track a { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.at-trusted-track a:hover img { opacity: 1; filter: grayscale(0); }
.at-trusted-track .ph {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: 0.08em;
  color: rgba(0,0,0,0.42); text-transform: uppercase;
  opacity: 0.75; white-space: nowrap;
  flex: 0 0 auto;
}
.at-trusted-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--steel-silver-100); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 8px 16px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-2); white-space: nowrap;
  flex: 0 0 auto;
}
.at-trusted-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--performance-orange);
}

/* ------------------------------------------------------------------
   SECTION: ENGINEERING-GRADE ECU CALIBRATION (split)
   ------------------------------------------------------------------ */
.at-pitch {
  background: var(--steel-silver-100);
  padding: 80px 0;
}
.at-pitch-inner {
  max-width: 1408px; margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}
.at-pitch-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3, #8D8D8D);
  margin-bottom: 18px;
}
.at-pitch-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.05; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--rubber-black); margin: 0;
  display: inline-flex; flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.at-pitch-title .at-pitch-wave {
  display: inline-block;
  height: 22px; width: 100px;
  flex: 0 0 auto;
}

/* Pitch-title wave: draws the zigzag stroke in, then pops the two dots
   into place. Triggered when the title's parent gets `.is-in` from the
   scroll-reveal observer. The path uses pathLength="1" so the keyframe
   math is trivial (offset 1 → 0 fills the whole line, no matter what
   the path's actual length is). */
.at-pitch-wave-path {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.at-pitch-wave-dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
}
.reveal.is-in .at-pitch-wave-path {
  animation: at-pitch-wave-draw 1100ms cubic-bezier(.22,.61,.36,1) 200ms forwards;
}
.reveal.is-in .at-pitch-wave-dot-start {
  animation: at-pitch-wave-pop 520ms cubic-bezier(.34, 1.7, .64, 1) 260ms forwards;
}
.reveal.is-in .at-pitch-wave-dot-end {
  animation: at-pitch-wave-pop 520ms cubic-bezier(.34, 1.7, .64, 1) 1180ms forwards;
}
@keyframes at-pitch-wave-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes at-pitch-wave-pop {
  0%   { transform: scale(0);    opacity: 0; }
  60%  { transform: scale(1.45); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .at-pitch-wave-path { stroke-dashoffset: 0; animation: none; }
  .at-pitch-wave-dot  { transform: scale(1); opacity: 1; animation: none; }
}
.at-pitch-body p {
  font-size: 16px; line-height: 1.6;
  color: var(--fg-2); margin: 8px 0 0;
}

/* ------------------------------------------------------------------
   SECTION: TURN YOUR WORKSHOP INTO A TUNING BUSINESS
   Black rounded card. White panel in top-right with NOTCH shape
   that cuts back into the black. Real PNG process illustration
   fills the dark area, with 01/02/03 step labels overlaid.
   ------------------------------------------------------------------ */
.at-workflow {
  background: #fff;
  padding: 64px 0 80px;
}
.at-workflow-inner {
  max-width: 1408px; margin: 0 auto; padding: 0 32px;
}

/* Outer black card */
.at-workflow-card {
  position: relative;
  background: var(--surface-dark);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1408 / 760;
  min-height: 540px;
}

/* The process illustration SVG sits across the whole canvas */
.at-workflow-illu {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  z-index: 1;
  display: flex; align-items: center; justify-content: flex-start;
}
.proc-svg-wrap {
  width: 88%;
  max-width: 1100px;
  margin: 0;
}
@media (max-width: 1100px) {
  .at-workflow-illu { justify-content: center; }
  .proc-svg-wrap { margin: 0 auto; max-width: 920px; }
}
.proc-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------
   Process illustration animation system
   Faster, fluid cascade:
   - Step images + labels rise in pairs
   - For each connector: end-dot pops, path grows end→start, start-dot pops
   - Once a connector has drawn, its chevrons start pulsing in sequence
     to show flow direction, and dashes march continuously.
   ------------------------------------------------------------------ */
.proc-svg-wrap .proc-illu,
.proc-svg-wrap .proc-text,
.proc-svg-wrap .proc-connector,
.proc-svg-wrap .proc-dot,
.proc-svg-wrap .proc-chevron {
  transform-box: fill-box;
  transform-origin: center;
}

/* Step 1: illustration + label rise in together. */
.proc-svg-wrap .proc-illu,
.proc-svg-wrap .proc-text {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 500ms cubic-bezier(.22,.61,.36,1),
    transform 500ms cubic-bezier(.22,.61,.36,1);
}
.proc-svg-wrap.proc-active .proc-illu-1,
.proc-svg-wrap.proc-active .proc-text-1 { transition-delay: 0ms;   }
.proc-svg-wrap.proc-active .proc-illu-2,
.proc-svg-wrap.proc-active .proc-text-2 { transition-delay: 350ms; }
.proc-svg-wrap.proc-active .proc-illu-3,
.proc-svg-wrap.proc-active .proc-text-3 { transition-delay: 700ms; }
.proc-svg-wrap.proc-active .proc-illu,
.proc-svg-wrap.proc-active .proc-text { opacity: 1; transform: translateY(0); }

/* Endpoint circles pop with overshoot. */
.proc-svg-wrap .proc-dot {
  opacity: 0;
  transform: scale(0);
  transition:
    opacity 260ms cubic-bezier(.34,1.56,.64,1),
    transform 320ms cubic-bezier(.34,1.56,.64,1);
}
.proc-svg-wrap.proc-active .proc-dot { opacity: 1; transform: scale(1); }

/* Connector reveal — clip-path right-to-left (`.proc-rev`). */
.proc-svg-wrap .proc-connector {
  clip-path: inset(-4px 100% -4px 0);
  transition: clip-path 600ms cubic-bezier(.22,.61,.36,1);
}
.proc-svg-wrap .proc-connector.proc-rev {
  clip-path: inset(-4px 0 -4px 100%);
}
.proc-svg-wrap.proc-active .proc-connector { clip-path: inset(-4px 0 -4px 0); }

/* Sequential per-connector timing (end-dot → path → start-dot).
   Order: 2 → 3 → 4 → 1 (long swoop, last).
   Each step now lasts ~800ms total vs ~1200ms before. */
.proc-svg-wrap.proc-active .proc-dot-2.proc-dot-end   { transition-delay: 1200ms; }
.proc-svg-wrap.proc-active .proc-connector-2          { transition-delay: 1400ms; }
.proc-svg-wrap.proc-active .proc-dot-2.proc-dot-start { transition-delay: 2000ms; }

.proc-svg-wrap.proc-active .proc-dot-3.proc-dot-end   { transition-delay: 2200ms; }
.proc-svg-wrap.proc-active .proc-connector-3          { transition-delay: 2400ms; }
.proc-svg-wrap.proc-active .proc-dot-3.proc-dot-start { transition-delay: 3000ms; }

.proc-svg-wrap.proc-active .proc-dot-4.proc-dot-end   { transition-delay: 3200ms; }
.proc-svg-wrap.proc-active .proc-connector-4          { transition-delay: 3400ms; }
.proc-svg-wrap.proc-active .proc-dot-4.proc-dot-start { transition-delay: 4000ms; }

.proc-svg-wrap.proc-active .proc-dot-1.proc-dot-end   { transition-delay: 4200ms; }
.proc-svg-wrap.proc-active .proc-connector-1          { transition-delay: 4400ms; }
.proc-svg-wrap.proc-active .proc-dot-1.proc-dot-start { transition-delay: 5300ms; }

/* ---- Chevrons -------------------------------------------------------
   Each chevron arrow sits at a fixed position along its connector.
   After the connector has drawn in, the chevrons pulse in sequence
   (end → start) and translate slightly along their flow direction,
   giving the impression of data flowing through the diagram. */
.proc-svg-wrap .proc-chevron {
  opacity: 0;
  transition: opacity 200ms cubic-bezier(.22,.61,.36,1);
}
.proc-svg-wrap.proc-active .proc-chevron { opacity: 0.45; }

@keyframes proc-chevron-pulse {
  0%, 100% { opacity: 0.35; transform: translate(0, 0) scale(1); }
  45%      { opacity: 1;    transform: translate(-2px, 1px) scale(1.08); }
}
.proc-svg-wrap.proc-active .proc-chevron {
  animation: proc-chevron-pulse 1400ms cubic-bezier(.45,0,.55,1) infinite;
}
/* Per-chevron stagger — connector 2 (2 chevrons), starts at ~2000ms.
   Animates along path direction: start-side chevron first → end-side. */
.proc-svg-wrap.proc-active .proc-chevron-c2.proc-chevron-2 { animation-delay: 2000ms; }
.proc-svg-wrap.proc-active .proc-chevron-c2.proc-chevron-1 { animation-delay: 2200ms; }
/* Connector 3 (3 chevrons), from ~3000ms */
.proc-svg-wrap.proc-active .proc-chevron-c3.proc-chevron-1 { animation-delay: 3000ms; }
.proc-svg-wrap.proc-active .proc-chevron-c3.proc-chevron-2 { animation-delay: 3200ms; }
.proc-svg-wrap.proc-active .proc-chevron-c3.proc-chevron-3 { animation-delay: 3400ms; }
/* Connector 4 (3 chevrons), from ~4000ms */
.proc-svg-wrap.proc-active .proc-chevron-c4.proc-chevron-1 { animation-delay: 4000ms; }
.proc-svg-wrap.proc-active .proc-chevron-c4.proc-chevron-2 { animation-delay: 4200ms; }
.proc-svg-wrap.proc-active .proc-chevron-c4.proc-chevron-3 { animation-delay: 4400ms; }
/* Connector 1 (5 chevrons along the swoop), from ~5300ms */
.proc-svg-wrap.proc-active .proc-chevron-c1.proc-chevron-1 { animation-delay: 5300ms; }
.proc-svg-wrap.proc-active .proc-chevron-c1.proc-chevron-2 { animation-delay: 5450ms; }
.proc-svg-wrap.proc-active .proc-chevron-c1.proc-chevron-3 { animation-delay: 5600ms; }
.proc-svg-wrap.proc-active .proc-chevron-c1.proc-chevron-4 { animation-delay: 5750ms; }
.proc-svg-wrap.proc-active .proc-chevron-c1.proc-chevron-5 { animation-delay: 5900ms; }

/* --- Path-following chevron experiment --------------------------
   ".proc-chevron-travel" chevrons ride along their connector path
   instead of pulsing in place. Each one shares the same shared
   geometry (chevron drawn centered at origin, 16×9-ish corner),
   then a per-connector `travel-cN` class supplies the connector's
   own path via `offset-path`.

   `offset-rotate: 0deg` keeps the chevron in its already-correct
   isometric orientation. `animation-fill-mode: both` (via the
   shorthand) keeps the first keyframe — opacity 0 — applied
   during the delay window, so the chevron stays hidden until
   its connector has finished drawing in. */
.proc-svg-wrap .proc-chevron.proc-chevron-travel {
  offset-rotate: 0deg;
  offset-distance: 0%;
  opacity: 0;
  /* offset-path drives transform — clear the fill-box origin so it
     doesn't fight with the motion translate. */
  transform-box: view-box;
  transform-origin: 0 0;
}
.proc-svg-wrap .proc-chevron.travel-c2 {
  offset-path: path('M308.37 329.159L430.794 396.146');
}
.proc-svg-wrap .proc-chevron.travel-c3 {
  offset-path: path('M704.554 501.832L843.687 582.092');
}
/* Connector-4 chevron flows end → start (opposite the path's drawn
   direction), matching the dash march. Reverse the path coords so
   offset-distance 0% → 100% corresponds to end → start. */
.proc-svg-wrap .proc-chevron.travel-c4 {
  offset-path: path('M824.053 593.641L684.92 513.381');
}
/* Connector-1 is the big swoop. Path is reversed so the chevron rides
   end → start, matching the proc-march-rev dash flow. */
.proc-svg-wrap .proc-chevron.travel-c1 {
  offset-path: path('M460.16 549.694L389.753 590.343L16.2905 374.724L112.607 319.115');
}

/* Travel cycle — start each one once its connector has finished
   drawing. Connector-2 finishes ≈2000ms, connector-3 ≈3000ms
   (see transition-delay block above). */
.proc-svg-wrap.proc-active .proc-chevron.travel-c2 {
  animation: proc-chevron-travel 2400ms cubic-bezier(.45,0,.55,1) 2000ms infinite both;
}
.proc-svg-wrap.proc-active .proc-chevron.travel-c3 {
  animation: proc-chevron-travel 2400ms cubic-bezier(.45,0,.55,1) 3000ms infinite both;
}
.proc-svg-wrap.proc-active .proc-chevron.travel-c4 {
  animation: proc-chevron-travel 2400ms cubic-bezier(.45,0,.55,1) 4000ms infinite both;
}
/* Connector-1 is a much longer path (full swoop across the illustration),
   so give the chevron a longer travel duration and a dedicated keyframe
   set that snaps `offset-rotate` 90° clockwise at each of the path's
   two interior corners. Linear timing keeps offset-distance proportional
   to time, so the rotation snaps fire right when the chevron passes
   each corner.

   Path segments + their share of total length (≈ 624 user-units):
     ① 460.16,549.694 → 389.753,590.343    81.3  ≈ 13.0%
     ② 389.753,590.343 → 16.2905,374.724  431.2  ≈ 82.2% (cumulative)
     ③ 16.2905,374.724 → 112.607,319.115  111.2  ≈ 100% */
.proc-svg-wrap.proc-active .proc-chevron.travel-c1 {
  animation: proc-chevron-travel-c1 4600ms linear 5000ms infinite both;
}
@keyframes proc-chevron-travel-c1 {
  0%      { offset-distance: 0%;    offset-rotate: 0deg;   opacity: 0; }
  4%      { offset-distance: 4%;    offset-rotate: 0deg;   opacity: 1; }
  12.99%  { offset-distance: 12.99%; offset-rotate: 0deg;    opacity: 1; }
  13%     { offset-distance: 13%;   offset-rotate: -90deg;  opacity: 1; }
  82.19%  { offset-distance: 82.19%; offset-rotate: -90deg;  opacity: 1; }
  82.2%   { offset-distance: 82.2%; offset-rotate: 180deg;  opacity: 1; }
  96%     { offset-distance: 96%;   offset-rotate: 180deg; opacity: 1; }
  100%    { offset-distance: 100%;  offset-rotate: 180deg; opacity: 0; }
}
@keyframes proc-chevron-travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Continuous marching dashes along every connector — starts once the
   final connector has drawn in. */
@keyframes proc-march {
  to { stroke-dashoffset: -16; }
}
@keyframes proc-march-rev {
  to { stroke-dashoffset: 16; }
}
.proc-svg-wrap.proc-active .proc-connector {
  animation: proc-march 900ms linear infinite;
  animation-delay: 5300ms;
}
.proc-svg-wrap.proc-active .proc-connector-1 {
  animation-name: proc-march-rev;
}

@media (prefers-reduced-motion: reduce) {
  .proc-svg-wrap .proc-illu,
  .proc-svg-wrap .proc-text,
  .proc-svg-wrap .proc-connector,
  .proc-svg-wrap .proc-dot,
  .proc-svg-wrap .proc-chevron {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Numbered step labels overlaid on the illustration */
.at-workflow-step {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
}
.at-workflow-step .num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 14px; letter-spacing: 0.08em;
  color: var(--performance-orange);
}
.at-workflow-step .lbl {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff;
  line-height: 1.2;
}
.at-workflow-step.s1 { top: 30%; left: 38%; }
.at-workflow-step.s2 { top: 50%; right: 22%; }
.at-workflow-step.s3 { bottom: 18%; left: 8%; }

/* The WHITE notch panel — top right, hugs the black card with an inset
   curved corner.  Built with a single white block + clip-path so its
   bottom-left inner corner is rounded INWARD (subtractive). */
.at-workflow-panel {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 46%;
  z-index: 4;
  background: #fff;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0,0 H100 V100 H10 C10,100 10,80 0,80 V0 Z' fill='black'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M0,0 H100 V100 H10 C10,100 10,80 0,80 V0 Z' fill='black'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  border-top-right-radius: 0;
}

/* Inner padding wrapper of the panel */
.at-workflow-panel-inner {
  padding: 48px 56px 32px;
  display: flex; flex-direction: column; gap: 18px;
  height: 100%;
}

/* Title with embedded orange wave + slate pill */
.at-workflow-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 36px; line-height: 1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--rubber-black);
  margin: 0;
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px;
}
.at-workflow-title .second-line {
  color: var(--rubber-black-50);
}
/* Orange data-signal wave glyph */
.at-workflow-wave {
  display: inline-block;
  height: 22px; width: 100px;
}
/* Orange pill with motion-blur streak photo */
.at-workflow-pill {
  display: inline-block;
  width: 100px; height: 28px;
  border-radius: 999px;
  background: url('../img/photos/strip-accent.jpg') center/cover no-repeat,
              linear-gradient(90deg, var(--performance-orange), var(--performance-orange-700));
  vertical-align: middle;
}

.at-workflow-reviews {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 13px;
  color: var(--fg-2);
  flex-wrap: wrap;
}
.at-workflow-reviews .google { text-decoration: underline; }
.at-workflow-reviews .rating-num { font-weight: 700; color: var(--rubber-black); }
.at-workflow-reviews .stars { color: #F5A623; display: flex; gap: 1px; }
.at-workflow-reviews .stars svg { width: 14px; height: 14px; fill: currentColor; }
.at-workflow-reviews .count { color: var(--fg-3); }

.at-workflow-cta {
  margin-top: auto;
  align-self: flex-end;
}

/* ------------------------------------------------------------------
   DESKTOP ONLY — stepped silhouette for the workflow card.
   The black card is masked into a rounded-rect with a two-step
   curved notch cut out of its top-right; the white panel is masked
   to the complementary inverse so the two pieces lock together.
   Below 1101px we fall back to the simpler single-notch layout
   already defined above.
   ------------------------------------------------------------------ */
@media (min-width: 1101px) {
  .at-workflow-card {
    aspect-ratio: 1440 / 795;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }
  /* Black silhouette layer (replaces the card's solid background).
     Shape carved by an inline <clipPath> in the WorkflowBlock JSX so it
     can be morphed on scroll-in. See clipPath#workflow-clip. */
  .at-workflow-card::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--surface-dark);
    clip-path: url(#workflow-clip);
    z-index: 0;
  }
  /* Process illustration: clip to the same stepped shape */
  .at-workflow-illu {
    clip-path: url(#workflow-clip);
  }
  /* White panel: locks into the notch via complementary mask */
  .at-workflow-panel {
    width: 53.64%;   /* (1440 − 667.573) / 1440 */
    height: 57.05%;  /* 453.524 / 795 */
    -webkit-mask: url('../img/illustrations/process-shape-panel.svg') center / 100% 100% no-repeat;
            mask: url('../img/illustrations/process-shape-panel.svg') center / 100% 100% no-repeat;
  }
  /* Constrain content to the upper, full-width portion of the notch
     (above the first step) so it never crosses the curved staircase. */
  .at-workflow-panel-inner {
    padding: 44px 52px 28px;
    height: 60%;            /* ~273/453 — the rectangular zone */
    justify-content: flex-start;
    gap: 16px;
  }
  .at-workflow-cta {
    margin-top: 4px;
  }
}

/* ------------------------------------------------------------------
   SECTION: Dealers — 3×2 grid, 5 photo tiles + text tile in slot 6
   ------------------------------------------------------------------ */
.at-dealers {
  background: #fff;
  padding: 32px 0 80px;
}
.at-dealers-inner {
  max-width: 1408px; margin: 0 auto; padding: 0 32px;
}
/* Make dealer tiles 1:1 aspect ratio on desktop */
.at-dealers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.at-dealers-tile {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background-size: cover; background-position: center;
  background-color: var(--surface-dark);
  position: relative;
  overflow: hidden;
}
.at-dealers-tile.t-label {
  background-color: var(--surface-dark);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.85)),
    url('../img/photos/strip-accent.jpg');
  background-size: cover, cover; background-position: center, center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 18px;
}
.at-dealers-tile.t-label .worldmap {
  position: relative; z-index: 2;
  width: 78%; max-width: 320px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}
.at-dealers-tile.t-label::before {
  content: ""; position: absolute; inset: 24px;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 2px);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  opacity: 0.35;
}
.at-dealers-tile.t-label .lbl {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; letter-spacing: -0.005em; line-height: 1;
  text-transform: uppercase; color: #fff;
}
.at-dealers-tile.t-label .lbl small {
  display: block; font-size: 10px; letter-spacing: 0.18em;
  color: var(--performance-orange); margin-top: 6px; font-weight: 700;
}
.at-dealers-tile.t-office    { background-image: url('../img/photos/alttune-office.jpg'); }
.at-dealers-tile.t-cars      { background-image: url('../img/photos/workshop-lifters.jpg'); }
.at-dealers-tile.t-engine    {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5)),
                    url('../img/photos/engineer-support.jpg');
}
.at-dealers-tile.t-platform  {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.4)),
                    url('../img/photos/platform-vehicles.jpg');
}

/* Text tile — slot 6 of grid, simple white block with title + body */
.at-dealers-tile.t-text {
  background: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 28px;
}
.at-dealers-tile.t-text .at-eyebrow {
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--rubber-black); margin-bottom: 10px;
}
.at-dealers-tile.t-text .title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; line-height: 1.1; letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--rubber-black); margin: 0 0 12px;
}
.at-dealers-tile.t-text .body {
  font-family: var(--font-sans); font-size: 12px; line-height: 1.55;
  color: var(--fg-2); margin: 0;
}

/* Tablet — 2 columns, label + text stretch to full width so they breathe.
   Photo tiles fill the middle in a 2×2 group. */
@media (max-width: 1024px) {
  .at-dealers-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 12px;
  }
  .at-dealers-tile { aspect-ratio: 1 / 1; }
  .at-dealers-tile.t-label { grid-column: 1 / -1; aspect-ratio: 16 / 7; min-height: 220px; }
  .at-dealers-tile.t-text  { grid-column: 1 / -1; aspect-ratio: auto;   min-height: 140px; padding: 28px; }
  .at-dealers-tile.t-label .worldmap { width: 64%; max-width: 280px; }
  .at-dealers-tile.t-label .lbl { font-size: 24px; }
}

/* Mobile — single column for content tiles, photos stay 2-up so the
   section still has rhythm and doesn't become a long thin scroll. */
@media (max-width: 640px) {
  .at-dealers { padding: 16px 0 56px; }
  .at-dealers-inner { padding: 0 16px; }
  .at-dealers-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    gap: 10px;
  }
  .at-dealers-tile { aspect-ratio: 1 / 1; min-height: 0; }
  .at-dealers-tile.t-label {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    min-height: 260px;
    padding: 32px 24px;
    gap: 14px;
  }
  .at-dealers-tile.t-label .worldmap { width: 80%; max-width: 320px; }
  .at-dealers-tile.t-label .lbl { font-size: 22px; line-height: 1.1; }
  .at-dealers-tile.t-label .lbl small { font-size: 9px; margin-top: 8px; }
  .at-dealers-tile.t-text {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    min-height: 0;
    padding: 24px 20px;
  }
  .at-dealers-tile.t-text .at-eyebrow { font-size: 18px; }
  .at-dealers-tile.t-text .body { font-size: 13px; }
}
