/* Eight Ounce preview. A doorway hung with an indigo noren; behind it, a cream plaster wall and
   one glass of matcha. Then the drinks in deep matcha green, the kitchen on pale timber, the
   wait in roasted hojicha brown, and the way out back in indigo. */
:root {
  --wall: #efe6db;
  --rice: #f8f3ea;
  --timber: #e3cfae;
  --timber-dark: #b8956a;
  --matcha: #34502a;
  --matcha-deep: #1e2d18;
  --matcha-bright: #6f9a3a;
  --leaf: #b7c97c;
  --hojicha: #6b4127;
  --hojicha-deep: #4a2c1a;
  --indigo: #1a2747;
  --indigo-deep: #111a31;
  --ink: #1f2419;
  --ink-soft: #5c604f;
  --light: #f6f1e7;
  --light-dim: rgba(246, 241, 231, 0.74);
  --vermilion: #c8462c;
  --mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.is-closed body { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--matcha-bright); outline-offset: 3px; }

.eyebrow { margin: 0 0 16px; font: 600 12px/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--matcha-bright); }
.h2 { margin: 0 0 18px; font: 600 clamp(38px, 5.2vw, 70px)/1.04 var(--mincho); letter-spacing: -0.01em; }
.h2 em { font-style: normal; color: var(--matcha-bright); }
.fine { font-size: 13px; opacity: 0.75; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--matcha { background: var(--matcha); color: var(--light); box-shadow: 0 14px 30px -16px rgba(30, 45, 24, 0.9); }
.btn--matcha:hover { background: #3f6132; }
.btn--rice { background: var(--rice); color: var(--indigo); }
.btn--line { border-color: currentColor; background: transparent; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  background: rgba(248, 243, 234, 0.7); border: 1px solid rgba(31, 36, 25, 0.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 14px/1 var(--sans); text-decoration: none;
}
.pill .star { color: #c58a1d; }
.pill__muted { opacity: 0.65; }

/* ---------- the doorway ---------- */
.door { position: fixed; inset: 0; z-index: 90; display: none; cursor: pointer; }
.is-closed .door { display: block; }
.door__cloth { position: absolute; inset: 0; width: 100%; height: 100%; }
/* before WebGL draws (or if it can't), a flat indigo cloth with the name */
.door__flat { position: absolute; inset: 0; display: grid; place-items: center; background: var(--indigo) url(img/noren-linen.jpg) center / cover; transition: opacity 0.6s; }
.door__flat img { width: min(80vw, 1100px); opacity: 0.92; }
.door.is-cloth .door__flat { opacity: 0; pointer-events: none; }
.door__hint {
  position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); margin: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 999px;
  background: rgba(246, 241, 231, 0.12); border: 1px solid rgba(246, 241, 231, 0.28); color: var(--light);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 500 14px/1 var(--sans); letter-spacing: 0.06em; white-space: nowrap;
  opacity: 0; animation: hint-in 0.8s 1s var(--ease) forwards; transition: opacity 0.4s;
}
.door.is-opening .door__hint { opacity: 0 !important; animation: none; }
@keyframes hint-in { to { opacity: 1; } }
.door__hand { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--light); animation: press 1.8s ease-in-out infinite; }
.door__hand::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(246, 241, 231, 0.6); animation: ring 1.8s ease-out infinite; }
@keyframes press { 0%, 100% { transform: scale(1); } 40% { transform: scale(0.75); } }
@keyframes ring { 0% { transform: scale(0.6); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, calc((100% - 1180px) / 2));
  width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 10px; border-radius: 999px; overflow: hidden;
  background: rgba(248, 243, 234, 0.62);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 12px 30px -20px rgba(31, 36, 25, 0.5), inset 0 0 0 1px rgba(31, 36, 25, 0.08);
  transition: width 0.65s var(--ease), padding 0.65s var(--ease), background 0.3s, opacity 0.8s, transform 0.8s var(--ease);
}
.is-closed .nav, .is-entering .nav { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.nav.is-compact { width: 164px; padding: 6px 6px 6px 8px; background: rgba(17, 26, 49, 0.88); color: var(--light); box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(246, 241, 231, 0.2); }
.nav.is-compact .nav__name, .nav.is-compact .nav__links, .nav.is-compact .nav__status, .nav.is-compact .nav__cta { display: none; }
.nav.is-compact .nav__end { gap: 6px; }
.nav__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.nav__mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid currentColor; font: 600 21px/1 var(--mincho); padding-top: 1px; }
.nav__name { font: 600 21px/1 var(--mincho); white-space: nowrap; }
.nav__links { position: relative; display: flex; gap: 2px; }
.nav__links a { position: relative; z-index: 1; padding: 10px 14px; border-radius: 999px; font: 500 14px/1 var(--sans); text-decoration: none; color: var(--ink-soft); transition: color 0.25s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__ink { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; background: rgba(52, 80, 42, 0.1); opacity: 0; transition: left 0.4s var(--ease), width 0.4s var(--ease), opacity 0.25s; }
.nav__end { display: flex; align-items: center; gap: 8px; }
.nav__status { font: 600 12px/1 var(--sans); letter-spacing: 0.04em; color: var(--ink-soft); padding: 0 4px; white-space: nowrap; }
.nav__status.is-open-now { color: #3d7a26; }
.nav__status.is-open-now::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(61, 122, 38, 0.2); vertical-align: 1px; }
.nav__cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--indigo); color: var(--light); font: 600 14px/1 var(--sans); text-decoration: none; }
.nav__menu { display: none; place-content: center; gap: 5px; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--indigo); cursor: pointer; }
.nav.is-compact .nav__menu { display: grid; background: var(--light); }
.nav.is-compact .nav__menu span:not(.vh) { background: var(--indigo); }
.nav__menu span:not(.vh) { display: block; width: 16px; height: 1.5px; background: var(--light); transition: transform 0.4s var(--ease); }
.nav.is-open .nav__menu span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* sound: a furin that sways and rings while the music plays */
.sound { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(52, 80, 42, 0.1); cursor: pointer; }
.nav.is-compact .sound { background: rgba(246, 241, 231, 0.12); }
.sound svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sound__bell { transform-origin: 12px 2.5px; }
.sound__tag { fill: rgba(200, 70, 44, 0.2); stroke: var(--vermilion); }
.sound__clapper, .sound__tag { transform-origin: 12px 11.5px; }
.sound.is-on .sound__bell { animation: furin 2.6s ease-in-out infinite; }
.sound.is-on .sound__tag { animation: tag 1.3s ease-in-out infinite; }
@keyframes furin { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes tag { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-14deg); } }
.sound.is-hinting { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg) scale(1.08); } 60% { transform: rotate(8deg); } }
.sound-hint {
  position: fixed; z-index: 55; display: flex; align-items: center; gap: 2px;
  padding: 4px 4px 4px 6px; border-radius: 999px; background: var(--indigo); color: var(--light);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.4s, transform 0.5s var(--ease);
}
.sound-hint.is-on { opacity: 1; transform: none; }
.sound-hint__arrow { position: absolute; top: -5px; left: var(--arrow, 50%); width: 10px; height: 10px; margin-left: -5px; background: var(--indigo); transform: rotate(45deg); }
.sound-hint__play { padding: 9px 10px; border: 0; background: none; color: inherit; font: 500 14px/1 var(--sans); cursor: pointer; }
.sound-hint__x { position: relative; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(246, 241, 231, 0.12); cursor: pointer; }
.sound-hint__x i { position: absolute; left: 9px; top: 14px; width: 12px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.sound-hint__x i + i { transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 100px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--indigo) url(img/noren-linen.jpg) center / cover; color: var(--light);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease);
}
.sheet.is-open { clip-path: inset(0 0 0 0); }
.sheet__links, .sheet__foot { width: min(100%, 760px); margin-inline: auto; }
.sheet__links { display: grid; gap: 2px; }
.sheet__links a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(246, 241, 231, 0.16); font: 600 clamp(32px, 6vw, 50px)/1.05 var(--mincho); text-decoration: none; }
.sheet__links small { flex: none; width: 88px; font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); }
.sheet__status { margin: 0 0 14px; font-weight: 600; color: var(--light-dim); }
.sheet__actions { display: grid; gap: 10px; }
.sheet .btn--matcha { background: var(--light); color: var(--indigo); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--wall); isolation: isolate; }
.hero__media { position: absolute; inset: 0; transform: translateY(var(--ty, 0px)) scale(calc(var(--k, 1) * (1 + var(--p, 0) * 0.06))); transform-origin: var(--gx, 49%) var(--gy, 60%); }
/* on a narrow screen the glass is set back a little: the video shrinks and fades into plaster */
.hero.is-tall { background: linear-gradient(#efe3db, #ede0d6 45%, #e9dace 70%, #f1e6e0 74%, #f4e9e3); }
.hero.is-tall .hero__media { -webkit-mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side ellipse at 50% 50%, #000 72%, transparent 100%); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ox, 50%) 50%; }
.hero__video { opacity: 0; transition: opacity 0.5s; }
.hero__video.is-on { opacity: 1; }

/* the etched scale beside the glass */
.scale { position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transition: opacity 1s; }
.is-closed .scale { opacity: 0; }
.scale__tick { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 8px; transform: translateY(-50%); }
.scale__tick i { display: block; width: var(--len, 26px); height: 2px; border-radius: 2px; background: rgba(31, 36, 25, 0.28); transition: background 0.6s, width 0.6s var(--ease); }
.scale__tick b { white-space: nowrap; font: 600 15px/1 var(--mincho); color: rgba(31, 36, 25, 0.38); transition: color 0.6s, transform 0.6s var(--ease); }
.scale__tick.is-full i { background: var(--matcha); }
.scale__tick.is-full b { color: var(--matcha); }
.scale__tick--eight b { font-size: 19px; }
.scale__tick--eight.is-full b { transform: scale(1.12); transform-origin: left center; }
.scale__tick--eight::after { content: ''; position: absolute; left: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--matcha-bright); opacity: 0; transform: scale(0.3); }
.scale__tick--eight.is-full::after { animation: brim 1.4s var(--ease) forwards; }
@keyframes brim { 30% { opacity: 0.6; transform: scale(2.6); } 100% { opacity: 0; transform: scale(4); } }

.hero__name { position: absolute; z-index: 3; inset: 0; margin: 0; pointer-events: none; font: 500 clamp(80px, 13.2vw, 240px)/0.9 var(--sans); letter-spacing: -0.045em; color: var(--matcha); }
.hero__word { position: absolute; top: var(--ny, 50%); transform: translateY(-50%); white-space: nowrap; transition: transform 1.4s var(--ease), opacity 1.2s, filter 1.2s; }
.hero__word--a { right: calc(100% - var(--gl, 42%) + var(--gap)); }
.hero__word--b { left: calc(var(--gr, 57%) + var(--gap)); }
/* on a narrow screen the name runs down either side of the glass */
.hero.is-tall .hero__name { font-size: clamp(60px, 19vw, 150px); line-height: 1; }
.hero.is-tall .hero__word { writing-mode: vertical-rl; letter-spacing: -0.03em; }
.hero.is-tall .hero__word--a { transform: translateY(-50%) rotate(180deg); }
.is-closed .hero.is-tall .hero__word--a, .is-entering .hero.is-tall .hero__word--a { transform: translate(-30%, -50%) rotate(180deg); }
.hero.is-tall::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(transparent, rgba(239, 230, 219, 0.92) 55%); pointer-events: none; }
.is-closed .hero__word--a, .is-entering .hero__word--a { transform: translate(-14%, -50%); opacity: 0; filter: blur(8px); }
.is-closed .hero__word--b, .is-entering .hero__word--b { transform: translate(14%, -50%); opacity: 0; filter: blur(8px); }
/* on a wide screen the line sits under "Eight" and the buttons under "Ounce", both hugging the
   glass; on a narrow one they stack at the foot */
.hero { --gap: clamp(14px, 2.4vw, 40px); }
.hero__lede, .hero__actions, .hero .pill { z-index: 3; transition: opacity 1s 0.5s, transform 1.2s 0.5s var(--ease); }
.is-closed .hero__lede, .is-entering .hero__lede, .is-closed .hero__actions, .is-entering .hero__actions, .is-closed .hero .pill, .is-entering .hero .pill { opacity: 0; transform: translateY(18px); }
.hero__lede { margin: 0; font: 500 clamp(17px, 1.5vw, 21px)/1.35 var(--mincho); color: var(--ink); }
.hero__lede span { color: var(--matcha); }
.hero__actions { display: flex; gap: 10px; }
.hero .btn--line { color: var(--matcha); }
.hero:not(.is-tall) .hero__lede { position: absolute; right: calc(100% - var(--gl, 42%) + var(--gap)); top: calc(var(--ny, 50%) + var(--nh, 100px) * 0.86); width: min(34ch, calc(var(--gl, 42%) - var(--gap) - var(--gutter))); text-align: right; }
.hero__dot { font-style: normal; }
.hero:not(.is-tall) .hero__lede { max-width: 15em; }
.hero:not(.is-tall) .hero__lede span { display: block; }
.hero:not(.is-tall) .hero__dot { display: none; }
.hero:not(.is-tall) .hero__actions { position: absolute; left: calc(var(--gr, 57%) + var(--gap)); top: calc(var(--ny, 50%) + var(--nh, 100px) * 0.86); }
.hero:not(.is-tall) .pill { position: absolute; right: var(--gutter); bottom: max(24px, env(safe-area-inset-bottom)); }
.hero.is-tall .hero__foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 var(--gutter) max(20px, env(safe-area-inset-bottom)); text-align: center;
}
.hero.is-tall .hero__actions { width: min(100%, 420px); }
.hero.is-tall .hero__actions .btn { flex: 1; padding: 0 12px; }

/* ---------- drinks ---------- */
.drinks { position: relative; padding: clamp(90px, 12vw, 160px) var(--gutter); color: var(--light); }

.drinks .eyebrow, .drinks .h2 em { color: var(--leaf); }
.drinks__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.drinks__head { max-width: 640px; margin-bottom: clamp(30px, 5vw, 60px); }
.drinks__head p:last-child { color: var(--light-dim); max-width: 44ch; }
.drinks__stage { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.glass { position: relative; display: grid; justify-items: center; }
.glass__canvas { display: block; width: 100%; aspect-ratio: 820 / 1000;
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 52%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 52% 54% at 50% 52%, #000 62%, transparent 100%); }
.glass { width: min(100%, 420px); justify-self: center; }
.glass__scale { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 820 / 1000; pointer-events: none; }
.glass__scale span { position: absolute; left: 70%; top: var(--y); display: flex; align-items: center; gap: 7px; transform: translateY(-50%); font: 600 13px/1 var(--mincho); color: rgba(246, 241, 231, 0.4); white-space: nowrap; transition: color 0.5s; }
.glass__scale i { display: block; width: 22px; height: 2px; margin-left: -12px; border-radius: 2px; background: rgba(246, 241, 231, 0.35); transition: background 0.5s; }
.glass__scale span.is-full { color: var(--light); }
.glass__scale span.is-full i { background: var(--leaf); }
.glass__now { margin: 10px 0 0; font: 600 20px/1.2 var(--mincho); color: var(--leaf); text-align: center; min-height: 1.2em; }
.drinks__list { display: grid; gap: 8px; }
.drink {
  display: grid; gap: 3px; width: 100%; padding: 16px 20px; text-align: left; cursor: pointer;
  border: 1px solid rgba(246, 241, 231, 0.14); border-radius: 18px; background: rgba(246, 241, 231, 0.03);
  transition: background 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.drink:hover { background: rgba(246, 241, 231, 0.07); transform: translateX(4px); }
.drink b { font: 600 22px/1.15 var(--mincho); }
.drink span { font-size: 15px; color: var(--light-dim); }
.drink.is-on { background: rgba(183, 201, 124, 0.14); border-color: rgba(183, 201, 124, 0.6); }
.drink.is-on b { color: var(--leaf); }
.dark { display: none; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-dim); }
.drink--choc.is-on .dark { display: flex; }
.dark input { flex: 1; accent-color: #9a5b34; height: 28px; }
.dark input { -webkit-appearance: none; appearance: none; background: transparent; }
.dark input::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #d8b28a, #3a1d12); }
.dark input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: var(--light); border: 3px solid #7a4526; }
.dark input::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #d8b28a, #3a1d12); }
.dark input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--light); border: 3px solid #7a4526; }

/* ---------- kitchen: the bento ---------- */
.kitchen { position: relative; padding: clamp(90px, 12vw, 160px) var(--gutter); }
.kitchen__inner { position: relative; z-index: 1; }
.kitchen__inner { max-width: 1180px; margin: 0 auto; }
.kitchen__head { max-width: 640px; margin-bottom: clamp(30px, 5vw, 56px); }
.kitchen__head .eyebrow, .kitchen .h2 em { color: var(--matcha); }
.kitchen__head p:last-child { color: var(--ink-soft); max-width: 44ch; }
.bento {
  --frame: clamp(10px, 1.4vw, 18px);
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--frame);
  padding: var(--frame); border-radius: 22px;
  background:
    repeating-linear-gradient(92deg, rgba(120, 80, 40, 0.07) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(88deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, #e8d3b2, #d6b98f);
  box-shadow: 0 50px 90px -50px rgba(74, 44, 26, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(120, 80, 40, 0.2);
}
.cell { position: relative; margin: 0; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 4.4; background: #cdb08a; box-shadow: inset 0 3px 8px rgba(74, 44, 26, 0.35); }
.cell--big { grid-row: span 2; aspect-ratio: auto; }
.cell img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease); }
.cell.is-open img { transform: scale(1.02); }
.cell:hover img { transform: scale(1.07); }
.cell figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(248, 243, 234, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px; line-height: 1.4; color: var(--ink-soft);
  transform: translateY(10px); opacity: 0; transition: opacity 0.6s 0.5s, transform 0.8s 0.5s var(--ease);
}
.cell.is-open figcaption { opacity: 1; transform: none; }
.cell figcaption b { display: block; font: 600 19px/1.2 var(--mincho); color: var(--ink); }
/* the lid: a timber panel that slides off when the tray comes into view */
.lid {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border-radius: 10px;
  background:
    repeating-linear-gradient(91deg, rgba(120, 80, 40, 0.09) 0 2px, transparent 2px 8px),
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(160deg, #ecd9b9, #d3b48a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 20px -8px rgba(74, 44, 26, 0.5);
  transition: transform 1.1s var(--ease), opacity 0.9s;
  transition-delay: calc(var(--i, 0) * 0.12s);
}
.lid em { font: 600 clamp(17px, 1.6vw, 22px)/1.2 var(--mincho); font-style: normal; color: rgba(74, 44, 26, 0.7); text-align: center; padding: 0 12px; }
.lid::before { content: ''; position: absolute; top: 14px; left: 50%; width: 40px; height: 6px; margin-left: -20px; border-radius: 6px; background: rgba(74, 44, 26, 0.25); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); }
.cell.is-open .lid { transform: translate(var(--lx, 70%), var(--ly, -30%)) rotate(var(--lr, 8deg)); opacity: 0; pointer-events: none; }
.cell:nth-child(1) { --i: 0; --lx: -60%; --ly: -40%; --lr: -10deg; }
.cell:nth-child(2) { --i: 1; --lx: 30%; --ly: -90%; --lr: 6deg; }
.cell:nth-child(3) { --i: 2; --lx: 80%; --ly: -50%; --lr: 12deg; }
.cell:nth-child(4) { --i: 3; --lx: 20%; --ly: 90%; --lr: -6deg; }
.cell:nth-child(5) { --i: 4; --lx: 80%; --ly: 60%; --lr: 9deg; }
.kitchen__more { max-width: 62ch; margin: 34px auto 0; text-align: center; color: var(--ink-soft); }
.kitchen__more a { color: var(--matcha); font-weight: 600; }

/* ---------- the wait ---------- */
.wait { position: relative; padding: clamp(90px, 12vw, 150px) var(--gutter); color: var(--light); }

.wait__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.wait .eyebrow, .wait .h2 em { color: #f0c79a; }
.wait__copy p { color: var(--light-dim); max-width: 42ch; }
.wait__now { font-weight: 600; color: var(--light) !important; }
.wait__now.is-open-now { color: #cfe3a0 !important; }
.machine { position: relative; justify-self: center; width: min(100%, 330px); padding-bottom: var(--below, 290px); }
.machine__body {
  position: relative; z-index: 2; padding: 26px 26px 34px; border-radius: 26px 26px 18px 18px; text-align: center;
  background: linear-gradient(160deg, #f4ede0, #ddd2bf); color: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6), inset 0 2px 0 #fff, inset 0 -6px 0 rgba(0, 0, 0, 0.08);
}
.machine__label { margin: 0 0 6px; font: 600 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.machine__count { margin: 0 auto 18px; width: 150px; padding: 10px 0 8px; border-radius: 12px; background: #1b1410; box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.6); font: 600 54px/1 'Courier New', monospace; color: #ff6a3d; text-shadow: 0 0 12px rgba(255, 106, 61, 0.7); letter-spacing: 0.08em; }
.machine__btn {
  display: block; width: 100%; min-height: 56px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--vermilion); color: #fff; font: 600 16px/1 var(--sans); letter-spacing: 0.04em;
  box-shadow: 0 6px 0 #8f2c18, 0 16px 24px -10px rgba(143, 44, 24, 0.8);
  transition: transform 0.12s, box-shadow 0.12s;
}
.machine__btn:active, .machine__btn.is-pressed { transform: translateY(5px); box-shadow: 0 1px 0 #8f2c18, 0 6px 12px -6px rgba(143, 44, 24, 0.8); }
.machine__slot { position: absolute; left: 50%; bottom: 12px; width: 200px; height: 8px; margin-left: -100px; border-radius: 8px; background: #2a201a; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7); }
/* the space below the slot: the ticket feeds out into it and is never seen above it */
.machine__out { position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% - var(--below, 290px) - 16px); bottom: 0; overflow: hidden; pointer-events: none; }
.ticket {
  position: absolute; left: 50%; top: 0; width: 200px; margin-left: -100px;
  padding: 20px 16px 52px; background: #fbf8f1; color: var(--ink); text-align: center;
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 12px 100% repeat-x;
          mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 12px 100% repeat-x;
  transform: translateY(-101%); transition: transform 1.1s steps(9, end);
}
.ticket.is-out { transform: translateY(0); }
.machine__out::before { content: ''; position: absolute; left: 50%; top: 0; width: 210px; height: 30px; margin-left: -105px; background: linear-gradient(rgba(0, 0, 0, 0.35), transparent); z-index: 1; }
.ticket__brand { margin: 0 0 10px; font: 600 9.5px/1 var(--sans); letter-spacing: 0.12em; white-space: nowrap; text-transform: uppercase; color: var(--ink-soft); }
.ticket__no { margin: 0 0 8px; font: 600 15px/1 var(--mincho); }
.ticket__no b { display: block; font-size: 58px; line-height: 1; letter-spacing: -0.02em; }
.ticket__line { margin: 0 0 8px; padding: 8px 0; border-block: 1px dashed rgba(31, 36, 25, 0.3); font: 600 13px/1.35 var(--sans); }
.ticket__tip { margin: 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
.ticket__stamp { position: absolute; left: 50%; margin-left: -42px; bottom: 14px; padding: 4px 8px; border: 2px solid var(--vermilion); border-radius: 6px; color: var(--vermilion); font: 700 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; transform: rotate(-7deg) scale(2); opacity: 0; }
.ticket.is-stamped .ticket__stamp { animation: stamp 0.45s var(--ease) forwards; }
@keyframes stamp { 60% { transform: rotate(-7deg) scale(0.92); opacity: 0.9; } 100% { transform: rotate(-7deg) scale(1); opacity: 0.85; } }

/* ---------- visit ---------- */
.visit { position: relative; padding: clamp(90px, 12vw, 150px) var(--gutter); color: var(--light); }
.visit__inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); }
.visit .eyebrow, .visit .h2 em { color: var(--leaf); }
.visit p { color: var(--light-dim); }
.hours__status { margin: 0 0 8px; font-weight: 600; color: var(--light) !important; }
.hours__status.is-open-now { color: #cfe3a0 !important; }
.hours__table { width: 100%; border-collapse: collapse; margin: 24px 0 14px; }
.hours__table th, .hours__table td { padding: 12px 2px; border-bottom: 1px solid rgba(246, 241, 231, 0.14); font-size: 16px; }
.hours__table th { text-align: left; font-weight: 500; }
.hours__table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours__table tr.is-today th, .hours__table tr.is-today td { color: var(--leaf); font-weight: 600; }
.find__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 24px; }
.find__map { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.7); }
.find__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
.find__social { margin-top: 18px; font-weight: 600; }
.find__social a { color: var(--light); }

/* ---------- the way out ---------- */
.foot { position: relative; background: var(--indigo-deep); color: rgba(246, 241, 231, 0.75); text-align: center; font-size: 15px; }
.foot__noren { position: relative; height: clamp(300px, 52vh, 520px); background: linear-gradient(var(--indigo), var(--indigo-deep)); }
.foot__noren::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(#3b2a1d, #23180f); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4); z-index: 1; }
.foot__noren canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot__text { padding: 36px var(--gutter) calc(110px + env(safe-area-inset-bottom)); }
.foot a { color: var(--light); }
.foot__note { max-width: 540px; margin: 18px auto 0; font-size: 13px; color: rgba(246, 241, 231, 0.5); }
.dock { display: none; }

/* ---------- reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1020px) {
  .nav__links, .nav__status { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 6px 6px 6px 8px; }
  .nav__name { font-size: 19px; }
  .nav__cta { display: none; }
  .nav__menu { display: grid; }

  .hero__lede { font-size: 16px; }
  .hero.is-tall .scale__tick b { font-size: 19px; }
  .hero.is-tall .scale__tick--eight b { font-size: 24px; }
  .hero.is-tall .scale__tick i { height: 3px; }

  .drinks__stage, .wait__inner, .visit__inner { grid-template-columns: 1fr; }
  .glass { width: min(78vw, 330px); }
  .drink { padding: 13px 16px; }
  .drink b { font-size: 19px; }
  .drink span { font-size: 14px; }

  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cell--big { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3.4; }
  .cell figcaption { left: 6px; right: 6px; bottom: 6px; padding: 8px 10px; font-size: 12px; }
  .cell figcaption b { font-size: 15px; }
  .lid em { font-size: 15px; }

  .machine { --below: 280px; }

  .dock {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px;
    background: rgba(17, 26, 49, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.12);
    transform: translateY(140%); transition: transform 0.5s var(--ease);
  }
  .dock.is-shown { transform: none; }
  .dock a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; color: var(--light); font-weight: 600; text-decoration: none; }
  .dock a:first-child { background: var(--light); color: var(--indigo); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- the steep: a living tea-cloud background behind every section after the hero ---------- */
.steep { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--matcha-deep); }
.steep canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s; }
.steep canvas.is-on { opacity: 1; }
.steep__grain { position: absolute; inset: 0; background: url(img/grain.png); opacity: 0.07; mix-blend-mode: overlay; }
main { position: relative; z-index: 1; overflow-x: clip; }
.foot { z-index: 1; }
.hero { z-index: 2; }
/* without WebGL, each section keeps a plain colour */
html:not(.has-steep) .drinks { background: var(--matcha-deep); }
html:not(.has-steep) .kitchen { background: var(--rice); }
html:not(.has-steep) .wait { background: var(--hojicha); }
html:not(.has-steep) .visit { background: var(--indigo); }

/* ---------- floating props: real tea things at different depths ---------- */
.props { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prop {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(calc(var(--r, 0deg) + var(--pr, 0deg)));
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45));
  will-change: transform;
}
.prop--far { filter: blur(2.5px) drop-shadow(0 20px 20px rgba(0, 0, 0, 0.3)); opacity: 0.75; }
.prop--roast { filter: sepia(1) saturate(0.7) brightness(0.62) hue-rotate(-12deg) drop-shadow(0 26px 26px rgba(0, 0, 0, 0.45)); }
.prop--roast.prop--far { filter: sepia(1) saturate(0.7) brightness(0.55) hue-rotate(-12deg) blur(2.5px); }
.kitchen .prop { filter: drop-shadow(0 26px 22px rgba(74, 44, 26, 0.3)); }
.kitchen .prop--far { filter: blur(2px) drop-shadow(0 18px 16px rgba(74, 44, 26, 0.2)); }
.drinks__inner, .wait__inner, .visit__inner { position: relative; z-index: 1; }

/* ---------- komorebi: sunlight through maple and bamboo, moving slowly across the kitchen ---------- */
.komorebi {
  position: absolute; inset: -12% -8%; z-index: 0; pointer-events: none;
  background: url(img/komorebi.jpg) center / cover;
  mix-blend-mode: multiply; opacity: 0.32; filter: blur(1.5px);
  animation: sway 14s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 80%, transparent);
}
@keyframes sway { 0% { transform: translate3d(-1.5%, 0, 0) rotate(-0.6deg) scale(1.02); } 50% { transform: translate3d(1%, 0.8%, 0) rotate(0.4deg) scale(1.03); } 100% { transform: translate3d(2%, -0.5%, 0) rotate(0.8deg) scale(1.02); } }

@media (max-width: 760px) {
  .prop { width: calc(var(--w) * 0.7); }
  .prop--wide { display: none; }
  .glass__scale span { font-size: 11px; }
}

/* narrow screens: the upright "Ounce" runs beside the scale, so only the 8 oz mark keeps its label */
.hero.is-tall .scale__tick:not(.scale__tick--eight) b { display: none; }
.sound-hint__play { white-space: nowrap; }
