/* =====================================================================
   MEGUMI — Design Hair with Care
   A scroll-narrative redesign. Somni's architecture, retuned from
   "dream maze" to "breathing ritual." Palette: Paper & Matcha.
   Hand-authored CSS. Progressive enhancement: motion gated on .motion.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper:   #F4F1E8;   /* warm paper            */
  --paper-2: #EDE7D9;   /* deeper section        */
  --paper-3: #E5DECC;   /* deepest paper         */
  --ink:     #26241E;   /* sumi charcoal         */
  --ink-2:   #46423A;   /* body text             */
  --ink-3:   #756F61;   /* muted meta            */

  --matcha:      #7A8B5C;
  --matcha-deep: #5A6940;
  --clay:        #C2714F;
  --clay-deep:   #A85B3B;

  --line:        rgba(38, 36, 30, 0.16);
  --line-soft:   rgba(38, 36, 30, 0.09);
  --line-strong: rgba(38, 36, 30, 0.30);

  /* dark "ritual" chapter — closed eyes */
  --moss:        #21251B;
  --moss-2:      #2B3122;
  --on-dark:     #ECE6D6;
  --on-dark-2:   #BFBAA8;
  --matcha-lt:   #AEB98C;
  --clay-lt:     #DC9069;
  --line-dark:   rgba(236, 230, 214, 0.16);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "Spline Sans Mono", ui-monospace, "SFMono-Regular", monospace;

  --header-h: 5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* fluid display sizes */
  --fs-hero: clamp(3.4rem, 15.5vw, 17rem);
  --fs-xl:   clamp(2.8rem, 9vw, 8.5rem);
  --fs-lg:   clamp(2.2rem, 6vw, 5.5rem);
  --fs-md:   clamp(1.6rem, 3.4vw, 3rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: clamp(15px, 0.42vw + 13px, 20px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.motion { scroll-behavior: auto; } /* Lenis owns scroll */

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--matcha); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -120%);
  z-index: 200; background: var(--ink); color: var(--paper);
  padding: 0.6rem 1.2rem; border-radius: 0 0 8px 8px; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- shared grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(12px, 1.4vw, 28px);
  padding-inline: clamp(20px, 5vw, 96px);
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.85em 1.6em; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill--clay  { background: var(--clay); color: var(--paper); }
.pill--clay:hover { background: var(--clay-deep); }
.pill--ghost { border-color: var(--line-strong); color: var(--ink); }
.pill--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pill--paper { background: var(--paper); color: var(--ink); }
.pill--paper:hover { background: var(--matcha-lt); }

/* =====================================================================
   ATMOSPHERE — grain + slow breathing light
   ===================================================================== */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: multiply;
}

.breath {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: 0.5; will-change: transform, opacity;
}
.breath--matcha { background: radial-gradient(circle, rgba(122,139,92,0.55), transparent 68%); }
.breath--clay   { background: radial-gradient(circle, rgba(194,113,79,0.40), transparent 68%); }
.breath--a { width: 46vw; height: 46vw; top: -14vw; left: -10vw; }
.breath--b { width: 38vw; height: 38vw; bottom: -8vw; right: -6vw; }
.breath--c { width: 30vw; height: 30vw; top: 42%; left: 56%; opacity: 0.3; }

.motion .breath--a { animation: breathe 13s var(--ease-soft) infinite alternate; }
.motion .breath--b { animation: breathe 17s var(--ease-soft) infinite alternate 1.5s; }
.motion .breath--c { animation: breathe 11s var(--ease-soft) infinite alternate 0.7s; }

@keyframes breathe {
  from { transform: translate3d(0,0,0) scale(1);     opacity: 0.28; }
  to   { transform: translate3d(2vw,-3vw,0) scale(1.18); opacity: 0.5; }
}

/* =====================================================================
   HEADER + NAV
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: clamp(18px, 4vw, 56px);
  color: var(--ink);
  text-shadow: 0 0 10px color-mix(in srgb, var(--paper) 85%, transparent), 0 1px 4px rgba(38, 36, 30, 0.4);
  transition: background 0.5s var(--ease), color 0.5s var(--ease),
              box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease),
              text-shadow 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-soft);
  text-shadow: none;
}
.site-header.on-dark { color: var(--on-dark); }
.site-header.on-dark.is-scrolled {
  background: color-mix(in srgb, var(--moss) 70%, transparent);
  box-shadow: 0 1px 0 var(--line-dark);
}

.brand { display: inline-flex; align-items: center; gap: 0.55em; justify-self: start; }
.brand__mark { height: 3rem; width: auto; display: block; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--paper) 85%, transparent)) drop-shadow(0 1px 3px rgba(38, 36, 30, 0.4)); transition: filter 0.5s var(--ease); }
.site-header.is-scrolled .brand__mark { filter: none; }
.brand__word { font-family: var(--mono); font-weight: 500; letter-spacing: 0.42em; font-size: 0.82rem; padding-left: 0.1em; }

.chapter-indicator {
  justify-self: center; display: flex; align-items: center; gap: 0.7em;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.5s var(--ease);
  white-space: nowrap;
}
.site-header.is-scrolled .chapter-indicator { opacity: 1; transform: none; }
.on-dark .chapter-indicator { color: var(--on-dark-2); }
.chapter-indicator__num { color: var(--clay); }
.on-dark .chapter-indicator__num { color: var(--clay-lt); }

.site-nav { display: none; }
@media (min-width: 920px) {
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .chapter-indicator { display: none; } /* nav takes center on desktop */
  .site-nav {
    justify-self: center; display: flex; gap: clamp(1.2rem, 2.4vw, 2.6rem);
    font-size: 0.82rem; letter-spacing: 0.03em;
  }
  .site-nav a { position: relative; padding: 0.3em 0; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease);
  }
  .site-nav a:hover::after { transform: scaleX(1); }
}

.site-header__book { justify-self: end; display: none; }
@media (min-width: 920px) { .site-header__book { display: inline-flex; } }
.on-dark .site-header__book.pill--clay { background: var(--clay-lt); color: var(--moss); }

/* hamburger */
.nav-toggle {
  justify-self: end; display: inline-flex; flex-direction: column; gap: 6px;
  width: 34px; height: 34px; align-items: center; justify-content: center;
}
@media (min-width: 920px) { .nav-toggle { display: none; } }
.nav-toggle__line { width: 22px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }

/* overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: var(--paper-2); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 8vw, 80px);
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-overlay[hidden] { display: flex; } /* JS toggles is-open; keep in flow for transition */
.nav-overlay__close {
  position: absolute; top: clamp(20px,5vw,40px); right: clamp(20px,5vw,40px);
  width: 40px; height: 40px;
}
.nav-overlay__close span {
  position: absolute; top: 50%; left: 50%; width: 22px; height: 1.5px; background: var(--ink);
}
.nav-overlay__close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.nav-overlay__close span:last-child  { transform: translate(-50%,-50%) rotate(-45deg); }
.nav-overlay__nav { display: flex; flex-direction: column; gap: 0.2em; }
.nav-overlay__nav a {
  font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4.2rem); font-weight: 300;
  line-height: 1.1; display: flex; align-items: baseline; gap: 0.4em;
  transition: color 0.3s var(--ease); color: var(--ink);
}
.nav-overlay__nav a:hover { color: var(--matcha-deep); }
.nav-overlay__jp { font-size: 0.32em; font-family: var(--mono); color: var(--clay); letter-spacing: 0.1em; }
.nav-overlay__foot {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.4rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.04em;
}

/* =====================================================================
   REVEALS (gated on .motion so no-JS / reduced-motion show everything)
   ===================================================================== */
.motion [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; z-index: 1; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: var(--header-h) clamp(20px,5vw,96px) 0;
  overflow: hidden;
}
/* full-bleed sky photo */
.hero__leaf {
  position: absolute; z-index: 2; inset: 0;
  opacity: 1; will-change: transform;
}
.hero__leaf img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; filter: saturate(0.82) contrast(0.98) brightness(1.02); }

/* tagline, small and spread naturally across the cloud — matches megumi.care's own
   hero layout 1:1 (position/size ratios pulled from their live DOM), just kept in a
   contrast-safe light color + shadow since our crop of the same photo differs from theirs */
.hero__scatter-group { position: absolute; inset: 0; z-index: 3; pointer-events: none; margin: 0; }
.hero__scatter {
  position: absolute; display: block; margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--paper);
  line-height: 1.1; letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(38, 36, 30, 0.4);
}
.hero__scatter--a { top: 52%; left: 31%; font-size: clamp(0.85rem, 2.7vw, 1.55rem); }
.hero__scatter--b { top: 58%; left: 36%; font-size: clamp(1.7rem, 5.8vw, 3.3rem); }
.hero__scatter--c { top: 69%; left: 47.5%; font-size: clamp(0.85rem, 2.7vw, 1.55rem); }
.hero__scatter--d { top: 75%; left: 31%; font-size: clamp(1.4rem, 4.6vw, 2.6rem); }

.scroll-cue {
  position: absolute; bottom: clamp(18px, 4vh, 40px); left: 50%; transform: translateX(-50%);
  z-index: 3; display: grid; justify-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-cue__line { position: relative; width: 1px; height: 52px; background: var(--line-strong); overflow: hidden; }
.scroll-cue__line i { position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--clay); }
.motion .scroll-cue__line i { animation: cueFall 2.4s var(--ease-soft) infinite; }
@keyframes cueFall { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* dawn horizon hinting the next chapter */
.hero__horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32vh; z-index: 1;
  background: linear-gradient(to top, color-mix(in srgb, var(--matcha) 22%, var(--paper)), transparent);
  pointer-events: none;
}

/* =====================================================================
   01 · PHILOSOPHY
   ===================================================================== */
.philosophy {
  position: relative; z-index: 1; background: var(--paper);
  padding-block: clamp(6rem, 16vh, 13rem);
}
.philosophy__grid { row-gap: clamp(2rem, 5vh, 4rem); align-items: start; }

.chapter-tag {
  grid-column: 1 / -1;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 1rem;
}
.chapter-tag__rule { width: clamp(28px, 5vw, 64px); height: 1px; background: var(--clay); display: inline-block; }
.chapter-tag__jp { margin-left: auto; font-family: var(--serif); font-size: 1.5em; color: var(--matcha); letter-spacing: 0; }
.chapter-tag--light { color: var(--on-dark-2); }
.chapter-tag--light .chapter-tag__rule { background: var(--clay-lt); }
.chapter-tag--light .chapter-tag__jp { color: var(--matcha-lt); }

.philosophy__head {
  grid-column: 1 / -1; font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: var(--fs-xl); line-height: 0.96; letter-spacing: -0.01em;
}
.philosophy__head span { display: block; }
.philosophy__em { font-style: italic; color: var(--matcha-deep); padding-left: 0.6em; }

.enso {
  grid-column: 9 / 13; grid-row: 3; align-self: center; justify-self: end;
  width: clamp(120px, 16vw, 220px); height: auto; color: var(--clay);
  margin-top: -8%; opacity: 0.9;
}
@media (max-width: 900px) { .enso { display: none; } }

.philosophy__lede {
  grid-column: 1 / span 7; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.34; color: var(--ink);
}
.philosophy__lede em { font-style: italic; color: var(--matcha-deep); }

.philosophy__duo {
  grid-column: 1 / -1; display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr; margin-top: clamp(1rem, 3vh, 2rem);
}
@media (min-width: 760px) { .philosophy__duo { grid-template-columns: 1fr 1fr; } }
.tenet { max-width: 38ch; }
.tenet__kicker {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay-deep); margin-bottom: 0.9rem;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.tenet--science .tenet__kicker { color: var(--matcha-deep); }
.tenet__body { font-size: 1.02rem; color: var(--ink-2); }
.tenet__body em { font-style: normal; color: var(--ink); border-bottom: 1px solid var(--matcha); }

.pullquote {
  grid-column: 2 / span 9; position: relative; margin-top: clamp(2rem, 5vh, 4rem);
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.18; color: var(--ink);
}
.pullquote__num { font-family: var(--mono); font-style: normal; font-size: 0.7rem; color: var(--clay); vertical-align: super; margin-right: 0.6em; letter-spacing: 0.1em; }

.sprig {
  grid-column: 1 / 2; grid-row: 5 / 7; align-self: start; justify-self: start;
  width: clamp(60px, 8vw, 110px); height: auto; color: var(--matcha);
  opacity: 0.55; will-change: transform;
}
@media (max-width: 760px) { .sprig { display: none; } .pullquote { grid-column: 1 / -1; } .philosophy__lede { grid-column: 1 / -1; } }

/* =====================================================================
   02 · THE RITUAL  (dark — closed eyes)
   ===================================================================== */
.ritual {
  position: relative; z-index: 2; background: var(--moss); color: var(--on-dark);
  isolation: isolate;
}
/* eye-mask dim sweeping in at the top */
.ritual__dim {
  position: absolute; top: -1px; left: 0; right: 0; height: 26vh; z-index: 0;
  background: linear-gradient(to bottom, var(--paper), var(--moss));
}

.ritual__intro {
  position: relative; z-index: 1; padding-block: clamp(7rem, 18vh, 14rem) clamp(3rem, 6vh, 5rem);
  row-gap: 1.6rem;
}
.ritual__intro .chapter-tag { color: var(--on-dark-2); }
.ritual__title {
  grid-column: 1 / -1; font-family: var(--serif); font-weight: 300;
  font-size: var(--fs-xl); line-height: 0.98; color: var(--on-dark);
}
.ritual__title span { display: block; }
.ritual__title-em { font-style: italic; color: var(--matcha-lt); padding-left: 0.5em; }
.ritual__lede {
  grid-column: 1 / span 6; font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--on-dark-2); margin-top: 1rem; max-width: 44ch;
}
@media (max-width: 760px) { .ritual__lede { grid-column: 1 / -1; } }

/* pinned horizontal sequence of steps */
.ritual__stage { position: relative; z-index: 1; }
.ritual__track { padding-block: clamp(2rem, 6vh, 5rem); }
.ritual__steps {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: 1fr; padding-inline: clamp(20px, 5vw, 96px);
}
@media (min-width: 700px) { .ritual__steps { grid-template-columns: 1fr 1fr; } }

/* motion: pin the stage and run the steps horizontally (gated on .ritual-pin) */
.ritual-pin .ritual__stage { height: 360vh; }
.ritual-pin .ritual__track {
  position: sticky; top: 0; height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-block: 0;
}
.ritual-pin .ritual__steps {
  display: flex; flex-wrap: nowrap; gap: clamp(2rem, 4vw, 4rem);
  width: max-content; padding-inline: clamp(20px, 8vw, 14rem);
  will-change: transform;
}
.ritual-pin .rstep { width: clamp(280px, 32vw, 440px); flex: 0 0 auto; }

.rstep {
  position: relative; padding-top: 2.2rem; border-top: 1px solid var(--line-dark);
}
.rstep__no {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--clay-lt); position: absolute; top: 0.9rem; left: 0;
}
.rstep__jp {
  position: absolute; top: 0.4rem; right: 0; font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--moss-2);
  -webkit-text-stroke: 1px var(--line-dark); line-height: 1;
  pointer-events: none; z-index: -1;
}
.rstep__name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--on-dark); line-height: 1.1; margin-bottom: 0.7rem; margin-top: 1.2rem;
}
.rstep__copy { color: var(--on-dark-2); font-size: 0.98rem; max-width: 32ch; }

.ritual__progress {
  position: relative; z-index: 2; margin: 0 clamp(20px,5vw,96px);
  height: 1px; background: var(--line-dark);
}
.ritual-pin .ritual__progress {
  position: absolute; left: clamp(20px,5vw,96px); right: clamp(20px,5vw,96px);
  bottom: 11vh; margin: 0;
}
.ritual__progress span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--matcha-lt); transition: width 0.1s linear; }
html:not(.ritual-pin) .ritual__progress { display: none; }

/* signature offers */
.ritual__offers {
  position: relative; z-index: 1;
  padding-block: clamp(4rem, 10vh, 8rem) clamp(7rem, 16vh, 13rem);
  gap: clamp(1.6rem, 3vw, 3rem); row-gap: 2rem; align-items: stretch;
}
.offer {
  grid-column: span 12; position: relative;
  border: 1px solid var(--line-dark); border-radius: 6px;
  padding: clamp(1.6rem, 3vw, 2.8rem); background: color-mix(in srgb, var(--moss-2) 50%, transparent);
}
@media (min-width: 760px) {
  .offer { grid-column: span 6; }
}
.offer--signature { border-color: color-mix(in srgb, var(--matcha-lt) 50%, transparent); background: color-mix(in srgb, var(--moss-2) 80%, transparent); }
.offer__badge {
  position: absolute; top: -0.7rem; left: clamp(1.6rem,3vw,2.8rem);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--clay-lt); color: var(--moss); padding: 0.3em 0.9em; border-radius: 999px;
}
.offer__head { display: grid; gap: 0.3rem; padding-bottom: 1.3rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--line-dark); }
.offer__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); color: var(--on-dark); line-height: 1; }
.offer__name span { color: var(--matcha-lt); font-size: 0.7em; }
.offer__meta { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark-2); }
.offer__price { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--clay-lt); margin-top: 0.3rem; }
.offer__list { display: grid; gap: 0.55rem; font-size: 0.96rem; color: var(--on-dark-2); }
.offer__list li { padding-left: 1.3em; position: relative; }
.offer__list li::before { content: "—"; position: absolute; left: 0; color: var(--matcha-lt); }
.offer__list--two { grid-template-columns: 1fr; }
@media (min-width: 480px) { .offer__list--two { grid-template-columns: 1fr 1fr; } }
.offer__cta { margin-top: 1.8rem; }

/* =====================================================================
   03 · MENU
   ===================================================================== */
.menu { position: relative; z-index: 1; background: var(--paper); padding-block: clamp(6rem, 14vh, 12rem); }
.menu__head { row-gap: 1.2rem; margin-bottom: clamp(3rem, 7vh, 6rem); }
.menu__title {
  grid-column: 1 / -1; font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: var(--fs-xl); line-height: 0.9; letter-spacing: -0.01em;
}
.menu__note { grid-column: 1 / span 6; font-size: 0.95rem; color: var(--ink-3); max-width: 40ch; }
@media (max-width: 760px) { .menu__note { grid-column: 1 / -1; } }

.menu__body { row-gap: 0; align-items: start; }
.menu__rail { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.menu__rail-label {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.6rem); color: var(--ink); line-height: 1;
}
.menu__rail-jp { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--matcha); }
@media (max-width: 820px) { .menu__rail { display: none; } }

.menu__groups { grid-column: 4 / -1; display: grid; gap: clamp(3rem, 7vh, 6rem); }
@media (max-width: 820px) { .menu__groups { grid-column: 1 / -1; } }

.mgroup__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink); margin-bottom: 1.4rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-strong);
}
@media (min-width: 821px) { .mgroup__title { display: none; } } /* rail shows it on desktop */
.mgroup__sub {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay-deep); margin: 2rem 0 0.6rem;
}
.mgroup__sub-jp { color: var(--matcha); font-family: var(--serif); margin-left: 0.4em; letter-spacing: 0; }

.price-list { display: grid; }
.price-list li { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line-soft); }
.price-list__name { font-size: 1.02rem; color: var(--ink); }
.price-list__name em { font-style: italic; color: var(--ink-3); font-size: 0.9em; }
.price-list__dot { flex: 1; height: 1px; align-self: center; background: repeating-linear-gradient(to right, var(--line-strong) 0 2px, transparent 2px 6px); }
.price-list__val { font-family: var(--mono); font-size: 0.92rem; color: var(--matcha-deep); white-space: nowrap; }
.price-list--lg .price-list__name { font-family: var(--serif); font-size: clamp(1.3rem,2.4vw,1.8rem); }
.price-list--lg .price-list__val { font-size: 1.1rem; color: var(--clay-deep); }

.mgroup--soon .mgroup__soon { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem,2.4vw,1.7rem); color: var(--ink-3); }

/* =====================================================================
   04 · THE SPACE
   ===================================================================== */
.space {
  position: relative; z-index: 1; background: var(--paper-2);
  padding-block: clamp(7rem, 18vh, 14rem); text-align: center; overflow: hidden;
}
.space__inner { position: relative; z-index: 2; padding-inline: clamp(20px,5vw,96px); }
.space .chapter-tag { justify-content: center; max-width: 540px; margin: 0 auto 2.4rem; }
.space .chapter-tag__jp { margin-left: 0.8rem; }

.space__title {
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: var(--fs-lg); line-height: 0.92; letter-spacing: 0.01em;
}
.space__title--mirror {
  transform: scaleY(-1); opacity: 0.12; margin-top: 0.1em;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
          mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.space__copy {
  max-width: 46ch; margin: clamp(2rem,5vh,3.5rem) auto 0;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; color: var(--ink-2);
}
.space__facts {
  display: grid; gap: 2rem; max-width: 720px; margin: clamp(3rem,7vh,5rem) auto 0;
  grid-template-columns: 1fr; text-align: left;
}
@media (min-width: 640px) { .space__facts { grid-template-columns: repeat(3, 1fr); } }
.space__facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-deep); margin-bottom: 0.5rem; }
.space__facts dd { font-size: 1rem; color: var(--ink); line-height: 1.5; }
.space__facts a { border-bottom: 1px solid var(--line); }
.space__facts a:hover { border-color: var(--ink); }

/* drifting leaves */
.leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.leaf {
  position: absolute; top: -8%; width: 14px; height: 22px;
  background: var(--matcha); opacity: 0.5;
  border-radius: 0 80% 0 80%;
  will-change: transform;
}
.motion .leaf { animation: leafFall linear infinite; }
@keyframes leafFall {
  0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { transform: translateY(120vh) translateX(8vw) rotate(420deg); opacity: 0; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { position: relative; z-index: 1; background: var(--ink); color: var(--on-dark); padding: clamp(4rem,10vh,8rem) clamp(20px,5vw,96px) 2.5rem; overflow: hidden; }
.site-footer__top { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(3rem,7vh,5rem); }
.site-footer__word {
  font-family: var(--serif); font-weight: 300; line-height: 0.8;
  font-size: clamp(3.5rem, 17vw, 16rem); letter-spacing: 0.02em;
  color: var(--on-dark); will-change: transform;
}
.site-footer__sign { font-family: var(--serif); font-size: clamp(2.5rem, 8vw, 7rem); color: var(--matcha-lt); line-height: 0.7; }

.site-footer__grid { display: grid; gap: 2.6rem; grid-template-columns: 1fr; padding-top: 2.6rem; border-top: 1px solid var(--line-dark); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; } }
.site-footer__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.site-footer__gift { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--on-dark-2); margin-top: 0.4rem; }
.site-footer__contact, .site-footer__social { display: grid; gap: 1.2rem; align-content: start; font-size: 0.92rem; color: var(--on-dark-2); }
.site-footer__contact a:hover, .site-footer__social a:hover { color: var(--matcha-lt); }
.site-footer__social { gap: 0.6rem; font-family: var(--mono); font-size: 0.82rem; }
.site-footer__social span { color: var(--ink-3); }

.newsletter label { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--on-dark-2); margin-bottom: 0.9rem; }
.newsletter__row { display: flex; align-items: center; border-bottom: 1px solid var(--line-dark); transition: border-color 0.3s var(--ease); }
.newsletter__row:focus-within { border-color: var(--matcha-lt); }
.newsletter input { flex: 1; background: none; border: none; color: var(--on-dark); padding: 0.6rem 0; font-size: 0.95rem; }
.newsletter input::placeholder { color: var(--ink-3); }
.newsletter input:focus { outline: none; }
.newsletter button { color: var(--matcha-lt); font-size: 1.3rem; padding: 0 0.4rem; transition: transform 0.3s var(--ease); }
.newsletter button:hover { transform: translateX(4px); }
.newsletter__thanks { margin-top: 0.9rem; font-family: var(--serif); font-style: italic; color: var(--matcha-lt); }
.newsletter__error { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.74rem; color: var(--clay-lt); }
.newsletter button[disabled] { opacity: 0.5; }

.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem,7vh,5rem); padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ink-3); text-transform: uppercase;
}

/* =====================================================================
   REDUCED MOTION — calm by default, motionless on request
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .breath { opacity: 0.3; }
  .scroll-cue__line i { display: none; }
}

/* =====================================================================
   STANDALONE PAGE CHROME — /gift, /thanks, /admin
   These pages share the marketing site's design language but stand on
   their own (their own <html>, their own header). They reuse every token
   above and add only what they need.
   ===================================================================== */

.page {
  position: relative; z-index: 1;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(1.4rem, 3.5vh, 2.6rem)) clamp(20px, 5vw, 96px) clamp(4rem, 10vh, 7rem);
}

/* slim shared header — brand home + a single nav action. Less than the
   marketing site's; these pages don't have chapters to track. */
.page-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding-inline: clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 var(--line-soft);
}
.page-header .brand__mark { height: 2.6rem; filter: none; }
.page-header .brand { gap: 0.5em; }
.page-header__nav { display: flex; gap: clamp(0.8rem, 2vw, 1.8rem); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.page-header__nav a { color: var(--ink-2); }
.page-header__nav a:hover { color: var(--matcha-deep); }
@media (max-width: 560px) { .page-header__nav .page-header__nav-optional { display: none; } }

/* page chapter-tag + heading block */
.page__intro { max-width: 760px; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.page__intro .chapter-tag { margin-bottom: 1.4rem; }
.page__title {
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: var(--fs-lg); line-height: 0.96; letter-spacing: -0.01em;
}
.page__title em { font-style: italic; color: var(--matcha-deep); }
.page__lede {
  margin-top: 1.2rem; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.4; color: var(--ink-2); max-width: 52ch;
}

/* compact intro — used on the gift page so the products sit near the top of
   the viewport instead of below a tall banner */
.page__intro--tight { max-width: 660px; margin-bottom: clamp(1.6rem, 3.5vh, 2.6rem); }
.page__intro--tight .chapter-tag { margin-bottom: 0.85rem; }
.page__intro--tight .page__title { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.0; }
.page__intro--tight .page__lede { margin-top: 0.7rem; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.45; max-width: 46ch; }

/* ─────────── gift page: product grid ───────────
   Every card shares one skeleton — head (name / meta / price) → body (the one
   thing that differs, an amount picker or a service list) → foot (reassurance
   + action). The foot is pinned to the bottom so all three CTAs land on the
   same baseline no matter how tall the body is. */
.shop { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .shop { grid-template-columns: repeat(3, 1fr); } }

.shop-card {
  display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.shop-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 16px 46px -26px rgba(38,36,30,0.5); }

.shop-card__head { display: grid; gap: 0.35rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.shop-card__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.55rem, 2.6vw, 1.95rem); color: var(--ink); line-height: 1.05; }
.shop-card__sub { font-family: var(--mono); font-size: 0.71rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.shop-card__price { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--clay-deep); margin-top: 0.35rem; line-height: 1; }

.shop-card__body { padding: 1.15rem 0; }

/* amount picker (gift card) */
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.amounts__opt {
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 0.78em 0.4em; border: 1px solid var(--line-strong); border-radius: 5px;
  background: var(--paper); color: var(--ink-2); cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.amounts__opt:hover { border-color: var(--ink); color: var(--ink); }
.amounts__opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.amounts__opt--custom[aria-pressed="true"] { background: var(--matcha-deep); border-color: var(--matcha-deep); color: var(--paper); }

.amount-custom {
  margin-top: 0.55rem; display: none; align-items: center; gap: 0.4rem;
  border: 1px solid var(--line-strong); border-radius: 5px; padding: 0.6em 0.8em;
  font-family: var(--mono); color: var(--ink-3);
}
.amount-custom.is-open { display: flex; }
.amount-custom input { width: 100%; background: none; border: none; color: var(--ink); font-family: var(--mono); font-size: 1rem; }
.amount-custom input:focus { outline: none; }

/* what's included (ritual cards) */
.shop-card__includes { display: grid; gap: 0.5rem; font-size: 0.9rem; line-height: 1.3; color: var(--ink-2); }
.shop-card__includes li { padding-left: 1.1em; position: relative; }
.shop-card__includes li::before { content: "—"; position: absolute; left: 0; color: var(--matcha); }

/* foot: reassurance + action, pinned to the bottom of every card */
.shop-card__foot { margin-top: auto; display: grid; gap: 0.55rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.shop-card__note { font-size: 0.8rem; line-height: 1.5; color: var(--ink-3); }
.shop-card__error { font-family: var(--mono); font-size: 0.72rem; color: var(--clay-deep); min-height: 1em; }
.shop-card__error:empty { display: none; }

.shop-card__cta {
  margin-top: 0.15rem; width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05em 1.2em; border-radius: 5px; cursor: pointer;
  background: var(--clay-deep); color: var(--paper); border: 1px solid var(--clay-deep);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.shop-card__cta::after { content: "→"; margin-left: 0.6em; display: inline-block; transition: transform 0.3s var(--ease); }
.shop-card__cta:hover { background: var(--ink); border-color: var(--ink); }
.shop-card__cta:hover::after { transform: translateX(4px); }
.shop-card__cta:focus-visible { outline: 2px solid var(--matcha-deep); outline-offset: 2px; }
.shop-card__cta[disabled] { opacity: 0.55; cursor: not-allowed; }
.shop-card__cta[disabled]::after { display: none; }

/* trust line under the grid */
.shop__trust {
  margin-top: clamp(2rem, 5vh, 3rem); padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--ink-3);
  display: grid; gap: 0.5rem;
}

/* ─────────── /thanks confirmation ─────────── */
.confirm { max-width: 620px; }
.confirm__card {
  margin-top: 2rem; padding: clamp(1.6rem, 4vw, 2.6rem);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; text-align: center;
}
.confirm__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-deep); }
.confirm__code {
  font-family: var(--mono); font-weight: 500; font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.08em; color: var(--ink); margin: 0.6rem 0 1rem;
  padding: 0.6em 0.4em; border: 1px dashed var(--line-strong); border-radius: 4px;
}
.confirm__copy {
  font-family: var(--mono); font-size: 0.74rem; color: var(--matcha-deep); background: none;
  border: 1px solid var(--line); padding: 0.4em 0.9em; border-radius: 999px; cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.confirm__copy:hover { border-color: var(--matcha-deep); color: var(--ink); }
.confirm__note { margin-top: 1.6rem; font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; }
.confirm__spinner { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-top-color: var(--matcha); border-radius: 50%; animation: spin 0.9s linear infinite; vertical-align: -2px; margin-right: 0.5em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────── /admin lookup tool ─────────── */
.admin { max-width: 640px; }
.admin__lookup { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.admin__lookup input {
  flex: 1; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 0.8em 1em; font-family: var(--mono); font-size: 1rem; letter-spacing: 0.04em; color: var(--ink);
}
.admin__lookup input:focus { outline: none; border-color: var(--matcha); }
.admin__lookup button {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 0 1.4em; border-radius: 4px; cursor: pointer;
  transition: background 0.25s var(--ease);
}
.admin__lookup button:hover { background: var(--matcha-deep); }
.admin__result {
  margin-top: 1.6rem; padding: clamp(1.2rem, 3vw, 1.8rem);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; display: none;
}
.admin__result.is-open { display: block; }
.admin__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.95rem; }
.admin__row:last-of-type { border-bottom: 0; }
.admin__row dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.admin__row dd { color: var(--ink); font-family: var(--mono); text-align: right; }
.admin__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.admin__actions button {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.7em 1.2em; border-radius: 4px; cursor: pointer; transition: all 0.25s var(--ease);
}
.admin__btn--full { background: var(--clay); color: var(--paper); border: 1px solid var(--clay); }
.admin__btn--full:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.admin__btn--partial { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.admin__btn--partial:hover { border-color: var(--ink); }
.admin__msg { margin-top: 1rem; font-family: var(--mono); font-size: 0.82rem; color: var(--matcha-deep); min-height: 1.2em; }
.admin__msg--error { color: var(--clay-deep); }

.admin__login { max-width: 380px; margin-top: 2rem; display: grid; gap: 0.8rem; }
.admin__login input {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 0.8em 1em; font-family: var(--mono); font-size: 0.92rem;
}
.admin__login button {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--matcha); color: var(--paper); padding: 0.8em; border-radius: 4px; cursor: pointer;
}
.admin__login button:hover { background: var(--matcha-deep); }

/* ─────────── small inline status note ─────────── */
.notice {
  font-family: var(--mono); font-size: 0.78rem; color: var(--clay-deep);
  padding: 0.8em 1em; border: 1px solid var(--clay); border-radius: 4px; background: color-mix(in srgb, var(--clay) 5%, var(--paper));
}
