.home-mobile-only { display: none; }
.home-hero-media,
.home-service-track,
.home-service-label { display: contents; }

@media (max-width: 640px) {
  :root { --home-gutter: 20px; }
  .home-desktop-only { display: none; }
  .home-page { background: #fff; color: #151515; }

  .site-header { position: relative; background: #050505; }
  .main-nav {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 0;
    width: auto;
    margin-inline: var(--home-gutter);
    padding: 0 0 12px;
  }
  .main-nav .logo { height: 60px; }
  .main-nav .logo img { width: 72px; height: 40px; object-fit: contain; }
  .main-nav .menu-toggle {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    width: 46px;
    padding: 0;
    border: 0;
    margin-right: -8px;
    justify-self: end;
  }
  .main-nav .menu-toggle span { width: 20px; height: 1.5px; margin: 0; }
  .main-nav .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(5.5px) rotate(45deg); }
  .main-nav .menu-toggle[aria-expanded="true"] span:nth-child(2) { visibility: hidden; }
  .main-nav .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5.5px) rotate(-45deg); }
  .main-nav.open .nav-menu {
    inset-inline: calc(-1 * var(--home-gutter));
    padding-inline: var(--home-gutter);
    background: #141414;
  }
  .main-nav.open .nav-menu .submenu { display: none; }
  .main-nav.open .nav-menu > .nav-item > a { min-height: 44px; padding-block: 13px; }
  .search-panel { gap: 4px; }
  .site-search {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 7px;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .site-search::before,
  .site-search::after {
    position: absolute;
    content: "";
    pointer-events: none;
  }
  .site-search::before { top: 14px; left: 12px; width: 13px; height: 13px; border: 1.5px solid #d2d2d2; border-radius: 50%; }
  .site-search::after { top: 25px; left: 22px; width: 6px; height: 1.5px; background: #d2d2d2; transform: rotate(45deg); }
  .site-search input {
    min-height: 46px;
    border: 1px solid #3a3a3b;
    border-radius: 6px;
    padding: 0 8px 0 35px;
    background: #1c1c1d;
  }
  .site-search input::placeholder { color: #d0d0d1; font-size: 13px; }
  .site-search input:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
  .site-search button { padding: 0; border-radius: 6px; background: var(--orange); color: #14110e; font-size: 13px; font-weight: 750; }
  .search-suggestions { gap: 14px; padding: 0; }
  .search-suggestions a { min-height: 28px; color: #bcbcbc; font-size: 11px; }

  .home-page section h2 {
    margin: 0;
    font-size: clamp(21px, 6.1vw, 27px);
    font-weight: 750;
    line-height: 1.32;
    letter-spacing: -.035em;
  }
  .home-page section h2::after { display: none; }
  .home-page .orange-btn {
    min-height: 44px;
    gap: 14px;
    padding: 0 16px;
    border-radius: 6px;
    color: #14110e;
    font-size: 14px;
    font-weight: 750;
  }
  .home-page .orange-btn span { width: auto; height: auto; color: inherit; background: none; font: 19px/1 Arial, sans-serif; }

  .home-page .video-hero { display: block; min-height: 0; padding: 0; background: #080807; }
  .home-hero-media { position: relative; display: block; aspect-ratio: 1.58; background: #0a0908; }
  .home-hero-media .hero-video { display: block; object-fit: cover; object-position: center; }
  .home-hero-media::after {
    position: absolute;
    inset: 72% 0 0;
    background: linear-gradient(transparent, #080807);
    content: "";
    pointer-events: none;
  }
  .home-hero-media.is-playing::after { display: none; }
  .home-hero-media .hero-video-controls { right: var(--home-gutter); bottom: 13px; }
  .home-hero-media .hero-video-controls[hidden] { display: none; }
  .home-hero-media .hero-sound-toggle { display: flex; align-items: center; gap: 7px; padding-inline: 10px; font-size: 12px; }
  .home-hero-media .hero-sound-toggle::before {
    border-block: 5px solid transparent;
    border-left: 8px solid currentColor;
    content: "";
  }
  .home-page .hero-reveal { display: block; min-height: 0; margin: 0; padding: 0; }
  .home-page .hero-reveal-tab { display: none; }
  .home-page .video-hero .hero-copy {
    max-width: none;
    margin: 0;
    padding: 7px var(--home-gutter) 27px;
    background: #080807;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .home-page .hero-copy .eyebrow { margin: 0 0 9px; color: #ff9763; font-size: 13px; font-weight: 650; }
  .home-page .hero h1 { margin: 0 0 18px; font-size: clamp(16px, 5.5vw, 26px); font-weight: 850; line-height: 1.24; letter-spacing: -.015em; }

  .home-page .homepage-certifications {
    padding: 8px var(--home-gutter) 7px;
    border-block: 1px solid #323333;
    background: linear-gradient(#222629, #1b1c1d);
  }
  .homepage-certifications p { display: block; margin: 0; color: #ff9862; font-size: 11px; font-weight: 700; line-height: 1.3; }
  .homepage-certifications img { max-height: 37px; object-fit: contain; }

  .home-page .intro-panel { display: block; min-height: 0; padding: 36px var(--home-gutter) 19px; background: #f6f6f6; }
  .home-page .intro-panel .home-mobile-only { display: block; margin: 10px 0 0; color: #5d6269; font-size: 14px; line-height: 1.85; }
  .home-page .service-carousel { display: block; padding: 0 0 36px; background: #f6f6f6; }
  .service-carousel > .carousel-btn { display: none; }

  .home-service-track,
  .home-page .oem-grid {
    position: relative;
    display: flex;
    gap: 10px;
    padding-inline: var(--home-gutter);
    overflow-x: auto;
    scroll-padding-inline: var(--home-gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .home-service-track::-webkit-scrollbar,
  .home-page .oem-grid::-webkit-scrollbar,
  .home-page .solution-tabs::-webkit-scrollbar,
  .search-suggestions::-webkit-scrollbar { display: none; }
  .home-service-track > *,
  .home-page .oem-grid > * { flex: none; scroll-snap-align: start; }
  .home-service-track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
  .home-service-track .service-card {
    order: 0;
    width: 86%;
    max-width: 385px;
    min-height: 0;
    border-radius: 5px;
    background: #151515;
    box-shadow: none;
    text-align: left;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  .home-service-track .service-card .service-img {
    min-height: 0;
    aspect-ratio: 1.83;
    background-position: center;
    transform: none;
  }
  .home-service-label {
    display: flex;
    align-items: center;
    min-height: 46px;
    gap: 11px;
    padding-inline: 13px;
    background: #fff;
    color: #171717;
  }
  .is-current .home-service-label { background: var(--orange); }
  .service-card .home-service-label .service-number { padding: 0; color: inherit; opacity: .7; font: 700 13px/1 Arial, sans-serif; }
  .service-card .home-service-label .service-number::after { display: none; }
  .home-service-label h3 { margin: 0; color: inherit; font-size: 14px; font-weight: 750; }
  .home-service-label::after { margin-left: auto; font: 19px/1 Arial, sans-serif; content: "›"; }
  .home-carousel-controls,
  .home-carousel-guide,
  .home-steps,
  .home-carousel-arrows { display: flex; align-items: center; }
  .home-carousel-controls { position: relative; justify-content: space-between; margin-top: 8px; padding-inline: var(--home-gutter); }
  .home-carousel-guide { gap: 7px; }
  .home-carousel-guide span { color: #5d6269; font-size: 11px; white-space: nowrap; }
  .home-steps { gap: 5px; }
  .home-steps button { display: grid; place-items: center; width: 29px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
  .home-steps button::after { width: 19px; height: 2px; background: #b4b5b7; content: ""; }
  .home-steps button[aria-current="true"]::after { height: 3px; background: var(--orange); }
  .home-carousel-arrows { gap: 4px; }
  .home-carousel-arrows button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dedfe0;
    border-radius: 4px;
    background: #fff;
    color: #161616;
    font: 22px/1 Arial, sans-serif;
    cursor: pointer;
  }
  .home-carousel-arrows button:disabled { opacity: .36; cursor: default; }

  .home-page .service-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 36px var(--home-gutter);
  }
  .home-page .gallery-heading { margin: 0 0 11px; text-align: left; order: -2; }
  .home-page .gallery-heading p,
  .home-page .section-kicker,
  .home-page .home-company-kicker {
    margin: 0 0 8px;
    color: #a63d0b;
    font: 700 11px/1.3 Arial, sans-serif;
    letter-spacing: .18em;
  }
  .home-page .gallery-heading span,
  .home-page .about-copy > p:not(.home-company-kicker),
  .home-page .oem-content p {
    margin: 10px 0 0;
    color: #5d6269;
    font-size: 14px;
    line-height: 1.85;
  }
  .home-page .service-gallery .gallery-card { grid-column: span 1; min-height: 0; aspect-ratio: 1.31; border-radius: 5px; }
  .home-page .service-gallery .home-series-lead { order: -1; grid-column: 1 / -1; aspect-ratio: 1.83; }
  .home-page .gallery-card h3 {
    inset: auto 9px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
  }
  .home-page .home-series-lead h3 { inset: auto 14px 12px; font-size: 17px; }
  .home-page .gallery-card h3::after { width: auto; height: auto; margin: 0; background: none; color: #ffab7e; font: 19px/1 Arial, sans-serif; content: "›"; }

  .home-page .oem-strip { min-height: 0; padding: 36px 0; background: linear-gradient(135deg, #152634, #101820 72%); }
  .home-page .oem-strip::before { display: none; }
  .home-page .oem-content { margin: 0 0 20px; padding-inline: var(--home-gutter); text-align: left; }
  .home-page .oem-content p { color: #ccd0d4; }
  .home-page .oem-grid article {
    width: 64%;
    max-width: 265px;
    min-height: 0;
    aspect-ratio: 1.5;
    border-radius: 4px;
    transform: none;
    background-size: cover;
  }
  .home-page .oem-grid article::before { height: 57%; background: linear-gradient(transparent, #000e); }
  .home-page .oem-grid span { inset: auto auto 11px 11px; color: #ffab7e; font: 700 12px/1.65 Arial, sans-serif; }
  .home-page .oem-grid strong { inset: auto 8px 11px 34px; font-size: 14px; line-height: 1.4; text-align: left; }
  .home-page .oem-strip .home-steps button { width: 25px; }
  .home-page .oem-strip .home-steps button:not([aria-current="true"])::after { background: #ffffff60; }
  .home-oem-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    color: #f4f5f6;
    background: none;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
  }
  .home-oem-toggle::before { width: 7px; height: 9px; border-inline: 2px solid #ffab7e; content: ""; }
  .home-oem-toggle[data-paused="true"]::before { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid #ffab7e; border-right: 0; }

  .home-page .solutions { padding: 36px var(--home-gutter); }
  .home-page .solution-layout { display: block; margin-top: 12px; }
  .home-page .solution-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    border-bottom: 1px solid #e7e8ea;
    scrollbar-width: none;
  }
  .home-page .solution-tabs li {
    flex: none;
    min-height: 46px;
    border-bottom: 2px solid transparent;
    padding: 0 2px;
    color: #52575b;
    cursor: pointer;
    transform: none;
  }
  .home-page .solution-tabs .active { border-bottom-color: var(--orange); color: #161616; font-weight: 750; }
  .home-page .solution-tabs li:focus-visible { outline-offset: -3px; }
  .home-page .solution-feature { min-height: 0; margin-top: 12px; overflow: hidden; border-radius: 5px; background: #17242e; }
  .home-page .solution-feature::before { display: none; }
  .home-page .solution-photo { height: auto; aspect-ratio: 1.77; }
  .home-page .solution-caption { position: static; min-height: 0; padding: 11px 14px 13px; border-left: 4px solid var(--orange); background: none; backdrop-filter: none; }
  .home-page .solution-caption strong { margin-bottom: 3px; font-size: 15px; }
  .home-page .solution-caption p { color: #e1e5e8; font-size: 13px; line-height: 1.65; }

  .home-page .about-dark { background: #0c0d0d; }
  .home-page .about-dark::before { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1.9; background-position: center 48%; }
  .home-page .about-dark::after,
  .home-page .vertical-word { display: none; }
  .home-page .about-inner { display: block; min-height: 0; padding: 27px var(--home-gutter) 32px; }
  .home-page .home-company-kicker { display: block; color: #ff9259; }
  .home-page .about-copy > p:not(.home-company-kicker) { color: #ccd0d4; }
  .home-page .about-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 19px 0 18px;
    border-top: 1px solid #383a3b;
    border-left: 1px solid #383a3b;
    background: none;
  }
  .home-page .about-stats article { grid-column: span 2; min-width: 0; padding: 10px 7px 11px 10px; border-right: 1px solid #383a3b; border-bottom: 1px solid #383a3b; background: none; }
  .home-page .about-stats article:nth-child(n + 4) { grid-column: span 3; }
  .home-page .about-stats strong { margin: 0; font: 750 clamp(15px, 5vw, 20px)/1.1 Arial, sans-serif; letter-spacing: -.035em; }
  .home-page .about-stats span { display: block; margin-top: 4px; color: #d0d2d2; font-size: 11px; }

  .home-page .certification { padding: 36px var(--home-gutter); background: #f4f4f4; }
  .home-page .cert-row { margin-top: 12px; }
  .home-page .cert-row img { max-height: 205px; aspect-ratio: auto 1864 / 844; filter: none; }
  .home-page .why-choose { display: block; padding: 36px var(--home-gutter); }
  .home-page .quote-mark { display: none; }
  .home-page .why-copy ul { margin: 12px 0 0; padding-left: 17px; color: #50555a; font-size: 14px; line-height: 1.8; }
  .home-page .why-copy li + li { margin-top: 4px; }
  .home-page .why-copy li::marker { color: #b84712; }
  .home-page .why-photo { min-height: 0; aspect-ratio: 2.25; margin-top: 17px; border-radius: 42px 5px 5px 42px; }

  .home-page .home-visits { display: block; padding: 36px var(--home-gutter); border-top: 1px solid #e7e8ea; }
  .home-page .home-visits h2::after { display: block; width: 26px; height: 2px; margin-top: 6px; background: var(--orange); content: ""; }
  .home-visit-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 18px 0 12px; }
  .home-visit-tabs button {
    min-height: 44px;
    padding: 4px 3px;
    border: 1px solid #dbe0e4;
    border-radius: 5px;
    background: #fff;
    color: #555f67;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
  }
  .home-visit-tabs [aria-selected="true"] { border-color: #ffcdb5; background: #fff0e8; color: #a84214; font-weight: 700; }
  .home-visit-photos:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-visit-photos img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; }
  .home-visit-photos .home-photo-align-top { object-position: center 14%; }

  .home-page .cta {
    gap: 15px;
    min-height: 0;
    padding: 36px var(--home-gutter);
    background: radial-gradient(ellipse at 46% 110%, #432411, transparent 62%), linear-gradient(125deg, #0a0b0c, #192834);
  }
  .home-page + .footer { padding: 23px var(--home-gutter) 24px; color: #dedede; }
  .home-page + .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .home-page + .footer h3 { margin-bottom: 4px; font-size: 13px; }
  .home-page + .footer a { margin: 0; padding-block: 5px; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
  .home-page + .footer .copyright { margin-top: 15px; padding-top: 13px; border-top-color: #393939; color: #b7b7b7; font-size: 11px; }

  .home-carousel-controls button:focus-visible,
  .home-visit-tabs button:focus-visible,
  .home-visit-photos:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
}

@media (max-width: 350px) {
  :root { --home-gutter: 16px; }
  .search-suggestions { gap: 12px; }
  .home-page .about-stats span { font-size: 10px; }
}
