/* Hanakumo 花雲 — sakura kissa · styles */

/* ───────── Tokens ───────── */
:root {
  --washi: #F7EFEA;          /* paper ground */
  --paper: #FFFAF7;          /* raised surface */
  --sumi: #2A1F24;           /* ink text (plum-black) */
  --sumi-soft: #5E4C53;      /* secondary text, ≈7:1 on washi */
  --rule: rgba(42, 31, 36, .14);
  --sakura: #F2A7B8;         /* petals, decoration only */
  --sakura-pale: #FBE3E8;
  --sakura-deep: #E48BA0;
  --beni: #B23A5A;           /* accent for text & CTAs, ≈5.6:1 on washi */
  --beni-dark: #8E2A45;
  --matcha: #5E7043;
  --bark: #4A3530;
  --night: #170F14;
  --night-soft: #D9CCD1;

  --f-display: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(18px, 3.4vw, 52px);
  --radius: 14px;

  /* z-index scale */
  --z-menu: 40; --z-petals: 45; --z-header: 50; --z-scrim: 60; --z-tray: 70;
  --z-toast: 80; --z-grain: 90; --z-cursor: 95; --z-loader: 100;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--washi); color: var(--sumi);
  font-family: var(--f-body); font-size: 16px; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
html.is-locked, html.is-locked body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--beni); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sakura); color: var(--sumi); }

.visually-hidden {
  position: absolute !important; 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: 12px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--sumi); color: var(--washi); transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Catalogue labels: “(01) Philosophy 一期一会” */
.label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sumi-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.label span:first-child { color: var(--beni); }
.label [lang="ja"] { font-family: var(--f-display); letter-spacing: .3em; text-transform: none; font-size: 13px; }
.label--light { color: var(--night-soft); }
.label--light span:first-child { color: var(--sakura); }

h2 em, h1 em, h3 em { color: var(--beni); font-style: italic; }

/* ───────── Buttons ───────── */
.btn {
  --btn-bg: var(--sumi); --btn-fg: var(--washi);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  transition: color .45s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform; touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; transition: transform .45s var(--ease-out); }
.btn::before { /* petal-pink fill that rises on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--sakura); transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--sumi); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--beni { --btn-bg: var(--beni); --btn-fg: #fff; box-shadow: 0 10px 30px -12px rgba(178, 58, 90, .7); }
.btn--ink { --btn-bg: var(--sumi); --btn-fg: var(--washi); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--sumi); box-shadow: inset 0 0 0 1px var(--sumi); }
.btn--light { --btn-bg: var(--washi); --btn-fg: var(--sumi); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn {
  font-weight: 500; color: var(--beni); text-decoration: underline; text-underline-offset: 4px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  transition: background .3s var(--ease-out);
}
.icon-btn:hover { background: var(--sakura-pale); }
.icon-btn svg { width: 22px; height: 22px; }

/* ───────── Petals canvas, grain, cursor ───────── */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: var(--z-petals); pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor { display: block; }
  html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor label, html.has-cursor select { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
}
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; z-index: var(--z-cursor); pointer-events: none; opacity: 0; transition: opacity .4s; }
.cursor.is-active .cursor__dot, .cursor.is-active .cursor__ring { opacity: 1; } /* hidden until the pointer first moves */
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--beni); }
.cursor__ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center;
}
.cursor__ring svg {
  position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s var(--ease-out), opacity .3s;
  fill: none; opacity: .85;
}
.cursor__ring svg .blossom__petals, .cursor__ring svg use { fill: rgba(242, 167, 184, .35); stroke: var(--beni); stroke-width: 2; }
.cursor__ring em {
  position: relative; font-family: var(--f-mono); font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sumi); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--ease-out);
}
.cursor.is-view .cursor__ring svg { transform: scale(2.7) rotate(36deg); opacity: 1; }
.cursor.is-view .cursor__ring svg use { fill: rgba(251, 227, 232, .92); stroke-width: .8; }
.cursor.is-view .cursor__ring em { opacity: 1; transform: none; }
.cursor.is-link .cursor__ring svg { transform: scale(1.6) rotate(-20deg); }

/* blossom symbol colours (inherit via CSS on <use>) */
use { fill: var(--sakura); }
.blossom__heart { fill: var(--beni); }

/* ───────── Loader ───────── */
.loader {
  position: fixed; inset: 0; z-index: var(--z-loader); display: grid; place-items: center;
  color: var(--sumi); pointer-events: all;
}
html.reduce-motion .loader, html:not(.js) .loader { display: none; }
.loader__shoji {
  position: absolute; top: 0; bottom: 0; width: 50.4%;
  background-color: var(--paper);
  /* kumiko lattice: thin cedar lines over washi */
  background-image:
    linear-gradient(90deg, rgba(74, 53, 48, .22) 2px, transparent 2px),
    linear-gradient(rgba(74, 53, 48, .22) 2px, transparent 2px),
    radial-gradient(ellipse at 50% 50%, rgba(242, 167, 184, .18), transparent 70%);
  background-size: 25% 100%, 100% 16.66%, 100% 100%;
}
.loader__shoji--l { left: 0; box-shadow: inset -6px 0 0 var(--bark); }
.loader__shoji--r { right: 0; box-shadow: inset 6px 0 0 var(--bark); background-position: 2px 0, 0 0, 0 0; }
.loader__center { position: relative; width: min(58vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.loader__enso { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loader__enso path { fill: none; stroke: var(--sumi); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.loader__kanji {
  position: relative; display: flex; gap: .06em;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(3.2rem, 11vw, 5.4rem); line-height: 1; color: var(--beni);
}
.loader__kanji span { display: inline-block; }
.loader__word {
  position: absolute; left: 0; right: 0; bottom: 18vh; display: flex; justify-content: center; overflow: hidden;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .6em; padding-left: .6em;
}
.loader__word span { display: inline-block; }
.loader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sumi-soft);
}
.loader__count { font-variant-numeric: tabular-nums; color: var(--sumi); }

/* ───────── Header ───────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter);
  transition: transform .6s var(--ease-io), background .4s, box-shadow .4s;
}
.header.is-scrolled {
  background: rgba(247, 239, 234, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--rule);
}
.header.is-hidden { transform: translateY(-110%); }
.header { transition: transform .6s var(--ease-io), background .4s, box-shadow .4s, color .4s; }
.header.is-dark { color: var(--washi); }
.header.is-dark.is-scrolled { background: rgba(23, 15, 20, .55); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.header.is-dark .btn--ink { --btn-bg: var(--washi); --btn-fg: var(--sumi); }
.header.is-dark .tray-btn:hover, .header.is-dark .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.logo__mark { width: 30px; height: 30px; transition: transform 1.2s var(--ease-out); }
.logo:hover .logo__mark { transform: rotate(144deg); }
.logo__word { font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: .02em; }
.logo__jp { font-family: var(--f-display); font-size: 14px; color: var(--beni); letter-spacing: .15em; }
.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 10px 14px; font-size: 14.5px; font-weight: 500; min-height: 44px; display: flex; align-items: center;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--beni);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="true"] { color: var(--beni); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.tray-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  transition: background .3s;
}
.tray-btn:hover { background: var(--sakura-pale); }
.tray-btn svg { width: 24px; height: 24px; }
.tray-btn__count {
  position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--beni); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  font-variant-numeric: tabular-nums; transform: scale(0); transition: transform .4s var(--ease-out);
}
.tray-btn__count.has-items { transform: scale(1); }
.menu-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 500; }
.menu-toggle__lines { position: relative; width: 22px; height: 10px; }
.menu-toggle__lines::before, .menu-toggle__lines::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease-io);
}
.menu-toggle__lines::before { top: 0; } .menu-toggle__lines::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(4.2px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateY(-4.2px) rotate(-45deg); }
.header__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.header__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sakura), var(--beni)); transform: scaleX(0); transform-origin: left; }

/* ───────── Menu panel ───────── */
.menu-panel {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--washi);
  display: flex; flex-direction: column; justify-content: center; padding: 110px var(--gutter) var(--gutter);
  clip-path: circle(0% at 96% 4%); visibility: hidden;
}
.menu-panel.is-open { clip-path: circle(150% at 96% 4%); visibility: visible; }
/* CSS transitions only when GSAP isn't driving the panel */
html:not(.gsap-on) .menu-panel { transition: clip-path .9s var(--ease-io), visibility 0s linear .9s; }
html:not(.gsap-on) .menu-panel.is-open { transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu-panel__list { list-style: none; margin: 0; padding: 0; }
.menu-panel__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1.15;
  transition: color .3s, padding .5s var(--ease-out);
}
.menu-panel__list a:hover { color: var(--beni); padding-left: 16px; }
.menu-panel__list span { font-family: var(--f-mono); font-size: 13px; color: var(--beni); font-weight: 400; }
.menu-panel__list em { margin-left: auto; font-style: normal; font-size: .38em; color: var(--sumi-soft); letter-spacing: .2em; }
.menu-panel__foot { margin-top: 32px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--sumi-soft); }

/* ───────── Hero ───────── */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(242, 167, 184, .45), transparent 70%),
    radial-gradient(ellipse 50% 60% at 15% 85%, rgba(251, 227, 232, .9), transparent 70%),
    var(--washi);
}
.hero__vertical {
  position: absolute; right: var(--gutter); top: 140px; z-index: 3;
  writing-mode: vertical-rl; font-family: var(--f-display); font-size: 12px; letter-spacing: .28em; color: var(--sumi-soft);
}
.hero__branch {
  position: absolute; z-index: 3; top: -3vw; left: -5vw; width: min(56vw, 760px); overflow: visible; pointer-events: none;
}
.branch__stroke { fill: none; stroke: var(--bark); stroke-width: 11; stroke-linecap: round; }
.branch__stroke--thin { stroke-width: 6; }
.branch__stroke--twig { stroke-width: 3.5; }
.bloom { transform-box: fill-box; transform-origin: 50% 50%; }
.hero__media { position: absolute; inset: 0; z-index: -1; clip-path: inset(15% 37% 12% 37% round 240px 240px 12px 12px); }
.hero__media-reveal { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.hero__title {
  position: relative; z-index: 4; display: flex; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(3.6rem, 14.2vw, 17rem); line-height: .9; letter-spacing: -.035em;
  color: var(--sumi); margin-top: 4vh; pointer-events: none;
}
.hero__char { display: inline-block; overflow: hidden; padding: .06em .004em .1em; margin-bottom: -.1em; will-change: transform; }
.hero__char > span { display: inline-block; }
.hero__char:nth-child(5) > span, .hero__char:nth-child(6) > span { color: var(--beni); } /* the “KU” of kumo, cloud */
.hero__meta {
  position: absolute; z-index: 5; top: 96px; left: var(--gutter); right: calc(var(--gutter) + 40px);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sumi-soft);
}
.hero__meta span { display: inline-block; }
.hero__meta [lang="ja"] { font-family: var(--f-display); letter-spacing: .4em; font-size: 14px; color: var(--beni); }
.hero__lede {
  position: absolute; z-index: 4; left: var(--gutter); bottom: calc(var(--gutter) + 8px); max-width: 34ch;
  font-size: 16px; line-height: 1.7; overflow: hidden;
}
.hero__lede span { display: block; }
.hero__cta-wrap { position: absolute; z-index: 4; right: var(--gutter); bottom: var(--gutter); display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--sumi-soft);
}
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--sumi), transparent); transform-origin: top; animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__reveal {
  position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px;
  color: #fff; opacity: 0; pointer-events: none; text-shadow: 0 2px 30px rgba(42, 31, 36, .45);
}
.hero__reveal-jp { font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .8em; padding-left: .8em; }
.hero__reveal-en { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 1; letter-spacing: -.02em; }
.hero__reveal-en em { color: var(--sakura-pale); }

/* ───────── Marquee ───────── */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--rule); background: var(--paper);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); padding-right: clamp(22px, 3vw, 48px); }
.marquee span { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.1; white-space: nowrap; }
.marquee span[lang="ja"] { color: var(--beni); font-weight: 500; }
.marquee svg { width: clamp(28px, 3.4vw, 50px); height: clamp(28px, 3.4vw, 50px); flex-shrink: 0; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* scroll cue: no transform, so GSAP can own y */
.hero__scroll { left: 0; right: 0; margin-inline: auto; width: max-content; transform: none; }

/* ───────── Shared section frame ───────── */
/* not "main > section": once pinned, ScrollTrigger wraps a section in .pin-spacer */
main section { position: relative; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w > span { display: inline-block; will-change: transform; }

/* ───────── Manifesto ───────── */
.manifesto { padding: clamp(110px, 16vw, 220px) var(--gutter) clamp(90px, 12vw, 160px); overflow: clip; }
.manifesto__text {
  position: relative; z-index: 2; max-width: 22ch; margin: 34px 0 0 clamp(0px, 14vw, 240px);
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.18; letter-spacing: -.015em;
  text-indent: clamp(0px, 10vw, 180px); text-wrap: pretty;
}
.manifesto__text em { color: var(--beni); }
.manifesto__text * { text-indent: 0; } /* split words are inline-blocks: don't indent each one */
.manifesto__float { position: absolute; z-index: 1; border-radius: 999px 999px 14px 14px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(42, 31, 36, .45); }
.manifesto__float--a { width: clamp(120px, 15vw, 230px); aspect-ratio: 4/5; left: var(--gutter); top: clamp(170px, 20vw, 290px); }
.manifesto__float--b { width: clamp(130px, 17vw, 260px); aspect-ratio: 4/5; right: var(--gutter); bottom: 22%; }
.stats {
  position: relative; z-index: 2; margin: clamp(70px, 9vw, 130px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--rule);
}
.stats div { padding: 26px 20px 0 0; }
.stats dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stats dt { order: 2; font-size: 14px; color: var(--sumi-soft); margin-top: 10px; max-width: 18ch; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* ───────── Ritual (horizontal on desktop) ───────── */
.ritual { background: var(--paper); border-top: 1px solid var(--rule); overflow: clip; }
.ritual__head { padding: clamp(80px, 10vw, 140px) var(--gutter) 40px; display: grid; gap: 18px; }
.ritual__title, .menu__title, .space h2, .visit h2, .yozakura h2 {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2.5rem, 6vw, 5.6rem); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
.ritual__bar { height: 2px; background: var(--rule); max-width: 360px; border-radius: 2px; overflow: hidden; }
.ritual__bar span { display: block; height: 100%; background: var(--beni); transform: scaleX(0); transform-origin: left; }
.ritual__track { display: flex; gap: clamp(28px, 4vw, 64px); padding: 20px var(--gutter) clamp(80px, 9vw, 130px); width: max-content; will-change: transform; }
.step { position: relative; width: clamp(300px, 34vw, 520px); flex-shrink: 0; }
.step:nth-child(even) { margin-top: clamp(40px, 8vh, 110px); }
.step__num {
  position: absolute; z-index: 2; top: -.42em; right: -.12em; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(6rem, 12vw, 11rem); line-height: 1; color: var(--sakura); opacity: .95; pointer-events: none;
}
.step__media { position: relative; overflow: hidden; border-radius: 999px 999px 16px 16px; aspect-ratio: 11/14; background: var(--sakura-pale); }
.step__media img { width: 120%; max-width: none; height: 100%; margin-left: -10%; object-fit: cover; }
.step__info { padding: 22px 6px 0; }
.step__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--beni); }
.step__kicker span { font-family: var(--f-display); letter-spacing: .2em; color: var(--sumi-soft); margin-left: 6px; }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.2; margin: 8px 0 8px; }
.step p { color: var(--sumi-soft); max-width: 40ch; }

/* ───────── Menu ───────── */
.menu { padding: clamp(100px, 12vw, 170px) var(--gutter) clamp(90px, 10vw, 150px); }
.menu__head { display: grid; gap: 18px; max-width: 900px; }
.menu__intro { color: var(--sumi-soft); max-width: 52ch; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 34px; }
.chip {
  min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--rule); transition: background .35s, color .35s, box-shadow .35s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--sumi); }
.chip.is-active { background: var(--sumi); color: var(--washi); box-shadow: none; }
.grid > * { min-width: 0; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); grid-auto-flow: dense; gap: clamp(18px, 2.2vw, 30px); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 0 var(--rule), 0 20px 40px -34px rgba(42, 31, 36, .5); }
.card.is-hidden { display: none; }
.card.is-featured { grid-column: span 2; }
.card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--sakura-pale); transform-style: preserve-3d; }
.card.is-featured .card__media { aspect-ratio: 8/5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; }
.card:hover .card__media img { transform: scale(1.07); }
.card__tag {
  position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 250, 247, .92);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--beni);
}
.card__bloom { position: absolute; right: -26px; bottom: -26px; width: 92px; height: 92px; opacity: 0; transform: rotate(-90deg) scale(.4); transition: transform 1s var(--ease-out), opacity .5s; }
.card:hover .card__bloom { opacity: .95; transform: rotate(0) scale(1); }
.card__info { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.card__cat { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sumi-soft); }
.card__name { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; }
.card__name span { font-size: .72em; color: var(--beni); font-weight: 500; margin-left: 4px; letter-spacing: .06em; }
.card__desc { font-size: 14.5px; line-height: 1.65; color: var(--sumi-soft); }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__price { font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.add {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--sakura-pale); color: var(--beni-dark); font-size: 14px; font-weight: 500; transition: background .3s, color .3s, transform .2s;
}
.add svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.add:hover { background: var(--beni); color: #fff; }
.add:hover svg { transform: rotate(90deg); }
.add:active { transform: scale(.95); }

/* ───────── Yozakura (night blossoms) ───────── */
.yozakura { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
.yozakura__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yozakura__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 15, 20, .82) 0%, rgba(23, 15, 20, .35) 60%, rgba(23, 15, 20, .1)); }
.yozakura__mask {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: var(--night); mix-blend-mode: multiply; will-change: transform; transform-origin: 50% 50%;
}
.yozakura__flower { width: clamp(220px, 34vmin, 420px); height: auto; overflow: visible; }
.yozakura__flower use { fill: #fff; }
.yozakura__intro {
  position: absolute; left: 0; right: 0; bottom: 12vh; text-align: center; color: #fff;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .3em; text-transform: uppercase;
}
.yozakura__intro [lang="ja"] { font-family: var(--f-display); letter-spacing: .5em; margin-left: 8px; }
.yozakura__burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.yozakura__burst svg { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; overflow: visible; }
.yozakura__burst use { fill: var(--sakura); }
.yozakura__caption {
  position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(60px, 10vh, 120px); max-width: 560px; display: grid; gap: 18px;
}
.yozakura h2 { color: #fff; }
.yozakura h2 em { color: var(--sakura); }
.yozakura__caption > p:not(.label) { color: var(--night-soft); font-size: 17px; }
.yozakura__caption .btn { justify-self: start; }

/* ───────── Space ───────── */
.space { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; padding: clamp(100px, 13vw, 190px) var(--gutter); }
.space__media { position: relative; }
.space__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 999px 999px 18px 18px; }
.space__media { overflow: visible; }
.space__media::before { content: ""; position: absolute; inset: -14px; border: 1px solid var(--sakura-deep); border-radius: 999px 999px 26px 26px; opacity: .6; pointer-events: none; }
.space__float { position: absolute; width: 44%; aspect-ratio: 4/5; object-fit: cover; right: -12%; bottom: -8%; border-radius: 16px; border: 8px solid var(--washi); box-shadow: 0 30px 60px -30px rgba(42, 31, 36, .5); }
.space__text { display: grid; gap: 20px; }
.space__text > p:not(.label) { color: var(--sumi-soft); max-width: 46ch; font-size: 17px; }
.space__tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.space__tags li { padding: 8px 16px; border-radius: 999px; background: var(--sakura-pale); color: var(--beni-dark); font-size: 14px; font-weight: 500; }

/* ───────── Visit & reserve ───────── */
.visit {
  display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 7vw, 110px); align-items: start;
  padding: clamp(100px, 12vw, 170px) var(--gutter); background: linear-gradient(var(--washi), var(--sakura-pale));
}
.visit__info { display: grid; gap: 22px; }
.visit__status { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.visit__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sumi-soft); box-shadow: 0 0 0 4px rgba(94, 76, 83, .15); }
.visit__status.is-open .visit__dot { background: var(--matcha); box-shadow: 0 0 0 4px rgba(94, 112, 67, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(94, 112, 67, 0); } }
.visit__clock, .visit__addr { display: flex; align-items: flex-start; gap: 10px; color: var(--sumi-soft); }
.visit__clock svg, .visit__addr svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 4px; color: var(--beni); }
.visit__clock time { font-family: var(--f-mono); color: var(--sumi); font-variant-numeric: tabular-nums; }
.visit__addr a { color: var(--beni); text-decoration: underline; text-underline-offset: 3px; }
.hours { width: 100%; max-width: 460px; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--f-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.hours small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--beni); margin-left: 8px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--beni); font-weight: 600; }
.hours tr.is-today th::before { content: "Today · "; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.reserve {
  position: relative; overflow: hidden; display: grid; gap: 18px; padding: clamp(26px, 3.4vw, 44px);
  background: var(--paper); border-radius: 26px; box-shadow: 0 40px 80px -50px rgba(142, 42, 69, .45);
}
.reserve__bloom { position: absolute; top: -70px; right: -70px; width: 190px; height: 190px; opacity: .4; pointer-events: none; }
.reserve > :not(.reserve__bloom):not(.reserve__done) { position: relative; } /* paint content above the blossom */
.reserve h3 { font-family: var(--f-display); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.reserve__hint { font-size: 14px; color: var(--sumi-soft); margin-top: -8px; }
.field { display: grid; gap: 6px; }
.field label, .guests legend { font-size: 14px; font-weight: 500; }
.field input, .field select {
  min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(42, 31, 36, .28); background: var(--washi);
  font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--beni); box-shadow: 0 0 0 3px rgba(178, 58, 90, .18); }
.field.has-error input { border-color: #B3261E; }
.field__help { font-size: 13px; color: var(--sumi-soft); }
.field__err { font-size: 13.5px; color: #B3261E; min-height: 0; }
.field__err:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guests { border: 0; padding: 0; margin: 0; }
.guests__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.guests label { position: relative; }
.guests input { position: absolute; opacity: 0; inset: 0; }
.guests span {
  display: grid; place-items: center; min-width: 52px; min-height: 46px; padding: 0 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule); font-weight: 500; transition: background .3s, color .3s, box-shadow .3s; cursor: pointer;
}
.guests input:checked + span { background: var(--sumi); color: var(--washi); box-shadow: none; }
.guests input:focus-visible + span { outline: 2px solid var(--beni); outline-offset: 3px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--beni); }
.reserve__done {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center;
  padding: 40px; background: var(--sumi); color: var(--washi); border-radius: inherit;
}
.reserve__done:focus { outline: none; }
.reserve__done svg { width: 54px; height: 54px; padding: 12px; border-radius: 50%; background: var(--beni); color: #fff; }
.reserve__done-title { font-family: var(--f-display); font-size: 1.8rem; font-weight: 600; }
.reserve__done p:not(.reserve__done-title) { color: var(--night-soft); max-width: 36ch; }
.reserve__done .link-btn { color: var(--sakura); }

/* ───────── Footer ───────── */
.footer { position: relative; background: var(--night); color: var(--night-soft); padding: clamp(80px, 10vw, 140px) var(--gutter) 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.footer__haiku { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; color: #fff; max-width: 24ch; }
.footer__haiku span { display: block; margin-top: 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sakura); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: 15px; }
.footer__h { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sakura); margin-bottom: 10px; }
.footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.footer .link-btn { color: #fff; }
.footer__word {
  display: flex; justify-content: space-between; overflow: hidden; margin-top: clamp(60px, 9vw, 120px);
  font-family: var(--f-display); font-weight: 800; font-size: 13.2vw; line-height: .82; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--sakura-pale), var(--sakura-deep) 70%, var(--beni)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__word span { display: inline-block; }
.footer__legal { margin-top: 26px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; color: rgba(217, 204, 209, .75); }

/* ───────── Tray, scrim, toast, note ───────── */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(23, 15, 20, .45); opacity: 0; transition: opacity .5s; backdrop-filter: blur(3px); }
.scrim.is-on { opacity: 1; }
.tray {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-tray); width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--washi); box-shadow: -30px 0 80px -40px rgba(23, 15, 20, .5);
  transform: translateX(104%); transition: transform .8s var(--ease-io); visibility: hidden;
}
.tray.is-open { transform: none; visibility: visible; }
.tray:not(.is-open) { transition: transform .6s var(--ease-io), visibility 0s linear .6s; }
.tray__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 18px 26px; border-bottom: 1px solid var(--rule); }
.tray__head h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; }
.tray__head h2 span { font-size: .6em; color: var(--beni); margin-left: 6px; }
.tray__list { list-style: none; margin: 0; padding: 8px 26px; overflow-y: auto; flex: 1; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.line__name { font-weight: 500; line-height: 1.3; }
.line__price { font-family: var(--f-mono); font-size: 13px; color: var(--sumi-soft); }
.qty { display: flex; align-items: center; gap: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--sakura-pale); }
.qty svg { width: 16px; height: 16px; }
.qty span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.tray__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 40px; color: var(--sumi-soft); }
.tray__empty svg { width: 80px; height: 80px; animation: spin 18s linear infinite; }
.tray__empty + .tray__foot { margin-top: 0; }
.tray__list:empty { display: none; }
.tray__foot { padding: 20px 26px 26px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.tray__total { display: flex; justify-content: space-between; align-items: baseline; }
.tray__total strong { font-family: var(--f-mono); font-size: 18px; font-variant-numeric: tabular-nums; }
.tray__note { font-size: 12.5px; color: var(--sumi-soft); text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--z-toast); max-width: min(92vw, 460px);
  padding: 14px 22px; border-radius: 999px; background: var(--sumi); color: var(--washi); font-size: 14.5px; text-align: center;
  transform: translate(-50%, 160%); transition: transform .6s var(--ease-out); pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast:empty { visibility: hidden; }
.motion-note {
  position: fixed; left: 16px; bottom: 16px; z-index: var(--z-toast); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: min(92vw, 460px); padding: 8px 8px 8px 18px; border-radius: 18px; background: var(--paper); box-shadow: 0 20px 50px -20px rgba(42, 31, 36, .4); font-size: 14px;
}
.motion-note p { flex: 1 1 200px; }
.fly { position: fixed; z-index: var(--z-toast); top: 0; left: 0; width: 30px; height: 30px; pointer-events: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .nav { display: none; }
}
@media (max-width: 899px) {
  .hero__media { clip-path: inset(15% 12% 33% 12% round 160px 160px 12px 12px); }
  .hero__branch { width: 88vw; top: 4vh; left: -14vw; }
  .hero__vertical { display: none; }
  .hero__meta span:nth-child(n+2) { display: none; }
  .hero__title { margin-top: 0; font-size: 12.6vw; }
  .hero__lede { bottom: 132px; right: var(--gutter); font-size: 15px; }
  .hero__cta-wrap { left: var(--gutter); justify-content: flex-start; bottom: 54px; }
  .hero__scroll { display: none; }
  .manifesto__text { margin-left: 0; text-indent: 0; max-width: none; }
  .manifesto__float--a { position: relative; top: auto; left: auto; display: inline-block; margin-top: 36px; }
  .manifesto__float--b { position: relative; bottom: auto; right: auto; display: inline-block; margin: 36px 0 0 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .ritual__track { flex-direction: column; width: auto; }
  .step { width: 100%; }
  .step:nth-child(even) { margin-top: 0; }
  .step__media { aspect-ratio: 4/5; }
  .card.is-featured { grid-column: auto; }
  .card.is-featured .card__media { aspect-ratio: 4/5; }
  .yozakura__caption { right: var(--gutter); }
  .yozakura__shade { background: linear-gradient(0deg, rgba(23, 15, 20, .88) 0%, rgba(23, 15, 20, .35) 70%); }
  .space, .visit { grid-template-columns: 1fr; }
  .space__float { right: -4%; }
  .footer__top, .footer__cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .logo__jp { display: none; }
  .header .btn--small { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero__cta-wrap .btn--ghost { display: none; }
}

/* ───────── Calm mode (reduced motion) ───────── */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  transition-duration: .01ms !important; scroll-behavior: auto !important;
}
html.reduce-motion .petals, html.reduce-motion .yozakura__mask, html.reduce-motion .yozakura__burst,
html.reduce-motion .hero__reveal, html.reduce-motion .cursor { display: none; }
html.reduce-motion .hero__scroll i { transform: none; }

