/* ============================================================
   Momoki Spa — v3 "cinematic"
   Full-bleed imagery, oversized editorial type, scroll-linked
   motion (text flies in as you scroll). Cedar / sumi / spa-red.
   ============================================================ */

:root {
  --ink:        #1c1611;
  --ink-2:      #241c17;
  --ink-soft:   #4a3d31;
  --red:        #b32a22;
  --red-deep:   #8f201a;
  --cedar:      #9c6b45;
  --cedar-deep: #7c5230;
  --cream:      #f7f2ea;
  --paper:      #f1e8dc;
  --paper-2:    #eadecf;
  --line:       rgba(28,22,17,0.14);

  --serif: "Shippori Mincho", Georgia, serif;
  --sans:  "Zen Kaku Gothic New", system-ui, -apple-system, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans); color: var(--ink);
  background: var(--paper); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared ---------- */
.kicker { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 0.9em; }
.kicker::before { content:""; width: 2.4rem; height: 1px; background: currentColor; opacity: 0.6; }
.kicker.on-dark { color: #e6b0a8; }
.eyebrow-num { font-family: var(--serif); font-size: clamp(1rem,1.4vw,1.3rem); color: var(--red); letter-spacing: 0.1em; }

.btn { --bg: var(--red); --fg:#fff; display: inline-flex; align-items: center; gap: 0.6em; padding: 1.05em 2.1em; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; border-radius: 999px; border: 1px solid var(--bg); transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease); cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { --bg: transparent; --fg: currentColor; }
.btn--ghost.on-dark { --fg:#fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand__mark { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2.5px solid var(--red); color: var(--red); display: grid; place-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: 0; }

/* ============================================================
   MOTION — text flies in as you scroll
   Base = IntersectionObserver reveal (works everywhere).
   Enhancement = scroll-linked animation-timeline (kinetic).
   ============================================================ */
/* above-the-fold: animate on load, not on scroll */
.rise { opacity: 0; animation: riseIn 1.05s var(--ease) both; }
.rise[data-delay="1"] { animation-delay: .14s; }
.rise[data-delay="2"] { animation-delay: .28s; }
.rise[data-delay="3"] { animation-delay: .42s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }

/* fly-in on scroll — JS adds .in when the element enters the viewport.
   Reliable across Chrome, Safari, Firefox. */
.fly { opacity: 0; will-change: transform, opacity;
  transition: opacity .95s var(--ease), transform 1.05s var(--ease); }
.fly-up    { transform: translateY(72px); }
.fly-left  { transform: translateX(-100px); }
.fly-right { transform: translateX(100px); }
.fly-scale { transform: scale(0.88); }
.fly.in { opacity: 1; transform: none; }
.fly[data-delay="1"] { transition-delay: .12s; }
.fly[data-delay="2"] { transition-delay: .24s; }
.fly[data-delay="3"] { transition-delay: .36s; }

/* subtle cinematic zoom on the big full-bleed images */
.kb { animation: kenburns 14s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }

@media (prefers-reduced-motion: reduce) {
  .fly, .fly-up, .fly-left, .fly-right, .fly-scale, .rise { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .kb { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 1.4rem 0; transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease); }
.site-header .brand { color: #fff; }
.site-header .brand__mark { border-color:#fff; color:#fff; }
.site-header.scrolled { background: rgba(247,242,234,0.9); backdrop-filter: blur(14px); padding: 0.7rem 0; box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .brand__mark { border-color: var(--red); color: var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a:not(.btn) { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); font-weight: 500; position: relative; }
.site-header.scrolled .nav a:not(.btn) { color: var(--ink-soft); }
.nav a:not(.btn)::after { content:""; position:absolute; left:0; bottom:-6px; width:100%; height:1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; }

/* ============================================================
   HERO — full-bleed
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,15,11,0.5) 0%, rgba(20,15,11,0.05) 30%, rgba(20,15,11,0.25) 55%, rgba(20,15,11,0.82) 100%); }
.hero__inner { width: 100%; padding-bottom: clamp(3rem, 8vh, 7rem); }
.hero__title { font-size: clamp(3.3rem, 9.5vw, 9rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; max-width: 16ch; text-shadow: 0 4px 40px rgba(0,0,0,0.3); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: italic; color: #f0c9a3; }
.hero__sub { margin-top: 1.8rem; font-size: clamp(1.02rem, 1.5vw, 1.28rem); max-width: 46ch; color: rgba(255,255,255,0.9); }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(3rem,8vh,7rem); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.7); writing-mode: vertical-rl; display: flex; align-items: center; gap: 1rem; }
.hero__scroll::after { content:""; width: 1px; height: 60px; background: linear-gradient(rgba(255,255,255,0.7), transparent); }

/* ---------- spacer: clean 10px break between full-bleed images ---------- */
.spacer { height: 10px; background: var(--paper); }
.spacer--cream { background: var(--cream); }

/* ============================================================
   STATEMENT — big full-bleed image + flying headline
   ============================================================ */
.statement { position: relative; min-height: 92svh; display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; }
/* pin content hard-left (full-width, not the centered 1320 column) */
.statement .wrap, .ritual .wrap { max-width: none; width: 100%; margin: 0; }
.statement__bg { position: absolute; inset: 0; z-index: -2; }
.statement__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.statement::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(90deg, rgba(20,15,11,0.92) 0%, rgba(20,15,11,0.82) 30%, rgba(20,15,11,0.5) 62%, rgba(20,15,11,0.18) 100%); }
.statement__inner { max-width: 34rem; margin-right: auto; padding-block: 6rem; }
.statement h2 { font-size: clamp(2.6rem, 6.5vw, 6rem); line-height: 0.98; margin: 1.6rem 0; }
.statement h2 em { font-style: italic; color: #f0c9a3; }
.statement p { font-size: clamp(1rem,1.4vw,1.2rem); color: rgba(255,255,255,0.85); max-width: 42ch; }
.statement .badge { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--serif); font-style: italic; color: #f0c9a3; }

/* ============================================================
   TREATMENTS — big alternating full-width blocks
   ============================================================ */
.treatments-intro { padding: clamp(5rem,14vh,10rem) var(--gutter) clamp(2rem,5vh,3.5rem); text-align: center; }
.treatments-intro h2 { font-size: clamp(2.6rem, 7vw, 6rem); margin-top: 1rem; }
.treatments-intro p { margin: 1.2rem auto 0; max-width: 52ch; color: var(--ink-soft); font-size: 1.08rem; }

.treat { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 82vh; }
.treat:nth-child(even) .treat__media { order: 2; }
.treat__media { position: relative; overflow: hidden; }
.treat__media img { width: 100%; height: 100%; object-fit: cover; }
.treat__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem,7vw,7rem) clamp(1.5rem,6vw,6rem); background: var(--paper); }
.treat:nth-child(even) .treat__body { background: var(--cream); }
.treat__num { font-family: var(--serif); font-size: clamp(2.4rem,4vw,3.6rem); color: var(--red); opacity: 0.9; line-height: 1; }
.treat__body h3 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin: 0.7rem 0 0.5rem; }
.treat__jp { font-family: var(--serif); font-size: 0.9rem; color: var(--cedar-deep); letter-spacing: 0.14em; }
.treat__body p { margin: 1.6rem 0; color: var(--ink-soft); font-size: clamp(1rem,1.25vw,1.15rem); max-width: 42ch; }
.treat__meta { display: flex; align-items: baseline; gap: 1.5rem; margin-top: 0.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.treat__price { font-family: var(--serif); font-size: clamp(1.4rem,2vw,1.9rem); }
.treat__price span { font-size: 0.85rem; color: var(--ink-soft); }
.treat__dur { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }

.treat-cta { text-align: center; padding: clamp(4rem,10vh,7rem) var(--gutter); background: var(--ink); color: var(--cream); }
.treat-cta h3 { font-size: clamp(2rem,5vw,3.6rem); margin: 1rem auto; max-width: 20ch; }
.treat-cta p { color: rgba(247,242,234,0.72); max-width: 46ch; margin: 0 auto 2rem; }

/* ============================================================
   RITUAL — full-bleed, steps fly in
   ============================================================ */
.ritual { position: relative; color: var(--cream); padding: clamp(6rem,16vh,12rem) 0; overflow: hidden; isolation: isolate; }
.ritual__bg { position: absolute; inset: 0; z-index: -2; }
.ritual__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 82% center; }
.ritual::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(90deg, rgba(16,11,8,0.95) 0%, rgba(16,11,8,0.86) 32%, rgba(16,11,8,0.45) 64%, rgba(16,11,8,0.12) 100%); }
.ritual__inner { max-width: 620px; }
.ritual h2 { font-size: clamp(2.4rem,5vw,4.4rem); margin: 1.4rem 0 2.8rem; max-width: 16ch; }
.ritual-steps { display: grid; grid-template-columns: 1fr; gap: 1.9rem; max-width: 540px; }
.ritual-step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; }
.ritual-step .n { font-family: var(--serif); font-size: 1rem; color: #f0c9a3; border: 1px solid rgba(240,201,163,0.5); border-radius: 50%; width: 2.6rem; height: 2.6rem; display: grid; place-content: center; flex: none; }
.ritual-step h4 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.3rem; }
.ritual-step p { color: rgba(247,242,234,0.82); font-size: 0.98rem; }

/* ============================================================
   TESTIMONIAL — oversized quote
   ============================================================ */
.testimonial { padding: clamp(6rem,16vh,11rem) 0; background: var(--paper-2); text-align: center; }
.testimonial .enso { width: 66px; margin: 0 auto 2rem; }
.stars { color: var(--red); letter-spacing: 0.25em; margin-bottom: 1rem; }
.quote { font-family: var(--serif); font-size: clamp(1.8rem,5vw,3.6rem); line-height: 1.28; max-width: 18ch; margin: 0 auto; letter-spacing: -0.01em; }
.quote em { font-style: italic; color: var(--red); }
.attrib { margin-top: 2.2rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cedar-deep); }

/* ============================================================
   VISIT
   ============================================================ */
.visit { padding: clamp(5rem,13vh,9rem) 0; background: var(--ink); color: var(--cream); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,5rem); align-items: stretch; }
.visit-copy h2 { font-size: clamp(2.4rem,5.5vw,4.4rem); margin: 1.3rem 0 1.6rem; color: var(--cream); }
.visit-copy > p { color: rgba(247,242,234,0.75); max-width: 44ch; margin-bottom: 2.4rem; font-size: 1.05rem; }
.visit-details { display: grid; gap: 1.5rem; margin-bottom: 2.6rem; }
.detail-row { display: grid; grid-template-columns: 1.6rem 1fr; gap: 1rem; align-items: start; }
.detail-row .ic { color: #e6b0a8; margin-top: 3px; }
.detail-row .label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,242,234,0.55); }
.detail-row .val { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); }
.detail-row a.val:hover { color: #e6b0a8; }
.map-wrap { border-radius: 6px; overflow: hidden; min-height: 400px; height: 100%; border: 1px solid rgba(247,242,234,0.14); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); min-height: 400px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #120d09; color: rgba(247,242,234,0.7); padding: 4rem 0 2.5rem; }
.site-footer .brand { color: var(--cream); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(247,242,234,0.12); }
.footer-brand p { margin-top: 0.9rem; font-size: 0.9rem; max-width: 30ch; }
.footer-links { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,242,234,0.5); margin-bottom: 1rem; font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 0.5rem; color: rgba(247,242,234,0.78); }
.footer-col a:hover { color: #e6b0a8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; font-size: 0.78rem; color: rgba(247,242,234,0.45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .treat { grid-template-columns: 1fr; min-height: auto; }
  .treat__media { min-height: 56vh; }
  .treat:nth-child(even) .treat__media { order: 0; }
  .ritual-steps { grid-template-columns: 1fr; gap: 2rem; }
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw,320px); background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.9rem; padding: 3rem 2.4rem; transform: translateX(100%); transition: transform .5s var(--ease); }
  .nav.open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,0.35); }
  .nav a:not(.btn) { color: var(--cream) !important; font-size: 1.05rem; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; z-index: 70; padding: 6px; }
  .nav-toggle span { width: 26px; height: 2px; background: #fff; transition: .4s var(--ease); }
  .site-header.scrolled .nav-toggle span { background: var(--ink); }
  .nav-toggle.open span { background: #fff; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__scroll { display: none; }
}
