/* Phase 1 opt-in foundations. Not loaded by the existing production templates. */
:root {
  --pe-color-ink: #1f2926;
  --pe-color-forest: #203b32;
  --pe-color-moss: #718477;
  --pe-color-ivory: #f5f1e8;
  --pe-color-paper: #fbfaf6;
  --pe-color-champagne: #c3a879;
  --pe-color-line: rgba(31, 41, 38, .16);
  --pe-font-heading: Georgia, "Times New Roman", "Noto Serif CJK SC", "Yu Mincho", serif;
  --pe-font-body: Arial, "Helvetica Neue", "Noto Sans CJK SC", "Noto Sans KR", sans-serif;
  --pe-text-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --pe-text-heading: clamp(2.25rem, 1.25rem + 4vw, 5rem);
  --pe-space-1: .25rem;
  --pe-space-2: .5rem;
  --pe-space-3: .75rem;
  --pe-space-4: 1rem;
  --pe-space-6: 1.5rem;
  --pe-space-8: 2rem;
  --pe-space-12: 3rem;
  --pe-space-section: clamp(3rem, 8vw, 7rem);
  --pe-radius-card: 1rem;
  --pe-content-width: 80rem;
  --pe-touch-target: 3rem;
  --pe-focus-ring: 3px solid #203b32;
}
.pe-shell { max-width: var(--pe-content-width); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.pe-grid { display: grid; gap: var(--pe-space-6); grid-template-columns: minmax(0, 1fr); }
.pe-grid > * { min-width: 0; }
.pe-media { margin: 0; aspect-ratio: var(--pe-media-ratio, 4 / 3); background: var(--pe-color-ivory); overflow: hidden; border-radius: var(--pe-radius-card); }
.pe-media img, .pe-media video, .pe-media iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.pe-action { display: inline-flex; justify-content: center; align-items: center; min-height: var(--pe-touch-target); padding: .75rem 1rem; }
.pe-action:focus-visible, .pe-media a:focus-visible { outline: var(--pe-focus-ring); outline-offset: 4px; }
.pe-mobile-actions { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
@media (min-width: 48rem) { .pe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .pe-grid[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .pe-media { scroll-behavior: auto; } }

/* Mobile-only composition. The three hiding rules preserve desktop layout. */
.pe-mobile-services, .pe-appbar { display: none; }
.pe-app-sheet:not([open]) { display: none; }
@media (max-width: 900px) {
  body[data-pe-home] { --pe-actionbar-height: 82px; --pe-bar-offset: calc(var(--pe-actionbar-height) + 12px); background: var(--pe-color-paper); padding-bottom: calc(var(--pe-actionbar-height) + 16px); }
  body[data-pe-home] .container { width: calc(100% - 40px); }
  body[data-pe-home] :focus-visible { outline: 3px solid #64795f; outline-offset: 4px; }
  body[data-pe-home] .site-header { position: relative; height: 84px; padding: 12px 20px; color: var(--pe-color-forest); background: var(--pe-color-paper); border-bottom: 1px solid var(--pe-color-line); }
  body[data-pe-home] .brand { color: var(--pe-color-forest); }
  body[data-pe-home] .brand::before { color: var(--pe-color-forest); text-shadow: none; }
  body[data-pe-home] .brand small { color: #536157; font-size: 7px; letter-spacing: .2em; }
  body[data-pe-home] .header-book { display: none; }
  body[data-pe-home] .header-tools { gap: 8px; }
  body[data-pe-home] .language-current, body[data-pe-home] .menu-toggle { min-width: 48px; height: 48px; border: 1px solid #d9dfd6; border-radius: 50%; color: #203b32; background: transparent; }
  body[data-pe-home] .language-current { border-radius: 24px; padding: 0 10px; gap: 5px; }
  body[data-pe-home] .language-current img { width: 19px; height: 14px; }
  body[data-pe-home] .language-options { right: 0; top: calc(100% + 10px); z-index: 80; background: #fbfaf6; color: #203b32; border-color: #d9dfd6; border-radius: 16px; box-shadow: 0 15px 35px #203b3226; }
  body[data-pe-home] .language-options button { min-height: 48px; }
  body[data-pe-home] .site-nav { width: min(440px, 100vw); padding: 96px 28px 30px; color: #fff; }
  body[data-pe-home] #main { display: flex; flex-direction: column; }
  body[data-pe-home] .hero { order: 0; min-height: 540px !important; height: 540px !important; border-radius: 0 0 28px 28px; overflow: hidden; padding: 0 !important; }
  body[data-pe-home] .hero-image, body[data-pe-home] .hero-overlay { inset: 0; }
  body[data-pe-home] .hero .scroll-cue { display: none; }
  body[data-pe-home] .hero-image img { object-position: center 35%; }
  body[data-pe-home] .hero-overlay { background: linear-gradient(180deg, #102b1f00 20%, #102b1f66 43%, #102b1fe8 100%); }
  body[data-pe-home] .hero-content { position: absolute; inset: auto 20px 65px; width: auto; padding: 0 !important; margin: 0; background: none !important; text-align: left; color: #fff; border: 0; box-shadow: none; }
  body[data-pe-home] .promo-kicker { color: #ecdfc7; font-size: 9px; letter-spacing: .18em; margin-bottom: 14px; }
  body[data-pe-home] .promo-discount { display: inline-block; padding: 5px 9px; border-radius: 5px; background: #f2e4c9; color: #294638; font-size: 10px !important; letter-spacing: .06em; margin-bottom: 11px; }
  body[data-pe-home] .promo-title { font-size: clamp(28px, 8vw, 42px) !important; line-height: 1.12; letter-spacing: -.03em; max-width: 100%; }
  body[data-pe-home] .promo-price { gap: 10px; justify-content: flex-start; margin-top: 12px; }
  body[data-pe-home] .promo-price strong { color: #fff; font-size: 29px !important; }
  body[data-pe-home] .promo-price s { font-size: 14px; color: #dfdfd4; }
  body[data-pe-home] .promo-note { max-width: 30em; font-size: 13px !important; line-height: 1.55; margin-top: 10px; color: #f0f1e8; }
  body[data-pe-home] .hero-actions { margin-top: 18px; }
  body[data-pe-home] .hero-actions a { min-height: 46px; border-radius: 24px; font-size: 10px; background: #f5f1e8; color: #203b32; }
  body[data-pe-home] .hero-controls { left: 20px; right: 20px; bottom: 16px; width: auto; }
  body[data-pe-home] .hero-controls button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  body[data-pe-home] .hero-controls .hero-dots { margin-right: auto; gap: 0; }
  body[data-pe-home] .hero-controls .hero-dots button { display: grid; place-items: center; padding: 0; border: 0 !important; background: transparent !important; border-radius: 0; }
  body[data-pe-home] .hero-controls .hero-dots button:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
  body[data-pe-home] .hero-controls .hero-dots button::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 6px; background: #ffffff80; }
  body[data-pe-home] .hero-controls .hero-dots button[aria-selected=true]::before { width: 22px; background: #fff; }
  body[data-pe-home] .entity-summary { order: 1; padding: 30px 0 20px; border: 0; background: transparent; }
  body[data-pe-home] .entity-summary h1 { max-width: 700px; font-size: clamp(28px, 7.5vw, 42px); line-height: 1.14; letter-spacing: -.035em; }
  body[data-pe-home] .entity-summary p { font-size: 14px; line-height: 1.65; }
  body[data-pe-home] .entity-summary .eyebrow { color: #536657; }
  body[data-pe-home] .entity-proof { border-top: 1px solid #dedfd5; padding-top: 16px; margin-top: 18px; font-size: 12px !important; color: #41574a; }
  body[data-pe-home] .entity-facilities { font-size: 12px !important; color: #526257; }
  body[data-pe-home] .entity-actions { margin-top: 20px; }
  body[data-pe-home] .entity-cta { gap: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  body[data-pe-home] .entity-cta a { min-height: 48px; border-radius: 12px; padding: 12px; font-size: 12px; text-align: center; }
  body[data-pe-home] .entity-context-links { display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: 12px; }
  body[data-pe-home] #services { order: 2; padding: 26px 0 30px; background: transparent; }
  body[data-pe-home] #services .section-top, body[data-pe-home] #services .service-editorial { display: none; }
  .pe-mobile-services { display: grid; gap: 12px; }
  .pe-section-kicker { margin: 0 0 4px; font: 600 13px/1.5 var(--pe-font-body); color: #536657; letter-spacing: .025em; }
  .pe-service { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; overflow: hidden; padding: 10px; border-radius: 18px; background: #f0eee5; border: 1px solid #e6e5d9; }
  .pe-service picture { display: block; border-radius: 12px; overflow: hidden; align-self: stretch; min-height: 126px; }
  .pe-service picture img { width: 100%; height: 100%; object-fit: cover; }
  .pe-service > div { align-self: center; min-width: 0; padding: 8px 10px 8px 0; }
  .pe-service h3 { font: 500 17px/1.3 var(--pe-font-heading); letter-spacing: -.025em; overflow-wrap: anywhere; padding-right: 10px; margin-bottom: 13px; }
  .pe-service ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
  .pe-service li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; justify-content: space-between; font-size: 11px; color: #536257; }
  .pe-service strong { font-size: 13px; font-weight: 600; color: #203b32; white-space: nowrap; }
  .pe-service small { font-size: 9px; font-weight: 400; }
  .pe-service-arrow { position: absolute; top: 15px; right: 13px; color: #4e6956; }
  .pe-all-services { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; background: #203b32; color: #fff; border-radius: 13px; font-size: 13px; }
  .pe-all-services svg { width: 22px; height: 22px; }
  body[data-pe-home] .menu-banner { order: 3; margin: 0 20px; padding: 24px 0; border-block: 1px solid #dedfd5; background: transparent; }
  body[data-pe-home] .menu-banner .container { width: 100%; }
  body[data-pe-home] .menu-banner-grid { gap: 18px; }
  body[data-pe-home] .menu-banner h2 { font-size: 29px; margin-top: 6px; }
  body[data-pe-home] .menu-banner p:not(.eyebrow) { font-size: 13px; margin-bottom: 16px; }
  body[data-pe-home] .menu-banner a { border-radius: 24px; }
  body[data-pe-home] .menu-banner-meta span { font-size: 24px; }
  body[data-pe-home] .intro { order: 4; }
  body[data-pe-home] .spaces { order: 5; }
  body[data-pe-home] .gallery-section { order: 6; }
  body[data-pe-home] .why-section { order: 7; }
  body[data-pe-home] .ritual-section { order: 8; }
  body[data-pe-home] .booking-section { order: 9; }
  body[data-pe-home] .visit-section { order: 10; }
  body[data-pe-home] .final-cta { order: 11; }
  body[data-pe-home] .section { padding-top: 38px; padding-bottom: 38px; }
  body[data-pe-home] .section-top, body[data-pe-home] .split-heading { gap: 12px; margin-bottom: 20px; }
  body[data-pe-home] .section h2, body[data-pe-home] .booking-section h2, body[data-pe-home] .ritual-section h2, body[data-pe-home] .final-cta h2 { font-size: 32px; line-height: 1.15; }
  body[data-pe-home] .section .eyebrow { color: #536657; font-size: 9px; margin-bottom: 8px; }
  body[data-pe-home] .section-intro, body[data-pe-home] .lead { margin-top: 16px; font-size: 14px; line-height: 1.7; }
  body[data-pe-home] .value-strip { margin-top: 24px; margin-bottom: 20px; }
  body[data-pe-home] .interior-pair { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; gap: 10px; }
  body[data-pe-home] .interior-pair picture { aspect-ratio: 3/4 !important; border-radius: 18px; overflow: hidden; }
  body[data-pe-home] .gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body[data-pe-home] .gallery-item { border-radius: 14px; overflow: hidden; min-height: 44px; }
  body[data-pe-home] .mobile-actions { display: none !important; }
  .pe-appbar { position: fixed; z-index: 55; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fbfaf6f5; border-top: 1px solid #dddeda; backdrop-filter: blur(12px); }
  .pe-appbar a, .pe-appbar button { display: flex; min-width: 0; min-height: 60px; padding: 6px 2px; gap: 5px; align-items: center; justify-content: center; flex-direction: column; background: transparent; color: #203b32; border: 0; border-radius: 12px; font: 500 11px/1.25 var(--pe-font-body); text-align: center; overflow-wrap: anywhere; }
  .pe-appbar svg { width: 22px; height: 22px; }
  .pe-appbar button[aria-expanded=true], .pe-appbar a:active, .pe-appbar button:active { background: #e5ebe1; }
  body[data-pe-sheet-open] { overflow: hidden; }
  body[data-pe-keyboard] { --pe-bar-offset: 12px; }
  body[data-pe-keyboard] .pe-appbar, body.menu-open[data-pe-home] .pe-appbar { display: none; }
  body[data-pe-home] .consent-banner, body[data-pe-home] .install-card, body[data-pe-home] .update-banner { bottom: var(--pe-bar-offset); max-height: calc(100dvh - var(--pe-bar-offset) - 24px); overflow: auto; z-index: 60; }
  body[data-pe-home] .consent-banner { left: 12px; right: 12px; width: auto; border-radius: 18px; padding: 18px; box-shadow: 0 10px 40px #203b3224; }
  body[data-pe-home] .consent-banner-inner { display: grid; gap: 14px; }
  body[data-pe-home] .consent-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  body[data-pe-home] .consent-btn { min-height: 44px; padding: 8px 5px; font-size: 11px; }
  body[data-pe-home] .consent-copy strong { font-size: 16px; }
  body[data-pe-home] .consent-copy p { font-size: 12px; }
  .pe-app-sheet { position: fixed; inset: auto 0 0; margin: auto auto 0; width: min(100%, 600px); max-width: 100%; max-height: min(85dvh, 700px); padding: 32px 24px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 26px 26px 0 0; background: #fbfaf6; color: #203b32; }
  .pe-app-sheet::backdrop { background: #10251cb3; backdrop-filter: blur(3px); }
  .pe-app-sheet h2 { padding-right: 35px; font-size: 29px; line-height: 1.2; margin: 10px 0 12px; }
  .pe-app-sheet p { font-size: 13px; line-height: 1.6; }
  .pe-sheet-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #eaece3; color: #203b32; font-size: 28px; }
  .pe-sheet-links { display: grid; margin-top: 24px; gap: 10px; }
  .pe-sheet-links a { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid #dbe1d6; border-radius: 13px; font-size: 15px; }
  .pe-sheet-links a span { font-size: 11px; color: #536657; }
  .pe-sheet-links svg { width: 20px; height: 20px; }
  .pe-native-fallback { padding-top: 20px; color: #536657; }
  .pe-native-fallback a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
  @media (min-width: 600px) {
    body[data-pe-home] .hero { height: 620px !important; }
    body[data-pe-home] .hero-content { left: 40px; right: 40px; }
    .pe-mobile-services { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .pe-mobile-services > .pe-section-kicker, .pe-mobile-services > .pe-all-services { grid-column: 1/-1; }
    .pe-service { display: flex; flex-direction: column; gap: 8px; }
    .pe-service picture { height: 140px; }
    .pe-service > div { width: 100%; padding: 8px; }
    .pe-service-arrow { top: auto; bottom: 12px; }
  }
}
