:root {
  color-scheme: light;
  --paper: #f5f0e7;
  --white: #faf8f3;
  --panel: #e8ded0;
  --ink: #25221e;
  --muted: #5f564d;
  --line: #cec1b2;
  --olive: #4c503d;
  --light-olive: #dadbc9;
  --dark: #2b2d25;
  --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
p, h1, h2, figure, blockquote, dd { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(3.15rem, 5.05vw, 5.3rem); letter-spacing: -.075em; }
h2 { font-size: clamp(2rem, 3.65vw, 3.65rem); letter-spacing: -.055em; }
figcaption { font-size: .8125rem; color: var(--muted); line-height: 1.4; }
.skip { position: fixed; z-index: 20; left: 1rem; top: 1rem; padding: .6rem 1rem; transform: translateY(-200%); background: var(--white); }
.skip:focus { transform: translateY(0); }
.shell { width: min(100% - 7.5vw, 1240px); margin-inline: auto; }
.section-pad { padding-block: clamp(3.75rem, 8.1vw, 7.5rem); }
.eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: .12em; line-height: 1.4; color: var(--olive); }

.header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; white-space: nowrap; font: 700 1.2rem/1.1 var(--serif); }
.brand img { width: 68px; height: auto; }
.brand > span { border-left: 1px solid var(--line); padding-left: .75rem; }
.brand-en { display: block; margin-top: .2rem; font: 600 .7rem/1.2 var(--sans); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.7rem); font-size: .9375rem; white-space: nowrap; }
.nav a:hover, .text-link:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav .nav-contact { border: 1px solid var(--ink); padding: .52rem 1rem; }
.nav .nav-contact:hover { color: var(--white); background: var(--ink); text-decoration: none; }
.menu { display: none; }

.hero { border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: .94fr 1.06fr; min-height: clamp(530px, 82svh, 720px); }
.hero-copy { align-self: center; padding: 3.5rem clamp(1rem, 3.8vw, 3.75rem) 3.5rem 0; }
.hero .eyebrow { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.75rem; }
.hero .eyebrow::before { content: ""; width: 1.9rem; height: 1px; background: var(--olive); }
.hero-intro { max-width: 24em; margin-top: 1.5rem; color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.1rem; margin-top: 1.8rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .64rem 1.18rem; font-weight: 600; font-size: .9375rem; text-align: center; }
.primary { background: var(--olive); border: 1px solid var(--olive); color: var(--white); }
.primary:hover { background: var(--ink); border-color: var(--ink); }
.text-link { font-size: .9375rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.hero-photo, .visit-photo { position: relative; overflow: hidden; background: var(--panel); }
.hero-photo img, .visit-photo img { position: absolute; inset: 0; height: 100%; }
.hero-photo img { object-position: 48% 55%; }
.hero-photo figcaption, .visit-photo figcaption { position: absolute; right: 1rem; bottom: 1rem; background: var(--paper); color: var(--ink); padding: .46rem .7rem; }

.services { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-head .eyebrow, .visit .eyebrow, .story .eyebrow { margin-bottom: .8rem; }
.section-head > p { max-width: 23em; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.75rem 0 1.2rem; }
.filters:empty, .cards:empty { display: none; }
.filters button { padding: .42rem 1.05rem; min-height: 42px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: .9rem; }
.filters button:hover { border-color: var(--olive); }
.filters [aria-pressed="true"] { background: var(--olive); color: var(--white); border-color: var(--olive); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card-open { display: flex; flex-direction: column; width: 100%; height: 100%; border: 1px solid var(--line); background: var(--paper); padding: 0; text-align: start; }
.card-open:hover { border-color: var(--olive); }
.card-open img { aspect-ratio: 1 / 1.01; height: auto; }
.card-copy { display: flex; flex: 1; flex-direction: column; width: 100%; padding: clamp(.85rem, 1.7vw, 1.4rem); }
.card-copy .eyebrow { font-size: .8125rem; }
.card-title { margin-block: .4rem; font: 700 clamp(1.125rem, 1.9vw, 1.65rem)/1.3 var(--serif); }
.card-teaser { color: var(--muted); line-height: 1.65; padding-bottom: .95rem; font-size: .9375rem; }
.card-action { display: flex; justify-content: space-between; align-items: center; gap: .3rem; margin-top: auto; padding-top: .65rem; border-top: 1px solid var(--line); font-size: .875rem; font-weight: 600; }
.card-action span { font-size: 1.05rem; }

.space { background: var(--panel); }
.space-layout { display: grid; grid-template-columns: .73fr 1.15fr .68fr; align-items: start; gap: clamp(1.35rem, 4vw, 4.1rem); }
.space-copy { align-self: center; }
.space-copy p { margin-top: 1.15rem; color: var(--muted); }
.space-main img { aspect-ratio: 1.07; object-position: 51% 60%; }
.space-side { margin-top: clamp(2.1rem, 6.9vw, 7rem); }
.space-side img { aspect-ratio: .8; object-position: 55% 56%; }
.space figcaption { margin-top: .55rem; }

.story-layout { display: grid; grid-template-columns: .8fr 1.1fr; align-items: center; gap: clamp(2rem, 9vw, 9rem); }
.story-photo img { aspect-ratio: 1.06; object-position: 50% 59%; }
.story-copy > p:not(.eyebrow) { max-width: 37em; margin-top: 1rem; color: var(--muted); }
blockquote { margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--olive); font: 700 clamp(1.25rem, 2.22vw, 2rem)/1.5 var(--serif); }

.booking { background: var(--panel); border-top: 1px solid var(--line); }
.booking-layout { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(1.5rem, 6vw, 6rem); }
.booking-copy p { max-width: 25em; margin-top: 1rem; color: var(--muted); }
.booking-form { background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2.4rem); }
.booking-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.booking-field label { display: block; margin-bottom: .28rem; font-weight: 600; }
.booking-field input, .booking-field select, .booking-copy-text { width: 100%; min-width: 0; min-height: 46px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.booking-project-field, .booking-submit { grid-column: 1 / -1; }
.booking-submit { justify-self: start; }
.booking-submit:disabled { opacity: .65; cursor: wait; }
.booking-status { margin-top: .7rem; color: var(--olive); }
.booking-status:empty { display: none; }
.booking-status[data-error] { color: #7e3429; }
.booking-copy-text { margin-top: .55rem; resize: vertical; }

.visit { background: var(--dark); color: var(--white); }
.visit-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 7vw, 7rem); min-height: 440px; }
.visit-copy { align-self: center; }
.visit-copy > p:not(.eyebrow, .copy-status) { max-width: 30em; margin-top: 1rem; color: #e0ded0; }
.visit .eyebrow { color: var(--light-olive); }
.contact { margin: 1.4rem 0 0; }
.contact > div { display: grid; grid-template-columns: 6rem 1fr; align-items: baseline; padding: .53rem 0; border-top: 1px solid #696b5d; gap: .5rem; }
.contact > div:last-child { border-bottom: 1px solid #696b5d; }
.contact dt { color: var(--light-olive); font-size: .875rem; }
.contact a { text-decoration: underline; text-underline-offset: .2em; }
.copy { border: 0; background: transparent; text-decoration: underline; text-underline-offset: .22em; padding: .23rem .45rem; margin-left: .37rem; color: var(--light-olive); font-size: .875rem; }
.copy-status { color: var(--light-olive); margin-top: .45rem; font-size: .875rem; }
.copy-status:empty { display: none; }
.visit .primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.visit .primary:hover { background: var(--light-olive); border-color: var(--light-olive); }
.secondary { color: var(--white); border: 1px solid var(--light-olive); }
.secondary:hover { background: var(--light-olive); color: var(--ink); }
.visit-photo img { object-position: 50% 54%; }

.footer { background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.5rem; color: var(--muted); font-size: .875rem; }
.footer-brand { margin-right: .65rem; color: var(--ink); font: 700 1.15rem var(--serif); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.footer-links button { padding: 0; border: 0; background: none; }
.footer-links button:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer-filing { border-top: 1px solid var(--line); padding-block: .75rem 1rem; color: var(--muted); font-size: .875rem; }

html:has(.intro[open]) { overflow: hidden; }
.intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 44%, #fff8da 0%, #f8edc7 58%, #f1e3b2 100%);
  color: var(--ink);
}
.intro::backdrop { background: #f8edc7; }
.offline-status {
  position: absolute;
  z-index: 3;
  top: max(.75rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  padding: .25rem .65rem;
  border: 1px solid #81734d69;
  background: #fff7de;
  color: var(--olive);
  white-space: nowrap;
  font-size: .875rem;
}
.intro-stage {
  --card-width: min(clamp(115px, 13vw, 188px), 23dvh);
  --mark-width: min(clamp(112px, 15vw, 192px), 30dvh);
  position: absolute;
  inset: 0;
}
.intro-mark, .intro-orbit, .intro-photo {
  position: absolute;
  top: 50%;
  left: 50%;
}
.intro-mark, .intro-orbit { transform: translate(-50%, -50%); }
.intro-orbit {
  width: var(--orbit-width);
  height: var(--orbit-height);
  border: 1px solid #81734d69;
  border-radius: 50%;
  pointer-events: none;
}
.intro-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: var(--mark-width);
  aspect-ratio: 1;
  padding: .55rem;
  border: 1px solid #fff9e6;
  border-radius: 50%;
  outline: 1px solid #81734d56;
  outline-offset: 7px;
  background: radial-gradient(circle at 48% 31%, #fffbec, #f3e5b6);
  color: var(--ink);
  box-shadow: 0 14px 38px #5b492920;
}
.intro-mark img { width: 67%; object-fit: contain; }
.intro-brand { font: 700 clamp(1rem, 2.6vw, 1.8rem)/1 var(--serif); letter-spacing: .14em; margin-left: .14em; }
.intro-brand-en { font-size: clamp(.56rem, .88vw, .76rem); font-weight: 600; line-height: 1.15; white-space: nowrap; }
.intro-photo {
  z-index: 1;
  width: var(--card-width);
  transform: translate(-50%, -50%) translate(var(--photo-x, 0px), var(--photo-y, 0px));
  border: 1px solid #e5d7bf;
  padding: .23rem;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 10px 22px #5b492925;
}
.intro-photo img { height: auto; aspect-ratio: 1.39; }
.intro-water img { object-position: 52% 67%; }
.intro-space img { object-position: 50% 52%; }
.intro-story img { object-position: 50% 64%; }
.intro-lashes img { object-position: 61% 12%; }
.intro-visit img { object-position: 53% 54%; }
.intro-photo span { display: block; padding: .32rem .1rem .15rem; font-size: .875rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.intro-photo:hover, .intro-photo:focus-visible { z-index: 2; background: #fff8e8; outline: 2px solid var(--olive); outline-offset: 4px; }
.intro-actions {
  position: absolute;
  z-index: 3;
  inset: auto max(1.125rem, env(safe-area-inset-right)) max(1.125rem, env(safe-area-inset-bottom)) max(1.125rem, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  pointer-events: none;
}
.intro-actions > * { pointer-events: auto; }
.intro-motion { border: 1px solid #81734d; padding: .38rem .75rem; min-height: 44px; color: inherit; background: #fff7de; font-size: .875rem; }
.intro-motion:hover { border-color: var(--ink); }
.intro-enter { border: 1px solid var(--olive); min-width: 9rem; background: var(--olive); color: var(--white); }
.intro-enter:hover { background: var(--ink); border-color: var(--ink); }
.intro-enter:focus-visible { outline-color: var(--olive); }

.detail { width: min(35rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: clamp(1.4rem, 5vw, 3rem); overflow: auto; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.detail::backdrop { background: #24221d9c; }
.detail-close { position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px; background: transparent; border: none; font-size: 1.6rem; line-height: 1; }
.detail-close:hover { background: var(--panel); }
.detail h2 { margin: .55rem 2rem .95rem 0; font-size: clamp(1.75rem, 5vw, 2.65rem); }
.detail-content > p:not(.eyebrow) { color: var(--muted); }
.detail-prompt { margin-top: .85rem; }
.detail .actions { margin-top: 1.35rem; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-open img { aspect-ratio: 1.25; }
  .space-layout { grid-template-columns: .88fr 1.12fr; }
  .space-side { grid-column: 2; width: 65%; margin-top: 0; justify-self: end; }
  .space-main { grid-column: 2; }
  .space-copy { grid-row: 1 / span 2; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 75px; }
  .shell { width: calc(100% - 2.25rem); }
  .header-inner { min-height: 63px; }
  .brand { gap: .5rem; }
  .brand img { width: 54px; }
  .brand > span { padding-left: .5rem; }
  .menu { display: inline-flex; align-items: center; gap: .42rem; min-height: 42px; padding: .4rem .7rem; background: none; border: 1px solid var(--line); font-size: .875rem; }
  .menu span::before { content: "☰"; }
  .menu[aria-expanded="true"] span::before { content: "×"; }
  .nav { position: absolute; top: 100%; left: 1.125rem; right: 1.125rem; padding: .75rem; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 .85rem 1.5rem #25221e19; }
  .nav { display: grid; gap: .2rem; }
  .menu:not([hidden]) + .nav:not(.open) { display: none; }
  .nav a { padding: .55rem .65rem; }
  .nav .nav-contact { justify-self: start; padding: .45rem .65rem; }
  h1 { font-size: clamp(2.48rem, 10.4vw, 4.4rem); letter-spacing: -.07em; }
  .hero-layout, .story-layout, .booking-layout, .visit-layout { grid-template-columns: 1fr; }
  .hero-layout { min-height: 0; }
  .hero-copy { padding: 2.6rem 0 1.95rem; }
  .hero .eyebrow { margin-bottom: 1.1rem; }
  .hero-intro { margin-top: 1.1rem; }
  .hero .actions { margin-top: 1.25rem; }
  .hero-photo { aspect-ratio: 1.14; margin-bottom: 1.125rem; }
  .hero-photo img { object-position: 50% 58%; }
  .hero-photo figcaption, .visit-photo figcaption { right: .6rem; bottom: .6rem; }
  .section-head { display: block; }
  .section-head > p { margin-top: .7rem; }
  .cards { gap: .65rem; }
  .card-open img { aspect-ratio: 1 / 1.04; }
  .card-copy { padding: .68rem; }
  .card-teaser { font-size: .875rem; }
  .space-layout { grid-template-columns: 1.14fr .86fr; gap: 1rem; }
  .space-copy { grid-column: 1 / -1; grid-row: auto; }
  .space-copy p { margin-top: .7rem; }
  .space-main { grid-column: 1; }
  .space-main img { aspect-ratio: .93; }
  .space-side { width: 100%; margin-top: 2rem; }
  .story-copy { grid-row: 1; }
  .story-layout, .visit-layout { gap: 1.75rem; }
  .booking-form fieldset { grid-template-columns: 1fr; }
  .story-photo img { aspect-ratio: 1.25; }
  .visit-photo { aspect-ratio: 1.04; }
  .footer-inner { flex-wrap: wrap; gap: .6rem 1rem; }
  .intro-stage { --card-width: min(clamp(80px, 25.5vw, 134px), 22dvh); --mark-width: min(clamp(92px, 27.5vw, 144px), 28dvh); }
  .intro-mark { gap: .3rem; outline-offset: 4px; }
  .intro-enter { min-width: 7.2rem; }
}

@media (max-width: 370px) {
  .shell { width: calc(100% - 1.75rem); }
  .cards { grid-template-columns: 1fr; }
  .card-open img { aspect-ratio: 1.35; }
  .contact > div { grid-template-columns: 4.8rem 1fr; }
}

@media (max-height: 470px) and (orientation: landscape) {
  .intro-stage { --card-width: min(104px, 19dvh); --mark-width: min(110px, 22dvh); }
  .intro-mark { gap: .2rem; outline-offset: 4px; }
  .intro-brand-en { display: none; }
  .intro-photo span { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
