/* Independent small-screen composition. Desktop layout and its motion stay intact. */
.header-cta .cta-label-desktop { font-size: inherit; transition: none; }
.header-cta:hover > .cta-label-desktop { transform: none; }
.cta-label-mobile { display: none; }

@media (max-width:900px) {
  :root { --mobile-header: 80px; }
  html { scroll-padding-top: calc(var(--mobile-header) + env(safe-area-inset-top) + 16px); }
  .site-header { padding-top: env(safe-area-inset-top); }
  .header-inner { gap: 16px; padding-left: max(var(--gutter),env(safe-area-inset-left)); padding-right: max(var(--gutter),env(safe-area-inset-right)); }
  .header-inner .brand { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
  .menu-button { width: 44px; height: 44px; padding: 10px; flex-shrink: 0; touch-action: manipulation; }
  .mobile-nav { top: calc(var(--mobile-header) + env(safe-area-inset-top)); height: calc(100dvh - var(--mobile-header) - env(safe-area-inset-top)); overscroll-behavior: contain; }
  .mobile-nav-inner { gap: 4px; padding: 22px max(var(--gutter),env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left)); }
  .mobile-nav-inner > a:not(.button) { display: flex; align-items: center; min-height: 52px; padding: 7px 0; font-size: 24px; }
  .mobile-nav-inner .button { width: 100%; max-width: 440px; margin-top: 20px; }
  .mobile-nav-inner .mobile-phone { margin-top: 10px; }
  .button, .text-link, .category, .project-image { touch-action: manipulation; }
  /* Touch should not leave desktop hover transforms latched after tapping. */
  .project-image:hover img { transform: none; }
  .contact-calculator { display: flex; width: fit-content; max-width: 100%; align-items: center; min-height: 44px; }
  .site-footer a { min-height: 44px; min-width: 44px; }
  .footer-top nav a, .footer-address a, .footer-bottom a { display: inline-flex; align-items: center; }
  .footer-top .brand { display: flex; flex-direction: column; align-items: start; justify-content: center; }
  .footer-address > div a { min-height: 44px; }
}

/* Tablet gets a purposeful two-part composition, not a squeezed desktop column. */
@media (min-width:701px) and (max-width:900px) {
  .hero { min-height: 540px; }
  .hero-copy { padding: 38px 28px 32px var(--gutter); }
  .hero h1 { font-size: 36px; margin: 30px 0 20px; }
  .hero-actions { margin-bottom: 0; }
  .hero-actions .button { width: 100%; gap: 12px; padding: 16px; }
  .hero-service { display: none; }
  .section-heading { align-items: start; }
  .section-heading > p { padding-top: 32px; }
  .category > p { font-size: 14px; }
  .configurator { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 26px; }
  .configurator-copy { display: contents; }
  .configurator-copy > .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
  .configurator h2 { grid-column: 1; grid-row: 2; margin: 18px 0; }
  .configurator-copy > p:not(.eyebrow) { grid-column: 1; grid-row: 3; }
  .configurator-copy > .button { grid-column: 1; grid-row: 4; margin-top: 24px; gap: 14px; }
  .configurator-visual { grid-column: 2; grid-row: 1 / 5; }
  .furniture-accent { height: 360px; }
  .configurator-guide { grid-column: 1 / -1; max-width: none; margin-top: 36px; }
  .configurator-guide ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
  .configurator-guide li { grid-template-columns: 20px 1fr; gap: 10px; }
  .configurator-guide h3 { font-size: 17px; line-height: 1.3; }
  .configurator-guide li p { font-size: 12px; line-height: 1.65; }
  .preview-note { max-width: 540px; }
  .contact { grid-template-columns: 1fr 1.1fr; gap: 32px; }
  .contact-phone { font-size: 26px; min-height: 44px; }
  .contact-copy h2 { font-size: 32px; }
  .footer-top > div:first-child { grid-row: 1; }
  .footer-top nav { grid-column: 2; grid-row: 1 / 3; }
  .footer-top nav { gap: 0; }
  .footer-address { grid-column: 1; grid-row: 2; }
  .footer-address > a { font-size: 20px; }
}

@media (max-width:700px) {
  :root { --gutter: 22px; --mobile-header: 72px; }
  .header-inner { height: var(--mobile-header); gap: 12px; }
  .header-inner .brand { font-size: 18px; }
  .brand span { font-size: 7px; margin-top: 6px; }
  .header-cta { font-size: 12px; gap: 9px; padding: 10px 0; }
  .cta-label-desktop { display: none; }
  .header-cta .cta-label-mobile { display: inline; font-size: inherit; }
  .header-cta:hover > .cta-label-mobile { transform: none; }
  .menu-button { margin-right: -10px; }
  .mobile-nav-inner { padding-top: 18px; }
  .mobile-nav-inner > a:not(.button) { font-size: 22px; min-height: 48px; }
  .mobile-nav-inner .button { margin-top: 16px; }
  /* Title and primary action come first; photography precedes supporting copy. */
  .hero { display: grid; grid-template-columns: minmax(0,1fr); padding: 26px 0 28px; }
  .hero-copy, .hero-actions { display: contents; }
  .hero .eyebrow { grid-row: 1; margin: 0 var(--gutter); font-size: 9px; letter-spacing: .09em; }
  .hero h1 { grid-row: 2; margin: 16px var(--gutter) 20px; font-size: clamp(31px,8.1vw,40px); line-height: 1.1; }
  .hero-actions .button { grid-row: 3; margin: 0 var(--gutter) 24px; font-size: 14px; min-height: 52px; padding: 14px 18px; }
  .hero-photo { grid-row: 4; width: 100%; height: clamp(200px,36svh,330px); }
  .hero-photo img { object-position: 50% 66%; }
  .hero-photo figcaption { bottom: 18px; left: var(--gutter); right: var(--gutter); font-size: 10px; }
  .hero-photo figcaption span:last-child { display: none; }
  .hero-description { grid-row: 5; margin: 22px var(--gutter) 8px; max-width: 480px; font-size: 14px; line-height: 1.7; }
  .hero-actions .text-link { grid-row: 6; justify-self: start; margin: 0 var(--gutter); font-size: 13px; min-height: 44px; }
  .section { padding: 48px var(--gutter); }
  h2, .material-copy h2, .contact-copy h2 { font-size: clamp(29px,7.6vw,36px); line-height: 1.14; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p { font-size: 14px; line-height: 1.7; margin-top: 18px; }
  .category-list { display: block; border: 0; }
  .category, .category:first-child { display: grid; grid-template-columns: 24px minmax(0,1fr) 44px; gap: 8px 12px; align-items: center; padding: 20px 0; border: 0; border-top: 1px solid var(--line); }
  .category-number { grid-column: 1; grid-row: 1; font-size: 11px; }
  .category h3 { grid-column: 2; grid-row: 1; font-size: 26px; margin: 0; }
  .category > p { grid-column: 2 / -1; grid-row: 2; font-size: 14px; line-height: 1.65; margin: 0; max-width: 380px; }
  .category-bottom { grid-column: 3; grid-row: 1; border: 0; width: 44px; height: 44px; font-size: 0; margin: 0; justify-content: end; }
  .category-bottom::after { display: none; }
  .category-bottom > span { font-size: 24px; }
  .category:last-child { padding-bottom: 0; }
  .project-primary .project-image { aspect-ratio: 1.08; }
  .project-primary .project-image img { object-position: 47% 58%; }
  .project-secondary { width: 88%; margin: 38px 0 0 auto; }
  .project-secondary .project-image { aspect-ratio: .9; }
  .project-secondary .project-image img { object-position: 54% 50%; }
  .image-action { width: 44px; height: 44px; }
  .project-caption h3 { font-size: 24px; }
  .project-caption > p { font-size: 13px; max-width: none; }
  .portfolio-bottom > p { font-size: 14px; }
  .portfolio-bottom > p br { display: none; }
  .portfolio-bottom .text-link { font-size: 13px; }
  .process-list li { grid-template-columns: 24px minmax(0,1fr); gap: 8px 12px; padding: 20px 0; }
  .process-list h3 { font-size: 23px; }
  .process-list p { font-size: 14px; line-height: 1.65; }
  .materials { display: grid; grid-template-columns: minmax(0,1fr); }
  .material-copy { display: contents; }
  .material-copy > .eyebrow { grid-row: 1; margin: 48px var(--gutter) 0; }
  .material-copy h2 { grid-row: 2; margin: 18px var(--gutter); }
  .material-intro { grid-row: 3; margin: 0 var(--gutter) 26px; max-width: 480px; font-size: 14px; line-height: 1.7; }
  .material-photo { grid-row: 4; height: clamp(240px,68vw,350px); }
  .material-photo img { height: 175%; width: 140%; left: -20%; }
  .material-details { grid-row: 5; margin: 26px var(--gutter) 32px; }
  .material-details dt { font-size: 17px; }
  .material-details dd { font-size: 14px; line-height: 1.65; }
  .configurator { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .configurator-copy { display: contents; }
  .configurator-copy > .eyebrow { grid-row: 1; }
  .configurator h2 { grid-row: 2; margin: 18px 0; }
  .configurator-copy > p:not(.eyebrow) { grid-row: 3; max-width: 480px; font-size: 14px; line-height: 1.7; }
  .configurator-copy > .button { grid-row: 4; margin-top: 24px; font-size: 14px; gap: 16px; }
  .configurator-visual { grid-row: 5; margin: 20px 0 28px; }
  .furniture-accent { height: clamp(260px,74vw,350px); max-width: 360px; }
  .configurator-visual figcaption { font-size: 11px; margin-top: 4px; }
  .configurator-guide { grid-row: 6; max-width: 480px; margin: 0; }
  .configurator-guide ol { margin: 16px 0; }
  .configurator-guide li { grid-template-columns: 22px minmax(0,1fr); padding: 16px 0; gap: 12px; }
  .configurator-guide h3 { font-size: 18px; line-height: 1.25; }
  .configurator-guide li p { font-size: 13px; line-height: 1.65; }
  .preview-note { font-size: 12px; line-height: 1.7; }
  .contact-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.7; }
  .contact-phone { font-size: clamp(25px,7.3vw,31px); min-height: 44px; margin-top: 22px; }
  .contact-calculator { font-size: 13px; margin-top: 12px; }
  .contact-form { margin-top: 30px; }
  .contact-form h3 { font-size: 23px; line-height: 1.2; }
  .form-row label { font-size: 13px; }
  .form-row label span { display: block; margin-left: 0; font-size: 11px; }
  .form-row input, .form-row textarea { min-height: 48px; scroll-margin-top: calc(var(--mobile-header) + 24px); }
  .form-row textarea { min-height: 90px; }
  .contact-form .button { font-size: 14px; gap: 16px; }
  .form-note { font-size: 12px; }
  .site-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .footer-top { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .footer-top > div:first-child { grid-row: 1; }
  .footer-address { grid-row: 2; grid-column: 1; width: 100%; border-top: 1px solid #ffffff25; padding-top: 16px; }
  .footer-address > a { font-size: 23px; }
  .footer-address p { font-size: 13px; margin-top: 6px; }
  .footer-address > div { display: flex; gap: 28px; font-size: 13px; margin-top: 8px; }
  .footer-top nav { grid-row: 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; font-size: 13px; border-top: 1px solid #ffffff25; padding-top: 12px; }
  .footer-top nav a { padding: 8px 0; }
  .footer-bottom { align-items: center; }
  /* Shorter one-time reveals on touch: never an ongoing animation loop. */
  .js-motion [data-motion], .js-motion [data-motion="lines"] .motion-line > span { transition-duration: .6s; }
  .js-motion .process-list li::before, .js-motion .material-details > div::before { transition-duration: .6s; transition-delay: 0ms; }
}

@media (max-width:359px) {
  :root { --gutter: 18px; }
  .header-inner { gap: 10px; }
  .header-inner .brand { font-size: 17px; }
  .header-cta { font-size: 12px; }
  .hero h1 { font-size: 31px; }
  .category h3 { font-size: 24px; }
  .project-caption h3 { font-size: 22px; }
  .configurator-copy > .button, .contact-form .button { font-size: 13px; }
}

@media (max-width:900px) and (max-height:500px) {
  .mobile-nav-inner > a:not(.button) { min-height: 44px; font-size: 20px; }
  .mobile-nav-inner { padding-top: 12px; }
  .mobile-nav-inner .button { margin-top: 10px; }
}
