/* 100dvh adaptation: original typography, image assets and component CSS remain in style.css. */
html:has(.swipe-page), body.swipe-page { height: 100%; overflow: hidden; }
.swipe-page .site-wrapper { height: 100dvh; }
.swipe-container {
  position: relative; height: 100dvh; width: 100%; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; overscroll-behavior: none; touch-action: pinch-zoom;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -3px;
}
.swipe-container::-webkit-scrollbar { display: none; }
.swipe-section {
  position: relative; isolation: isolate; width: 100%; height: 100dvh; min-height: 100dvh; max-height: 100dvh;
  scroll-snap-align: start; scroll-snap-stop: always; overflow: clip;
  padding: max(54px, env(safe-area-inset-top)) 0 max(54px, calc(40px + env(safe-area-inset-bottom)));
}
.swipe-section .link_btn { position: relative; inset: auto; width: 230px; max-width: 100%; height: 50px; aspect-ratio: auto; border-radius: 999px; }
.swipe-section .link_btn::before { border-radius: 999px; }
.swipe-section .link_btn .text { font-size: 16px; line-height: 1.2; }
.swipe-section .link_btn .arrow { width: 12px; height: 12px; }
/* Hero: retain the original roof, flag, seasonal leaves, birds and clouds. */
/* Introduction: remove the transition-only blank sky; keep the animated house scene. */
/* Case study gallery: one framed card in view, with the next case peeking in. */
/* The full-height room illustrations become backgrounds for the existing content. */
/* Footer's three distinct information groups retain all original copy and links. */
/* Compact heights adjust space and imagery before type, never scale the entire page. */
@media (max-height: 700px) {
  .swipe-section { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-height: 570px) {
  .swipe-section .link_btn { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-page *, .swipe-page *::before, .swipe-page *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Explicitly override the original four/five-selector room rules at narrow widths. */
:root .swipe-page .swipe-section .link_btn { width: 230px; max-width: 100%; height: 50px; }
:root .swipe-page .swipe-section .link_btn .text { font-size: 16px; }
@media (max-height: 700px) {
  :root .swipe-page .swipe-section .link_btn { height: 46px; }
}
