/* Kanok Thai Massage - site styles */

:root {
  --paper: #f1f0ea;
  --paper-2: #e7e7de;
  --ink: #17261f;
  --ink-soft: #4a5a51;
  --line: rgb(23 38 31 / .14);
  --forest: #1d3a2d;
  --forest-2: #24473a;
  --on-forest: #eef0e7;
  --on-forest-soft: #b9c6bd;
  --amber: #c98c1e;
  --amber-ink: #8a5a00;
  --radius: 4px;
  --shadow: 0 30px 60px -30px rgb(23 38 31 / .45);
  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111a16;
    --paper-2: #17231d;
    --ink: #e9ece4;
    --ink-soft: #a9b6ad;
    --line: rgb(233 236 228 / .14);
    --forest: #0c1511;
    --forest-2: #15241d;
    --on-forest: #eef0e7;
    --on-forest-soft: #a6b3aa;
    --amber: #e0a63a;
    --amber-ink: #e0a63a;
    --shadow: 0 30px 60px -30px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); }
h3 { font-size: 1.6rem; }
em { font-style: italic; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--amber-ink); margin-bottom: 1.2rem; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), background-color .25s, color .25s, border-color .25s;
}
.btn i { font-size: 1.15rem; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--forest); color: var(--on-forest); }
.btn-primary:hover { background: var(--forest-2); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--amber); color: #1a1205; }
  .btn-primary:hover { background: #ecb752; }
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-amber { background: var(--amber); color: #1a1205; }
.btn-amber:hover { background: #dba23a; }
.btn-line-light { border-color: rgb(238 240 231 / .3); color: var(--on-forest); }
.btn-line-light:hover { border-color: var(--on-forest); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link i { transition: transform .25s; }
.text-link:hover i { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }
.brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; font-style: italic; color: var(--forest); }
@media (prefers-color-scheme: dark) { .brand-name { color: var(--ink); } }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; padding: .3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone { font-weight: 600; text-decoration: none; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; width: 44px; height: 44px; color: var(--ink); font-size: 1.3rem; cursor: pointer; align-items: center; justify-content: center; }
.mobile-panel { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-panel { display: block; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-top: 1px solid var(--line); padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; z-index: 50; }
  body.menu-open .quickbar { display: none; }
  body.menu-open { overflow: hidden; }
  .mobile-panel.open { opacity: 1; transform: none; visibility: visible; }
  .mobile-panel ul { list-style: none; padding: 0; margin: 0 0 2rem; }
  .mobile-panel li a { display: block; font-family: var(--serif); font-size: 2.2rem; text-decoration: none; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .mobile-panel .btn { width: 100%; justify-content: center; margin-bottom: .75rem; }
}
@media (max-width: 480px) { .nav-phone span { display: none; } .nav { gap: 1rem; } .brand { gap: .4rem; } .brand-name { font-size: 1.7rem; } .brand-sub { font-size: .64rem; letter-spacing: .12em; white-space: nowrap; } }

/* Hero */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 1.5rem; max-width: 13ch; }
.hero h1 em { color: var(--amber-ink); }
.hero .lede { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.hero-meta div { display: flex; align-items: center; gap: .55rem; }
.hero-meta i { color: var(--amber-ink); font-size: 1.2rem; }
.hero-media { position: relative; padding-bottom: 12%; padding-left: 10%; }
.hero-media .main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.7; }
.hero-media .main img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .inset { position: absolute; left: 0; bottom: 0; width: 34%; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.hero-media .inset img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { padding-left: 0; padding-bottom: 0; }
  .hero-media .main { aspect-ratio: 4 / 3.4; }
  .hero-media .main img { object-position: 50% 70%; }
  .hero-media .inset { display: none; }
}

/* Intro statement */
.statement { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 3rem; }
.statement p.big { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.45rem); line-height: 1.25; margin: 0 0 2.5rem; }
.statement p.big em { color: var(--amber-ink); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem 3.5rem; margin: 0; }
.facts dt { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.facts dd { margin: .2rem 0 0; color: var(--ink-soft); font-size: .93rem; max-width: 24ch; }
@media (max-width: 860px) {
  .statement-grid { grid-template-columns: 1fr; gap: 1rem; }
  .facts { grid-template-columns: 1fr; }
}

/* Treatments block (home) */
.menu-block { background: var(--forest); color: var(--on-forest); padding: clamp(4rem, 8vw, 7rem) 0; }
.menu-block-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.menu-block .intro { position: sticky; top: 110px; }
.menu-block .intro h2 { margin-bottom: 1.3rem; }
.menu-block .intro p { color: var(--on-forest-soft); max-width: 36ch; margin-bottom: 2rem; }
.menu-block .intro .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; align-items: baseline; padding: 1.35rem 0; text-decoration: none; border-bottom: 1px solid rgb(238 240 231 / .14); transition: padding-left .35s cubic-bezier(.16,1,.3,1); }
.menu-list li:first-child a { border-top: 1px solid rgb(238 240 231 / .14); }
.menu-list a:hover { padding-left: .8rem; }
.menu-list .name { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.menu-list .price { font-size: .95rem; color: var(--on-forest-soft); white-space: nowrap; }
.menu-list .price b { color: var(--amber); font-weight: 600; font-size: 1.05rem; }
.menu-list .times { grid-column: 1 / -1; font-size: .85rem; color: var(--on-forest-soft); }
@media (max-width: 860px) {
  .menu-block-grid { grid-template-columns: 1fr; }
  .menu-block .intro { position: static; }
}

/* Therapist */
.therapist { padding: clamp(4rem, 9vw, 8rem) 0; }
.therapist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.therapist figure { margin: 0; }
.therapist figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.therapist h2 { margin-bottom: 1.4rem; }
.therapist .body { color: var(--ink-soft); max-width: 52ch; }
.quals { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; }
.quals li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; line-height: 1.4; }
.quals i { color: var(--amber-ink); font-size: 1.3rem; flex: none; margin-top: -1px; }
@media (max-width: 860px) {
  .therapist-grid { grid-template-columns: 1fr; }
  .quals { grid-template-columns: 1fr; }
}

/* Studio gallery */
.studio { padding: 0 0 clamp(4rem, 9vw, 8rem); }
.studio h2 { max-width: 18ch; margin-bottom: 1rem; }
.studio .lede { margin-bottom: 3rem; }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g1 { grid-row: 1 / 3; }
.gallery .g4 { grid-column: 2 / 4; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery figure { aspect-ratio: 1 / 1; }
  .gallery .g1 { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .gallery .g4 { grid-column: 1 / 3; aspect-ratio: 16 / 10; }
}

/* Visit */
.visit { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--paper-2); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.visit h2 { margin-bottom: 2rem; }
.info { display: grid; gap: 1.6rem; margin: 0 0 2.4rem; }
.info div { position: relative; padding-left: 2.6rem; }
.info dt i { position: absolute; left: 0; top: .1rem; color: var(--amber-ink); font-size: 1.35rem; }
.info dt { font-weight: 600; margin-bottom: .2rem; }
.info dd { margin: 0; color: var(--ink-soft); }
.info a { text-decoration: none; }
.info a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; box-shadow: var(--shadow); background: var(--paper); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.75) contrast(1.02); }
@media (prefers-color-scheme: dark) { .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); } }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } .map, .map iframe { min-height: 320px; } }

/* Page header (inner pages) */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 16ch; margin-bottom: 1.2rem; }

/* Treatments page */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.filter button {
  font: 500 .9rem/1 var(--sans); padding: .7rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
@media (prefers-color-scheme: dark) { .filter button[aria-pressed="true"] { background: var(--amber); color: #1a1205; border-color: var(--amber); } }

.treatments { padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.treatment { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 1.5rem 3rem; padding: 2.4rem 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 100px; transition: opacity .35s; }
.treatment h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.treatment .tag { display: inline-block; margin-top: .7rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--amber-ink); }
.treatment p { color: var(--ink-soft); margin: 0; max-width: 46ch; }
.prices { display: grid; gap: .45rem; margin: 0; }
.prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem .9rem; border-radius: var(--radius); background: var(--paper-2); transition: background-color .25s, color .25s; }
.prices dt { font-size: .92rem; color: var(--ink-soft); }
.prices dd { margin: 0; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.prices div.hit { background: var(--forest); color: var(--on-forest); }
.prices div.hit dt { color: var(--on-forest-soft); }
@media (prefers-color-scheme: dark) { .prices div.hit { background: var(--amber); color: #1a1205; } .prices div.hit dt { color: #3d2a06; } }
.treatment[hidden] { display: none; }
.empty-note { padding: 3rem 0; color: var(--ink-soft); }
@media (max-width: 860px) { .treatment { grid-template-columns: 1fr; gap: 1rem; } }

.notes { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--paper-2); }
.notes-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.notes ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
.notes li h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.notes li p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .notes-grid, .notes ol { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--forest); color: var(--on-forest); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta-band h2 { max-width: 18ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-ways { display: grid; gap: .8rem; margin-bottom: 3rem; }
.way { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .25s, background-color .25s, transform .25s cubic-bezier(.16,1,.3,1); }
.way:hover { border-color: var(--ink); background: var(--paper-2); }
.way:active { transform: scale(.99); }
.way > i:first-child { font-size: 1.6rem; color: var(--amber-ink); justify-self: center; }
.way strong { display: block; font-size: 1.05rem; }
.way span { color: var(--ink-soft); font-size: .9rem; }
.way > i:last-child { font-size: 1.1rem; color: var(--ink-soft); }
.contact-photo { border-radius: var(--radius); overflow: hidden; margin-top: 1rem; }
.contact-right { display: grid; gap: 14px; grid-template-rows: 1fr auto; }

/* Footer */
.site-footer { background: var(--forest); color: var(--on-forest-soft); padding: 4.5rem 0 2rem; font-size: .93rem; }
.menu-block + .site-footer, .cta-band + .site-footer { border-top: 1px solid rgb(238 240 231 / .1); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer .brand-name { color: var(--on-forest); font-size: 2.3rem; }
.site-footer .brand-sub { color: var(--on-forest-soft); }
.site-footer h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--on-forest); margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-forest); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgb(238 240 231 / .12); padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Mobile quick-action bar */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .quickbar .btn { justify-content: center; padding: .85rem 1rem; }
  body { padding-bottom: 78px; }
}

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-media .main img { animation: settle 1.8s cubic-bezier(.16,1,.3,1) both; }
  @keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ------------------------------------------------------------------
   Motion & effects
   ------------------------------------------------------------------ */

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: var(--amber); }

/* Marquee strip */
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 1.6rem 0; background: var(--paper); }
.marquee-track { display: flex; width: max-content; gap: 0; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1; white-space: nowrap; color: var(--ink); padding-right: 2.2rem; display: inline-flex; align-items: center; gap: 2.2rem; }
.marquee-track span::after { content: ""; width: 9px; height: 9px; border: 1px solid var(--amber); transform: rotate(45deg); flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Button shine */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.16,1,.3,1); }
.btn:hover::before { transform: translateX(120%); }
.btn > * { pointer-events: none; }

/* Lightbox */
.gallery figure { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 4vmin; background: rgb(10 18 14 / .92); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 88vh; width: auto; border-radius: var(--radius); box-shadow: 0 40px 80px rgb(0 0 0 / .5); transform: scale(.94); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.lightbox.open img { transform: none; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); background: transparent; color: #eef0e7; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { border-color: #eef0e7; }
.lightbox figcaption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #b9c6bd; font-size: .9rem; padding: 0 1rem; }

@media (prefers-reduced-motion: no-preference) {

  /* Page fade */
  body.leaving { opacity: 0; transition: opacity .28s ease; }
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

  /* Split headline: words rise from a mask */
  .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
  .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 70ms + .1s); }
  .split.in .w > span { transform: none; }
  .js .split.reveal { opacity: 1; transform: none; }

  /* Hero image curtain reveal */
  .hero-media .main { clip-path: inset(100% 0 0 0); animation: curtain 1.4s cubic-bezier(.77,0,.18,1) .15s forwards; }
  @keyframes curtain { to { clip-path: inset(0 0 0 0); } }
  .hero-media .main img { animation: settle 2.2s cubic-bezier(.16,1,.3,1) .15s both; }

  /* Image wipe on enter */
  /* The frame stays unclipped so the observer can see it; the photo inside wipes in */
  .wipe img { clip-path: inset(0 0 100% 0); transform: scale(1.15); transition: clip-path 1.3s cubic-bezier(.77,0,.18,1), transform 1.8s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
  .wipe.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
  .gallery figure.wipe.in:hover img { transform: scale(1.05); }

  /* Marquee */
  .marquee-track { animation: marquee 48s linear infinite; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* Treatment rows when filtering */
  .treatment.pop { animation: rowIn .6s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--n, 0) * 60ms); }
  @keyframes rowIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  /* Menu list hover line */
  .menu-list a { position: relative; }
  .menu-list a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.16,1,.3,1); }
  .menu-list a:hover::after { transform: scaleX(1); }
  .menu-list a .name { transition: color .3s; }
  .menu-list a:hover .name { color: var(--amber); }

  /* Contact cards: icon nudge */
  .way > i:first-child { transition: transform .4s cubic-bezier(.16,1,.3,1); }
  .way:hover > i:first-child { transform: scale(1.15) rotate(-6deg); }
  .way:hover > i:last-child { transform: translateX(4px); transition: transform .3s; }

  /* Scroll-driven effects (progressive enhancement) */
  @supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
    @keyframes grow { to { transform: scaleX(1); } }

    /* Statement words light up as you read */
    .statement p.big .sw { opacity: .18; animation: lit linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    @keyframes lit { to { opacity: 1; } }
    .js .statement p.big.reveal { opacity: 1; transform: none; }

    /* Gentle parallax inside images */
    .parallax { overflow: hidden; }
    .parallax img { animation: drift linear both; animation-timeline: view(); scale: 1.14; }
    @keyframes drift { from { translate: 0 -5%; } to { translate: 0 5%; } }

    /* Hero image drifts as the page scrolls away */
    .hero-media .inset { animation: floatUp linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes floatUp { to { translate: 0 -70px; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress, .marquee-track { animation: none !important; }
  .marquee-track { transform: none; }
}

/* Generated imagery */
.menu-preview { position: relative; margin: 2.8rem 0 0; aspect-ratio: 4 / 3.2; border-radius: var(--radius); overflow: hidden; background: var(--forest-2); max-width: 440px; }
.menu-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.4s cubic-bezier(.16,1,.3,1); }
.menu-preview img.on { opacity: 1; transform: none; }
@media (max-width: 860px) { .menu-preview { display: none; } }

.treatment .t-img { margin: 1.4rem 0 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); max-width: 360px; }
.treatment .t-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .treatment .t-img { max-width: none; aspect-ratio: 16 / 10; } }

.notes-img { margin: 2rem 0 0; aspect-ratio: 1 / 1; max-width: 320px; border-radius: var(--radius); overflow: hidden; }
.notes-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .notes-img { max-width: none; aspect-ratio: 16 / 10; } }

.cta-band.silk { background: linear-gradient(rgb(17 30 24 / .8), rgb(17 30 24 / .86)), url(../img/silk-texture.jpg) center / cover; }

/* Page header with image */
.page-head-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.head-img { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.head-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } }

/* Back to top */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 44;
  width: 54px; height: 54px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 1.25rem;
  color: var(--on-forest);
  background:
    radial-gradient(closest-side, var(--forest) calc(100% - 3px), transparent calc(100% - 2px)),
    conic-gradient(var(--amber) calc(var(--p) * 1%), rgb(238 240 231 / .22) 0);
  box-shadow: 0 14px 30px -12px rgb(23 38 31 / .55);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .35s, visibility .35s, transform .45s cubic-bezier(.16,1,.3,1);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top:active { transform: scale(.94); }
.to-top i { transition: transform .35s cubic-bezier(.16,1,.3,1); }
.to-top:hover i { transform: translateY(-3px); }
@media (prefers-color-scheme: dark) { .to-top { color: #eef0e7; background: radial-gradient(closest-side, #1d3a2d calc(100% - 3px), transparent calc(100% - 2px)), conic-gradient(var(--amber) calc(var(--p) * 1%), rgb(238 240 231 / .2) 0); } }
@media (max-width: 760px) { .to-top { bottom: calc(86px + env(safe-area-inset-bottom)); width: 48px; height: 48px; } }
body.menu-open .to-top { opacity: 0; visibility: hidden; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .to-top { animation: ring linear both; animation-timeline: scroll(root); }
    @keyframes ring { from { --p: 0; } to { --p: 100; } }
  }
}

/* Treatment rows: photo left, details right (overrides the earlier 3-column row) */
.treatment { grid-template-columns: minmax(240px, 400px) 1fr; gap: 1.5rem clamp(2rem, 4vw, 3.5rem); align-items: center; padding: 2rem 0; }
.treatment .t-img { margin: 0; max-width: none; aspect-ratio: 4 / 3; }
.treatment .t-body h2 { margin: 0; }
.treatment .t-body .tag { margin-top: .5rem; }
.treatment .t-body p { margin-top: .9rem; max-width: 60ch; }
.treatment .prices { grid-template-columns: repeat(3, minmax(0, 160px)); gap: .6rem; margin-top: 1.5rem; }
.treatment .prices div { flex-direction: column; align-items: flex-start; justify-content: center; gap: .1rem; padding: .75rem 1rem; }
.treatment .prices dd { font-size: 1.3rem; }
@media (max-width: 860px) {
  .treatment { grid-template-columns: 1fr; gap: 1.2rem; padding: 2rem 0 2.4rem; }
  .treatment .t-img { aspect-ratio: 16 / 10; }
  .treatment .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Hero entrance waits for the splash screen */
html.js:not(.loaded) .hero-media .main,
html.js:not(.loaded) .hero-media .main img { animation-play-state: paused; }

/* Picture loading shimmer */
.img-loading { overflow: hidden; }
.img-loading::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .45) 50%, transparent 80%) -150% 0 / 60% 100% no-repeat,
    var(--sk, var(--paper-2));
  transition: opacity .6s ease;
}
@media (prefers-color-scheme: dark) { .img-loading::after { background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .08) 50%, transparent 80%) -150% 0 / 60% 100% no-repeat, var(--sk, var(--paper-2)); } }
.img-loading.img-ready::after { opacity: 0; }
.menu-preview { --sk: var(--forest-2); }
.menu-preview.img-loading::after { background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .1) 50%, transparent 80%) -150% 0 / 60% 100% no-repeat, var(--forest-2); }
@media (prefers-reduced-motion: no-preference) {
  .img-loading::after { animation: shimmer 1.4s ease-in-out infinite; }
  @keyframes shimmer { to { background-position: 250% 0, 0 0; } }
}

/* ---------------- Hero effects ---------------- */
.hero-media .main-wrap { position: relative; }
.hero-media .main { position: relative; z-index: 1; }
.hero-media .main .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-media .main .slide.on { opacity: 1; }
.hero-media .main .slide:first-child { position: relative; }
.hero-media .inset { z-index: 2; }
.hero-frame { position: absolute; inset: 26px -26px -26px 26px; border: 1px solid var(--amber); border-radius: var(--radius); z-index: 0; pointer-events: none; }
.hero h1 em { position: relative; display: inline-block; }
.hero h1 em::after { content: ""; position: absolute; left: .04em; right: .04em; bottom: .02em; height: 2px; background: var(--amber); opacity: .75; transform-origin: left; }
@media (max-width: 860px) { .hero-frame { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Slow zoom on the current slide */
  .hero-media .main .slide.on { animation: kenburns 9s linear both; }
  .hero-media .main .slide:first-child.on { animation: settle 2.2s cubic-bezier(.16,1,.3,1) .15s both; }
  .hero-media .main .slide:first-child.on.again { animation: kenburns 9s linear both; }
  @keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }

  /* Gold frame draws itself in */
  .js .hero-frame { clip-path: inset(0 100% 100% 0); transition: clip-path 1.6s cubic-bezier(.77,0,.18,1) .9s; }
  html.js.loaded .hero-frame { clip-path: inset(0 0 0 0); }

  /* Underline under "traditional" */
  .js .hero h1 em::after { transform: scaleX(0); transition: transform 1s cubic-bezier(.77,0,.18,1) 1.1s; }
  html.js.loaded .hero h1 em::after { transform: scaleX(1); }

  /* Mouse depth (desktop): driven by --mx / --my from JS */
  .hero-media .main-wrap { transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -10px), 0); transition: transform .9s cubic-bezier(.16,1,.3,1); }
  .hero-frame { translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 8px); transition: clip-path 1.6s cubic-bezier(.77,0,.18,1) .9s, translate .9s cubic-bezier(.16,1,.3,1); }
  .hero-media .inset img { scale: 1.12; translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 8px); transition: translate .9s cubic-bezier(.16,1,.3,1); }
}

/* Small fixes */
.statement h2 { font-size: 1.6rem; }
.book-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .25s, color .25s; }
.book-link i { font-size: 1.1rem; color: #1f8f4e; }
@media (prefers-color-scheme: dark) { .book-link i { color: #4cc27c; } }
.book-link:hover { border-color: currentColor; }
.book-link .ph-arrow-right { color: inherit; font-size: .95rem; transition: transform .25s; }
.book-link:hover .ph-arrow-right { transform: translateX(3px); }

/* Welcome section: photo under the heading, text and facts beside it */
.statement { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.statement-grid { grid-template-columns: minmax(240px, 1fr) 2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.statement-side h2 { margin-bottom: 1.4rem; }
.statement-img { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 380px; }
.statement-img img { width: 100%; height: 100%; object-fit: cover; }
.statement p.big { margin-bottom: 2.2rem; }
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.facts dd { max-width: none; }
@media (max-width: 860px) {
  .statement-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .statement-side { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; }
  .statement-side h2 { margin: 0; }
  .statement-img { width: 140px; aspect-ratio: 1 / 1; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .statement-img { width: 96px; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; }
  .facts dd { margin: 0; }
}

/* How to find us */
.find-us { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper-2); }
.find-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.find-img { margin: 0; aspect-ratio: 773 / 826; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 520px; }
.find-img img { width: 100%; height: 100%; object-fit: cover; }
.find-us h2 { margin-bottom: 1rem; }
.find-us .lede { margin-bottom: 1.8rem; }
.steps { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1.1rem; }
.steps li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: start; gap: .2rem; line-height: 1.5; }
.steps i { font-size: 1.45rem; color: var(--amber-ink); margin-top: .05rem; }
.inline-link { display: inline-block; margin-top: .35rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .find-grid { grid-template-columns: 1fr; }
  .find-img { max-width: none; aspect-ratio: 4 / 3; }
  .find-img img { object-position: 50% 35%; }
}
