/* Shared responsive rules follow the content and readability styles. */
body[data-page] .hero-visual { position: absolute; inset: 0; overflow: hidden; }
@media (max-width: 1100px) {
  body[data-page] .site-header {
    height: auto;
    min-height: 80px;
    flex-wrap: nowrap;
    gap: 16px;
  }
  body[data-page] .site-header nav {
    display: none;
    position: absolute;
    inset: calc(100% + 10px) 0 auto;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 14px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 40px #07333f22;
  }
  body[data-page] .site-header nav.open { display: flex; }
  body[data-page] .site-header nav a {
    padding: 14px 18px;
    min-height: 48px;
    font-size: 16px;
  }
  body[data-page] .site-header .nav-cta {
    margin-left: auto;
    white-space: nowrap;
    min-height: 44px;
  }
  body[data-page] .menu-toggle {
    display: flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }
  body[data-page] .menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
  }
  body[data-page] .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }
  body[data-page] .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }
  body[data-page]:has(.menu-toggle[aria-expanded="true"]) .floating-cta {
    visibility: hidden;
  }
}

@media (max-width: 800px) {
  body[data-page] .site-header { min-height: 74px; padding: 10px 12px; gap: 8px; }
  body[data-page] .site-header .brand,
  body[data-page] .site-header .brand img { width: 108px; }
  body[data-page] .site-header .nav-cta {
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
  }
  body[data-page] .floating-cta {
    width: auto;
    max-width: calc(100% - 32px);
    min-height: 48px;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 12px 16px;
    gap: 18px;
    border-radius: 30px;
  }
  body[data-page] .floating-cta strong { display: none; }
  body[data-page] .floating-cta small { margin: 0; font-size: 16px; font-weight: 600; }
  body[data-page] .floating-cta > svg { width: 20px; height: 20px; }
  body[data-page]:has(.contact-form-wrap :focus) .floating-cta,
  body[data-page]:has(.wt-query:focus) .floating-cta,
  body[data-page]:has(dialog[open]) .floating-cta { visibility: hidden; }
  body[data-page] .site-shell { padding-bottom: 84px; }
  body[data-page] .product-bottom { flex-wrap: wrap; gap: 12px 24px; }
  body[data-page] .product-bottom > span { max-width: 100%; }
  body[data-page] .closing .button { font-size: 18px; min-height: 58px; gap: 20px; width: 100%; max-width: 360px; }
  body[data-page="contact"] .contact-form-wrap .form-heading {
    font-size: clamp(28px, 7.6vw, 36px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.04em;
    margin-bottom: 28px;
  }
}

@media (max-width: 800px) {
  body[data-page] .hero { display: flex; flex-direction: column; height: auto; min-height: 0; }
  body[data-page] .hero-content { display: contents; }
  body[data-page] .hero-heading { order: 0; padding: 32px 7% 28px; }
  body[data-page] .hero h1 { font-size: clamp(39px, 10.8vw, 64px); line-height: 1.08; }
  body[data-page] .hero .eyebrow { max-width: 100%; margin-bottom: 20px; font-size: 11px; }
  body[data-page] .hero-visual { position: relative; inset: auto; order: 1; width: 100%; aspect-ratio: 16 / 10; flex-shrink: 0; }
  body[data-page] .hero .hero-image { object-position: 50% 52%; transform: none; }
  body[data-page] .hero-shade { background: #052a3626; }
  body[data-page] .hero-network .camera-pin {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
  }
  body[data-page] .hero-network .camera-pin > span {
    position: absolute;
    top: 50%;
    left: calc(100% + 8px);
    transform: translateY(-50%);
    padding: 6px 8px;
    border: 1px solid #c4e2dd80;
    border-radius: 7px;
    background: #07333ff2;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .04em;
  }
  body[data-page] .hero-network .pin-one > span,
  body[data-page] .hero-network .pin-four > span { left: auto; right: calc(100% + 8px); }
  body[data-page] .hero-bottom { order: 2; display: block; margin: 0; padding: 26px 7% 28px; }
  body[data-page] .hero-bottom p { font-size: 17px; line-height: 1.65; margin-bottom: 20px; }
  body[data-page] .hero-bottom .button { font-size: 15px; gap: 18px; padding: 16px; width: 100%; }
  body[data-page] .hero-watch { margin-top: 14px; min-height: 68px; }
  body[data-page] .hero-watch .play-circle { flex-shrink: 0; }
  body[data-page] .hero-watch > svg { margin-left: auto; }
}

@media (max-width: 680px) {
  body[data-page] .section-top { flex-wrap: wrap; align-items: center; }
  body[data-page] .section-top .eyebrow { max-width: 100%; }
  body[data-page] .section-top .button { margin-top: 0; font-size: 14px; min-height: 44px; }
  body[data-page] .statement-band {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    padding: 24px 16px;
    white-space: normal;
    text-align: center;
    font-size: clamp(20px, 5.5vw, 28px);
  }
  body[data-page] .statement-band > span:not(.statement-star) { flex-basis: 100%; }
  body[data-page] .walkthrough .wt-content { grid-template-columns: minmax(0, 1fr); }
  body[data-page] .walkthrough .wt-topbar { flex-wrap: wrap; gap: 8px; }
  body[data-page] .walkthrough .wt-query-form {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
  }
  body[data-page] .walkthrough .wt-search-icon { margin: 0; justify-self: center; }
  body[data-page] .walkthrough .wt-query { width: 100%; padding: 10px 4px; font-size: 16px; min-height: 44px; }
  body[data-page] .walkthrough .wt-search-button {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 44px;
    font-size: 15px;
  }
  body[data-page] .walkthrough .wt-camera-toolbar { gap: 10px; }
  body[data-page] .walkthrough .wt-mode button { min-height: 44px; font-size: 14px; }
  body[data-page] .walkthrough .wt-cameras,
  body[data-page] .walkthrough .wt-route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body[data-page] .walkthrough .wt-route::before { display: none; }
  body[data-page] .walkthrough .wt-route button {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 7px;
    border: 1px solid #38565f;
    border-radius: 8px;
  }
  body[data-page] .walkthrough .wt-route button[aria-current] { background: #244747; border-color: #91b96c; }
  body[data-page] .walkthrough .wt-route button > span:last-of-type { min-width: 0; }
  body[data-page] .walkthrough .wt-route-node { width: 26px; height: 26px; margin: 0; }
  body[data-page] .walkthrough .wt-route button strong { font-size: 14px; }
  body[data-page] .walkthrough .wt-route button small { font-size: 12px; }
  body[data-page] .walkthrough .wt-route-heading { align-items: baseline; flex-wrap: wrap; }
  body[data-page] .walkthrough .wt-play,
  body[data-page] .walkthrough .wt-reset,
  body[data-page] .walkthrough .wt-suggestions button { min-height: 44px; }
  body[data-page] .walkthrough .wt-playback { flex-wrap: wrap; gap: 12px 20px; }
  body[data-page] .walkthrough .wt-feedback { text-align: left; }
  body[data-page] .company-film .film-screen { min-height: 0; aspect-ratio: 16 / 9; }
  body[data-page] .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body[data-page] .contact-form-wrap { min-width: 0; }
  body[data-page] .contact-form-wrap input,
  body[data-page] .contact-form-wrap select,
  body[data-page] .contact-form-wrap textarea { min-width: 0; max-width: 100%; }
}

@media (max-width: 380px) {
  body[data-page] .site-header .brand,
  body[data-page] .site-header .brand img { width: 92px; }
  body[data-page] .site-header .nav-cta { padding: 10px; font-size: 12px; gap: 0; }
  body[data-page] .site-header .nav-cta svg { display: none; }
  body[data-page] .walkthrough .wt-workspace { padding: 10px; }
  body[data-page] .walkthrough .wt-results { padding: 10px; }
  body[data-page] .walkthrough .wt-match { flex-direction: column; align-items: flex-start; }
  body[data-page] .walkthrough .wt-route { grid-template-columns: minmax(0, 1fr); }
  body[data-page] .person h3 { font-size: 16px; }
  body[data-page] .person .person-role { font-size: 13px; }
}
