/* The approved desktop cascade is untouched. Every visual override is <1024px. */
@media (max-width: 1023px) {
  html { scroll-padding-top: 20px; -webkit-text-size-adjust: 100%; }
  body { --mobile-gutter: 18px; }
  .header, .section, footer, .hero-content {
    padding-left: max(var(--mobile-gutter), env(safe-area-inset-left));
    padding-right: max(var(--mobile-gutter), env(safe-area-inset-right));
  }
  .header {
    height: auto; min-height: 96px; gap: 10px; justify-content: space-between;
    padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px;
  }
  .header .brand { min-width: 0; flex: 1; gap: 10px; }
  .header .wordmark { font-size: 26px; white-space: normal; }
  .header .wordmark small { font-size: 12px; line-height: 1.4; letter-spacing: .7px; max-width: 180px; }
  .header .logo { flex-shrink: 0; }
  .nav-book { display: none; }
  .menu {
    display: flex; flex-shrink: 0; align-items: center; justify-content: center;
    gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 4px;
    border: 0; background: none; color: var(--green); font-size: 14px;
  }
  .menu span { font-size: 20px; }
  .header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    margin: 0; padding: 16px max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--mobile-header-height, 96px));
    max-height: calc(100dvh - var(--mobile-header-height, 96px));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .header nav.open { display: flex; flex-direction: column; gap: 8px; }
  .header nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 0; font-size: 18px; }
  body.mobile-menu-open .header { position: relative; z-index: 20; }
  section, input, select, textarea { scroll-margin-top: 20px; scroll-margin-bottom: 24px; }
  .hero-content { max-width: 100%; }
  h1 { font-size: clamp(3.6rem, 13vw, 6.25rem); line-height: .98; letter-spacing: -.035em; }
  h2 { font-size: clamp(2.5rem, 7vw, 3.5rem); line-height: 1.08; }
  h3, h2, .large-copy { overflow-wrap: break-word; }
  .intro, .about-grid > div > p:not(.large-copy), .section-heading > p,
  .service p, .service-note, .booking-intro > p, .small, .date-note,
  .form-note, .error, .contact p, .review > p, .review .small, .review pre {
    font-size: 16px; line-height: 1.65;
  }
  .eyebrow, .section-label { font-size: 12px; line-height: 1.6; }
  .section-label { gap: 16px; letter-spacing: 1.1px; }
  .hero-bottom {
    left: max(18px, env(safe-area-inset-left)); right: max(18px, env(safe-area-inset-right));
    gap: 12px; flex-wrap: wrap; font-size: 14px; line-height: 1.6;
  }
  .hero-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .actions { flex-wrap: wrap; gap: 16px; }
  .button, .text-link, .actions .text-link, .contact .text-link,
  .contact a:not(.text-link), footer > a:last-child { font-size: 16px; min-height: 44px; min-width: 44px; }
  .text-link { align-items: center; }
  .button { max-width: 100%; gap: 16px; }
  .button span { flex-shrink: 0; }
  .service { min-width: 0; }
  .service h3 { font-size: clamp(1.5rem, 3.8vw, 1.875rem); line-height: 1.2; }
  .service h3 small { white-space: normal; }
  .service > *, .about-grid > *, .contact-grid > *, .booking-grid > *, .gallery > * { min-width: 0; }
  .work > span { font-size: 16px; gap: 8px; line-height: 1.5; }
  .work > span > span { flex-shrink: 0; }
  .work img { max-width: 100%; height: auto; }
  .booking-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .booking-intro > p { max-width: 36em; }
  .booking form { padding-top: 28px; border-top: 1px solid #63816b; }
  .sakura-scene { min-height: 0; width: 100%; max-width: 560px; margin: 4px 0 -24px; aspect-ratio: 1.55; }
  .two { grid-template-columns: minmax(0, 1fr); }
  label { font-size: 16px; line-height: 1.5; }
  label span { font-size: 14px; }
  input, select, textarea { font-size: 16px; line-height: 1.5; min-height: 48px; }
  input[type="date"] { min-width: 0; -webkit-appearance: none; appearance: none; }
  textarea { max-width: 100%; }
  .field { margin-bottom: 24px; }
  .error:not(:empty) { display: block; padding-top: 8px; }
  [aria-invalid="true"] { border-color: #ffcfbd; }
  .phone { display: inline-flex; align-items: center; min-height: 44px; }
  .contact h3 { font-size: 14px; line-height: 1.5; }
  .contact a:not(.text-link) { display: flex; align-items: center; overflow-wrap: anywhere; }
  footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  footer > span { font-size: 14px; }
  footer .wordmark { white-space: normal; }
  footer .wordmark small { font-size: 12px; line-height: 1.4; letter-spacing: .7px; }
  footer > a:last-child { display: inline-flex; align-items: center; }
  dialog {
    max-width: calc(100% - max(18px, env(safe-area-inset-left)) - max(18px, env(safe-area-inset-right)));
    max-height: calc(100svh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  }
  .dialog-close { position: sticky; top: 0; margin-left: auto; display: block; width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .review { padding: 16px 18px 24px; }
  .review h2 { font-size: clamp(2.25rem, 7vw, 3.125rem); padding-right: 8px; }
  .review pre { padding: 16px; }
  .lightbox { padding: 8px; }
  .lightbox img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 150px); margin: auto; }
  .lightbox p { padding: 12px 8px; font-size: 16px; }
  a:active, button:active { outline: 2px solid currentColor; outline-offset: 2px; }
  a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
  .text-link:hover { color: inherit; }
  .service:active { background: #dfe6d8; }
  .petal { will-change: auto; }
}
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-grid h2 { grid-column: auto; }
  .hero-content { padding-bottom: 250px; }
  .hero-bottom { align-items: flex-start; }
}
@media (max-width: 760px) {
  .hero-art { background-image: linear-gradient(180deg,var(--paper) 0%,var(--paper) 48%,rgba(246,243,237,.9) 62%,rgba(246,243,237,.25) 78%),url('assets/sakura-v2.webp'); }
}
@media (min-width: 761px) and (max-width: 1023px) {
  h1 { font-size: clamp(4.75rem, 8.8vw, 8.25rem); }
  .hero-content { padding-bottom: 150px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-grid h2 { grid-column: 1 / -1; }
  .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1023px) and (max-height: 500px) {
  .header { min-height: 88px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .hero-content { padding-top: 36px; }
  .sakura-scene { max-width: 440px; }
}
