@media screen and (min-width: 701px) {
    .mobile-only {
        display: none !important;
    }
}

@media screen and (max-width: 980px) {
    .desktop-nav,
    .pc-only {
        display: none !important;
    }

    .about-grid,
    .qa-layout,
    .video-layout,
    .contact-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compact-heading {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .qa-heading {
        position: static;
        margin-bottom: 22px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 190px;
    }
}

@media screen and (min-width: 981px) and (max-width: 1599px) {
    .section {
        padding: 66px 0;
    }
}

@media screen and (max-width: 700px) {
    .pc-only {
        display: none !important;
    }

    body {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .section {
        padding: 40px 0;
    }

    .top-carousel-section {
        padding-top: 40px;
    }

    .mobile-story-video-section {
        display: block;
        background:
            radial-gradient(circle at 80% 10%, rgba(255, 200, 74, .18), transparent 28%),
            linear-gradient(180deg, #ffffff, #f6fdfd);
    }

    .mobile-story-video-frame {
        border-radius: 22px;
    }

    .highlight-swiper {
        padding-bottom: 36px;
    }

    .section-inner {
        width: min(100% - 28px, 520px);
    }

    .site-header {
        top: 10px;
    }

    .header-shell {
        width: calc(100% - 20px);
        min-height: 66px;
        padding: 9px 9px 9px 12px;
    }

    .brand-logo {
        max-height: 40px;
    }

    .brand-name {
        max-width: 150px;
        color: var(--ink);
        font-size: 15px;
        line-height: 1.05;
    }

    .site-header .header-shell {
        background: rgba(255, 255, 255, .9);
        border-color: rgba(255, 255, 255, .62);
    }

    .site-header .brand-logo-light {
        display: none;
    }

    .site-header .brand-logo-dark {
        display: block;
    }

    .hero-section,
    .hero-swiper,
    .hero-slide {
        min-height: 80vh;
        height: 80vh;
    }

    .hero-video-slide {
        min-height: 80vh;
        height: 80vh;
    }

    .hero-overlay,
    .hero-content,
    .hero-pagination {
        display: none;
    }

    .hero-nav {
        display: grid;
        width: 44px;
        height: 44px;
        bottom: 18px;
        top: auto;
        color: var(--ink);
        background: rgba(255, 255, 255, .82);
        border-color: rgba(255, 255, 255, .9);
    }

    .hero-nav-prev {
        right: 70px;
        left: auto;
    }

    .hero-nav-next {
        right: 18px;
    }

    .hero-media {
        transform: none;
    }

    .hero-video {
        min-height: 75vh;
    }

    h1 {
        font-size: clamp(45px, 14vw, 66px);
        line-height: .96;
        margin-bottom: 18px;
    }

    h2 {
        font-size: clamp(32px, 10vw, 46px);
    }

    .hero-content p {
        font-size: 16px;
        line-height: 1.62;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 160px;
        min-height: 52px;
        padding: 0 16px;
    }

    .scroll-cue {
        display: none;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .floating-note {
        left: 14px;
        right: 14px;
        width: auto;
        bottom: 14px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
        padding: 24px;
    }

    .section-heading.with-action {
        display: block;
    }

    .small-admin-link {
        margin-top: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
        gap: 10px;
    }

    .gallery-item {
        border-radius: 16px;
    }

    .gallery-wide {
        grid-column: span 2;
    }

    .gallery-tall {
        grid-row: span 1;
    }

    .contact-panel {
        padding: 26px;
    }

    .contact-info-top {
        padding: 14px;
        align-items: flex-start;
    }

    .contact-form {
        padding: 26px;
    }

    .leaflet-map {
        min-height: 280px;
    }

    .qa-toggle {
        min-height: 68px;
        padding: 18px;
    }

    .qa-toggle span {
        font-size: 16px;
    }

    .qa-panel > .rich-copy {
        padding: 0 18px;
    }

    .qa-item.is-active .qa-panel > .rich-copy {
        padding-bottom: 18px;
    }

    .contact-list > a,
    .contact-list > .contact-row {
        align-items: flex-start;
        overflow-wrap: anywhere;
    }

    .footer-grid {
        gap: 28px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: calc(104px + env(safe-area-inset-bottom));
        display: none;
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner.is-visible {
        display: flex;
    }

    .cookie-banner div {
        width: 100%;
    }

    .cookie-banner a,
    .cookie-banner button {
        flex: 1;
    }

    .legal-hero {
        min-height: 38vh;
        padding: 118px 0 46px;
    }

    .footer-brand img {
        max-height: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
