/* Site-wide mobile refinement — loaded last so every route shares one stable handset layout. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 700px) {
  :root {
    --mobile-gutter: 18px;
  }

  html {
    scroll-padding-top: 92px;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .wrap {
    width: min(calc(100% - (var(--mobile-gutter) * 2)), 1160px) !important;
  }

  .topbar {
    min-height: 30px;
  }

  .topbar .wrap {
    min-height: 30px;
    gap: 10px;
    font-size: .68rem;
    white-space: nowrap;
  }

  .header,
  .header .nav {
    min-width: 0;
  }

  .header .nav {
    height: 72px !important;
  }

  .header .logo-image img {
    width: 68px !important;
    height: 58px !important;
    object-fit: contain;
  }

  .menu-toggle {
    width: 52px;
    min-height: 48px;
    justify-content: center;
  }

  .site-menu {
    top: 72px;
    max-height: calc(100dvh - 102px);
    padding: 12px var(--mobile-gutter) calc(22px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .menu-open .nav-services .service-menu {
    gap: 8px;
    padding: 12px;
  }

  .service-menu small {
    font-size: .72rem;
  }

  .service-menu a {
    min-height: 48px;
    justify-content: center;
    padding: 9px 10px;
  }

  .service-menu strong {
    font-size: .94rem;
    line-height: 1.25;
  }

  .service-menu span {
    font-size: .75rem;
  }

  main h1,
  main h2,
  main h3,
  .btn,
  summary {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  main h1 {
    font-size: clamp(2rem, 9.2vw, 2.75rem) !important;
    line-height: 1.07 !important;
    letter-spacing: -.038em !important;
  }

  main h2 {
    font-size: clamp(1.72rem, 7.5vw, 2.2rem) !important;
    line-height: 1.13 !important;
    letter-spacing: -.03em !important;
  }

  main p,
  main li {
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero-new {
    padding: 42px 0 72px;
  }

  .hero-new-grid {
    gap: 30px;
  }

  .hero-new h1 {
    max-width: 13ch;
    margin-bottom: 18px;
  }

  .hero-actions {
    width: 100%;
    gap: 12px;
    margin-top: 26px;
  }

  .hero-actions .text-action {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
  }

  .hero-points {
    display: grid !important;
    gap: 7px !important;
    margin-top: 24px;
  }

  .hero-new-media,
  .about-hero-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .service-dock {
    margin-right: var(--mobile-gutter) !important;
    margin-left: var(--mobile-gutter) !important;
    padding: 7px;
    scroll-padding-inline: 7px;
  }

  .service-dock a {
    min-width: 270px !important;
    min-height: 82px;
    padding: 14px 15px;
  }

  .service-dock strong,
  .service-dock small {
    white-space: nowrap;
  }

  .service-cinema {
    padding: 66px 0 42px;
  }

  .service-cinema + .smart-inquiry-section {
    padding-top: 28px;
  }

  .cinema-visuals {
    min-height: 535px;
  }

  .cinema-copy {
    right: 20px;
    bottom: 78px;
    left: 20px;
  }

  .cinema-copy h3 {
    max-width: 14ch;
    font-size: clamp(1.8rem, 9vw, 2.55rem) !important;
    line-height: 1.04 !important;
  }

  .cinema-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .cinema-copy a {
    margin-top: 17px;
  }

  .cinema-controls {
    right: 14px;
    bottom: 14px;
  }

  .cinema-controls button {
    width: 46px;
    height: 46px;
  }

  .cinema-rail {
    display: grid;
    grid-template-columns: repeat(5, 270px);
    gap: 0;
    padding: 8px;
    scroll-padding-inline: 8px;
  }

  .cinema-rail button {
    min-width: 270px;
    min-height: 78px;
    overflow: hidden;
  }

  .cinema-rail b,
  .cinema-rail small {
    min-width: 0;
    overflow-wrap: normal;
    white-space: nowrap;
    line-height: 1.2;
  }

  .cinema-rail b {
    font-size: .84rem;
  }

  .service-page .service-hero-visual {
    min-height: 490px;
    padding: 94px 0 72px;
  }

  .service-page .service-hero-visual p {
    font-size: .98rem;
    line-height: 1.62;
  }

  .service-breadcrumb {
    overflow: hidden;
  }

  .service-route-nav {
    margin-top: -22px;
  }

  .service-route-nav > .wrap {
    gap: 8px;
    padding: 8px;
  }

  .route-overview {
    grid-template-columns: 31px 1fr;
    padding: 8px 10px;
  }

  .route-overview span {
    width: 30px;
    height: 30px;
  }

  .service-route-nav .route-request {
    min-width: 94px;
    padding: 11px 12px !important;
  }

  .route-service-links {
    gap: 3px;
    padding: 2px 1px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .route-service-links::-webkit-scrollbar {
    display: none;
  }

  .route-service-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .service-page .article {
    padding: 20px;
  }

  .service-page .article > .service-photo-pair {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 170px;
    height: 400px;
    margin: -7px -7px 31px;
  }

  .service-page .article > h2 {
    margin-top: 34px;
  }

  .service-page .article > ul li,
  .content-list li {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .service-page .content-section {
    padding: 60px 0;
  }

  .security-brand-card > div,
  .security-brand-card > aside,
  .winter-brand-card > div,
  .winter-brand-card > aside {
    padding: 23px;
  }

  .security-brand-card > aside,
  .winter-brand-card > aside {
    min-height: 245px;
  }

  .security-wordmark {
    font-size: clamp(2.35rem, 14vw, 3.7rem);
  }

  .service-page .service-faq details,
  .faq-enhanced > details {
    padding-right: 16px;
    padding-left: 16px;
  }

  .faq-enhanced > details summary,
  .service-page .service-faq summary {
    min-height: 64px;
    padding: 16px 48px 16px 0;
    font-size: .98rem;
  }

  .service-page .cta-strip,
  .cta-strip {
    padding: 24px 21px;
  }

  .service-page .content-section:has(.service-faq) {
    padding-bottom: 32px;
  }

  .service-page .content-section:has(.service-faq) + .content-section {
    padding-top: 24px;
  }

  .overview-visual-index > .wrap {
    grid-template-rows: 270px 145px 145px;
    gap: 9px;
  }

  .overview-visual-index .overview-visual-main {
    padding: 24px;
    border-radius: 22px 22px 22px 55px;
  }

  .overview-visual-index a {
    padding: 14px;
  }

  .overview-visual-index strong {
    font-size: .92rem;
  }

  .overview-card {
    min-height: 0;
    padding: 23px;
  }

  .contact-launchpad,
  .smart-inquiry,
  .trust-console,
  .local-answer-hub {
    border-radius: 20px;
  }

  .launchpad-actions a {
    min-height: 70px;
  }

  .smart-fields,
  .smart-summary,
  .inquiry-form,
  .trust-brand,
  .trust-panel {
    padding: 22px;
  }

  .smart-summary,
  .trust-brand {
    min-height: 0;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .smart-inquiry input:not([type="checkbox"]):not([type="radio"]),
  .smart-inquiry select,
  .smart-inquiry textarea {
    min-height: 48px;
    font-size: 16px !important;
  }

  textarea,
  .smart-inquiry textarea {
    min-height: 120px;
  }

  .address-suggestions button {
    min-height: 52px;
  }

  .about-hero {
    padding: 48px 0 68px;
  }

  .about-photo-grid,
  .team-gallery,
  .work-gallery {
    gap: 10px;
  }

  .legal-hero {
    padding: 3.75rem 0 3rem;
  }

  .legal-content {
    padding: 3rem 0;
  }

  .legal-index {
    padding: 1rem;
  }

  .legal-index a,
  .legal-index button {
    min-height: 44px;
  }

  .footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .footer-top {
    padding-bottom: 24px;
  }

  .footer-grid {
    gap: 24px 18px;
  }

  .footer-grid a,
  .footer-grid span,
  .footer-grid button {
    line-height: 1.45;
  }

  .mobile-cta {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    left: 8px;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(5,57,42,.12);
    border-radius: 16px;
  }

  .mobile-cta .contact-action {
    grid-template-columns: 30px 1fr;
    min-height: 52px;
    padding: 7px 9px !important;
    border-radius: 12px;
  }

  .mobile-cta .contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: .95rem;
  }

  .mobile-cta .contact-action small {
    display: none;
  }

  .mobile-cta .contact-action strong {
    font-size: .86rem !important;
    line-height: 1.15 !important;
    text-align: center;
  }

  .consent-panel {
    bottom: max(.5rem, env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 1rem - env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 440px) {
  .topbar .wrap span:nth-child(2) {
    display: none;
  }

  .topbar .wrap {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-grid > div {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .footer-grid > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }

  .consent-button,
  .consent-button.primary,
  .consent-button[data-consent="settings"] {
    grid-column: auto;
    width: 100%;
  }

  .privacy-status {
    padding: 1rem;
  }

  .privacy-status > span {
    width: 2.8rem;
    height: 2.8rem;
  }

  .service-page .service-hero-visual {
    min-height: 455px;
  }

  .service-page .article > .service-photo-pair {
    grid-template-rows: 200px 155px;
    height: 365px;
  }

  .mobile-cta .contact-action strong {
    font-size: .82rem !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .card:hover,
  .service-detail:hover,
  .target-card:hover,
  .post:hover,
  .service-tile:hover,
  .overview-visual-index a:hover,
  .method-track article:hover,
  .faq-enhanced > details:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Readability: keep full labels and descriptions visible in compact layouts. */
@media (max-width: 900px) {
  .cinema-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, min(70vw, 260px));
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }

  .cinema-rail button {
    min-width: 0;
    height: auto;
    overflow: visible;
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .cinema-rail b,
  .cinema-rail small {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

@media (max-width: 700px) {
  main h1,
  main h2,
  main h3 {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  main h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.8rem) !important;
    line-height: 1.13 !important;
  }

  .service-dock a {
    min-width: min(270px, calc(100vw - 52px)) !important;
    height: auto;
    grid-template-columns: 24px minmax(0, 1fr);
    align-content: center;
  }

  .service-dock strong,
  .service-dock small {
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.3;
  }

  .cinema-copy p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .cinema-copy h3 {
    max-width: none;
    font-size: clamp(1.65rem, 7.4vw, 2.15rem) !important;
    line-height: 1.15 !important;
  }

  .cinema-visuals {
    min-height: 580px;
  }

  .cinema-copy {
    bottom: 82px;
  }

  .cinema-rail button {
    min-height: 86px;
    padding: 12px;
  }

  .cinema-rail b {
    font-size: .9rem;
  }

  .cinema-rail small {
    font-size: .77rem;
  }

  .launchpad-actions a,
  .cta-strip .btn,
  .service-route-nav a,
  .overview-card a {
    height: auto;
    min-height: 48px;
    max-height: none;
    white-space: normal;
    overflow-wrap: break-word;
  }
}
