@media (min-width: 981px) {
  .service-services-backdrop,
  .service-contact-backdrop,
  .service-services-sheet,
  .service-contact-sheet,
  .performance-projects-backdrop,
  .performance-request-backdrop,
  .performance-projects-sheet,
  .performance-request-sheet,
  .detailing-studio-backdrop,
  .detailing-booking-backdrop,
  .detailing-studio-sheet,
  .detailing-booking-sheet,
  .service-quick-dock,
  .performance-quick-dock,
  .detailing-quick-dock {
    display: none !important;
  }

  .service-switcher--hero {
    background:
      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 14.285% 100%,
      #0b0f12;
  }

  .first-view > nav.service-switcher--hero {
    border-top: 4px solid #a9b1b3;
  }

  .first-view:has(> nav.service-switcher--hero)::before,
  .first-view:has(> nav.service-switcher--hero)::after {
    content: none;
  }

  .service-switcher--hero a,
  .service-switcher--hero a:hover,
  .service-switcher--hero a:focus-visible,
  .service-switcher--hero a.is-active {
    background: #0b0f12 !important;
  }

  .service-switcher--hero a {
    grid-template-columns: minmax(0, 1fr);
    align-content: end;
    min-height: 108px;
    isolation: isolate;
  }

  .service-switcher--hero a::before {
    content: "";
    position: absolute;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    background:
      linear-gradient(90deg, rgba(6,8,10,.84), rgba(6,8,10,.58)),
      var(--switcher-image) var(--switcher-position, 50% 50%) / cover !important;
    filter: grayscale(1) contrast(1.06) !important;
    opacity: .82 !important;
    transform: none !important;
  }

  .first-view > .service-switcher--hero a::after,
  .service-switcher--hero a::after {
    content: "→";
    position: absolute;
    left: auto;
    right: 18px;
    top: 18px;
    bottom: auto;
    z-index: 3;
    width: auto;
    height: auto;
    color: rgba(255,255,255,.88);
    background: transparent !important;
    opacity: 1;
    font: 24px/1 var(--mono);
    transform: none !important;
  }

  .first-view > .service-switcher--hero a.is-active::after,
  .first-view > .service-switcher--hero a:hover::after,
  .first-view > .service-switcher--hero a:focus-visible::after,
  .service-switcher--hero a.is-active::after,
  .service-switcher--hero a:hover::after,
  .service-switcher--hero a:focus-visible::after {
    opacity: 1;
  }

  .service-switcher--hero a:hover {
    transform: none;
    box-shadow: inset 0 -3px 0 var(--accent, var(--red));
  }

  .service-switcher--hero a.is-active {
    box-shadow: inset 0 -3px 0 var(--accent, var(--red));
  }

  .service-switcher--hero span {
    position: relative;
    z-index: 2;
    align-self: end;
    color: color-mix(in srgb, var(--accent, var(--red)) 84%, #fff 16%);
    font-size: 16px;
  }

  .service-switcher--hero b {
    position: relative;
    z-index: 2;
    max-width: none;
    align-self: end;
    min-width: 0;
    font-size: clamp(17px, 1.18vw, 19px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;
  }
}

@media (max-width: 980px) {
  .mobile-dock,
  .detailing-theme .mobile-dock,
  .service-theme .mobile-dock,
  .performance-theme .mobile-dock {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    z-index: 200 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .mobile-dock > details,
  .mobile-dock__main,
  .mobile-dock__service-menu,
  .mobile-dock__contact,
  .mobile-dock__actions {
    position: relative !important;
    overflow: visible !important;
  }

  .mobile-dock__main > div,
  .mobile-dock__service-menu > div,
  .mobile-dock__contact > div,
  .mobile-dock__actions > div,
  .detailing-theme .mobile-dock__main > div,
  .detailing-theme .mobile-dock__service-menu > div,
  .detailing-theme .mobile-dock__contact > div,
  .detailing-theme .mobile-dock__actions > div,
  .service-theme .mobile-dock__main > div,
  .service-theme .mobile-dock__service-menu > div,
  .service-theme .mobile-dock__contact > div,
  .service-theme .mobile-dock__actions > div,
  .performance-theme .mobile-dock__main > div,
  .performance-theme .mobile-dock__service-menu > div,
  .performance-theme .mobile-dock__contact > div,
  .performance-theme .mobile-dock__actions > div {
    position: absolute !important;
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    max-height: min(62vh, 420px) !important;
    overflow: auto !important;
    z-index: 220 !important;
  }

  .mobile-dock__main > div,
  .detailing-theme .mobile-dock__main > div,
  .service-theme .mobile-dock__main > div,
  .performance-theme .mobile-dock__main > div {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
  }

  .mobile-dock__service-menu > div,
  .detailing-theme .mobile-dock__service-menu > div,
  .service-theme .mobile-dock__service-menu > div,
  .performance-theme .mobile-dock__service-menu > div {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .mobile-dock__contact > div,
  .mobile-dock__actions > div,
  .detailing-theme .mobile-dock__contact > div,
  .detailing-theme .mobile-dock__actions > div,
  .service-theme .mobile-dock__contact > div,
  .service-theme .mobile-dock__actions > div,
  .performance-theme .mobile-dock__contact > div,
  .performance-theme .mobile-dock__actions > div {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
  }

  .service-theme .service-switcher--hero a > b {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    max-width: 100%;
    font-size: clamp(20px, 6.1vw, 24px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .service-theme .service-switcher--hero a > small,
  .service-theme .service-switcher--hero a > em {
    grid-column: 1 / -1 !important;
    max-width: 100%;
  }

  .service-theme .service-switcher--hero a {
    align-content: start;
    min-width: 0;
    padding-top: 18px;
  }

  .service-theme .service-switcher--hero a > span {
    grid-column: 1 !important;
    grid-row: 1 !important;
    padding-bottom: 12px;
  }

  .service-theme .utility-bar {
    padding-bottom: 22px;
  }
}
@media (min-width: 981px) {
  body .first-view > nav.service-switcher--hero > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
    gap: 6px;
    padding: 13px clamp(8px, 1.05vw, 20px);
    border-right-color: rgb(255 255 255 / 26%);
  }

  body .first-view > nav.service-switcher--hero > a::before {
    opacity: .60 !important;
  }

  body .first-view > nav.service-switcher--hero > a::after {
    top: 12px;
    right: 10px;
    font-size: 16px;
  }

  body .first-view > nav.service-switcher--hero > a > :is(span, b, small, em) {
    min-width: 0;
    max-width: 100%;
    align-self: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body .first-view > nav.service-switcher--hero > a > span {
    color: #c7cdd0;
    padding: 0;
    font-size: 12px;
  }

  body .first-view > nav.service-switcher--hero > a > b {
    color: #fff;
    font-size: clamp(13px, 1.18vw, 18px);
    line-height: 1.15;
  }

  body .first-view > nav.service-switcher--hero > a:is(.is-active, [aria-current="page"]) {
    border-bottom: 3px solid var(--accent, var(--red));
    box-shadow: none;
  }

  body .first-view > nav.service-switcher--hero > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }
}

@media (min-width: 981px) {
  body.performance-theme.overview-theme .hero--overview .hero-microbar {
    width: min(540px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.performance-theme.overview-theme .hero--overview .hero-microbar > div {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  body.performance-theme.overview-theme .hero--overview .hero-microbar b {
    text-align: left;
    overflow-wrap: normal;
    overflow: visible;
  }

  .performance-theme .rail__coords {
    inset-inline: 12px 6px;
    font-size: 11px;
    letter-spacing: .05em;
  }
}

@media (max-width: 350px) {
  body.service-overview #services .diagnostic-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 981px) and (max-width: 1023px) {
  body.service-overview .hero--overview .hero-microbar > div {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  body.service-overview .hero--overview .hero-microbar b {
    text-align: left;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 981px) {
  .rail {
    --rail-index-top: clamp(102px, calc(100dvh - 450px), 318px);
  }

  .rail::before { top: calc(var(--rail-index-top) - 100px); }
  .rail::after { top: calc(var(--rail-index-top) - 72px); }
  .rail .rail__coords { top: max(16px, calc(var(--rail-index-top) - 186px)); }

  .rail .rail__index {
    z-index: 1;
    top: var(--rail-index-top);
    width: 242px;
    max-height: calc(100dvh - var(--rail-index-top) - 24px);
    overflow: hidden auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #637077 #141b1f;
    clip-path: inset(0 148px 0 0);
    transition: clip-path 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .rail:not(.is-suppressed):is(:hover, .is-held-open, :focus-within) .rail__index {
    clip-path: inset(0);
  }

  .rail .rail__index a {
    grid-template-columns: 63px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 2px 9px;
    min-height: 39px;
    padding-block: 5px;
  }

  .rail .rail__index a > span {
    grid-column: 1;
    margin: 0 0 0 32px;
  }

  .rail .rail__index a > span { grid-row: 1 / 3; align-self: center; }
  .rail .rail__index a > small {
    display: block;
    grid-area: 1 / 2 / 3 / 3;
    margin: 0;
    color: #ced6da;
    font: 10px/1.2 var(--mono);
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .rail .rail__index a:focus-visible {
    outline: 2px solid #e4ebef;
    outline-offset: -3px;
  }
}

@media (min-width: 981px) and (max-height: 780px) {
  .rail .rail__caption { display: none; }
}

@media (min-width: 981px) and (max-height: 620px) {
  .rail .rail__coords { display: none; }
}

@media (min-width: 981px) and (prefers-reduced-motion: reduce) {
  .rail .rail__index { transition: none; }
}

