﻿@media (max-width:800px) {
  html {scroll-padding-top:72px;-webkit-text-size-adjust:100%}
  body {overflow-x:clip}
  *,*::before,*::after {box-sizing:border-box}
  .header {position:sticky;top:0;z-index:100}
  .mobile-menu {display:grid;place-items:center;min-width:46px;min-height:46px;touch-action:manipulation}
  .header-nav:not(.open) {display:none}
  .header-nav.open {display:flex;flex-direction:column;position:absolute;left:0;right:0;top:100%;max-height:calc(100dvh - 70px);overflow-y:auto;background:#f2efe8;padding:16px;box-shadow:0 15px 30px #0003;z-index:101}
  .header-nav a {min-height:48px;display:flex;align-items:center;padding:12px}
  .section-width {width:calc(100% - 36px);max-width:100%}
  .hero {min-height:0!important;display:flex!important;flex-direction:column;padding:40px 0 0!important;overflow:hidden}
  .hero-copy {position:relative!important;width:calc(100% - 40px)!important;margin:0 20px!important;padding:0!important;text-align:left!important}
  .hero h1 {font-size:clamp(36px,10vw,54px)!important;line-height:1.18!important;overflow-wrap:anywhere}
  .hero-copy p {font-size:15px!important;line-height:1.75!important}
  .hero-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hero-actions a {min-height:48px;display:flex;align-items:center;justify-content:center;text-align:center}
  .hero-visual {position:relative!important;inset:auto!important;width:100%!important;height:clamp(270px,85vw,420px)!important}
  .hero-bottom-label {display:none}
  button,a,input,select,textarea {touch-action:manipulation}
  button {min-height:44px}
  input,select,textarea {font-size:16px!important;max-width:100%}
  .quote-form,.quote-grid,.form-two {min-width:0;max-width:100%}
  .form-two {grid-template-columns:1fr!important}
  #quoteTitle {white-space:normal!important;overflow-wrap:anywhere}
  #upgrade .budget-form-row {grid-template-columns:1fr!important}
  #upgrade .budget-detail-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #upgrade button {min-height:48px}
  .works-mobile,.craft-rail {overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  .case-dialog {width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important}
  .case-wrap {width:100%;max-width:100%;padding:0 16px 30px}
  .case-header {position:sticky;top:0;z-index:5}
  .case-actions button {min-height:48px}
  .compare-frame {touch-action:pan-y}
  #compareInput {touch-action:pan-y}
}
@media (max-width:390px) {
  .hero-actions {grid-template-columns:1fr}
  .hero h1 {font-size:36px!important}
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* Mobile repair: isolated from desktop layout. */
@media(max-width:800px){
 #craft .craft-inner{display:flex;flex-direction:column;gap:24px;padding-block:56px;width:calc(100% - 36px)}
 #craft .craft-copy{width:100%;max-width:none} #craft .craft-preview{width:100%;margin:0;min-width:0}
 #craft .craft-preview figure{margin:0;width:100%} #craft .craft-preview img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
 #craft .craft-rail{position:static;display:flex;width:100%;max-width:100%;gap:10px;padding:4px 2px 12px;transform:none;flex-wrap:nowrap}
 #craft .craft-chip{flex:0 0 116px;min-height:100px;white-space:normal} #craft .craft-chip-thumb{width:100%;height:64px}
 .works-mobile{width:100%;scroll-padding-inline:18px} .works-mobile .works-tile{flex:0 0 85%;height:300px;max-width:360px;animation:none}
 .case-dialog .case-header{gap:8px}.case-dialog .case-header button{min-width:44px;min-height:44px;padding:5px 10px}
 .case-dialog .case-brand{font-size:10px;letter-spacing:.05em}.case-dialog .case-actions{min-width:0;width:100%}
 #upgrade .budget-scene,#upgrade .budget-left-scrim{display:none}
 #upgrade .upgrade-left.budget-photo-side{min-height:0;padding:56px 18px 16px;gap:0}
 #upgrade .budget-photo-caption{display:none} #upgrade .budget-panel-side{padding:0 12px 56px}
 #upgrade .budget-card{padding:20px 16px} #upgrade .budget-options{grid-template-columns:repeat(4,minmax(0,1fr))}
 #upgrade .budget-study-mark{display:none} #upgrade .budget-recommend{padding:16px}
 #upgrade .budget-mobile-viewer{margin:16px 0;background:#e9dfd2;border:1px solid #d7c6b0;border-radius:12px;overflow:hidden}
 #upgrade .budget-mobile-viewer img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#e9dfd2}
 #upgrade .budget-mobile-viewer figcaption{padding:12px 14px;color:#493727;font-size:14px;line-height:1.6}
 #upgrade .budget-mobile-viewer button{margin:0 14px 12px;padding:8px 14px;background:#543923;color:white;border:0;border-radius:6px}
 #upgrade .budget-mobile-status{margin:0 14px 12px;font-size:12px;color:#715d48}
 #upgrade .budget-detail-tile img{height:auto;aspect-ratio:4/3;object-fit:contain}
 #upgrade .budget-estimate-panel{flex-wrap:wrap;row-gap:12px}
 #process.process-fullscreen{height:auto;min-height:0}
 #process .process-stage{position:relative;height:auto;aspect-ratio:4/3;margin-top:0}
 #process .process-stage::after{background:linear-gradient(0deg,#1b1512,transparent 40%)}
 #process .process-overlays{position:relative;inset:auto;padding:24px 18px 40px;gap:26px;pointer-events:auto}
 #process .process-heading{width:100%} #process .process-heading-caption{font-size:13px}
 #process .process-bottom-panel{gap:20px} #process .process-stage-overlay{min-height:124px}
 #process .process-stage-overlay p{font-size:14px;max-width:100%}
 #process .process-icon-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:100%;padding:5px;gap:2px;overflow:visible}
 #process .process-icon-btn{min-width:0;width:100%;padding:8px 2px;min-height:88px;gap:6px}
 #process .process-icon-btn strong{font-size:12px;white-space:normal;line-height:1.5;max-width:3em;text-align:center}
 #guarantee{height:auto!important;min-height:0!important;padding:56px 18px 40px!important}
 #guarantee .guarantee-shell{width:100%;max-width:100%;margin:0;padding:0}
 #guarantee .guarantee-flow-frame{min-height:0;width:100%;margin-top:24px}
 #guarantee .guarantee-services{position:relative;inset:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #guarantee.flow-open .guarantee-services{display:none}
 #guarantee .guarantee-cinematic{display:none;position:relative;inset:auto;overflow:visible}
 #guarantee.flow-open .guarantee-cinematic{display:block}
 #guarantee .guarantee-flow-track{display:flex;flex-direction:column;min-width:0;height:auto;padding:8px 0;gap:18px}
 #guarantee .flow-lines{display:none}
 #guarantee .flow-step{display:grid;grid-template-columns:64px 1fr;text-align:left;justify-items:start;padding:12px;gap:4px 18px;width:100%;background:#201913e6;border:1px solid #806344;border-radius:10px;animation:none!important;opacity:1;transform:none}
 #guarantee .flow-cube{grid-row:1/4;width:48px;height:48px;margin:6px 0 0}
 #guarantee .flow-step strong{font-size:15px;white-space:normal}
 #guarantee .flow-step-caption{font-size:13px;white-space:normal}
 #guarantee .flow-step-detail{position:static;transform:none!important;opacity:1;visibility:visible;min-width:0;max-width:100%;width:auto;padding:0;border:0;box-shadow:none;background:none;font-size:13px;pointer-events:auto}
 #guarantee .guarantee-footer{flex-wrap:wrap;gap:12px}
 .zx-static-preview-note{position:static!important;border-radius:0!important;text-align:center}
}
@media(min-width:801px){.budget-mobile-viewer{display:none}}

/* Screenshot feedback: edge-to-edge imagery, compact forms, no swipe-only content. */
@media(max-width:800px){
 #upgrade .budget-form-row{gap:14px;margin:0 0 18px}
 #upgrade .budget-form-row .field{margin:0;line-height:1.5;font-size:12px}
 #upgrade .budget-form-row select{margin-top:6px;height:48px;min-height:48px}
 #upgrade .budget-options{margin-bottom:18px}
 #upgrade .budget-card h3{margin-top:16px;margin-bottom:8px}
 #upgrade .budget-card .budget-top{padding-bottom:12px}
 #upgrade .budget-card .budget-card-subline{margin-bottom:16px}
 #upgrade .budget-mobile-viewer{margin:14px 0;border-radius:10px;background:#fffaf4}
 #upgrade .budget-mobile-viewer img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;background:transparent}
 #upgrade .budget-mobile-viewer figcaption{padding:10px 12px 4px;font-size:13px;line-height:1.5}
 #upgrade .budget-mobile-status{margin:0 12px 10px;font-size:11px;line-height:1.6}
 #upgrade .budget-mobile-viewer button{margin:2px 12px 12px}
 #upgrade .budget-detail-tile{padding:0;gap:0;overflow:hidden;border-radius:8px;transform:none}
 #upgrade .budget-detail-tile img{border-radius:0;aspect-ratio:3/2;height:auto;object-fit:cover;background:transparent}
 #upgrade .budget-detail-tile span{padding:10px 8px;font-size:12px;min-height:48px}
 #upgrade .budget-detail-tile.active{outline:2px solid #8d673c;outline-offset:1px}
 #upgrade .craft-tags{display:none}
 #upgrade .budget-recommend-title small{font-size:11px;letter-spacing:0}
 #upgrade .budget-recommend h4{font-size:18px;margin:8px 0}
 #upgrade .budget-recommend p{margin:0;font-size:12px}
 #craft .craft-inner{gap:18px;min-height:0;padding:44px 0}
 #craft .craft-copy{padding:0}#craft .craft-copy h2{margin-bottom:16px}
 #craft .craft-copy>p:not(.section-kicker){margin-bottom:12px}
 #craft .craft-preview img{aspect-ratio:4/3;object-fit:cover;transform:none}
 #craft .craft-preview figcaption{padding:32px 16px 16px}
 #craft .craft-rail{display:grid;grid-template-columns:1fr;gap:8px;margin:0;padding:3px;overflow:visible;scroll-snap-type:none}
 #craft .craft-chip{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:14px;min-height:64px;width:100%;padding:5px;text-align:left;transform:none;border-radius:6px}
 #craft .craft-chip .craft-chip-thumb{width:76px;height:52px;border-radius:3px}
 #craft .craft-chip>span:last-child{padding:0;font-size:14px;letter-spacing:.02em}
 #craft .craft-chip.active{border:2px solid #dbb27b;background:#3d3023}
 #work{padding:44px 0 36px}
 #work .works-heading{margin-bottom:22px}#work .section-kicker{margin-bottom:16px}
 #work .works-heading>p{padding:0;margin:16px 0 0;line-height:1.8}
 #work .works-mobile{display:grid;grid-template-columns:minmax(0,1fr);width:calc(100% - 36px);margin:0 auto;padding:0;gap:24px;overflow:visible;scroll-snap-type:none}
 #work .works-mobile .works-tile{display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:none;height:auto;min-height:0;padding:0;gap:0;background:transparent;border:0;border-radius:0;overflow:hidden;text-align:left;scroll-snap-align:none}
 #work .works-mobile .works-tile img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transform:none;filter:none;background:#e9e2d8;border-radius:8px}
 #work .works-mobile .works-tile:after{display:none}
 #work .mobile-case-title{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:16px;line-height:1.5;padding:12px 0;color:inherit;border-bottom:1px solid #bca98e55}
 #work .mobile-case-title:after{content:'↗';font-size:22px;color:#947047}
 #work .works-bottom{margin-top:24px}#work .works-bottom>span{display:none}
 .zx-help-launch{width:44px;height:44px;right:12px;bottom:calc(80px + env(safe-area-inset-bottom));opacity:.94}
 .line-float{right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;transform:scale(.82);transform-origin:bottom right}
 body.zx-mobile-detail .zx-help-launch,body.zx-mobile-detail .line-float{visibility:hidden;pointer-events:none}
}

/* Unified mobile material study and three-column detail selector. */
@media(max-width:800px){
 #upgrade .budget-mobile-viewer>.budget-recommend{margin:0;border:0;border-radius:0;padding:16px 14px;background:#f3eadf}
 #upgrade .budget-mobile-viewer{margin-top:0}
 #upgrade .budget-mobile-viewer figcaption[hidden]{display:none}
 #upgrade .budget-mobile-viewer>.budget-mobile-status{margin-top:8px}
 #upgrade .budget-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
 #upgrade .budget-detail-tile img{aspect-ratio:1/1;object-fit:cover}
 #upgrade .budget-detail-tile span{font-size:11px;line-height:1.45;min-height:44px;padding:7px 4px;overflow-wrap:anywhere}
 #upgrade .budget-detail-tile{min-width:0}
}

/* Larger image inspection, centered product studies, separated process heading. */
@media(max-width:800px){
 #upgrade .budget-mobile-viewer .budget-image-enlarge{display:block;position:relative;width:100%;padding:0;margin:0;border:0;border-radius:0;background:#eeeae5;overflow:hidden;cursor:zoom-in}
 #upgrade .budget-mobile-viewer .budget-image-enlarge img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}
 #upgrade .budget-zoom-hint{position:absolute;right:10px;bottom:10px;padding:7px 10px;background:#fffaf1ed;color:#584027;font-size:11px;border:1px solid #d1bda0;border-radius:20px}
 #work .works-mobile .works-tile{border:1px solid #ddcfbb;border-radius:10px;background:#fbf7ef;box-shadow:none}
 #work .works-mobile .works-tile img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;object-position:center;padding:24px;transform:none;border-radius:0;background:#ede8df;filter:none}
 #work .mobile-case-title{display:grid;grid-template-columns:1fr;gap:7px;padding:18px 16px;border:0;background:#fbf7ef}
 #work .mobile-case-title:after{display:none}
 #work .mobile-case-title small{font-size:10px;color:#9a7c57;letter-spacing:.1em;font-weight:500;line-height:1.5}
 #work .mobile-case-title strong{font-family:var(--serif,'Noto Serif TC',serif);font-size:18px;line-height:1.55;color:#33291f;font-weight:500;overflow-wrap:anywhere}
 #work .mobile-case-link{font-size:11px;color:#8b6840;line-height:1.5;margin-top:5px;justify-self:end}
 #process>.process-heading{width:100%;padding:44px 18px 30px;margin:0;background:#1b1512;border-bottom:1px solid #6c533b55}
 #process>.process-heading .section-kicker{margin:0 0 16px;color:#d9b57f;font-size:10px}
 #process>.process-heading h2{margin:0;color:#fff5e7}
 #process>.process-heading h2 em{color:#ddbb86;font-style:normal}
 #process>.process-heading .process-heading-caption{color:#c5b7a7;font-size:13px;line-height:1.9;margin:16px 0 0}
 #process .process-stage{aspect-ratio:4/3}
 #process .process-overlays{padding:24px 18px 38px;gap:0}
 #process .process-stage-overlay{min-height:0;padding-bottom:22px;margin-bottom:0}
 #process .process-stage-overlay h3{font-size:26px;line-height:1.4;margin:8px 0}
 #process .process-stage-overlay p{font-size:13px;line-height:1.85}
 #process .process-bottom-panel{gap:0}
 #process .process-icon-bar{border-top:1px solid #89664277;padding:8px 5px}
}

/* Preserve the full scene and its native ratio for future uploads. */
@media(max-width:800px){
 #work .works-mobile .works-tile img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;object-position:center;padding:0;transform:none;background:#ede8df;border-radius:0}
}
