/* Homepage adaptation. Loaded after the original bundle; desktop stays intact. */
@media (max-width: 900px) {
  html { scroll-snap-type: none; }
  .page { min-height: 0; height: auto; scroll-snap-align: none; }
  .inner-page { padding-bottom: 36px; }
  .section-rail { display: none; }
  .site-header { gap: 16px; }
  .menu-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
  .mobile-nav {
    inset: var(--header) 0 auto;
    max-height: calc(100dvh - var(--header));
    padding: 16px var(--gutter) max(24px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  .mobile-nav a { min-height: 48px; font-size: 18px; line-height: 1.5; }
  .home-page .hero-scene { flex: none; min-height: 0; }
  .home-page .hero-content {
    width: min(82%, 680px);
    max-width: none;
    margin: 44px var(--gutter) 64px;
  }
  .home-page .hero-content h1 { font-size: clamp(38px, 5.6vw, 48px); }
  .home-page .hero-description { font-size: 16px; line-height: 1.7; }
  .home-page .hero-side-note { display: none; }
  .home-page .capabilities-strip { min-height: 0; padding: 24px var(--gutter); }
  .home-page .capabilities-strip > a { min-height: 48px; font-size: 13px; }
  .page-heading { align-items: flex-start; }
  .page-heading > p { max-width: 300px; font-size: 15px; }
  .services-page { padding-left: var(--gutter); padding-right: var(--gutter); }
  .services-page .service-layout { flex: none; padding: 0; }
  .services-page .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 20px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .services-page .service-item { min-width: 0; }
  .services-page .service-item h2 { min-height: 0; font-size: 17px; }
  .services-page .service-detail p { font-size: 16px; line-height: 1.65; }
  .service-card-body { padding: 20px 18px 24px; }
  .services-page .section-end { flex: none; margin-top: 0; }
  .section-end a { min-height: 44px; white-space: normal; }
  .collections-page { padding-left: var(--gutter); padding-right: var(--gutter); }
  .collections-page .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 20px;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .collections-page .collection-card { aspect-ratio: .7; height: auto; min-height: 0; }
  .collections-page .collection-custom { grid-column: 1 / -1; aspect-ratio: 1.65; }
  .collections-page .collection-card > span { padding: 20px; }
  .collections-page .collection-card strong { font-size: 20px; }
  .collection-action { font-size: 14px; }
  .advantages-page { padding-top: 44px; padding-bottom: 44px; }
  .advantages-list li { align-items: flex-start; }
  .advantages-list li > svg { margin-top: 5px; }
  .customer-reviews-page { padding-bottom: 16px; }
  .factory-page { padding-top: 28px; padding-bottom: 32px; }
  .review-image-dialog .dialog-close,
  .enquiry-dialog .dialog-close { width: 44px; height: 44px; font-size: 28px; }
  .review-evidence > span { min-height: 44px; }
  .site-footer nav { gap: 0; }
  .site-footer nav a { padding: 10px 0; min-height: 44px; }
  .site-footer .footer-contact > a { min-height: 44px; align-items: center; }
  .site-footer .footer-contact > a svg { margin-top: 0; }
  .contact-layout, .enquiry-form, .form-row, .form-row > label { min-width: 0; }
  .enquiry-form input, .enquiry-form select, .enquiry-form textarea { min-width: 0; font-size: 16px; }
}

@media (max-width: 767px) {
  :root { --header: 70px; --gutter: 24px; }
  .site-header { padding: 0 20px; }
  .header-quote { display: none; }
  .menu-toggle { margin-left: auto; }
  .wordmark { font-size: 20px; }
  .home-page .hero-content { width: auto; margin: 36px var(--gutter) 56px; }
  .home-page .hero-content h1 { font-size: clamp(32px, 9vw, 42px); line-height: 1.15; }
  .home-page .hero-content h1 br { display: none; }
  .home-page .hero-eyebrow { max-width: none; font-size: 13px; line-height: 1.6; margin-bottom: 18px; }
  .home-page .hero-subtitle { font-size: 18px; line-height: 1.55; margin-top: 20px; }
  .home-page .hero-description { margin-top: 16px; }
  .home-page .hero-actions { flex-wrap: wrap; gap: 16px 24px; margin-top: 26px; }
  .hero-actions .button, .hero-actions .text-button { min-height: 48px; font-size: 14px; }
  .hero-actions .button { max-width: 100%; }
  .home-page .image-caption { right: var(--gutter); bottom: 18px; }
  .home-page .capabilities-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .home-page .capabilities-strip > a { padding: 0; border: 0; gap: 10px; font-size: 12px; line-height: 1.6; }
  .home-page .capabilities-strip > a:last-child { grid-column: 1 / -1; }
  .home-page .capabilities-strip > a svg { width: 25px; height: 25px; }
  .inner-page { padding-top: 36px; padding-bottom: 36px; gap: 24px; }
  .page-heading { display: block; }
  .page-heading h1 { max-width: none; font-size: clamp(34px, 9vw, 43px); line-height: 1.1; }
  .page-heading > p { max-width: none; margin-top: 16px; font-size: 15px; line-height: 1.7; }
  .services-page .service-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .services-page .service-item {
    display: grid;
    grid-template-columns: clamp(80px, 24vw, 112px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
  }
  .service-card-photo { grid-column: 1; grid-row: 1; aspect-ratio: 1; }
  .service-card-body { display: contents; }
  .services-page .service-item h2 { grid-column: 2; grid-row: 1; align-self: center; gap: 8px; line-height: 1.45; }
  .services-page .service-item .service-icon { width: 20px; height: 20px; margin-top: 2px; }
  .services-page .service-detail { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .services-page .section-end { padding: 8px 0 0; min-height: 0; }
  .collections-page .collection-grid { gap: 14px; }
  .collections-page .collection-card { aspect-ratio: .6; }
  .collections-page .collection-custom { aspect-ratio: 1.3; }
  .collections-page .collection-card > span { padding: 16px 12px; gap: 8px; }
  .collections-page .collection-card strong { font-size: 17px; }
  .collection-action { font-size: 12px; gap: 5px; }
  .advantages-page { padding: 40px var(--gutter); }
  .advantages-content h2 { font-size: 30px; }
  .advantages-intro { font-size: 16px; }
  .advantages-list { align-items: stretch; gap: 16px; }
  .advantages-list li { justify-content: flex-start; text-align: left; font-size: 16px; }
  .advantages-list li > span { max-width: none; min-width: 0; }
  .advantages-cta { min-width: 0; width: min(100%, 260px); }
  .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .review-card { padding: 20px; }
  .review-quote { font-size: 16px; }
  .factory-page { padding-top: 24px; }
  .factory-gallery { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; }
  .factory-gallery .workshop-proof, .factory-gallery .inspection-proof, .factory-gallery .team-proof { grid-column: 1; grid-row: auto; aspect-ratio: 1.35; }
  .factory-gallery figcaption { font-size: 14px; }
  .factory-page .section-end { align-items: flex-start; padding: 8px 0 0; min-height: 44px; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .site-footer .footer-brand, .site-footer .footer-contact, .site-footer .footer-whatsapp { grid-column: 1 / -1; }
  .site-footer nav a { font-size: 14px; }
  .site-footer .footer-brand .wordmark { font-size: clamp(24px, 7vw, 27px); }
  .site-footer .footer-whatsapp .whatsapp-button { width: 100%; min-width: 0; max-width: 340px; font-size: 14px; }
  .contact-layout { display: flex; flex-direction: column; gap: 28px; }
  .contact-intro .contact-details > a { font-size: 16px; }
  .enquiry-form { padding: 24px 20px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .dialog-actions { flex-direction: column; }
  .enquiry-dialog { padding: 64px 20px 24px; }
}

@media (max-width: 359px) {
  :root { --gutter: 18px; }
  .site-header { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .wordmark { font-size: 18px; }
  .brand-gem { width: 20px; height: 20px; }
  .home-page .hero-content h1 { font-size: 32px; }
  .home-page .capabilities-strip { gap: 16px 12px; }
  .home-page .capabilities-strip > a { gap: 8px; }
  .home-page .capabilities-strip > a svg { width: 22px; height: 22px; }
  .collections-page .collection-grid { gap: 12px; }
  .collections-page .collection-card > span { padding: 14px 10px; }
  .collections-page .collection-card strong { font-size: 16px; }
  .review-card { padding: 18px; }
  .site-footer { gap: 26px 16px; }
}

@media (max-width: 900px) and (hover: none) {
  .collections-page .collection-card,
  .collection-grid.motion-ready:not(.in-view) .collection-card { opacity: 1; transform: none; }
  .collection-card .product-picture,
  .collection-card:hover .product-picture,
  .collection-card:focus-visible .product-picture { transform: none; }
}
