.app-tabbar { display: none; }
@media (max-width: 650px) {
  :root {
    --glass: rgba(255, 253, 250, .78);
    --glass-edge: rgba(255, 255, 255, .88);
    --glass-shadow: 0 12px 38px rgba(43, 33, 24, .13);
    --app-nav-height: 78px;
  }
  html { scroll-padding-top: 82px; }
  body { padding-bottom: calc(var(--app-nav-height) + 28px + env(safe-area-inset-bottom)); background: #f7f3ed; }
  body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 95% 8%, rgba(197, 168, 137, .19), transparent 34%), radial-gradient(ellipse at 0 55%, rgba(233, 222, 208, .45), transparent 40%); }
  .topbar { position: sticky; top: 0; z-index: 30; height: calc(70px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; background: rgba(250, 247, 242, .76); border-bottom: 1px solid rgba(143, 121, 96, .15); box-shadow: 0 4px 24px rgba(45, 36, 28, .04); -webkit-backdrop-filter: blur(24px) saturate(1.35); backdrop-filter: blur(24px) saturate(1.35); }
  .topbar .brand { min-height: 44px; }
  .top-cta { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: #302824; color: #fffdfa; font-size: 11px; letter-spacing: .01em; box-shadow: 0 5px 15px rgba(48,40,36,.16); }
  .top-cta span { margin-left: 8px; color: #e7c8a4; }
  main > [data-app-screen] { display: none !important; scroll-margin-top: 80px; }
  main > [data-app-screen].is-active-screen { display: block !important; animation: app-screen-enter .26s cubic-bezier(.2,.72,.25,1) both; }
  main > .hero.is-active-screen { display: grid !important; }
  .hero.is-active-screen { min-height: 0; padding-top: 27px; padding-bottom: 40px; }
  .hero-photo { border-radius: 30px; overflow: hidden; box-shadow: 0 22px 48px rgba(56, 40, 27, .15); }
  .hero-copy { padding: 0 2px; }
  .hero h1 { letter-spacing: -.035em; }
  .hero-intro { max-width: 36ch; font-size: 14px; line-height: 1.6; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-height: 52px; border-radius: 17px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 15px 13px; border: 1px solid var(--glass-edge); border-radius: 21px; background: rgba(255,253,250,.68); box-shadow: 0 8px 26px rgba(43,33,24,.06); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .hero-facts > div { min-width: 0; }
  .hero-facts b { font-size: 13px; }
  .hero-facts span { font-size: 9px; }
  .section { padding-block: 50px; }
  .services { padding-top: 22px; }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2, .master-copy h2, .price-inner h2 { font-size: clamp(35px, 10vw, 43px); }
  .section-lead { font-size: 13px; line-height: 1.55; }
  .service-grid { gap: 14px; }
  .service-card { min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.88); border-radius: 25px; background: rgba(255,253,250,.76); box-shadow: 0 12px 30px rgba(43,33,24,.07); }
  .service-card.service-feature { background: linear-gradient(145deg, rgba(255,253,250,.92), rgba(241,232,220,.76)); }
  .service-art { border-radius: 19px; }
  .service-content { padding: 18px 19px 20px; }
  .service-content p:not(.eyebrow) { font-size: 13px; line-height: 1.6; }
  .service-bottom { gap: 10px; }
  .service-bottom b { font-size: 16px; }
  .arrow-button { min-height: 44px; padding: 0 12px; border-radius: 999px; background: rgba(170,128,86,.1); }
  .service-text-card { padding: 23px; }
  .price-band { margin-inline: 10px; padding: 36px 0; border: 1px solid rgba(255,255,255,.78); border-radius: 28px; background: linear-gradient(145deg, rgba(241,235,227,.83), rgba(250,247,242,.94)); box-shadow: 0 16px 38px rgba(43,33,24,.08); }
  .price-inner { width: calc(100% - 28px); }
  .price-columns > div { padding: 16px; border: 1px solid rgba(255,255,255,.82); border-radius: 18px; background: rgba(255,253,250,.63); }
  .price-columns p { font-size: 12px; line-height: 1.55; }
  .estimator { border: 1px solid rgba(255,255,255,.84); border-radius: 21px; background: rgba(255,253,250,.72); box-shadow: 0 8px 24px rgba(43,33,24,.05); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .estimate-fields select, .booking-form-panel select, .booking-form-panel input:not([type=checkbox]) { min-height: 48px; border-radius: 14px; border: 1px solid rgba(95,79,60,.18); background: rgba(255,253,250,.88); font-size: 16px; }
  .booking { padding-top: 26px; }
  .booking-layout { gap: 17px; }
  .calendar-panel, .booking-form-panel { border: 1px solid rgba(255,255,255,.9); border-radius: 25px; background: var(--glass); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); }
  .calendar-panel { padding: 20px 15px; }
  .calendar-top { margin-bottom: 12px; }
  .calendar-top h3 { font-size: 21px; }
  .calendar-nav button { width: 44px; height: 44px; border-radius: 50%; background: rgba(170,128,86,.1); }
  .calendar-weekdays, .calendar-grid { gap: 5px; }
  .day-cell { width: min(100%, 42px); min-height: 42px; border-radius: 14px; font-size: 13px; }
  .time-pill { min-width: 58px; min-height: 44px; border-radius: 14px; }
  .booking-form-panel { padding: 20px 17px; }
  .booking-step { margin-bottom: 17px; }
  .step-contact { margin-top: 25px; }
  .field-label { margin: 13px 0 7px; font-size: 12px; }
  .check-row { align-items: flex-start; gap: 11px; margin-top: 15px; font-size: 12px; line-height: 1.5; }
  .check-row input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
  .submit-button { width: 100%; min-height: 54px; margin-top: 18px; border-radius: 17px; }
  .payment-status { margin-top: 20px; padding: 19px; border: 1px solid var(--glass-edge); border-radius: 23px; background: var(--glass); box-shadow: var(--glass-shadow); }
  .master { padding-top: 30px; }
  .master-image { overflow: hidden; border-radius: 28px; box-shadow: var(--glass-shadow); }
  .master-copy { padding: 20px 18px; border: 1px solid var(--glass-edge); border-radius: 24px; background: rgba(255,253,250,.72); box-shadow: 0 9px 28px rgba(43,33,24,.06); }
  .master-copy p:not(.eyebrow) { font-size: 14px; line-height: 1.65; }
  .address-section { margin: 12px 10px 0; padding: 32px 0; border: 1px solid var(--glass-edge); border-radius: 27px; background: rgba(241,235,227,.78); box-shadow: 0 12px 32px rgba(43,33,24,.06); }
  .address-inner { width: calc(100% - 28px); }
  .directions-photos img { border-radius: 17px; }
  .footer { display: none; }
  .app-tabbar { position: fixed; z-index: 50; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(430px, calc(100% - 22px)); min-height: var(--app-nav-height); display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: center; gap: 2px; padding: 8px 7px; border: 1px solid rgba(255,255,255,.88); border-radius: 27px; background: rgba(250,247,242,.76); box-shadow: 0 15px 45px rgba(43,33,24,.19), inset 0 1px 0 rgba(255,255,255,.82); -webkit-backdrop-filter: blur(28px) saturate(1.55); backdrop-filter: blur(28px) saturate(1.55); }
  .app-tab { min-width: 44px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 19px; color: #746c62; transition: color .2s ease, background .2s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
  .app-tab svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .app-tab span { font-size: 9px; line-height: 1.1; letter-spacing: .01em; }
  .app-tab[aria-current="page"] { color: var(--gold-dark); background: rgba(170,128,86,.1); }
  .app-tab:active { transform: scale(.94); }
  .app-tab-booking { position: relative; justify-content: center; overflow: visible; color: #fffdfa; }
  .app-tab-booking .tab-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; background: linear-gradient(145deg, #4c3b32, #28211e); box-shadow: 0 8px 18px rgba(48,40,36,.25); transform: translateY(-8px); transition: transform .2s ease, box-shadow .2s ease; }
  .app-tab-booking svg { width: 22px; height: 22px; }
  .app-tab-booking span:last-child { color: var(--ink); margin-top: -7px; }
  .app-tab-booking[aria-current="page"] { color: #fffdfa; background: transparent; }
  .app-tab-booking[aria-current="page"] .tab-icon { background: linear-gradient(145deg, #a88662, #785638); box-shadow: 0 9px 22px rgba(120,86,56,.32); }
  .app-tab-booking[aria-current="page"] span:last-child { color: var(--gold-dark); font-weight: 700; }
}
@keyframes app-screen-enter { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { @keyframes app-screen-enter { from, to { opacity: 1; transform: none; filter: none; } } .app-tab, .app-tab-booking .tab-icon { transition: none !important; } }


@media (max-width: 650px) {
  /* Keep the rounded portrait while allowing its caption and seal to remain visible. */
  .hero-photo {
    width: 100%;
    height: min(112vw, 480px);
    margin-right: 0;
    overflow: visible;
  }
  .hero-photo > img { border-radius: 30px; }
  .photo-caption {
    left: 12px;
    bottom: 18px;
    width: min(225px, calc(100% - 24px));
    min-width: 0;
    padding: 12px 15px;
    border-radius: 14px;
  }
  .photo-seal { right: 12px; }
  .hero h1 { font-size: clamp(38px, 11.4vw, 52px); line-height: 1.08; }

  /* The original dark text-services card was unintentionally given a glass-light surface. */
  .service-card.service-text-card {
    background: #302824;
    color: #fffdfa;
    border-color: #493c33;
  }
  .service-text-card .eyebrow,
  .service-text-card .text-link span { color: #e2c8a8; }
  .service-text-card ul { color: #fffdfa; font-size: 14px; line-height: 1.7; }
  .service-text-card .text-link { color: #fffdfa; border-color: rgba(255,253,250,.55); font-size: 12px; }
  .small-note { color: #5f574f; font-size: 12px; }

  /* Price content uses a light glass surface, so restore dark foreground tokens. */
  .price-band { color: #25231f; }
  .price-band .price-label { color: #694b30; font-size: 10px; }
  .price-columns > div { border-color: rgba(95,79,60,.2); }
  .price-columns p { color: #5f574f; font-size: 14px; line-height: 1.6; }
  .price-band .estimator-heading > span,
  .price-band .estimate-fields label,
  .price-band .estimate-note { color: #5f574f; }
  .price-band .estimator-heading > span,
  .price-band .estimate-fields label { font-size: 12px; }
  .price-band .estimate-note { font-size: 12px; line-height: 1.6; }

  /* Studio address panel also switches from the original dark surface to a light surface. */
  .address-section { color: #25231f; }
  .address-section .eyebrow { color: #694b30; }
  .address-section h2 { color: #25231f; }
  .address-section h2 em { color: #785638; }
  .address-section .address-text { color: #5f574f; font-size: 14px; line-height: 1.65; }
}

