/* =========================================================
   Meison Velora — Design System
   Espresso · Mocha · Crème · Rose Clay · Champagne · Pearl
   ========================================================= */
:root {
  --espresso: #2a1e16;
  --espresso-2: #1f1610;
  --mocha: #4b362b;
  --mocha-2: #6b4f40;
  --creme: #e9ded3;
  --rose: #bd8a7f;
  --rose-deep: #a3685d;
  --champagne: #dcc4ae;
  --pearl: #f6f1ec;
  --sage: #8e8f76;
  --ink: #2a1e16;
  --ink-soft: #6b5a4f;
  --line: rgba(42, 30, 22, .12);
  --line-light: rgba(246, 241, 236, .14);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-xl: 44px;
  --shadow-soft: 0 30px 60px -30px rgba(42, 30, 22, .35);
  --shadow-card: 0 18px 40px -22px rgba(42, 30, 22, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--pearl); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.display { font-size: clamp(3rem, 8.4vw, 7.4rem); letter-spacing: -.025em; }
.h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -.02em; }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
em, .accent { font-style: normal; color: var(--rose); }
.on-dark .accent, .on-dark em { color: var(--rose); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--ink-soft); max-width: 46ch; }
.on-dark { color: var(--pearl); }
.on-dark .lead { color: rgba(246, 241, 236, .72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--espresso); --fg: var(--pearl);
  position: relative; display: inline-flex; align-items: center; gap: .8em;
  padding: .95em 1.6em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--rose); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -14px rgba(42, 30, 22, .6); }
.btn .arrow { width: 14px; height: 14px; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px rgba(42, 30, 22, .3); }
.btn--ghost:hover { color: var(--pearl); }
.btn--rose { --bg: var(--rose); }
.btn--rose::after { background: var(--espresso); }
.btn--light { --bg: var(--pearl); --fg: var(--espresso); }
.btn--light:hover { color: var(--pearl); }
.on-dark .btn--ghost { --fg: var(--pearl); box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .35); }
.btn--sm { padding: .7em 1.2em; font-size: .84rem; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .6em; font-size: .9rem; font-weight: 500; }
.link-arrow .circ {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px currentColor; transition: background .4s, color .4s, transform .5s var(--ease);
}
.link-arrow:hover .circ { background: var(--rose); color: var(--pearl); box-shadow: none; transform: rotate(45deg); }
.link-arrow svg { width: 13px; height: 13px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--espresso);
  display: grid; place-items: center; color: var(--pearl);
  transition: clip-path 1s var(--ease) .1s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__inner { text-align: center; }
.preloader svg { width: 92px; height: 92px; }
.preloader .seal-ring { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.4s var(--ease) forwards; }
.preloader .seal-mono { opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards; }
.preloader__word { font-family: var(--serif); letter-spacing: .32em; font-size: .95rem; margin-top: 1.2rem; opacity: 0; animation: fadeUp .9s var(--ease) .7s forwards; }
.preloader__bar { width: 140px; height: 1px; background: rgba(246, 241, 236, .15); margin: 1.2rem auto 0; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--rose); width: 0; animation: load 1.3s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes load { to { width: 100%; } }

/* Page transition curtain */
.curtain {
  position: fixed; inset: 0; z-index: 999; background: var(--mocha); pointer-events: none;
  transform: translateY(100%);
}
.curtain.is-in { transform: translateY(0); transition: transform .6s var(--ease); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  transition: transform .5s var(--ease), background .4s, box-shadow .4s, height .4s;
}
.header.is-scrolled {
  height: 70px;
  background: rgba(246, 241, 236, .78);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header--dark:not(.is-scrolled) { color: var(--pearl); }
.header--dark:not(.is-scrolled) .logo__mono { color: var(--pearl); }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mono { width: 42px; height: 42px; color: var(--espresso); flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .2em; }
.logo__city { font-size: .52rem; letter-spacing: .62em; margin-top: 6px; opacity: .75; padding-left: 2px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a { position: relative; font-size: .9rem; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; opacity: .9;
  transition: background .3s, color .3s;
}
.icon-btn:hover { background: var(--espresso); color: var(--pearl); box-shadow: none; }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: var(--rose); color: #fff; font-size: .66rem; font-weight: 600;
  display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease);
}
.cart-count.has { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.burger { display: none; }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .4s var(--ease), opacity .3s; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--espresso); color: var(--pearl);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.15;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.mobile-menu nav a span { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; color: var(--rose); margin-right: 14px; vertical-align: middle; }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--rose); }
.mobile-menu__foot { margin-top: 40px; font-size: .85rem; color: rgba(246, 241, 236, .6); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
body.menu-open .header { color: var(--pearl); background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .header .logo__mono { color: var(--pearl); }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1001; border-radius: 50%; }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(189, 138, 127, .8);
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s;
  display: grid; place-items: center; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pearl);
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--rose); }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(189, 138, 127, .14); }
.cursor.is-view { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--rose); border-color: var(--rose); }
.cursor span { opacity: 0; transition: opacity .3s; }
.cursor.is-view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Sections & shapes ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section--dark { background: var(--espresso); color: var(--pearl); }
.section--creme { background: var(--creme); }
.section--rose { background: linear-gradient(160deg, #d9b3a8 0%, #c99a8e 55%, #bd8a7f 100%); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 70px); flex-wrap: wrap; }

.wave { position: absolute; left: 0; width: 100%; height: clamp(50px, 7vw, 110px); pointer-events: none; z-index: 2; }
.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; transform: scaleY(-1); }
.wave path { transition: d 1s; }

/* Liquid sheen ribbon */
.sheen {
  position: absolute; left: -5%; right: -5%; height: 14px; border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7) 30%, rgba(220, 196, 174, .6) 60%, transparent);
  filter: blur(4px); opacity: .7; pointer-events: none;
}

/* ---------- Hero (shared) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px; overflow: hidden;
  background:
    radial-gradient(80% 70% at 75% 35%, #f8efe6 0%, rgba(248, 239, 230, 0) 60%),
    radial-gradient(60% 60% at 10% 90%, rgba(220, 196, 174, .55), transparent 70%),
    linear-gradient(180deg, #efe4d9 0%, #e9ded3 100%);
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__content .lead { margin: 1.6rem 0 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; z-index: 3; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-soft);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--ink-soft), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--rose); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 110%; } }
.hero__fallback {
  position: absolute; right: 4%; top: 50%; width: min(46vw, 620px); aspect-ratio: 1; transform: translateY(-46%);
  border-radius: 50%; overflow: hidden; z-index: 1; opacity: 0; transition: opacity 1s;
  box-shadow: var(--shadow-soft);
}
.no-webgl .hero__fallback { opacity: 1; }
.hero__fallback img { width: 100%; height: 100%; object-fit: cover; }
.hero--page { min-height: 86svh; }
.hero--dark {
  background:
    radial-gradient(70% 60% at 72% 40%, #5a4033 0%, rgba(90, 64, 51, 0) 65%),
    linear-gradient(180deg, #2a1e16 0%, #1f1610 100%);
  color: var(--pearl);
}
.hero--dark .lead { color: rgba(246, 241, 236, .72); }
.hero--dark .hero__scroll { color: rgba(246, 241, 236, .6); }

/* Split text reveal */
.split .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.split.is-in .line > span { transform: none; }
.split .line:nth-child(2) > span { transition-delay: .09s; }
.split .line:nth-child(3) > span { transition-delay: .18s; }
.split .line:nth-child(4) > span { transition-delay: .27s; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* clip the image, not the observed box — IntersectionObserver ignores fully clipped targets */
.reveal-img img { clip-path: inset(100% 0 0 0); transform: scale(1.25); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
.reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
[data-delay="1"] { transition-delay: .1s !important; }
[data-delay="2"] { transition-delay: .2s !important; }
[data-delay="3"] { transition-delay: .3s !important; }
[data-delay="4"] { transition-delay: .4s !important; }

/* ---------- Info cards row (hero bottom) ---------- */
.info-row {
  position: relative; z-index: 4; margin-top: -90px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.info-card {
  position: relative; border-radius: var(--r-lg); padding: 28px; min-height: 230px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-card); transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.info-card--dark { background: linear-gradient(150deg, #3a2a20, var(--espresso)); color: var(--pearl); }
.info-card--light { background: rgba(250, 246, 242, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .7); }
.info-card--rose { background: linear-gradient(150deg, #d4a79c, var(--rose)); color: var(--pearl); }
.info-card .eyebrow { font-size: .64rem; margin-bottom: 1rem; opacity: .85; }
.info-card h3 { font-size: 1.7rem; margin-bottom: .4rem; }
.info-card p { font-size: .88rem; opacity: .8; margin: 0; max-width: 24ch; }
.info-card__img {
  position: absolute; right: -8px; bottom: -8px; width: 46%; aspect-ratio: 1; object-fit: cover;
  border-radius: 999px 999px 18px 18px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.info-card .link-arrow { margin-top: 18px; position: relative; z-index: 2; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 99px; background: rgba(42, 30, 22, .06);
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #6fa36f; box-shadow: 0 0 0 0 rgba(111, 163, 111, .6); animation: pulse 2s infinite; }
.status-pill.closed i { background: var(--rose); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(111, 163, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 163, 111, 0); } }

/* Membership mini-card (3D) */
.mini-card {
  position: absolute; right: 22px; bottom: -18px; width: 92px; aspect-ratio: .63; border-radius: 12px;
  background: linear-gradient(150deg, #a5a68c, #7c7d63); box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .2);
  transform: rotate(14deg); display: grid; place-items: center; color: rgba(246, 241, 236, .85);
}
.mini-card svg { width: 42px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--pearl); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.8rem); white-space: nowrap; }
.marquee__item i { width: 14px; height: 14px; background: var(--rose); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); flex: none; }
.marquee__item:nth-child(even) { color: var(--rose); font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Philosophy (dark split) ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.pillar__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(189, 138, 127, .6); color: var(--rose);
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h4 { font-family: var(--sans); font-size: .95rem; font-weight: 500; margin-bottom: 6px; }
.pillar p { font-size: .84rem; color: rgba(246, 241, 236, .62); margin: 0; }
.philo-visual { position: relative; aspect-ratio: 1 / 1.05; }
.philo-visual__main {
  position: absolute; inset: 0 0 0 10%; border-radius: 300px 300px var(--r-lg) var(--r-lg); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.philo-visual__main img { width: 100%; height: 100%; object-fit: cover; }
.philo-visual__badge {
  position: absolute; left: 0; bottom: 12%; width: clamp(110px, 13vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--rose); color: var(--pearl); display: grid; place-items: center; z-index: 2;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .5);
}
.philo-visual__badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; position: absolute; inset: 0; }
.philo-visual__badge b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Stat counters */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(60px, 7vw, 100px); padding-top: 40px; border-top: 1px solid var(--line-light); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.stat span { font-size: .8rem; color: rgba(246, 241, 236, .6); letter-spacing: .04em; }

/* ---------- Product cards (organic) ---------- */
.seasonal-grid { display: grid; grid-template-columns: .8fr 2.2fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
.product-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  position: relative; background: linear-gradient(180deg, #fbf8f5, #f1e8df);
  border-radius: 46px 46px 46px 46px / 40px 40px 60px 60px;
  padding: 26px 22px 24px; box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, .8);
  transform-style: preserve-3d; transition: box-shadow .5s var(--ease);
}
.p-card:hover { box-shadow: 0 30px 60px -26px rgba(42, 30, 22, .55), inset 0 0 0 1px rgba(255, 255, 255, .8); }
.p-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.p-card h3 { font-size: 1.45rem; }
.p-card small { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.spark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; flex: none;
  box-shadow: 0 8px 18px -8px var(--rose-deep);
}
.spark svg { width: 15px; height: 15px; }
.p-card__img { margin: 18px -6px; aspect-ratio: 1 / .95; border-radius: 40% 40% 28px 28px; overflow: hidden; transform: translateZ(30px); }
.p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.p-card:hover .p-card__img img { transform: scale(1.07); }
.p-card p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 14px; }
.p-card__foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--serif); font-size: 1.25rem; }

/* ---------- Horizontal rituals ---------- */
.h-scroll { position: relative; overflow: hidden; background: var(--creme); }
.h-scroll__pin { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.h-scroll__track { display: flex; gap: 26px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.h-intro { width: min(420px, 80vw); flex: none; align-self: center; padding-right: 30px; }
.ritual {
  position: relative; width: clamp(280px, 30vw, 400px); aspect-ratio: .72; flex: none; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--mocha);
}
.ritual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.ritual__body {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 22px; border-radius: var(--r-md);
  background: rgba(246, 241, 236, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ritual__num { font-size: .75rem; color: var(--ink-soft); }
.ritual h3 { font-size: 1.5rem; margin: 4px 0 6px; }
.ritual p { font-size: .84rem; color: var(--ink-soft); margin: 0; }
.h-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 1px; background: var(--line); }
.h-progress span { position: absolute; inset: 0; background: var(--rose); transform-origin: left; transform: scaleX(0); }

@media (max-width: 1024px) {
  .h-scroll__pin { min-height: 0; display: block; padding: clamp(80px, 11vw, 120px) 0 70px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .h-scroll__pin::-webkit-scrollbar { display: none; }
  .h-scroll__track { gap: 16px; padding-right: var(--gutter); }
  .h-intro-wrap { padding-top: clamp(80px, 11vw, 120px); }
  .h-intro { width: auto; padding: 0; }
  .h-scroll__pin { padding-top: 40px; }
  .ritual { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .h-progress { display: none; }
}

/* ---------- Spaces cards ---------- */
.space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.space-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: .78; background: var(--mocha); color: var(--pearl);
  box-shadow: var(--shadow-card); display: block;
}
.space-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.space-card:hover img { transform: scale(1.08); }
.space-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; padding-top: 60px;
  background: linear-gradient(180deg, transparent, rgba(42, 30, 22, .92) 45%);
}
.space-card__body h3 { font-size: 1.4rem; }
.space-card__body p { font-size: .82rem; opacity: .75; margin: 4px 0 12px; }
.corner-arrow {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(246, 241, 236, .9); color: var(--espresso); transition: transform .5s var(--ease), background .3s;
  z-index: 2;
}
.corner-arrow svg { width: 14px; height: 14px; }
.space-card:hover .corner-arrow { transform: rotate(45deg); background: var(--rose); color: #fff; }

/* ---------- Journal cards ---------- */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-card {
  position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1.3; display: block;
  border: 1px solid rgba(246, 241, 236, .18); background: var(--mocha); color: var(--pearl);
}
.story-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1.3s var(--ease), opacity .5s; }
.story-card:hover img { transform: scale(1.06); opacity: .65; }
.story-card__body { position: absolute; inset: auto 0 0 0; padding: 22px; background: linear-gradient(transparent, rgba(31, 22, 16, .85)); }
.tag {
  display: inline-block; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px;
  background: rgba(246, 241, 236, .92); color: var(--espresso); font-weight: 600; margin-bottom: 10px;
}
.story-card h3 { font-size: 1.45rem; margin-bottom: 10px; }
.story-card .meta { font-size: .78rem; opacity: .7; }

/* ---------- Membership ---------- */
.member-grid { display: grid; grid-template-columns: 1fr 1.2fr .9fr; gap: 40px; align-items: center; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.perk__icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center;
  background: var(--mocha); color: var(--champagne); box-shadow: 0 10px 20px -10px rgba(42, 30, 22, .6);
  transition: transform .5s var(--ease);
}
.perk:hover .perk__icon { transform: translateY(-6px) rotate(-8deg); }
.perk__icon svg { width: 22px; height: 22px; }
.perk b { display: block; font-size: .82rem; font-weight: 500; }
.perk span { font-size: .74rem; color: rgba(42, 30, 22, .7); }

.card3d { perspective: 1200px; display: grid; place-items: center; }
.card3d__inner {
  position: relative; width: min(260px, 70vw); aspect-ratio: .63; transform-style: preserve-3d;
  transition: transform .9s var(--ease); cursor: pointer;
}
.card3d.is-flipped .card3d__inner { transform: rotateY(180deg); }
.card3d__face {
  position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(150deg, #a8a98f 0%, #8a8b71 45%, #6f705a 100%);
  box-shadow: 0 40px 60px -30px rgba(42, 30, 22, .8), inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 0 0 9px rgba(255, 255, 255, .05);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(246, 241, 236, .9); overflow: hidden;
}
.card3d__face::after {
  content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%);
  transform: translateX(var(--shine, -30%)); transition: transform .2s;
}
.card3d__face svg { width: 92px; }
.card3d__face .cn { font-family: var(--serif); letter-spacing: .3em; font-size: .78rem; margin-top: 30px; }
.card3d__back { transform: rotateY(180deg); padding: 28px; text-align: center; }
.card3d__back b { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; display: block; margin-bottom: 8px; }
.card3d__back p { font-size: .8rem; opacity: .85; }
.card3d__hint { margin-top: 18px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; text-align: center; }

/* ---------- Testimonials ---------- */
.quotes { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.quote { display: none; }
.quote.is-active { display: block; animation: fadeUp .8s var(--ease); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.25; }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.stars { color: var(--rose); letter-spacing: 4px; margin-bottom: 20px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .4s var(--ease), background .3s; }
.dots button.is-active { width: 28px; background: var(--rose); }

/* ---------- Instagram strip ---------- */
.gram { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gram a { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; }
.gram img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gram a::after { content: "@meisonvelora"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(42, 30, 22, .55); color: var(--pearl); font-size: .75rem; opacity: 0; transition: opacity .4s; }
.gram a:hover::after { opacity: 1; }
.gram a:hover img { transform: scale(1.1); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(50px, 8vw, 110px) clamp(24px, 6vw, 90px); color: var(--pearl); background: var(--espresso); isolation: isolate; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(31, 22, 16, .95) 20%, rgba(31, 22, 16, .3)); }
.cta-band .lead { color: rgba(246, 241, 236, .75); margin: 1.2rem 0 2rem; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--espresso-2); color: var(--pearl); padding: 130px 0 30px; overflow: hidden; }
.footer .logo__mono { color: var(--pearl); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) 1.6fr; gap: 32px; }
.footer h5 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin: 0 0 16px; color: var(--champagne); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .86rem; color: rgba(246, 241, 236, .7); }
.footer ul a:hover { color: var(--rose); }
.footer__about { font-size: .84rem; color: rgba(246, 241, 236, .6); margin: 20px 0; }
.newsletter { display: flex; align-items: center; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .25); padding: 5px 5px 5px 20px; margin-top: 16px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: .86rem; color: var(--pearl); }
.newsletter input::placeholder { color: rgba(246, 241, 236, .45); }
.newsletter button { width: 42px; height: 42px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.newsletter button:hover { transform: rotate(45deg); }
.newsletter svg { width: 14px; }
.footer__big {
  font-family: var(--serif); font-size: clamp(3.4rem, 15vw, 15rem); line-height: .9; letter-spacing: -.03em; text-align: center;
  margin: 70px 0 30px; color: transparent; -webkit-text-stroke: 1px rgba(246, 241, 236, .16); white-space: nowrap; user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .78rem; color: rgba(246, 241, 236, .55); }
.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .3); transition: background .3s; }
.socials a:hover { background: var(--rose); box-shadow: none; }
.socials svg { width: 16px; height: 16px; }

/* ---------- Menu page ---------- */
.tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px; background: rgba(255, 255, 255, .55); border-radius: 99px; border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow-card); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .7em 1.3em; border-radius: 99px; font-size: .86rem; color: var(--ink-soft); transition: background .4s var(--ease), color .3s; white-space: nowrap; }
.tab.is-active { background: var(--espresso); color: var(--pearl); }
.tab:not(.is-active):hover { background: rgba(42, 30, 22, .06); }
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.menu-layout > *, .split-grid > *, .seasonal-grid > *, .atelier > *, .visit-grid > *, .member-grid > * { min-width: 0; }
.menu-group { margin-top: 50px; }
.menu-group__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.m-item {
  background: #fbf8f5; border-radius: var(--r-md); padding: 12px 12px 18px; box-shadow: 0 14px 30px -24px rgba(42, 30, 22, .6), inset 0 0 0 1px rgba(255, 255, 255, .9);
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s;
}
.m-item:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -30px rgba(42, 30, 22, .65); }
.m-item.is-hidden { display: none; }
.m-item__img { aspect-ratio: 1.2; border-radius: 16px; overflow: hidden; position: relative; background: var(--creme); }
.m-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.m-item:hover .m-item__img img { transform: scale(1.06); }
.m-item__badge { position: absolute; top: 10px; left: 10px; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: rgba(246, 241, 236, .92); font-weight: 600; }
.m-item__body { padding: 14px 6px 0; display: flex; flex-direction: column; flex: 1; }
.m-item h4 { font-size: 1.15rem; }
.m-item .notes { font-size: .78rem; color: var(--ink-soft); margin: 4px 0 2px; }
.m-item .desc { font-size: .8rem; color: var(--ink-soft); opacity: .85; margin: 0 0 14px; flex: 1; }
.m-item__foot { display: flex; justify-content: space-between; align-items: center; }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); display: grid; place-items: center;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.add-btn:hover { background: var(--espresso); color: var(--pearl); transform: rotate(90deg); }
.add-btn svg { width: 14px; height: 14px; }
.add-btn.added { background: var(--rose); color: #fff; box-shadow: none; }
.diet { display: flex; gap: 6px; margin-top: 6px; }
.diet span { font-size: .6rem; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: rgba(142, 143, 118, .18); color: #5d5e48; font-weight: 600; }

.order-panel {
  position: sticky; top: 100px; border-radius: var(--r-lg); background: linear-gradient(170deg, #4b362b, #2a1e16); color: var(--pearl);
  padding: 24px; box-shadow: var(--shadow-soft);
}
.order-panel h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(246, 241, 236, .08); border-radius: 99px; padding: 4px; margin-bottom: 14px; }
.seg button { padding: .65em; border-radius: 99px; font-size: .84rem; color: rgba(246, 241, 236, .7); transition: background .4s var(--ease), color .3s; }
.seg button.is-active { background: var(--pearl); color: var(--espresso); }
.order-box { background: var(--pearl); color: var(--ink); border-radius: var(--r-md); padding: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.field-row input, .field-row select { width: 100%; padding: .7em .8em; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .84rem; }
.order-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.order-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: .84rem; }
.order-list li small { color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--creme); border-radius: 99px; padding: 2px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; font-size: .95rem; }
.qty button:hover { background: #fff; }
.qty span { min-width: 18px; text-align: center; font-size: .82rem; }
.order-empty { font-size: .85rem; color: var(--ink-soft); text-align: center; padding: 20px 6px; }
.order-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.3rem; padding: 12px 2px; border-top: 1px solid var(--line); margin-top: 6px; }

/* Featured blend band */
.blend {
  display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 30px; align-items: center; border-radius: var(--r-lg);
  background: radial-gradient(70% 90% at 15% 50%, #4b362b, var(--espresso)); color: var(--pearl); padding: clamp(24px, 4vw, 44px); margin-top: 50px; overflow: hidden;
}
.blend__img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.blend__img img { width: 100%; height: 100%; object-fit: cover; }
.notes-list { display: grid; gap: 14px; font-size: .84rem; }
.notes-list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.meter { display: flex; gap: 6px; }
.meter i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .6); }
.meter i.on { background: var(--pearl); box-shadow: none; }

/* Ritual finder quiz */
.finder { border-radius: var(--r-xl); background: var(--pearl); box-shadow: var(--shadow-soft); padding: clamp(28px, 5vw, 60px); position: relative; overflow: hidden; }
.finder__progress { height: 2px; background: var(--line); border-radius: 2px; margin-bottom: 30px; overflow: hidden; }
.finder__progress span { display: block; height: 100%; width: 0; background: var(--rose); transition: width .6s var(--ease); }
.finder__step { display: none; }
.finder__step.is-active { display: block; animation: fadeUp .7s var(--ease); }
.finder__q { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 26px; }
.finder__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.opt { text-align: left; padding: 18px 20px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); background: #fff; transition: box-shadow .3s, transform .4s var(--ease), background .3s; }
.opt:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--rose), 0 16px 30px -20px rgba(42, 30, 22, .5); }
.opt b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.opt span { font-size: .78rem; color: var(--ink-soft); }
.opt .emo { font-size: 1.4rem; display: block; margin-bottom: 8px; }
.finder__result { display: none; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.finder__result.is-active { display: grid; animation: fadeUp .8s var(--ease); }
.finder__result img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-card); }

/* Menu aside: extra cards that fill the column under the order panel */
.menu-aside { display: grid; gap: 18px; align-self: stretch; align-content: start; }
.menu-aside .order-panel { position: relative; top: auto; }
.aside-sticky { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-card {
  background: #fbf8f5; border-radius: var(--r-lg); padding: 20px;
  box-shadow: 0 14px 30px -24px rgba(42, 30, 22, .6), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.aside-card .eyebrow { margin-bottom: .4rem; }
.aside-card .h3 { font-size: 1.35rem; margin-bottom: 10px; }
.aside-pick__img { position: relative; aspect-ratio: 1.55; border-radius: 18px; overflow: hidden; margin-bottom: 16px; background: var(--creme); }
.aside-pick__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.aside-pick:hover .aside-pick__img img { transform: scale(1.06); }
.aside-pick p { font-size: .8rem; color: var(--ink-soft); margin: 0 0 14px; }
.pairs { list-style: none; padding: 0; margin: 0; }
.pairs li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.pairs li:first-child { border-top: 0; padding-top: 4px; }
.pairs__imgs { display: flex; }
.pairs__imgs img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fbf8f5; transition: transform .5s var(--ease); }
.pairs__imgs img + img { margin-left: -14px; }
.pairs li:hover .pairs__imgs img:first-child { transform: translateX(-4px) rotate(-6deg); }
.pairs li:hover .pairs__imgs img + img { transform: translateX(4px) rotate(6deg); }
.pairs__txt { min-width: 0; }
.pairs__txt b { display: block; font-family: var(--serif); font-weight: 400; font-size: .95rem; }
.pairs__txt small { font-size: .72rem; color: var(--ink-soft); }
.pairs .add-btn { width: 32px; height: 32px; }
.aside-live { background: linear-gradient(170deg, #4b362b, #2a1e16); color: var(--pearl); }
.aside-live__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.aside-live .status-pill { background: rgba(246, 241, 236, .1); }
.aside-live__hours { margin: 0 0 8px; font-size: .86rem; opacity: .8; }
.aside-live__hours b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; opacity: 1; }
.aside-live__addr { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; opacity: .7; transition: opacity .3s, color .3s; }
.aside-live__addr:hover { opacity: 1; color: var(--rose); }
.aside-club { background: linear-gradient(150deg, #d4a79c, var(--rose)); color: var(--pearl); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 4px 0 12px; }
.stamps i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .55); position: relative; }
.stamps i.on { background: var(--pearl); box-shadow: none; animation: stampIn .6s var(--ease) calc(var(--i) * 60ms) both; }
.stamps i.on::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: var(--rose); }
@keyframes stampIn { from { transform: scale(0) rotate(-40deg); } 60% { transform: scale(1.15); } to { transform: none; } }
.aside-club__note { font-size: .8rem; opacity: .9; margin: 0 0 12px; }
.aside-club .link-arrow .circ { box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .7); }

/* Lower menu rows: one category beside its own side cards */
.menu-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; }
.menu-row > * { min-width: 0; }
.menu-row__side { margin-top: 50px; display: flex; flex-direction: column; gap: 18px; }
.menu-row__side > :last-child { flex: 1; }
.side-oven__img { aspect-ratio: 1.9; border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.side-oven__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.side-oven:hover .side-oven__img img { transform: scale(1.06); }
.bake-times { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bake-times li { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; font-size: .82rem; color: var(--ink-soft); }
.bake-times b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; color: var(--ink); padding: 4px 0; border-radius: 99px; text-align: center; background: var(--creme); }
.side-diet { display: flex; flex-direction: column; }
.diet-legend { display: grid; gap: 14px; margin-bottom: 18px; flex: 1; }
.diet-legend > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.diet-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 600; letter-spacing: .06em; background: rgba(142, 143, 118, .18); color: #5d5e48; }
.diet-legend p { margin: 0; font-size: .8rem; color: var(--ink-soft); }
.diet-legend b { display: block; font-weight: 500; color: var(--ink); font-size: .88rem; }
.side-gift { background: linear-gradient(170deg, #4b362b, #2a1e16); color: var(--pearl); }
.side-gift p { font-size: .82rem; opacity: .75; margin: 0 0 16px; }
.gift-card {
  aspect-ratio: 1.75; border-radius: 16px; margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #e3c3b9, var(--rose) 55%, #a8786d); color: var(--pearl);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .25);
  transform: rotate(-3deg); transition: transform .8s var(--ease);
}
.side-gift:hover .gift-card { transform: rotate(0) scale(1.03); }
.gift-card svg { width: 54px; }
.gift-card span { font-family: var(--serif); letter-spacing: .3em; font-size: .72rem; }
.gift-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip-btn { padding: .7em; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .35); font-family: var(--serif); font-size: 1.05rem; transition: background .3s, color .3s, transform .4s var(--ease); }
.chip-btn:hover { background: var(--pearl); color: var(--espresso); transform: translateY(-2px); }
.chip-btn.added { background: var(--rose); color: #fff; box-shadow: none; }
.side-brew { display: flex; flex-direction: column; }
.grind { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; gap: 14px; }
.grind li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .84rem; }
.grind small { grid-row: 1; grid-column: 2; font-size: .72rem; color: var(--ink-soft); }
.grind i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--creme); position: relative; overflow: hidden; }
.grind i::after { content: ""; position: absolute; inset: 0; width: calc(var(--g) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--mocha), var(--rose)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .4s; }
.side-brew.is-in .grind i::after { transform: none; }
.side-brew__note { margin: auto 0 0; display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--ink-soft); padding-top: 14px; border-top: 1px solid var(--line); }
.side-brew__note svg { flex: none; color: var(--rose); }

/* ---------- Story page: Cup Atelier ---------- */
.atelier { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.atelier__stage { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(60% 60% at 50% 40%, #f8efe6, #e3d3c4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), var(--shadow-soft); touch-action: pan-y; cursor: grab; }
.atelier__stage:active { cursor: grabbing; }
.atelier__stage canvas { width: 100% !important; height: 100% !important; display: block; }
.atelier__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); background: rgba(246, 241, 236, .8); padding: 6px 14px; border-radius: 99px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.chip { padding: .6em 1.1em; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: .84rem; background: #fff; transition: background .3s, color .3s, box-shadow .3s; display: inline-flex; align-items: center; gap: 8px; }
.chip i { width: 12px; height: 12px; border-radius: 50%; }
.chip.is-active { background: var(--espresso); color: var(--pearl); box-shadow: none; }
/* Cup Atelier inside the dark Menu hero */
.hero--atelier { min-height: auto; padding-bottom: clamp(70px, 9vw, 120px); }
.atelier--hero { grid-template-columns: 1.05fr 1fr; }
.atelier--hero .hero__content { max-width: 600px; }
.atelier--hero .hero__content .lead { margin: 1.2rem 0 0; }
.atelier--hero .chips { margin: 22px 0 18px; }
.atelier--hero .atelier__readout { margin-bottom: 28px; }
.on-dark .chip { background: rgba(246, 241, 236, .07); color: var(--pearl); box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .22); }
.on-dark .chip:hover { background: rgba(246, 241, 236, .14); }
.on-dark .chip.is-active { background: var(--pearl); color: var(--espresso); }
.on-dark .readout { background: rgba(246, 241, 236, .06); box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .14); }
.on-dark .readout small { color: rgba(246, 241, 236, .55); }
.on-dark .readout b { font-size: 1.1rem; transition: opacity .3s; }
/* no box: the cup floats straight on the hero, with a soft glow behind it */
/* the canvas covers the whole hero, so beans only ever leave at the hero's own edges */
.atelier--hero { position: static; }
.atelier--hero .hero__content { z-index: 2; }
.atelier--hero .atelier__stage {
  position: absolute; inset: 0; aspect-ratio: auto; z-index: 1;
  background: radial-gradient(34% 48% at 71% 52%, rgba(176, 123, 79, .2), transparent 72%);
  box-shadow: none; border-radius: 0;
}
.atelier--hero .atelier__hint { left: 71%; bottom: 40px; }
.on-dark .atelier__hint { background: rgba(246, 241, 236, .08); color: rgba(246, 241, 236, .7); }
@media (max-width: 1024px) {
  .atelier--hero .atelier__stage { position: relative; inset: auto; aspect-ratio: 1; margin: 0 -8%; background: radial-gradient(closest-side, rgba(176, 123, 79, .2), transparent 72%); }
  .atelier--hero .atelier__hint { left: 50%; bottom: 18px; }
}
.atelier__readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.readout { padding: 16px; border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.readout small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.readout b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-light); }
.timeline__fill { position: absolute; left: 50%; top: 0; width: 1px; height: 0; background: var(--rose); }
.t-item { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 40px 0; position: relative; }
.t-item::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--espresso); box-shadow: 0 0 0 1px var(--rose); transform: translate(-50%, -50%); }
.t-item:nth-child(even) .t-item__img { order: 2; }
.t-item__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1.3; }
.t-item__img img { width: 100%; height: 100%; object-fit: cover; }
.t-item__year { font-family: var(--serif); font-size: 3rem; color: var(--rose); line-height: 1; }
.t-item h3 { font-size: 1.7rem; margin: 10px 0; }
.t-item p { color: rgba(246, 241, 236, .7); font-size: .92rem; max-width: 40ch; }

/* Brew calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-soft); }
.calc label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 10px; }
.calc input[type="range"] { width: 100%; accent-color: var(--rose); }
.calc__val { float: right; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); letter-spacing: 0; text-transform: none; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc__out div { padding: 22px; border-radius: var(--r-md); background: var(--creme); }
.calc__out small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.calc__out b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.1; }

/* ---------- Spaces page: 3D carousel ---------- */
.carousel3d { position: relative; height: clamp(420px, 60vw, 620px); perspective: 1800px; display: grid; place-items: center; touch-action: pan-y; user-select: none; }
.carousel3d__ring { position: relative; width: clamp(220px, 26vw, 320px); aspect-ratio: .72; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.carousel3d__item {
  position: absolute; inset: 0; border-radius: 160px 160px 24px 24px; overflow: hidden; background: var(--mocha);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); backface-visibility: hidden; -webkit-backface-visibility: hidden; cursor: pointer;
  transition: filter .6s;
}
.carousel3d__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carousel3d__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: var(--pearl); background: linear-gradient(transparent, rgba(31, 22, 16, .9)); font-family: var(--serif); font-size: 1.15rem; }
.carousel3d__nav { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.location { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); margin-bottom: 30px; }
.location:nth-child(even) .location__img { order: 2; }
.location__img { min-height: 380px; position: relative; }
.location__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location__body { padding: clamp(26px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; }
.location__body ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.location__body li { display: flex; gap: 12px; align-items: flex-start; }
.location__body li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--rose); }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.amenities span { font-size: .72rem; padding: 5px 11px; border-radius: 99px; background: var(--creme); }

/* ---------- Journal page ---------- */
.feature-post { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--espresso); color: var(--pearl); }
.feature-post__img { min-height: 460px; position: relative; overflow: hidden; }
.feature-post__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-post__body { padding: clamp(28px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 60px 0 30px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
.post { display: block; }
.post.is-hidden { display: none; }
.post__img { aspect-ratio: 1.25; border-radius: var(--r-md); overflow: hidden; margin-bottom: 18px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post .meta { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.post h3 { font-size: 1.45rem; margin: 8px 0; transition: color .3s; }
.post:hover h3 { color: var(--rose); }
.post p { font-size: .88rem; color: var(--ink-soft); }

/* Reader modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: rgba(31, 22, 16, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__box {
  position: relative; width: min(720px, 100%); max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; background: var(--pearl); border-radius: var(--r-lg);
  transform: translateY(40px) scale(.97); opacity: 0; transition: transform .6s var(--ease), opacity .5s;
}
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: rgba(246, 241, 236, .92); display: grid; place-items: center; }
.modal__close svg { width: 16px; }
.modal__img { aspect-ratio: 2; overflow: hidden; }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__content { padding: clamp(22px, 4vw, 44px); }
.modal__content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 18px; }
.modal__content p { color: var(--ink-soft); }
.modal--center .modal__box { text-align: center; padding: 44px 28px; width: min(480px, 100%); }
.check-anim { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; color: #fff; }
.check-anim svg { width: 34px; stroke-dasharray: 40; stroke-dashoffset: 40; }
.modal.is-open .check-anim svg { animation: draw .8s var(--ease) .3s forwards; }

/* ---------- Visit page ---------- */
.visit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; }
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 50px); box-shadow: var(--shadow-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .9em 1em; border-radius: 14px; border: 1px solid var(--line); background: var(--pearl); outline: 0; font-size: .92rem;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); background: #fff; box-shadow: 0 0 0 4px rgba(189, 138, 127, .15); }
.field.has-error input, .field.has-error select { border-color: #b4574a; }
.field .err { font-size: .74rem; color: #b4574a; min-height: 1em; }
.guests { display: flex; gap: 8px; flex-wrap: wrap; }
.guests button { width: 46px; height: 46px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--pearl); transition: background .3s, color .3s; }
.guests button.is-active { background: var(--espresso); color: var(--pearl); box-shadow: none; }
.experience-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.exp { padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; background: var(--pearl); transition: box-shadow .3s, background .3s; }
.exp b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1rem; }
.exp span { font-size: .72rem; color: var(--ink-soft); }
.exp.is-active { box-shadow: inset 0 0 0 2px var(--rose); background: #fff; }
.info-stack { display: grid; gap: 18px; }
.info-box { border-radius: var(--r-lg); padding: 26px; background: var(--espresso); color: var(--pearl); }
.info-box h3 { font-size: 1.5rem; margin-bottom: 14px; }
.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; }
.hours li { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px dashed var(--line-light); }
.hours li.today { color: var(--rose); }
.map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1.3; background: var(--creme); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.35) saturate(.8) contrast(.95); }
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; flex: none; transition: transform .5s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--rose); color: #fff; box-shadow: none; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { color: var(--ink-soft); padding-bottom: 24px; margin: 0; max-width: 70ch; }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 250; visibility: hidden; overflow: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(31, 22, 16, .5); opacity: 0; transition: opacity .5s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--pearl); padding: 26px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .7s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.drawer__head h3 { font-size: 1.7rem; }
.drawer .order-list { max-height: none; flex: 1; align-content: start; }
.drawer .order-list li { background: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 400; transform: translate(-50%, 140%); background: var(--espresso); color: var(--pearl);
  padding: 13px 22px; border-radius: 99px; font-size: .86rem; box-shadow: var(--shadow-soft); transition: transform .6s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { transform: translate(-50%, 0); }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 62px; height: 62px; border-radius: 50%;
  background: var(--espresso); color: var(--pearl); display: grid; place-items: center; box-shadow: 0 16px 34px -12px rgba(42, 30, 22, .7);
  transition: transform .5s var(--ease), background .3s;
}
.chat-fab:hover { transform: scale(1.07); background: var(--rose); }
.chat-fab svg { width: 26px; height: 26px; transition: transform .5s var(--ease), opacity .3s; }
.chat-fab .ic-close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.chat-open .chat-fab .ic-chat { opacity: 0; transform: rotate(90deg); }
.chat-open .chat-fab .ic-close { opacity: 1; transform: none; }
.chat-fab__ping { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--rose); border: 2px solid var(--pearl); }
.chat-open .chat-fab__ping, .chat-seen .chat-fab__ping { display: none; }
.chat-teaser {
  position: fixed; right: 96px; bottom: 34px; z-index: 199; background: #fff; padding: 10px 16px; border-radius: 16px 16px 4px 16px; font-size: .82rem;
  box-shadow: var(--shadow-card); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; max-width: 220px;
}
.chat-teaser.is-show { opacity: 1; transform: none; }
.chat {
  position: fixed; right: 22px; bottom: 98px; z-index: 200; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100svh - 130px));
  background: var(--pearl); border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(31, 22, 16, .6), inset 0 0 0 1px rgba(255, 255, 255, .7);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; transform: scale(.85) translateY(20px); opacity: 0; visibility: hidden;
  transition: transform .55s var(--ease), opacity .4s, visibility .55s;
}
.chat-open .chat { transform: none; opacity: 1; visibility: visible; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(140deg, var(--mocha), var(--espresso)); color: var(--pearl); }
.chat__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; flex: none; }
.chat__avatar svg { width: 26px; color: var(--pearl); }
.chat__head b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; display: block; line-height: 1.2; }
.chat__head small { font-size: .72rem; opacity: .7; display: flex; align-items: center; gap: 6px; }
.chat__head small i { width: 7px; height: 7px; border-radius: 50%; background: #7fbf7f; }
.chat__reset { margin-left: auto; font-size: .7rem; opacity: .7; padding: 6px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(246, 241, 236, .3); }
.chat__reset:hover { opacity: 1; }
.chat__body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: .86rem; line-height: 1.5; animation: msgIn .45s var(--ease); }
.msg a { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 2px; }
.msg--bot { background: #fff; border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: 0 6px 16px -12px rgba(42, 30, 22, .5); }
.msg--user { background: var(--espresso); color: var(--pearl); border-bottom-right-radius: 5px; align-self: flex-end; }
.msg ul { margin: 6px 0 0; padding-left: 18px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips button { flex: none; font-size: .76rem; padding: 7px 12px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; transition: background .3s, color .3s; }
.chat__chips button:hover { background: var(--espresso); color: var(--pearl); }
.chat__form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: #fff; }
.chat__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: var(--pearl); padding: 12px 16px; border-radius: 99px; font-size: .88rem; }
.chat__form button { width: 44px; height: 44px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; flex: none; }
.chat__form button svg { width: 16px; }

/* Ambient toggle */
.ambient { position: fixed; left: 22px; bottom: 22px; z-index: 150; display: flex; align-items: center; gap: 10px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding: 9px 14px; border-radius: 99px; background: rgba(246, 241, 236, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); }
.ambient .bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.ambient .bars i { width: 2px; height: 3px; background: currentColor; border-radius: 2px; }
.ambient.is-on { color: var(--rose-deep); }
.ambient.is-on .bars i { animation: eq .9s ease-in-out infinite; }
.ambient.is-on .bars i:nth-child(2) { animation-delay: .2s; }
.ambient.is-on .bars i:nth-child(3) { animation-delay: .4s; }
.ambient.is-on .bars i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 50% { height: 12px; } }

/* =========================================================
   Responsive
   ========================================================= */
/* ---------- Card motion (site-wide, wired up in main.js) ---------- */
.fx-card {
  opacity: 0; transform: perspective(1100px) translateY(54px) rotateX(9deg) scale(.96); transform-origin: 50% 0;
  transition: opacity .9s var(--ease), transform 1.15s var(--ease), box-shadow .5s var(--ease);
}
.fx-card--panel { transform: translateY(46px) scale(.985); }
.fx-card.is-in { opacity: 1; transform: none; }
.fx-card.is-in:not(.fx-done) { transition-delay: calc(var(--fx-i, 0) * 90ms); }
.fx-card--card { position: relative; }
.fx-card--card.fx-done:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px);
  transition: transform .35s var(--ease), box-shadow .5s var(--ease);
}
.fx-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 2; }
.fx-shine::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38) 50%, transparent); transform: skewX(-16deg);
}
.fx-shine::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .2), transparent 65%);
}
.fx-card--card.is-in:not(.fx-done) .fx-shine::before { animation: fxSweep 1.3s var(--ease) calc(var(--fx-i, 0) * 90ms + .35s) both; }
.fx-card--card.fx-done:hover .fx-shine::before { left: 130%; transition: left 1s var(--ease); }
.fx-card--card.fx-done:hover .fx-shine::after { opacity: 1; }
@keyframes fxSweep { from { left: -70%; } to { left: 130%; } }
/* touch: press-in on tap, then spring back with a shine sweep */
.fx-card--card.fx-done.fx-press { transform: scale(.965); transition: transform .15s var(--ease); }
.fx-card--card.fx-tapped .fx-shine::before { animation: fxSweep .9s var(--ease) both; }
@media (hover: none) {
  .fx-card--card { -webkit-tap-highlight-color: transparent; }
  .m-item:hover, .opt:hover { transform: none; }
}
/* Menu page: cards fall in from above and settle with a small bounce */
.page-menu .fx-card--card { --fx-rot: -5deg; }
.page-menu .fx-card--card:nth-child(even) { --fx-rot: 4deg; }
.page-menu .fx-card--card:not(.is-in) { transform: translateY(-160px) rotate(var(--fx-rot)); }
.page-menu .fx-card--card.is-in:not(.fx-done) { animation: fxDrop 1.05s cubic-bezier(.3, .7, .4, 1) calc(var(--fx-i, 0) * 90ms) both; }
@keyframes fxDrop {
  0% { opacity: 0; transform: translateY(-160px) rotate(var(--fx-rot)); }
  15% { opacity: 1; }
  55% { transform: translateY(12px) rotate(calc(var(--fx-rot) * -.2)); }
  75% { transform: translateY(-6px) rotate(calc(var(--fx-rot) * .08)); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .footer__news { grid-column: 1 / -1; }
  .member-grid { grid-template-columns: 1fr 1fr; }
  .member-grid .card3d { grid-column: 1 / -1; }
  .menu-layout { grid-template-columns: minmax(0, 1fr); }
  .order-panel { position: relative; top: 0; }
  .order-panel--aside { display: none; }
  .menu-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .menu-aside .order-panel { grid-column: 1 / -1; }
  .aside-sticky { position: static; }
  .menu-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .menu-row__side { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-height: 699px) { .aside-sticky { position: static; } }

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .nav, .header__actions .btn { display: none; }
  .burger { display: grid; }
  .split-grid, .seasonal-grid, .atelier, .visit-grid, .feature-post, .calc { grid-template-columns: 1fr; }
  .product-row, .space-grid, .story-grid, .post-grid, .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .info-row { grid-template-columns: 1fr 1fr; }
  .info-row > :last-child { grid-column: 1 / -1; }
  .blend { grid-template-columns: 1fr 1.4fr; }
  .blend .notes-list { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gram { grid-template-columns: repeat(3, 1fr); }
  .philo-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .feature-post__img { min-height: 300px; }
  .t-item { gap: 40px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .hero { padding-bottom: 110px; align-items: flex-start; padding-top: calc(var(--header-h) + 30px); }
  .hero__content { max-width: 100%; }
  .hero--home .hero__content { padding-top: 0; }
  .info-row { grid-template-columns: 1fr; margin-top: -60px; }
  .info-row > :last-child { grid-column: auto; }
  .info-card { min-height: 200px; }
  .product-row, .space-grid, .story-grid, .post-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .m-item { padding: 8px 8px 14px; }
  .m-item h4 { font-size: 1rem; }
  .m-item .desc { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 22px; margin-top: 36px; }
  .pillar { display: grid; grid-template-columns: 52px 1fr; gap: 0 16px; }
  .pillar__icon { grid-row: span 2; margin: 0; }
  .perks { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .member-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__news { grid-column: 1 / -1; }
  .footer { padding-top: 100px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .blend { grid-template-columns: 1fr; text-align: left; }
  .blend__img { width: 60%; margin: 0 auto; }
  .finder__result { grid-template-columns: 1fr; text-align: center; }
  .finder__result img { width: 160px; margin: 0 auto; }
  .timeline::before, .timeline__fill, .t-item::after { left: 8px; }
  .t-item { grid-template-columns: 1fr; gap: 20px; padding: 30px 0 30px 34px; }
  .t-item:nth-child(even) .t-item__img { order: 0; }
  .t-item::after { top: 30px; }
  .location { grid-template-columns: 1fr; }
  .location:nth-child(even) .location__img { order: 0; }
  .location__img { min-height: 240px; }
  .form-grid { grid-template-columns: 1fr; }
  .experience-opts { grid-template-columns: 1fr; }
  .atelier__readout { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .readout { padding: 12px 10px; }
  .readout b { font-size: 1.05rem; }
  .calc__out b { font-size: 1.7rem; }
  .gram { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .section-head { align-items: flex-start; }
  .chat { right: 16px; bottom: 90px; }
  .chat-fab { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .chat-teaser { right: 84px; bottom: 26px; }
  .ambient { left: 16px; bottom: 16px; padding: 9px 12px; }
  .ambient span { display: none; }
  .hero__scroll { display: none; }
  .ritual { width: 78vw; }
  .feature-post__img { min-height: 240px; }
  .order-panel { padding: 18px; }
  .menu-aside { grid-template-columns: minmax(0, 1fr); }
  .hero { flex-direction: column; }
  .hero:has(.hero__canvas[data-scene="hero"]) { padding-bottom: max(46svh, 300px); }
  .hero__fallback { display: none; }
  .no-webgl .hero__fallback { display: block; position: absolute; top: auto; bottom: 40px; right: 50%; transform: translateX(50%); width: min(70vw, 300px); }
}

@media (max-width: 420px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__ctas .btn { padding: .9em 1.3em; }
  .logo__name { font-size: .98rem; letter-spacing: .16em; }
  .logo__mono { width: 36px; height: 36px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .split .line > span { opacity: 1; transform: none; }
  .reveal-img img { clip-path: none; transform: none; }
  .fx-card { opacity: 1; transform: none; }
  .fx-shine { display: none; }
}
