:root {
  --paper: #F7F4EE;
  --white: #FFFFFF;
  --band: #EAE5DC;
  --ink: #2A2B27;
  --sage: #565E50;
  --sage-dark: #474E42;
  --muted: #8A8C84;
  --muted-ink: #5E605A;
  --line: #D9D3C7;
  --serif: "Libre Baskerville", "Noto Serif TC", "Noto Serif JP", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Noto Sans TC", "Noto Sans JP", system-ui, sans-serif;
  --pad: 120px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/28px var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 em, h2 em, .join-line em { font-style: italic; color: var(--sage); }
p { margin: 0 0 16px; }
i[lang] { font-style: normal; font-family: "Noto Sans TC", var(--sans); letter-spacing: 0.12em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--pad) 0; }
.band { background: var(--band); }
.center { text-align: center; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/18px var(--sans);
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--sage); margin: 0 0 24px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.center .eyebrow { justify-content: center; }
.eyebrow.light { color: #C9CEC2; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; padding: 17px 26px; border-radius: 2px;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--sage); color: #fff; }
.btn-solid:hover { background: var(--sage-dark); }
.text-link {
  display: inline-flex; gap: 10px; align-items: center;
  font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; color: var(--ink);
  padding: 6px 0; border-bottom: 1px solid var(--line);
  transition: border-color .25s ease, gap .25s ease;
}
.text-link:hover { border-color: var(--sage); gap: 14px; }
.text-link.light { color: #fff; border-color: rgba(255,255,255,.35); }
.text-link.light:hover { border-color: #fff; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; height: 88px; gap: 40px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
.wm-name { font: 700 38px/1 var(--sans); letter-spacing: -0.035em; }
.wm-sub { font: 500 11px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.5em; margin-top: 6px; padding-left: 0.5em; color: var(--sage); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; }
.main-nav a:not(.btn) {
  font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; color: var(--ink); padding: 8px 0; position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--sage);
  transition: right .3s ease;
}
.main-nav a:not(.btn):hover::after { right: 0; }
.nav-book { display: none; }

.header-right { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--sans); color: var(--muted); }
.lang a { text-decoration: none; color: var(--muted-ink); letter-spacing: 0.06em; padding: 6px 0; }
.lang a[lang="zh-Hant"] { font-family: "Noto Sans TC", var(--sans); }
.lang a[lang="ja"] { font-family: "Noto Sans JP", var(--sans); }
.lang a[aria-current] { color: var(--sage); font-weight: 700; }
.lang a:hover { color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s ease, top .3s ease; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0 24px; }
.hero-frame { aspect-ratio: 16 / 9; max-height: calc(100vh - 88px - 24px); width: 100%; overflow: hidden; border-radius: 2px; background: var(--band); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: sepia(.05) contrast(.95) saturate(.96); }
.hero-panel-wrap { position: relative; }
.hero-panel {
  position: relative; margin-top: -80px; z-index: 2;
  background: var(--paper); width: min(720px, 100%);
  padding: 56px 64px 0 0;
}
.hero-panel::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--paper); }
.hero { overflow: hidden; }
.hero h1 { font-size: 64px; line-height: 72px; margin-bottom: 40px; }
.hero h1 em { display: inline; }
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-panel .eyebrow { margin-bottom: 28px; }

/* ---------- About ---------- */
.about { padding-top: 112px; }
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
.about-copy { grid-column: 1 / span 5; }
.about-copy h2, .section-head h2, .services-intro h2, .visit-copy h2 { font-size: 44px; line-height: 52px; margin-bottom: 32px; }
.about-copy p { color: var(--muted-ink); max-width: 460px; }
.about-copy .text-link { margin-top: 24px; }
.about-photo { grid-column: 7 / span 6; margin: 0; }
.about-photo .img-zoom { aspect-ratio: 4 / 5; }
.about-photo figcaption { margin-top: 16px; font: 500 12px/18px var(--sans); color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

.img-zoom { overflow: hidden; border-radius: 2px; background: var(--band); }
.img-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.6,.2,1); filter: sepia(.05) contrast(.95) saturate(.96); }
a:hover .img-zoom img, .img-zoom:hover img { transform: scale(1.04); }

/* ---------- Stylists ---------- */
.section-head { margin-bottom: 64px; }
.section-head h2 { margin-bottom: 0; }
.stylist-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stylist-row a { text-decoration: none; color: var(--ink); display: block; }
.portrait { aspect-ratio: 4 / 5; }
.portrait img { object-position: center 20%; }
.stylist-row h3 { font-size: 22px; line-height: 30px; margin-top: 20px; }
.role { font: 500 11px/17px var(--sans); text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-ink); margin: 6px 0 0; }
.more { margin-top: 56px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
.services-intro { grid-column: 1 / span 4; padding-top: 24px; }
.services-intro > p:not(.eyebrow) { color: var(--muted-ink); }
.services-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 40px; }
.services-list {
  grid-column: 6 / span 7;
  position: relative;
  padding: 16px 48px;
  background-color: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
/* Signature: glazed tile wall rhythm */
.services::before { content: none; }
.services { position: relative; overflow: hidden; isolation: isolate; }
.services-list::before {
  content: ""; position: absolute; top: -56px; bottom: -56px; left: 56px; right: -400px; z-index: -1;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 14px);
}
.svc { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.svc:last-child { border-bottom: 0; }
.svc:first-child { flex-direction: column; align-items: stretch; gap: 20px; }
.svc-head { display: grid; grid-template-columns: 48px 1fr; align-items: baseline; }
.svc-num { font: 500 12px/1 var(--sans); letter-spacing: 0.16em; color: var(--muted); }
.svc h3 { font-size: 28px; line-height: 36px; }
.svc-note { grid-column: 2; margin: 6px 0 0; font-size: 14px; line-height: 22px; color: var(--muted-ink); }
.price-rows { margin: 0 0 0 48px; }
.price-rows div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.price-rows dt { font: 500 15px/24px var(--sans); }
.price-rows dd { margin: 0; font: 400 20px/28px var(--serif); color: var(--sage); }
.svc-arrow { font-size: 18px; color: var(--sage); transition: transform .3s ease; }
.svc-link:hover .svc-arrow { transform: translateX(6px); }
.svc-link:hover h3 { color: var(--sage); }

/* ---------- Testimonials ---------- */
.slider { overflow: hidden; }
.slides { display: flex; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.quote { flex: 0 0 50%; margin: 0; padding: 0 56px; position: relative; }
.quote + .quote { border-left: 1px solid var(--line); }
.quote p { font: italic 400 22px/36px var(--serif); color: var(--ink); margin-bottom: 28px; letter-spacing: -0.005em; }
.quote footer { font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.2em; color: var(--sage); }
.slider-ctrl { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 56px; }
.arrow { width: 48px; height: 48px; border: 1px solid #C9C2B4; background: transparent; border-radius: 2px; color: var(--ink); font-size: 16px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.arrow:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.count { font: 500 12px/1 var(--sans); letter-spacing: 0.16em; color: var(--muted-ink); min-width: 64px; text-align: center; }
.count b { color: var(--ink); font-weight: 600; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: center; }
.visit-copy { grid-column: 1 / span 5; }
.info { margin: 0 0 40px; }
.info div { display: grid; grid-template-columns: 112px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.info div:last-child { border-bottom: 1px solid var(--line); }
.info dt { font: 500 12px/28px var(--sans); text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.info dd { margin: 0; }
.info a { text-decoration: none; }
.info a:hover { color: var(--sage); }
.map { grid-column: 7 / span 6; aspect-ratio: 6 / 5; background: var(--band); border-radius: 2px; overflow: hidden; position: relative; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--muted-ink); font-size: 15px; line-height: 24px; }
.map-fallback::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 10px rgba(86,94,80,.15); margin-bottom: 8px; }
.map-fallback span { background: var(--paper); padding: 20px 28px; border-top: 2px solid var(--sage); }
.map-fallback b { display: block; font: 400 20px/28px var(--serif); color: var(--ink); margin-bottom: 4px; }
.map iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.18) contrast(.9) brightness(1.04); }

/* ---------- Join band ---------- */
.join { background: var(--sage); color: #fff; padding: 56px 0; }
.join-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.join .eyebrow { margin: 0; flex: none; }
.join-line { font: 400 32px/40px var(--serif); letter-spacing: -0.01em; margin: 0; text-align: center; flex: 1; }
.join-line em { color: #E4E6DD; }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); padding: 88px 0 32px; font-size: 15px; line-height: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 64px; }
.f-brand p { color: var(--muted-ink); max-width: 300px; margin-top: 24px; }
.f-title { font: 500 12px/18px var(--sans); text-transform: uppercase; letter-spacing: 0.24em; color: var(--sage); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted-ink); }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--sage); }
.footer-base { width: calc(100% - 2 * var(--gutter)); max-width: 1240px; padding-left: 0; padding-right: 0; display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid #D3CCBE; font-size: 13px; color: var(--muted-ink); }
.footer-base::before { content: none; }
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--sage); }

/* ---------- Motion ---------- */
.hero-panel { animation: rise 1s ease both .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .hero-panel { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-inner { gap: 24px; }
  .main-nav ul { gap: 28px; }
  .header-book { padding: 15px 18px; }
}

@media (max-width: 1024px) {
  :root { --pad: 96px; --gutter: 32px; }
  .burger { display: block; }
  .header-book { display: none; }
  .header-right { margin-left: auto; gap: 12px; }
  .main-nav {
    position: fixed; inset: 88px 0 0 0; background: var(--paper);
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    padding: 32px var(--gutter) 40px; gap: 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn) { display: block; padding: 22px 0; font: 400 28px/1.2 var(--serif); text-transform: none; letter-spacing: -0.01em; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-book { display: flex; }
  body.menu-open { overflow: hidden; }

  .stylist-row { grid-template-columns: repeat(3, 1fr); }
  .stylist-row li:nth-child(n+4) { display: none; }
  .services-intro { grid-column: 1 / -1; position: static; margin-bottom: 56px; }
  .services-list { grid-column: 1 / -1; }
  .about-copy { grid-column: 1 / span 6; }
  .visit-copy { grid-column: 1 / span 6; }
}

@media (max-width: 760px) {
  :root { --pad: 72px; --gutter: 20px; }
  body { font-size: 16px; line-height: 26px; }
  .header-inner { height: 72px; }
  .main-nav { inset: 72px 0 0 0; }
  .wm-name { font-size: 32px; }
  .wm-sub { font-size: 9.5px; }
  .lang { gap: 6px; font-size: 12px; }

  .hero { padding: 0 12px; }
  .hero-frame { aspect-ratio: 4 / 5; max-height: none; }
  .hero-frame img { object-position: 38% center; }
  .hero-panel { margin-top: -80px; padding: 32px 0 0 0; width: calc(100% - 24px); }
  .hero h1 { font-size: 40px; line-height: 48px; margin-bottom: 32px; }
  .hero-actions { gap: 24px; }
  .hero-actions .btn { width: 100%; }
  .eyebrow { gap: 10px; font-size: 11px; letter-spacing: 0.2em; }
  .hero-panel .eyebrow { margin-bottom: 20px; }
  .hide-sm { display: none; }

  .about { padding-top: 72px; }
  .about-grid, .visit-grid, .services-grid { display: block; }
  .about-copy h2, .section-head h2, .services-intro h2, .visit-copy h2 { font-size: 32px; line-height: 40px; margin-bottom: 24px; }
  .about-photo { margin-top: 48px; }
  .about-photo .img-zoom { aspect-ratio: 4 / 3.4; }

  .section-head { margin-bottom: 40px; }
  .stylist-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 16px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .stylist-row::-webkit-scrollbar { display: none; }
  .stylist-row li, .stylist-row li:nth-child(n+4) { display: block; flex: 0 0 62%; scroll-snap-align: start; }
  .stylist-row h3 { font-size: 20px; margin-top: 16px; }
  .more { margin-top: 40px; }

  .services-intro { margin-bottom: 48px; }
  .services-actions { margin-top: 32px; }
  .services-actions .btn { width: 100%; }
  .services-list { padding: 8px 20px; }
  .services-list::before { top: -32px; bottom: -32px; left: 40px; right: -20px; }
  .svc { padding: 26px 0; gap: 16px; }
  .svc-head { grid-template-columns: 36px 1fr; }
  .svc h3 { font-size: 24px; line-height: 32px; }
  .price-rows { margin-left: 36px; }
  .price-rows dd { font-size: 18px; }

  .quote { flex-basis: 100%; padding: 0 4px; }
  .quote + .quote { border-left: 0; }
  .quote p { font-size: 19px; line-height: 31px; }
  .slider-ctrl { margin-top: 40px; }

  .map { margin-top: 48px; aspect-ratio: 1 / 1; }
  .info div { grid-template-columns: 96px 1fr; }

  .join { padding: 56px 0; }
  .join-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .join-line { text-align: left; font-size: 28px; line-height: 36px; }

  .site-footer { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-bottom: 48px; }
  .f-brand, .f-contact { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 370px) {
  .lang { font-size: 11px; gap: 4px; }
  .hero h1 { font-size: 36px; line-height: 44px; }
}
