/* ============================================================
   MOON BREW — specialty coffee (Web Design Lab showcase)
   warm / editorial / paper-grain — distinct from sakura & flowdesk
   ============================================================ */
:root {
  --cream: #f5ede1;
  --paper: #fbf6ee;
  --brown: #2b1d12;
  --espresso: #1a110a;
  --amber: #c98a3b;
  --amber-deep: #a96e26;
  --matcha: #7a8a5a;
  --ink: #2b1d12;
  --muted: #7d6c58;
  --line: rgba(43, 29, 18, .14);
  --serif: 'Shippori Mincho', serif;
  --sans: 'Noto Sans JP', system-ui, sans-serif;
  --disp: 'Cormorant Garamond', 'Shippori Mincho', serif;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); line-height: 1.95;
  font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(201, 138, 59, .18), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(122, 138, 90, .12), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--cream));
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--amber); color: var(--paper); }

/* ===== paper grain overlay ===== */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* ===== trail cursor canvas ===== */
.trail { position: fixed; inset: 0; z-index: 8800; pointer-events: none; width: 100%; height: 100%; }
@media (hover: none), (pointer: coarse) { .trail { display: none; } }

/* ===== intro loader ===== */
.intro {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background:
    radial-gradient(120% 100% at 50% 24%, #fbf6ee 0%, #efe2cf 60%, #e6d5bd 100%);
  transition: opacity .8s ease .35s, transform 1.05s var(--ease);
}
.intro.done { opacity: 0; transform: translateY(-3%); pointer-events: none; }
.intro-stage { display: grid; justify-items: center; gap: 22px; }
.intro-cup { position: relative; width: 116px; height: 110px; }
.intro-cup .saucer {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 116px; height: 16px; border-radius: 50%;
  background: radial-gradient(50% 90% at 50% 30%, #c9a574, #8c6a3e);
  box-shadow: 0 8px 18px -8px rgba(43, 29, 18, .5);
}
.intro-cup .mug {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: 74px; height: 60px; border-radius: 8px 8px 26px 26px / 8px 8px 40px 40px;
  background: linear-gradient(180deg, #f3ead9, #e6d6bd); overflow: hidden;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .6), 0 6px 14px -8px rgba(43, 29, 18, .4);
  border: 1.5px solid rgba(43, 29, 18, .12);
}
.intro-cup .fill {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, #6b3f1c, #2b1d12); transition: height .18s var(--ease-soft);
}
.intro-cup .handle {
  position: absolute; right: -16px; top: 12px; width: 22px; height: 30px;
  border: 5px solid #e6d6bd; border-left: none; border-radius: 0 16px 16px 0;
}
.intro-cup .steam {
  position: absolute; bottom: 70px; width: 5px; height: 30px; border-radius: 4px;
  background: linear-gradient(180deg, transparent, rgba(43, 29, 18, .28), transparent);
  filter: blur(1px); opacity: 0; transform-origin: bottom;
  animation: steam 2.4s ease-in-out infinite;
}
.intro-cup .s1 { left: 40px; animation-delay: 0s; }
.intro-cup .s2 { left: 56px; height: 38px; animation-delay: .5s; }
.intro-cup .s3 { left: 72px; animation-delay: 1s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(6px) scaleY(.7) translateX(0); }
  40% { opacity: .7; }
  100% { opacity: 0; transform: translateY(-22px) scaleY(1.2) translateX(8px); }
}
.intro-name { font-family: var(--disp); font-size: 38px; font-weight: 600; letter-spacing: .26em; padding-left: .26em; color: var(--brown); }
.intro-tag { font-family: var(--serif); font-size: 13px; letter-spacing: .14em; color: var(--amber-deep); }

/* ===== nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300; display: flex; align-items: center; gap: 26px;
  padding: 22px clamp(18px, 4vw, 56px); transition: padding .4s var(--ease), background .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  padding: 13px clamp(18px, 4vw, 56px);
  background: rgba(251, 246, 238, .82); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 30px -24px rgba(43, 29, 18, .6); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-moon {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #f3e3c4, var(--amber) 70%);
  box-shadow: inset -5px -3px 0 rgba(43, 29, 18, .25), 0 0 14px rgba(201, 138, 59, .55);
}
.brand-name { font-family: var(--disp); font-weight: 600; letter-spacing: .22em; font-size: 19px; color: var(--brown); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-family: var(--disp); font-weight: 600; font-size: 17px; letter-spacing: .12em; color: var(--brown);
  position: relative; padding: 4px 2px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--amber-deep);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  position: relative; overflow: hidden; font-family: var(--serif); font-weight: 600; font-size: 13.5px; letter-spacing: .08em;
  color: var(--paper); padding: 11px 24px; border-radius: 2px;
  background: linear-gradient(120deg, var(--brown), var(--espresso));
  box-shadow: 0 10px 22px -12px rgba(43, 29, 18, .7);
}
.nav-cta > span { position: relative; z-index: 2; }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-burger i { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--brown); transition: .35s var(--ease); }

/* ===== buttons (underline-slide + ripple) ===== */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 14.5px; letter-spacing: .05em;
  padding: 15px 32px; border-radius: 2px; transition: color .35s var(--ease), background .35s var(--ease), border-color .35s;
}
.btn > span { position: relative; z-index: 2; }
.btn-solid { color: var(--paper); background: linear-gradient(120deg, var(--brown), var(--espresso)); box-shadow: 0 14px 28px -14px rgba(43, 29, 18, .7); }
.btn-line { color: var(--brown); border: 1.5px solid var(--line); }
.btn-line::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
  background: var(--brown); transform: translateY(101%); transition: transform .4s var(--ease); z-index: 1;
}
.btn-line:hover { color: var(--paper); border-color: var(--brown); }
.btn-line:hover::after { transform: translateY(0); }
/* ripple */
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: translate(-50%, -50%) scale(0); pointer-events: none; z-index: 1; animation: ripple .6s var(--ease-soft) forwards; }
.btn-line .ripple, .nav-cta .ripple { background: rgba(201, 138, 59, .3); }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ===== reveal: mask + skew (distinct from fade/clip-wipe) ===== */
[data-mask] { overflow: hidden; }
[data-mask] > span, [data-mask] > * {
  display: inline-block; transform: translateY(110%); opacity: .001;
  transition: transform 1s var(--ease), opacity .9s var(--ease);
}
[data-mask].in > span, [data-mask].in > * { transform: translateY(0); opacity: 1; }
[data-skew] {
  opacity: 0; transform: translateY(38px) skewY(3.5deg);
  transform-origin: left top;
  transition: opacity .9s var(--ease), transform 1s var(--ease);
}
[data-skew].in { opacity: 1; transform: none; }

/* clip-path text reveal (hero heading) */
.reveal-clip {
  display: inline-block; clip-path: inset(0 0 110% 0);
  transition: clip-path 1s var(--ease) var(--d, 0s);
}
.hero.in-view .reveal-clip { clip-path: inset(0 0 -10% 0); }

/* ===== hero ===== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.layer { position: absolute; will-change: transform; }
.layer-glow {
  width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; right: 6%; top: 4%;
  border-radius: 50%; background: radial-gradient(circle, rgba(201, 138, 59, .3), transparent 62%); filter: blur(8px);
}
.layer-moon {
  right: 11%; top: 11%; width: clamp(150px, 22vw, 280px); height: clamp(150px, 22vw, 280px); border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fdf3df, #e8c98a 52%, #c98a3b 100%);
  box-shadow: inset -22px -16px 0 rgba(43, 29, 18, .16), 0 0 80px rgba(201, 138, 59, .45);
}
.layer-ring {
  right: 8%; top: 8%; width: clamp(220px, 32vw, 420px); height: clamp(220px, 32vw, 420px); border-radius: 50%;
  border: 1px dashed rgba(201, 138, 59, .4);
}
.layer-bean {
  width: 30px; height: 22px; border-radius: 50% 50% 48% 48%; background: linear-gradient(140deg, #5a3a1e, #2b1d12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.layer-bean::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent 47%, rgba(245, 237, 225, .5) 48%, rgba(245, 237, 225, .5) 52%, transparent 53%); }
.layer-bean.b1 { left: 16%; top: 26%; transform: rotate(-18deg); }
.layer-bean.b2 { left: 28%; bottom: 22%; width: 24px; height: 18px; transform: rotate(24deg); opacity: .85; }
.layer-bean.b3 { right: 30%; bottom: 30%; width: 36px; height: 26px; transform: rotate(40deg); opacity: .7; }
.layer-cup {
  right: 14%; bottom: 14%; width: clamp(150px, 20vw, 230px); height: clamp(120px, 16vw, 190px);
}
.cup-body {
  position: absolute; left: 0; bottom: 14px; width: 78%; height: 80%;
  border-radius: 10px 10px 46px 46px / 10px 10px 70px 70px;
  background: linear-gradient(160deg, #f3ead9, #d8c4a4);
  box-shadow: inset 0 5px 0 rgba(255, 255, 255, .55), 0 24px 40px -22px rgba(43, 29, 18, .7);
  overflow: hidden;
}
.cup-body::before { content: ""; position: absolute; left: 50%; top: 18%; transform: translateX(-50%); width: 64%; height: 24%; border-radius: 50%; background: radial-gradient(50% 70% at 50% 40%, #2b1d12, #5a3a1e); }
.cup-shine { position: absolute; left: 14%; top: 22%; width: 14%; height: 50%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .6), transparent); }
.cup-saucer { position: absolute; left: -8%; bottom: 0; width: 94%; height: 16px; border-radius: 50%; background: radial-gradient(50% 90% at 50% 30%, #d8c4a4, #a98a5e); }
.layer-steam { right: 26%; bottom: 32%; width: 60px; height: 90px; }
.layer-steam i {
  position: absolute; bottom: 0; width: 6px; height: 64px; border-radius: 6px;
  background: linear-gradient(180deg, transparent, rgba(43, 29, 18, .26), transparent); filter: blur(1.5px);
  transform-origin: bottom; animation: heroSteam 3.4s ease-in-out infinite;
}
.layer-steam i:nth-child(1) { left: 8px; animation-delay: 0s; }
.layer-steam i:nth-child(2) { left: 26px; height: 78px; animation-delay: .8s; }
.layer-steam i:nth-child(3) { left: 44px; animation-delay: 1.6s; }
@keyframes heroSteam {
  0% { opacity: 0; transform: translateY(8px) scaleY(.7) skewX(0deg); }
  35% { opacity: .8; }
  100% { opacity: 0; transform: translateY(-34px) scaleY(1.25) skewX(10deg); }
}

.hero-inner {
  position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: 0 clamp(20px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 80px); align-items: center;
}
.hero-kicker { grid-column: 1 / -1; font-family: var(--disp); font-weight: 600; letter-spacing: .34em; font-size: 14px; color: var(--amber-deep); margin-bottom: 8px; }
.hero-title { display: flex; }
.ht-vert {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--serif); font-weight: 800; line-height: 1.18; letter-spacing: .08em;
  font-size: clamp(46px, 9vw, 104px); color: var(--brown); height: clamp(360px, 56vh, 560px);
}
.ht-vert b { display: block; font-weight: 800; }
.ht-vert .amber {
  color: var(--amber-deep);
  text-shadow: 1px 1px 0 rgba(43, 29, 18, .12);
}
.hero-side { max-width: 380px; }
.hero-sub { font-family: var(--serif); font-size: clamp(15px, 2vw, 18px); color: var(--brown); line-height: 2.2; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; left: clamp(20px, 5vw, 56px); bottom: 26px; z-index: 4; display: grid; gap: 10px; justify-items: center;
  font-family: var(--disp); font-weight: 600; font-size: 12px; letter-spacing: .4em; color: var(--amber-deep);
}
.cue-line { width: 1px; height: 46px; background: linear-gradient(var(--amber-deep), transparent); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--amber-deep); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }

/* ===== section base ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 56px); }
.sec-head { margin-bottom: 56px; }
.sec-en {
  display: block; font-family: var(--disp); font-style: italic; font-weight: 500;
  font-size: clamp(40px, 7vw, 78px); line-height: 1; color: var(--amber-deep);
}
.sec-jp { display: block; font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: .22em; color: var(--brown); margin-top: 12px; padding-left: 4px; }
.sec-head.light .sec-en { color: var(--amber); }
.sec-head.light .sec-jp { color: rgba(245, 237, 225, .82); }

/* ===== story ===== */
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.story-no { font-family: var(--disp); font-style: italic; font-size: 16px; letter-spacing: .14em; color: var(--amber-deep); margin-bottom: 14px; }
.story-h { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.5; color: var(--brown); }
.story-body p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; line-height: 2.1; }
.dropcap .dc {
  float: left; font-family: var(--serif); font-weight: 800; font-size: 72px; line-height: .82;
  color: var(--amber-deep); margin: 6px 12px 0 0;
}
.sign { font-family: var(--serif); color: var(--brown); font-size: 14px; letter-spacing: .08em; }
.story-pillars { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; }
.pillar {
  position: relative; padding: 34px 26px; border-radius: 4px;
  background: linear-gradient(155deg, #fbf6ee, #f1e7d6);
  box-shadow: 8px 8px 22px -14px rgba(43, 29, 18, .45), -8px -8px 18px -16px rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .5);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: 14px 18px 34px -16px rgba(43, 29, 18, .5); }
.pillar-ic { font-family: var(--disp); font-style: italic; font-size: 30px; color: var(--amber); margin-bottom: 12px; }
.pillar-h { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--brown); margin-bottom: 8px; }
.pillar-t { font-size: 13.5px; color: var(--muted); line-height: 1.9; }

/* ===== wave separators ===== */
.wave { line-height: 0; }
.wave svg { display: block; width: 100%; height: clamp(60px, 9vw, 120px); }
.wave-up { background: transparent; }
.wave-up path { fill: var(--espresso); }
.wave-down path { fill: var(--espresso); }
.wave-down { margin-top: -1px; }

/* ===== menu (dark, horizontal scroll-snap) ===== */
.menu { position: relative; max-width: none; background: var(--espresso); color: var(--paper); padding-left: 0; padding-right: 0; margin-top: -1px; }
.menu > .sec-head, .menu > .menu-feature { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); }
.menu-note { font-family: var(--serif); font-size: 14px; letter-spacing: .08em; color: var(--amber); margin-bottom: 22px; }

/* ===== featured menu viewer ===== */
.menu-feature { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(26px, 4vw, 60px); align-items: center; padding-bottom: 30px; }
.menu-stage { position: relative; aspect-ratio: 5 / 4; border-radius: 8px; overflow: hidden; background: #16100a; box-shadow: 0 44px 90px -44px rgba(0, 0, 0, .95); }
.menu-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.16) saturate(1.08) contrast(1.03) brightness(.97); transition: clip-path .8s var(--ease); }
.menu-pic.over { clip-path: inset(0 0 0 100%); }
.menu-stage::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 16, 10, .1) 0%, transparent 30%, rgba(22, 16, 10, .88) 100%); }
.menu-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(18px, 3vw, 32px); color: var(--paper); }
.menu-cap-cat { display: block; font-family: var(--disp); font-style: italic; color: var(--amber); font-size: 14px; letter-spacing: .1em; }
.menu-cap-name { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 36px); margin: 3px 0 7px; line-height: 1.15; }
.menu-cap-desc { display: block; font-size: 13px; line-height: 1.85; color: rgba(245, 237, 225, .82); max-width: 42ch; }
.menu-cap-price { position: absolute; right: clamp(18px, 3vw, 32px); bottom: clamp(20px, 3vw, 34px); font-family: var(--disp); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); color: var(--amber); }

.menu-list { list-style: none; }
.menu-li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px; cursor: pointer;
  padding: 17px 4px; border-top: 1px solid rgba(245, 237, 225, .14); position: relative; transition: padding .35s var(--ease); }
.menu-li:last-child { border-bottom: 1px solid rgba(245, 237, 225, .14); }
.menu-li-no { font-family: var(--disp); font-style: italic; color: rgba(245, 237, 225, .4); font-size: 15px; transition: color .3s; }
.menu-li-name { font-family: var(--serif); font-weight: 700; font-size: 18.5px; color: rgba(245, 237, 225, .78); position: relative; transition: color .3s; }
.menu-li-name::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1.5px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.menu-li-price { font-family: var(--disp); font-weight: 600; color: rgba(245, 237, 225, .5); font-size: 15px; transition: color .3s; }
.menu-li.active { padding-left: 14px; }
.menu-li.active .menu-li-no, .menu-li.active .menu-li-price { color: var(--amber); }
.menu-li.active .menu-li-name { color: var(--paper); }
.menu-li.active .menu-li-name::after { transform: scaleX(1); }
@media (hover: hover) {
  .menu-li:hover { padding-left: 14px; }
  .menu-li:hover .menu-li-no, .menu-li:hover .menu-li-price { color: var(--amber); }
  .menu-li:hover .menu-li-name { color: var(--paper); }
  .menu-li:hover .menu-li-name::after { transform: scaleX(1); }
}
@media (max-width: 820px) { .menu-feature { grid-template-columns: 1fr; gap: 22px; } .menu-cap-desc { display: none; } }

/* ===== beans ===== */
.beans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bean-card {
  position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: center;
  padding: 24px; border-radius: 6px; background: rgba(255, 255, 255, .42); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s;
}
.bean-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .7); box-shadow: 0 24px 44px -28px rgba(43, 29, 18, .5); }
.bean-disc {
  width: 130px; height: 130px; border-radius: 50%; position: relative; overflow: hidden; flex: none;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .5), 0 14px 30px -18px rgba(43, 29, 18, .6);
}
.bean-disc img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) saturate(1.1) brightness(.95); }
.bean-roast { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 2;
  font-family: var(--disp); font-style: italic; font-size: 12px; letter-spacing: .08em; color: var(--paper);
  background: rgba(26, 17, 10, .7); padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.bean-origin { font-family: var(--disp); font-style: italic; font-size: 15px; color: var(--amber-deep); letter-spacing: .08em; }
.bean-name { font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--brown); margin: 2px 0 8px; }
.bean-desc { font-size: 13px; color: var(--muted); line-height: 1.85; margin-bottom: 12px; }
.bean-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.bean-notes span {
  font-family: var(--serif); font-size: 11.5px; letter-spacing: .04em; color: var(--matcha);
  border: 1px solid rgba(122, 138, 90, .5); padding: 3px 11px; border-radius: 99px;
}

/* ===== gallery (hover: clip-path reveal of caption) ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gcell { position: relative; overflow: hidden; border-radius: 5px; box-shadow: 0 18px 40px -28px rgba(43, 29, 18, .6); }
.gcell.tall { grid-row: span 2; }
.gcell.wide { grid-column: span 2; }
.gcell img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.32) saturate(1.05) brightness(.95); transform: scale(1.03);
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
.gcell::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(26, 17, 10, .78), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.gcell:hover img { transform: scale(1.1); filter: sepia(.1) brightness(1.02); }
.gcell:hover::before { opacity: 1; }
.gcap {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2; color: var(--paper);
  clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease) .05s;
}
.gcell:hover .gcap { clip-path: inset(0 0 0 0); }
.gcap b { display: block; font-family: var(--serif); font-weight: 700; font-size: 16px; }
.gcap span { font-family: var(--disp); font-style: italic; font-size: 13px; color: var(--amber); }

/* ===== access ===== */
.access { max-width: none; background: var(--espresso); color: var(--paper); }
.access-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: center; }
.hours { list-style: none; margin: 8px 0 30px; border-top: 1px solid rgba(245, 237, 225, .14); }
.hour-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid rgba(245, 237, 225, .14); }
.hour-day { font-family: var(--serif); font-weight: 600; font-size: 14.5px; }
.hour-time { font-family: var(--disp); font-style: italic; font-size: 18px; color: var(--amber); letter-spacing: .04em; }
.hour-tag { font-size: 11.5px; color: rgba(245, 237, 225, .6); }
.hour-row.closed .hour-time { color: rgba(245, 237, 225, .4); }
.access-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin: 4px 0 30px; }
.access-meta dt { font-family: var(--disp); font-style: italic; font-size: 14px; color: var(--amber); margin-bottom: 4px; }
.access-meta dd { font-size: 13.5px; color: rgba(245, 237, 225, .78); line-height: 1.7; }

/* map-style card (CSS only) */
.map-card {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, #20160d, #2f2113); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9);
  border: 1px solid rgba(201, 138, 59, .25);
}
.map-grid { position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(201, 138, 59, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 138, 59, .18) 1px, transparent 1px);
  background-size: 44px 44px; }
.map-block { position: absolute; border-radius: 3px; background: rgba(201, 138, 59, .12); border: 1px solid rgba(201, 138, 59, .22); }
.map-block.b1 { left: 12%; top: 16%; width: 26%; height: 28%; }
.map-block.b2 { right: 14%; bottom: 18%; width: 30%; height: 26%; }
.map-river { position: absolute; left: -10%; top: 60%; width: 130%; height: 16px; background: rgba(122, 138, 90, .35); transform: rotate(-8deg); border-radius: 99px; filter: blur(.5px); }
.map-road { position: absolute; background: rgba(245, 237, 225, .16); }
.map-road.r1 { left: 0; top: 42%; width: 100%; height: 8px; }
.map-road.r2 { left: 46%; top: 0; width: 8px; height: 100%; }
.map-pin { position: absolute; left: 46%; top: 42%; transform: translate(-50%, -50%); z-index: 3; display: grid; justify-items: center; gap: 6px; }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(201, 138, 59, .25), 0 0 18px rgba(201, 138, 59, .8); animation: pinPulse 2.4s var(--ease) infinite; }
@keyframes pinPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(201, 138, 59, .25), 0 0 18px rgba(201, 138, 59, .7); } 50% { box-shadow: 0 0 0 12px rgba(201, 138, 59, .08), 0 0 24px rgba(201, 138, 59, .9); } }
.pin-label { font-family: var(--disp); font-style: italic; font-size: 13px; color: var(--paper); background: rgba(26, 17, 10, .8); padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.map-tag { position: absolute; right: 14px; top: 14px; font-family: var(--serif); font-size: 11.5px; letter-spacing: .1em; color: var(--amber); }

/* ===== footer ===== */
.footer { background: var(--brown); color: var(--cream); padding: clamp(54px, 8vw, 90px) clamp(20px, 5vw, 56px) 40px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(245, 237, 225, .14); }
.footer-moon { display: block; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #f3e3c4, var(--amber) 70%); box-shadow: inset -6px -4px 0 rgba(26, 17, 10, .4); margin-bottom: 12px; }
.footer-name { font-family: var(--disp); font-weight: 600; font-size: 30px; letter-spacing: .22em; }
.footer-tag { font-family: var(--serif); font-size: 13px; letter-spacing: .12em; color: var(--amber); margin-top: 6px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--disp); font-style: italic; font-size: 18px; letter-spacing: .06em; color: var(--cream); position: relative; }
.footer-nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.footer-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-bottom { max-width: var(--maxw); margin: 26px auto 0; text-align: center; }
.footer-note { font-size: 12px; color: rgba(245, 237, 225, .55); max-width: 580px; margin: 0 auto 12px; line-height: 1.8; }
.footer-copy { font-family: var(--disp); font-style: italic; font-size: 13px; letter-spacing: .08em; color: rgba(245, 237, 225, .7); }

/* ===== responsive ===== */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .ht-vert { height: auto; writing-mode: horizontal-tb; }
  .ht-vert b { display: inline; }
  .layer-cup, .layer-steam { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-pillars { grid-template-columns: 1fr; }
  .beans-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .access-inner { grid-template-columns: 1fr; }
  .access-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { position: fixed; }
  .nav-links {
    inset: 0 0 auto; top: 0; height: 100svh; flex-direction: column; justify-content: center; align-items: center; gap: 30px;
    background: rgba(251, 246, 238, .97); backdrop-filter: blur(12px); transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav-links a { font-size: 26px; }
  .nav.open .nav-links { transform: none; }
  .nav-cta { bottom: 42px; left: 50%; transform: translateX(-50%); z-index: 320; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav.open .nav-cta { opacity: 1; pointer-events: auto; }
  .nav-burger { display: block; margin-left: auto; z-index: 330; }
  .nav.open .nav-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger i:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bean-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bean-notes { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .access-meta { grid-template-columns: 1fr; }
  .hour-row { grid-template-columns: 1fr auto; }
  .hour-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-mask] > span, [data-mask] > *, [data-skew] { opacity: 1 !important; transform: none !important; }
  .reveal-clip { clip-path: inset(0 0 -10% 0) !important; }
  html { scroll-behavior: auto; }
}
