/* Phone layout refinements. Desktop rules remain defined by the component sheets. */
.ex-reveal > button {
  position: absolute; bottom: 14px; z-index: 3; pointer-events: auto;
  min-width: 104px; min-height: 44px; padding: 10px 12px;
  border: 1px solid #ff862b; background: rgba(8,8,8,.9); color: #fff;
  font-size: 10px !important; letter-spacing: .08em;
}
.ex-reveal > button:first-of-type { left: 14px; }
.ex-reveal > button:last-of-type { right: 14px; }
@media (max-width: 650px), (max-height: 500px) and (max-width: 950px) {
  :root { scroll-padding-top: 16px; }
  html { scroll-padding-top: 16px; }
  body { overflow-x: hidden; }
  header {
    height: 76px;
    grid-template-columns: 68px minmax(0, 1fr) 48px;
    gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) 5% 8px;
  }
  .header-logo { width: 68px; height: 42px; }
  .header-title { font-size: clamp(20px, 6.1vw, 30px); line-height: .95; letter-spacing: .01em; }
  .header-detail { display: none; }
  .mobile-menu-button {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 48px; min-height: 48px; justify-self: end;
    border: 1px solid rgba(255,255,255,.38); background: rgba(6,6,6,.7);
    color: #fff; font: 700 10px Arial,sans-serif; letter-spacing: .1em;
  }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 80; display: grid;
    grid-template-rows: auto 1fr; padding: max(18px,env(safe-area-inset-top)) 6% max(24px,env(safe-area-inset-bottom));
    background: rgba(5,5,5,.98); color: #fff;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu-close {
    width: 48px; height: 48px; justify-self: end; border: 1px solid #765037;
    background: none; color: #ff8a35; font-size: 22px;
  }
  .mobile-menu nav { align-self: center; display: grid; border-top: 1px solid #322d29; }
  .mobile-menu a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; border-bottom: 1px solid #322d29; color: #f5f1eb;
    text-decoration: none; font-size: clamp(24px,8vw,36px); letter-spacing: .02em;
  }
  .mobile-menu nav > a:first-child { display: flex; }
  .mobile-menu a:last-child { color: #ff8a35; }
  body.mobile-menu-open { overflow: hidden; }
  .cinematic { height: 225svh; }
  .cinematic-stage { height: 100svh; min-height: 560px; padding: 96px 5% max(16px, env(safe-area-inset-bottom)); }
  .hero-top { font-size: 9px; letter-spacing: .11em; }
  .hero-top > span:first-child { max-width: 70%; }
  .porsche-hero, .hero-video { object-position: 53% 38%; }
  .calendar-reserve {
    left: 5%; right: 5%; bottom: max(68px, calc(env(safe-area-inset-bottom) + 54px));
    width: auto; max-height: calc(100svh - 150px); overflow-y: auto;
    padding: 14px; border-color: rgba(255,255,255,.28); background: rgba(8,8,8,.93);
    overscroll-behavior: contain;
  }
  .calendar-reserve h2 { font-size: clamp(25px, 8vw, 32px); line-height: .98; margin: 6px 0 12px; }
  .calendar-reserve .eyebrow { font-size: 10px; }
  .hero-date-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    min-height: 48px; padding: 10px 12px; border: 1px solid #5b5b54;
    background: #181816; color: #f4f2ee; font-size: 13px;
  }
  .calendar-reserve .calendar-outline { padding-top: 12px; }
  .calendar-reserve .calendar-days { gap: 3px; }
  .calendar-reserve .calendar-days button { min-height: 44px; aspect-ratio: 1; font-size: 15px; }
  .calendar-reserve .calendar-header h3 { font-size: 22px; }
  .calendar-reserve .calendar-header button { width: 44px; height: 44px; }
  .calendar-reserve .primary { min-height: 48px; font-size: 13px; }
  .hero-bottom { align-items: end; gap: 14px; padding-top: 0; }
  .hero-bottom p { max-width: 58%; font-size: 12px; line-height: 1.35; }
  .scroll-link { gap: 8px; font-size: 9px; }
  .scroll-link span { width: 36px; min-width: 36px; height: 36px; }

  .content { padding: 28px 6% 58px; }
  .section-label { gap: 12px; font-size: 9px; letter-spacing: .09em; padding-top: 14px; padding-bottom: 22px; }
  .section-label span:last-child { text-align: right; }
  .about-grid { gap: 28px; padding-top: 12px; }
  .about-grid h2 { font-size: clamp(58px, 16vw, 82px); }
  .about-copy > p:not(.lead) { font-size: 16px; line-height: 1.65; }
  .lead { font-size: 25px; }
  .experience { gap: 14px; padding: 19px 0; }
  .experience > strong { flex: 0 0 auto; font-size: 48px; }

  #packages { padding: 54px 6% 38px; scroll-margin-top: 12px; }
  .ex-head { margin-bottom: 20px; }
  .ex-head h2 { font-size: clamp(36px, 11vw, 52px); }
  .ex-head > p { font-size: 14px; line-height: 1.55; }
  .ex-packages { margin-inline: -6vw; padding: 0 6vw; gap: 0; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .ex-packages button { flex: 0 0 clamp(112px, 35vw, 132px); min-height: 76px; padding: 11px 10px; scroll-snap-align: start; }
  .ex-packages button > span { font-size: 9px; }
  .ex-packages strong { font-size: 12px; line-height: 1.15; }
  .ex-packages small { font-size: 11px; }
  .ex-body { gap: 14px; }
  .ex-stage { width: 100%; margin: 0; aspect-ratio: 1.55; }
  .ex-tools { gap: 8px; flex-wrap: wrap; }
  .ex-counter { font-size: 9px; }
  .ex-tools .ex-transform { min-height: 44px; padding: 8px; }
  .ex-scrubber { padding: 16px 0 5px; }
  .ex-scrub-caption label { font-size: 10px; }
  .ex-current { font-size: 14px; }
  .ex-scrub-ends { font-size: 8px; }
  .ex-package-title { align-items: center; }
  .ex-package-title h3 { font-size: 20px; }
  .ex-package-title > span { font-size: 24px; white-space: nowrap; }
  .ex-package-copy { font-size: 14px; line-height: 1.6; margin: 10px 0 18px; }
  .ex-detail { padding-top: 16px; }
  .ex-detail h3 { font-size: 23px; }
  .ex-detail p { font-size: 14px; line-height: 1.6; }
  .ex-book { min-height: 52px; font-size: 12px !important; }
  .ex-book-note, .ex-sealant-note { font-size: 12px; line-height: 1.55; }
  .ex-before, .ex-after { top: 8px; font-size: 8px; }
  .ex-water { max-width: calc(100% - 20px); min-height: 44px; }
  .ex-package-summary { margin: 0 0 20px; }
  .ex-package-summary summary { min-height: 54px; padding: 14px 12px; font-size: 10px; line-height: 1.4; }
  .ex-package-summary-body { padding: 16px 12px 18px; }
  .ex-summary-group h3 { font-size: 10px; }
  .ex-summary-group li { font-size: 13px; line-height: 1.5; }

  .correction { padding: 44px 6% 56px; }
  .correction h2 { font-size: clamp(27px, 8vw, 38px); line-height: 1; }
  .correction > p { font-size: 14px; line-height: 1.6; }
  .correction-list { grid-template-columns: 1fr; margin-top: 20px; }
  .correction-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid #302a24; }
  .correction-list strong { font-size: 13px; line-height: 1.35; margin: 0; }
  .correction-list span { flex: 0 0 auto; font-size: 13px; }

  .work-heading { display: block; margin-bottom: 24px; }
  .work-heading h2 { font-size: clamp(60px, 17vw, 82px); }
  .work-heading p { margin-top: 12px; font-size: 15px; }
  .work-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: clamp(165px, 54vw, 225px); gap: 10px; }
  .work-tile { grid-column: auto; grid-row: auto; min-height: 0; }
  .work-ceramic { grid-column: 1 / -1; grid-row: auto; }
  .work-caption { left: 12px; right: 12px; bottom: 13px; gap: 6px; }
  .work-caption strong { font-size: clamp(15px, 4.5vw, 21px); }
  .work-support { font-size: 11px; margin-top: 4px; }
  .work-arrow { font-size: 20px; }
  .work-destination { display: none; }

  .reviews { padding-block: 48px; }
  .reviews-heading { margin: 18px 0; }
  .reviews-heading h2 { font-size: clamp(36px, 10vw, 48px); }
  .reviews-heading > p { margin-top: 12px; font-size: 13px; }
  .review-carousel { margin-inline: -6vw; }
  .review-track { gap: 12px; padding: 20px 7vw 28px; scroll-padding-inline: 7vw; }
  .review-card { flex: 0 0 86vw; min-height: 0; padding: 21px; }
  .review-stars { font-size: 20px; padding-bottom: 15px; margin-bottom: 15px; }
  .review-card h3 { font-size: 17px; margin-bottom: 12px; }
  .review-card p { min-height: 0; font-size: 14px; line-height: 1.6; }
  .review-carousel > button { top: 8px; width: 40px; height: 40px; }
  .review-prev { left: auto; right: calc(7vw + 48px); }
  .review-next { right: 7vw; }
  .review-controls { gap: 14px; }
  .review-rotation { min-height: 44px; padding: 10px 12px; font-size: 9px; }

  .booking { padding-top: 24px; }
  .booking-head { display: grid; gap: 22px; }
  .booking-head h2 { font-size: clamp(48px, 13vw, 66px); }
  .booking-head p { font-size: 15px; line-height: 1.55; margin-top: 16px; }
  .contact-sk { margin: 20px 0 0; }
  .contact-sk > a:first-of-type { font-size: 25px; }
  .opening-hours { min-width: 0; padding: 16px; }
  .opening-hours dl { margin: 12px 0; }
  .opening-hours dl > div { font-size: 13px; padding: 6px 0; }
  .booking-head > .primary { width: 100%; min-height: 54px; margin-top: 0; }
  .preview-notice { padding: 15px; margin: 24px 0 20px; line-height: 1.5; }
  .preview-notice strong { white-space: normal; }
  form { gap: 26px; }
  .calendar, .details { min-width: 0; }
  .calendar-header h3 { font-size: 22px; }
  .calendar-help { font-size: 13px; margin: 10px 0 12px; }
  .weekdays, .calendar-days { gap: 3px; }
  .weekdays span { font-size: 12px; padding: 8px 0; }
  .calendar-days button { min-width: 0; min-height: 44px; aspect-ratio: 1; font-size: 14px; }
  .selected-date { margin-top: 14px; padding-top: 13px; }
  .details h3 { font-size: 22px; margin-bottom: 16px; }
  .details h3:not(:first-child) { margin-top: 23px; }
  .details label { font-size: 14px; line-height: 1.45; margin-bottom: 17px; }
  .details input, .details textarea, .details select { min-height: 48px; font-size: 16px; }
  .field-row { gap: 0; }
  .details .sms-consent { gap: 10px; }
  .details .sms-consent input { width: 22px; height: 22px; min-height: 22px; }
  .submit { min-height: 54px; }
  #request-summary { padding: 20px; }
  #request-summary h3 { font-size: 32px; }
  footer { padding: 24px 6% max(24px, env(safe-area-inset-bottom)); gap: 18px; }
  footer .wordmark { font-size: 20px; }
  footer p { display: block; width: 100%; order: 3; font-size: 11px; line-height: 1.55; }
  footer > a:last-child { margin-left: auto; min-height: 44px; display: flex; align-items: center; }
}

@media (min-width: 651px) and (min-height: 501px) {
  .mobile-menu-button, .mobile-menu { display: none !important; }
}

@media (max-width: 380px) {
  .header-title { font-size: 20px; }
  .calendar-reserve { left: 4%; right: 4%; padding: 12px; }
  .calendar-reserve h2 { font-size: 25px; }
  .section-label { font-size: 8px; }
  .ex-packages button { flex-basis: 112px; }
  .ex-stage { aspect-ratio: 1.4; }
  .work-grid { grid-auto-rows: 168px; }
  .review-card { flex-basis: 88vw; padding: 18px; }
}

@media (max-width: 350px) {
  .cinematic-stage { padding-left: 4%; padding-right: 4%; }
  .calendar-reserve { bottom: max(60px, calc(env(safe-area-inset-bottom) + 48px)); }
  .hero-date-toggle { font-size: 12px; }
  .section-label { letter-spacing: .05em; }
  .ex-package-title h3 { font-size: 18px; }
  .correction-list > div { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cinematic { height: 100svh; min-height: 560px; }
  .cinematic-stage { position: relative; }
  .hero-video { display: none !important; }
  .porsche-hero { transform: none !important; }
}
