/* A dedicated phone layout. Browser and system text enlargement stay enabled. */
@media (max-width: 767px) {
  html { scroll-padding-top: max(88px, calc(var(--header-height, 76px) + 12px)); }
  body { font-size: 1rem; line-height: 1.8; }
  .wrap { width: 100%; max-width: 36rem; padding-inline: 20px; }
  .section { padding-block: 52px; }
  .eyebrow { font-size: .75rem; letter-spacing: .1em; gap: 10px; margin-bottom: 18px; }

  .header-inner { height: auto; min-height: 76px; gap: 12px; padding-block: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 58px; height: 44px; }
  .brand > span { font-size: 1.625rem; line-height: 1.3; letter-spacing: .1em; }
  .brand small { font-size: .6875rem; line-height: 1.5; letter-spacing: .1em; }
  #nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
  #nav-toggle span { display: block; height: 1px; width: 22px; background: var(--ink); }
  #nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  #nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-height, 76px)); max-height: calc(100dvh - var(--header-height, 76px)); overflow-y: auto; overscroll-behavior: contain; flex-wrap: nowrap; }
  .header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .header nav > a { font-size: 1rem; padding: 12px 4px; flex-shrink: 0; }
  .header nav > .nav-cta { justify-content: space-between; padding: 12px 16px; margin-top: 8px; }

  .hero { overflow: visible; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px; }
  .hero h1 { font-size: 2.25rem; line-height: 1.55; letter-spacing: .02em; margin-bottom: 20px; }
  .hero-description { font-size: 1rem; line-height: 1.9; margin-bottom: 24px; }
  .hero-description br, .about-copy > p:not(.eyebrow) br { display: none; }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .button { width: 100%; min-height: 56px; padding: 14px 20px; font-size: 1rem; line-height: 1.6; letter-spacing: .025em; border-radius: 8px; }
  .button > span { font-size: 1.25rem; }
  .quiet-link { justify-content: center; min-height: 48px; font-size: 1rem; gap: 12px; }
  .hero-footnote { font-size: .875rem; line-height: 1.8; margin-top: 20px; max-width: none; align-items: flex-start; }
  .tiny-sun { font-size: 1.375rem; margin-top: 3px; }
  .hero-visual { margin: 0; }
  .hero-image { height: auto; aspect-ratio: 16 / 10; border-radius: 32px 8px 8px 8px; }
  .hero-image img { aspect-ratio: 16 / 10; object-position: 55% 65%; }
  .image-stamp { left: 12px; top: 12px; min-width: 0; min-height: 0; width: auto; height: auto; aspect-ratio: auto; padding: 8px 12px; border-radius: 8px; outline: 0; transform: none; max-width: calc(100% - 24px); }
  .image-stamp > span { font-size: 1.125rem; }
  .image-stamp > small { font-size: .6875rem; }
  .hero-visual figcaption { flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; margin-top: 10px; }
  .hero-visual figcaption span:last-child { display: block; font-size: .75rem; }

  .rail-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-block: 20px; }
  .rail-inner a:nth-child(n) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 8px; padding: 14px; border: 1px solid #6c8979; border-radius: 8px; font-size: 1.125rem; line-height: 1.6; letter-spacing: .02em; }
  .rail-inner a > .rail-number { grid-column: 1; grid-row: 1; font-size: .75rem; }
  .rail-inner a > .rail-label { grid-column: 1 / -1; grid-row: 2; }
  .rail-inner a:nth-child(n) i { display: block; grid-column: 2; grid-row: 1; margin: 0; font-size: 1.125rem; }

  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .about-copy h2 { font-size: 2rem; line-height: 1.55; margin-bottom: 22px; }
  .about-copy > p:not(.eyebrow) { max-width: none; font-size: 1rem; line-height: 1.9; margin-bottom: 18px; }
  .text-link { font-size: 1rem; min-height: 44px; gap: 16px; line-height: 1.7; }
  .brand-art { display: none; }

  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading .eyebrow { font-size: .75rem; gap: 10px; }
  .section-heading h2 { font-size: 1.875rem; line-height: 1.6; letter-spacing: .02em; }
  .section-heading > p { display: none; }
  .menu-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 20px; }
  .filter { min-width: 0; min-height: 52px; padding: 12px 10px; font-size: 1rem; line-height: 1.6; border: 1px solid #b9c7b3; border-radius: 8px; white-space: normal; overflow-wrap: anywhere; }
  .filter:first-child { grid-column: 1 / -1; }
  .filter small { font-size: .875rem; }
  .menu-meta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-block: 18px 4px; font-size: 1rem; }
  .menu-meta > p { padding: 0; max-width: none; font-size: .875rem; }
  .menu-meta label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin: 0; }
  .menu-meta select { flex: 1 1 9em; width: auto; max-width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #b9c7b3; border-radius: 8px; background: var(--paper); font-size: 1rem; line-height: 1.5; }
  .service-group { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 32px; }
  .group-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
  .group-label .index { font-size: .875rem; margin: 0; }
  .group-label h3 { font-size: 1.375rem; margin: 0; letter-spacing: .035em; }
  .group-label p { width: 100%; margin: 0; padding: 0; font-size: .9375rem; line-height: 1.8; }
  .service-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; border: 0; }
  .service-item { background: var(--paper); border: 1px solid #cbd6c3; border-radius: 12px; }
  .service-item summary { grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: auto auto auto; gap: 10px 14px; padding: 18px 16px; align-items: start; border-radius: 12px; }
  .service-title { grid-column: 1; grid-row: 1; font-size: 1.125rem; line-height: 1.7; }
  .service-title small { font-size: .9375rem; line-height: 1.7; margin-top: 6px; }
  .duration { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: 1rem; line-height: 1.8; margin: 0; white-space: normal; }
  .duration small { font-size: .9375rem; margin-left: 4px; }
  .price { grid-column: 1 / -1; grid-row: 3; text-align: left; font-size: 1.625rem; line-height: 1.5; padding-top: 12px; border-top: 1px solid var(--line); white-space: normal; }
  .price small { font-size: .875rem; }
  .service-item summary > .plus { grid-column: 2; grid-row: 1; margin: 7px 0 0 auto; }
  .service-detail { flex-direction: column; align-items: stretch; padding: 0 16px 18px; font-size: 1rem; line-height: 1.9; gap: 14px; }
  .service-detail > div { max-width: none; }
  .perk { font-size: .9375rem; line-height: 1.8; }
  .copy-service { min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; text-align: center; }
  .menu-footnote { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 20px; margin-top: 28px; }
  .menu-footnote p { font-size: .875rem; line-height: 1.8; }
  .menu-footnote .text-link { align-self: flex-start; font-size: 1rem; }
  .empty-state { padding: 40px 12px; font-size: 1rem; }

  .ritual-section { padding-block: 52px; }
  .ritual-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ritual-copy .eyebrow { font-size: .75rem; }
  .ritual-copy h2 { font-size: 2rem; line-height: 1.6; }
  .ritual-copy > p:not(.eyebrow) { font-size: 1rem; line-height: 1.9; }
  .ritual-price { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 1rem; margin-block: 20px; }
  .ritual-price > span + span { border: 0; padding: 0; font-size: 1.625rem; }
  .ritual-steps > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 22px; }
  .step-order { margin: 0; font-size: .875rem; }
  .ritual-steps h3 { font-size: 1.375rem; line-height: 1.6; }
  .ritual-steps p { font-size: .9375rem; line-height: 1.8; }
  .step-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 8px 0 0; font-size: 2rem; line-height: 1.3; }
  .step-time small { display: inline; font-size: .9375rem; margin: 0; }

  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .faq-grid h2 { font-size: 2rem; line-height: 1.6; }
  .muted { font-size: 1rem; line-height: 1.9; }
  .faq-intro br, .faq-grid .muted br { display: none; }
  .faq-list summary { font-size: 1rem; line-height: 1.8; gap: 12px; padding-block: 22px; }
  .faq-number { font-size: .75rem; }
  .faq-list details p { font-size: 1rem; line-height: 1.9; padding: 0 0 22px; }
  .closing { padding-block: 40px; }
  .closing-inner { flex-direction: column; align-items: stretch; gap: 22px; }
  .closing .eyebrow { font-size: .875rem; }
  .closing h2 { font-size: 1.75rem; line-height: 1.7; }
  .mobile-only { display: block; }

  .footer { padding-top: 36px; }
  .footer-main { flex-direction: column; align-items: stretch; gap: 20px; }
  .footer-brand { align-self: flex-start; font-size: 1.875rem; }
  .footer-brand small { font-size: .75rem; }
  .footer-main > p { font-size: 1rem; line-height: 1.8; padding: 0; }
  .footer-main nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; margin: 0; font-size: 1rem; }
  .footer-main nav a { min-height: 48px; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .footer-bottom { font-size: .8125rem; gap: 12px; margin-top: 20px; padding-block: 18px; }
  .footer-bottom > span:nth-child(2) { display: none; }
  .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }

  dialog { width: calc(100% - 24px); }
  .dialog-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; }
  .dialog-heading h2 { font-size: 1.125rem; line-height: 1.6; }
  .dialog-heading button { min-width: 48px; min-height: 48px; font-size: 1.75rem; }
  .dialog-footer { padding: 12px 16px; }
  .toast { font-size: 1rem; line-height: 1.8; bottom: 16px; padding: 12px 16px; }
}
