/* Phone refinements preserve the selected desktop composition. */
.photo-controls { display: none; }

@media (max-width: 800px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
  .site-header, .is-home .site-header {
    position: sticky;
    top: 0;
    inset-inline: auto;
    min-height: 80px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    background: var(--bg);
    z-index: 30;
    gap: 12px;
  }
  .brand img { width: 56px; height: 56px; }
  .is-home .site-header {
    position: absolute;
    inset-inline: 0;
    background: linear-gradient(180deg, #111213b3, #11121300);
  }
  .is-home .menu-toggle { background: var(--bg); }
  .site-header > .header-call, .nav { display: none; }
  .mobile-call { display: inline-flex; min-height: 44px; padding: 11px 16px; font-size: 14px; }
  .menu-toggle { display: block; min-height: 44px; padding: 11px 16px; font-size: 14px; margin-left: 0; }
  #mobile-nav { max-height: calc(100svh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  #mobile-nav a { min-height: 48px; }
  .footer { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  button { -webkit-user-select: none; user-select: none; }
}

@media (max-width: 600px), (max-width: 950px) and (max-height: 500px) and (pointer: coarse) {
  :root { --gutter: max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .is-home .site-header { min-height: 68px; padding-inline: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); gap: 8px; }
  .is-home .brand img { width: 44px; height: 44px; }
  .is-home .mobile-call, .is-home .menu-toggle { font-size: 12px; padding: 10px 13px; }
  .workshop-opening, .workshop-story { --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .workshop-opening {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: clamp(460px, 120vw, 650px);
    padding-bottom: 16px;
    overflow: hidden;
  }
  .workshop-opening::before {
    display: block;
    background: linear-gradient(180deg, #0009 0%, #0008 55%, #0001 68%, #0003 82%, #111213b3 100%), linear-gradient(90deg, #0004, transparent 70%);
  }
  .hero-copy { order: 0; padding-top: max(80px, calc(env(safe-area-inset-top, 0px) + 68px)); }
  .location-link { min-height: 44px; font-size: 9px; margin: 0 0 4px; }
  .location-link .ui-icon { width: 13px; height: 13px; }
  .hero-copy h1 { font-size: clamp(25px, 7.7vw, 34px); line-height: 1.08; text-wrap: nowrap; }
  .hero-copy h1 em { font-size: 1.04em; line-height: 1.08; margin-top: 2px; white-space: nowrap; }
  .hero-copy p { font-size: 13px; line-height: 1.5; margin-top: 14px; max-width: 30ch; }
  .hero-copy p::before { display: block; width: 24px; margin-bottom: 12px; }
  .hero-call {
    order: 1;
    position: static;
    width: auto;
    align-self: flex-start;
    max-width: none;
    min-height: 44px;
    margin-top: auto;
    margin-bottom: 14px;
    padding: 11px 14px;
    gap: 8px;
    font-size: 11px;
    justify-content: center;
  }
  .hero-call span { padding-left: 10px; }
  .hero-call .ui-icon { display: block; width: 15px; height: 15px; }
  .hero-photo {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
  }
  .hero-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
    mask-image: none;
  }
  .discover { order: 3; position: static; min-height: 44px; margin: 0; font-size: 8px; letter-spacing: .08em; }
  .workshop-story { display: block; height: auto; min-height: 0; padding: 36px var(--gutter) 24px; }
  .workshop-story::before { display: block; background: linear-gradient(90deg, #111213 0%, #111213e6 40%, #11121366 65%, transparent 100%), linear-gradient(0deg, #111213 0%, transparent 25%, #11121366 100%); }
  .story-copy { display: block; max-width: none; }
  .story-copy h2 { font-size: clamp(25px, 7.7vw, 34px); line-height: 1.1; }
  .story-copy h2 em { white-space: nowrap; font-size: 1.04em; max-width: 100%; line-height: 1.08; }
  .story-text { max-width: 56%; margin-top: 20px; font-size: 13px; line-height: 1.55; }
  .story-text::before { display: block; width: 24px; margin-bottom: 14px; }
  .story-text p + p { margin-top: 12px; }
  .story-photo { position: absolute; inset: 0 0 0 27%; z-index: -3; height: 100%; margin: 0; mask-image: linear-gradient(90deg, transparent, #000 25%); }
  .story-photo img { transform: scale(1.5); transform-origin: 64% 60%; filter: none; object-position: 50% 58%; mask-image: none; }
  .story-links { display: flex; flex-wrap: wrap; margin: 20px 0 0; gap: 0 12px; }
  .story-links .text-action { min-height: 44px; font-size: 10px; gap: 8px; justify-content: space-between; }
  .story-links .arrow { width: 12px; }
  .address-link { margin-top: 12px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; gap: 8px; line-height: 1.6; }
  .address-link .ui-icon { width: 14px; height: 14px; }
  .repair-section { padding-top: 52px; padding-bottom: 56px; }
  .section-intro { display: block; margin-bottom: 28px; }
  .section-intro h2 { font-size: clamp(34px, 9.7vw, 42px); line-height: 1.12; }
  .section-intro p { font-size: 16px; line-height: 1.7; margin-top: 20px; }
  .repair-choices { grid-template-columns: 1fr; }
  .repair-choice { grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 0; padding: 25px 0; align-items: start; }
  .repair-choice .service-icon { width: 64px; height: 72px; margin: 0; }
  .repair-choice h3 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
  .repair-choice p { font-size: 15px; line-height: 1.65; }
  .repair-choice .text-action { font-size: 13px; margin-top: 10px; min-height: 48px; gap: 12px; line-height: 1.6; }
  .unsure-link { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 0; padding-top: 26px; }
  .unsure-link img { grid-row: 1 / span 2; }
  .unsure-link p { font-size: 16px; }
  .unsure-link .text-action { margin-left: 0; font-size: 14px; }
  .text-action { font-size: 14px; min-height: 48px; text-underline-offset: 6px; }
  .social-section, .reviews-section, .find-us { padding-top: 56px; padding-bottom: 56px; }
  .social-section .social-photo-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    padding-bottom: 12px;
  }
  .social-section .social-photo, .social-section .social-photo:last-child { flex: 0 0 88%; max-width: none; min-width: 0; scroll-snap-align: start; }
  .social-section .social-photo-grid::after { content: ''; flex: 0 0 calc(12% - 16px); }
  .social-section .social-photo-caption { font-size: 15px; padding-top: 14px; }
  .photo-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; color: var(--muted); font-size: 14px; }
  .photo-controls > div { display: flex; gap: 12px; }
  .photo-controls button { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); }
  .photo-controls button:disabled { opacity: .35; cursor: default; }
  .photo-prev .arrow { transform: rotate(180deg); }
  .reviews-section .section-intro > div { margin-top: 22px; }
  .customer-quotes { gap: 26px; }
  .customer-quote blockquote { font-size: 23px; line-height: 1.5; margin-bottom: 20px; }
  .customer-quote figcaption { font-size: 14px; }
  .customer-quote figcaption span, .section-intro .source-date { font-size: 13px; }
  .find-us { gap: 28px; }
  .find-copy p, .find-copy .hours { font-size: 16px; }
  .find-copy .btn { width: 100%; font-size: 15px; }
  .map-caption { font-size: 13px; padding: 14px 16px; }
  .map-caption .text-action { font-size: 14px; }
  .footer { padding-top: 48px; }
  .footer nav { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 20px; }
  .footer nav a { min-height: 48px; font-size: 14px; line-height: 1.5; padding: 8px 0; }
  .footer .demo-note { font-size: 12px; }
  .inner-page, .work-page { padding-top: 18px; }
  .inner-opening { gap: 26px; }
  .page-intro h1 { font-size: clamp(35px, 10.7vw, 46px); line-height: 1.12; }
  .lead, .prose p, .work-collection > p, .faq-list summary { font-size: 16px; line-height: 1.75; }
  .page-photo { height: clamp(320px, 100vw, 440px); }
  .callbox .btn { font-size: 14px; min-height: 52px; }
  .callbox p, .callbox ul { font-size: 15px; }
  .form-shell { padding-top: 18px; }
  .form-side h1 { font-size: clamp(32px, 9.3vw, 38px); }
  .form-side > p { font-size: 16px; }
  .form-side .back { min-height: 44px; font-size: 14px; }
  .form-main { margin-inline: 0; padding: 26px 16px; }
  .form-main > .intro { font-size: 15px; }
  .service { min-height: 112px; padding: 16px 12px; gap: 12px; }
  .service-title { font-size: 19px; line-height: 1.4; }
  .form-main .service-desc { font-size: 13px; line-height: 1.6; }
  .form-main .service-icon { width: 44px; height: 52px; }
  .service input { width: 22px; height: 22px; }
  .form-main .btn, .form-main .text-action { font-size: 14px; min-height: 48px; }
  .selected-summary { flex-wrap: wrap; }
  .selected-summary strong { font-size: 14px; }
  .selected-summary .text-action { font-size: 13px; margin-left: 45px; }
  .field input, .field textarea { font-size: 16px; }
}

@media (max-width: 360px) {
  .hero-call { gap: 8px; font-size: 11px; padding-inline: 12px; }
  .hero-call .ui-icon { display: none; }
  .repair-choice { grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; }
  .repair-choice .service-icon { width: 52px; height: 64px; }
  .repair-choice h3 { font-size: 20px; }
  .repair-choice .text-action { font-size: 12px; }
  .service { gap: 8px; padding-inline: 9px; }
  .service-title { font-size: 17px; }
  .form-main .service-icon { width: 36px; }
  .form-main .service-desc { font-size: 12px; }
  .steps { gap: 12px; }
}

@media (pointer: coarse) {
  .btn:active, .mobile-call:active { filter: brightness(.88); }
  .menu-toggle:active, .photo-controls button:not(:disabled):active { background: var(--raised); }
  .service:active { background: var(--raised); }
}
