/* ===========================
   MATCHAJI — LIGHT EDITORIAL
   =========================== */

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

:root {
  --bg:       #FDFBF7;
  --bg2:      #F4F1EB;
  --text:     #111111;
  --muted:    #888888;
  --accent:   #2D4C38;
  --border:   rgba(0,0,0,0.07);
  --ease:     cubic-bezier(0.32,0.72,0,1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg); color: var(--text);
  overflow-x: hidden;
  touch-action: pan-y pinch-zoom;
  -webkit-font-smoothing: antialiased;
}

/* NOISE */
.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.015;
}
/* SPLASH SCREEN */
.splash-screen {
  position: fixed; inset: 0; z-index: 9998;
  background: #111111;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.splash-screen.hidden { opacity: 0; visibility: hidden; }

.splash-icons { display: flex; gap: 2rem; align-items: center; justify-content: center; }
.splash-icon {
  width: 90px; height: 90px;
  background-image: url('splash-icons.png');
  background-size: 512px 341px;
  background-position-y: -113px;
  background-repeat: no-repeat;
  opacity: 0;
  animation: splashIconIn 0.8s var(--ease) forwards;
}
.splash-icon.i1 { background-position-x: -22px; animation-delay: 0.1s; }
.splash-icon.i2 { background-position-x: -130px; animation-delay: 0.3s; }
.splash-icon.i3 { background-position-x: -253px; animation-delay: 0.5s; }
.splash-icon.i4 { background-position-x: -369px; animation-delay: 0.7s; }

/* Exit: icons fly out one by one in reverse order */
.splash-screen.exiting .splash-icon {
  animation: splashIconOut 0.5s var(--ease) forwards;
  opacity: 1;
}
.splash-screen.exiting .splash-icon.i4 { animation-delay: 0s; }
.splash-screen.exiting .splash-icon.i3 { animation-delay: 0.1s; }
.splash-screen.exiting .splash-icon.i2 { animation-delay: 0.2s; }
.splash-screen.exiting .splash-icon.i1 { animation-delay: 0.3s; }

@keyframes splashIconIn {
  0% { opacity: 0; transform: rotate(-90deg) scale(0.5); filter: blur(5px); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); filter: blur(0px); }
}

@keyframes splashIconOut {
  0% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
  100% { opacity: 0; transform: scale(0.6) translateY(-20px); filter: blur(4px); }
}

@media (max-width: 600px) {
  .splash-icons { transform: scale(0.65); }
}

/* ── NAV ── */
.nav-wrap {
  position: fixed; top: 1.5rem; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: center; padding: 0 1.5rem;
}
.nav {
  width: 100%; max-width: 1100px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(253,251,247,0.75); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 9999px;
  padding: 0.55rem 0.55rem 0.55rem 2rem;
  box-shadow: 0 8px 40px -8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.45s var(--ease);
}
.nav-wrap.scrolled .nav {
  padding: 0.35rem 0.35rem 0.35rem 1.75rem;
  background: rgba(253,251,247,0.97);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1);
}
.logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none;
}
.nav-links { list-style: none; display: flex; gap: 0; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 0.45rem 1rem;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--text); color: var(--bg);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  padding: 0.7rem 1.4rem; border-radius: 9999px;
  transition: background 0.3s var(--ease), transform 0.3s;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--accent); transform: scale(1.02); }

/* BURGER */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger span:nth-child(2) { width: 16px; }

/* MOBILE OVERLAY MENU */
.mob-menu {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mob-menu.open { opacity: 1; visibility: visible; }
.mob-menu ul { list-style: none; text-align: center; }
.mob-menu li { margin-bottom: 1.5rem; overflow: hidden; }
.mob-menu a {
  font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); text-decoration: none; display: block;
  transform: translateY(110%);
  transition: transform 0.55s var(--ease);
  transition-delay: calc(var(--d) * 0.07s);
}
.mob-menu.open a { transform: translateY(0); }


/* ── HERO (Fabrica Full-Viewport Dark) ── */
.hero {
  position: relative;
  height: 100dvh; min-height: 600px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.1);
}
/* All text/content children sit above the background */
.hero-top-strip,
.hero-wordmark-wrap,
.hero-headline-block,
.hero-rule,
.hero-bottom-strip { position: relative; z-index: 2; }

/* Top strip */
.hero-top-strip {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 7.5rem 5vw 0;
}
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.hero-services-list {
  display: flex; flex-direction: column; gap: 0.3rem; text-align: right;
}
.hero-services-list span {
  font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.8);
}

/* Giant wordmark */
.hero-wordmark-wrap {
  padding: 0 5vw; align-self: center;
}
.hero-wordmark {
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 800; line-height: 0.9;
  letter-spacing: -0.05em; color: #fff;
}
.hero-sub {
  font-size: clamp(1.2rem, 3.5vw, 3rem);
  font-weight: 300; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem; padding-left: 0.2em;
}

/* Hero headline text block */
.hero-headline-block {
  padding: 2.5rem 5vw 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.hero-hl-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hero-hl-text {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 600; line-height: 1.35;
  color: rgba(255,255,255,0.85);
  max-width: 55ch;
}

/* Hero Icons Rule */
.hero-rule {
  display: flex; justify-content: center; align-items: center;
  padding: 0 5vw;
  /* border-top removed */
  margin-top: 2.5rem;
  gap: 4rem;
}
.hero-ico {
  width: 80px; height: 80px;
  background-image: url('splash-icons.png');
  background-size: 455px 303px;
  background-position-y: -100px;
  background-repeat: no-repeat;
  /* margin-top removed */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  cursor: pointer;
  opacity: 0.8;
}
.hero-ico.i1 { background-position-x: -19px; }
.hero-ico.i2 { background-position-x: -115px; }
.hero-ico.i3 { background-position-x: -225px; }
.hero-ico.i4 { background-position-x: -328px; }

.hero-ico:hover {
  transform: translateY(-10px) scale(1.15) rotate(-8deg);
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-rule { gap: 1.2rem; margin-top: 2rem; /* border-top-width removed */ }
  .hero-ico { 
    width: 60px; height: 60px;
    background-size: 341px 227px;
    background-position-y: -75px;
    /* margin-top removed */
    opacity: 0.9;
  }
  .hero-ico.i1 { background-position-x: -14px; }
  .hero-ico.i2 { background-position-x: -86px; }
  .hero-ico.i3 { background-position-x: -169px; }
  .hero-ico.i4 { background-position-x: -246px; }
  .hero-ico:hover { transform: translateY(-5px) scale(1.1); }
}

/* Bottom strip */
.hero-bottom-strip {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; padding: 1.5rem 5vw 3rem;
}
.hero-tagline {
  flex: 1; max-width: 600px;
}
.hero-tagline-jp {
  font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem;
  letter-spacing: 0.02em; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero-tagline-text {
  font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.4;
  font-weight: 500; color: #fff; letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero-copy {
  font-size: 0.7rem; color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em; white-space: nowrap; align-self: center;
}

/* WA card */
.hero-card {
  background: #fff; border-radius: 1.25rem;
  padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: center;
  min-width: 220px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hero-card-avatar {
  width: 3.25rem; height: 3.25rem; border-radius: 0.75rem; flex-shrink: 0;
  background: var(--bg2); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; color: var(--accent);
}
.hero-card-info { display: flex; flex-direction: column; }
.hero-card-role {
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted);
}
.hero-card-name {
  font-size: 1rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); line-height: 1.15; margin: 0.2rem 0 0.6rem;
}
.hero-card-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--text); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 0.4rem 0.9rem; border-radius: 9999px;
  text-decoration: none; width: fit-content;
  transition: background 0.25s var(--ease);
}
.hero-card-btn:hover { background: var(--accent); }




/* Nav dark on hero, light after scroll */
.nav {
  background: rgba(8,8,8,0.3) !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
}
.logo { color: #fff; }
.nav-links a { color: rgba(255,255,255,0.6); }
.nav-links a:hover { color: #fff; }
.nav-btn { background: rgba(255,255,255,0.12); color: #fff; }
.nav-btn:hover { background: #fff; color: var(--text); }
.burger span { background: #fff; }

.nav-wrap.scrolled .nav {
  background: rgba(253,251,247,0.97) !important;
  border-color: var(--border) !important;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1) !important;
}
.nav-wrap.scrolled .logo { color: var(--text); }
.nav-wrap.scrolled .nav-links a { color: var(--muted); }
.nav-wrap.scrolled .nav-links a:hover { color: var(--text); }
.nav-wrap.scrolled .nav-btn { background: var(--text); color: #fff; }
.nav-wrap.scrolled .burger span { background: var(--text); }


/* ── TICKER ── */
.ticker {
  overflow: hidden; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0; background: var(--bg2);
}
.ticker-track {
  display: flex; gap: 2rem; white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.bull { color: var(--accent); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.pad-section {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 0;
}
.section-head { margin-bottom: 3rem; }
.section-label {
  display: block; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.035em;
}
.section-title em { font-style: italic; font-weight: 300; }

/* ── JAPANESE TEA EXPLAINED (1 Viewport) ── */
.teas-section {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 0;
}
.teas-container {
  display: flex; flex-direction: column; justify-content: center; height: 100%; width: 100%;
}
.text-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.teas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  margin-top: 3rem;
}

/* ── Tea Item: frameless layout ── */
.tea-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: grab;
  user-select: none;
}
.tea-item.is-dragging { cursor: grabbing; }

/* ── Visual area: just the powder images, no card ── */
.tea-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: visible;
  touch-action: pan-y;
}
.powder-heap {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  z-index: 1;
  opacity: calc(1 - var(--drag-progress, 0) * 2.2);
  transition: opacity 0.1s ease;
  pointer-events: none;
  user-select: none;
}
.powder-swatch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  z-index: 2;
  clip-path: inset(0 0 calc(100% - var(--drag-progress, 0) * 102%) 0);
  transition: none;
  pointer-events: none;
  user-select: none;
}

/* ── Drag hint sits at bottom center of visual ── */
.drag-hint {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: rgba(0,0,0,0.35);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
}
.drag-hint svg { animation: bounceDown 1.4s ease-in-out infinite; }
.drag-hint span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Swap hint (mobile carousel arrow) ── */
.swap-hint {
  display: none; /* hidden on desktop, shown on mobile via media query */
}
.tea-item.has-interacted .drag-hint { opacity: 0; }
.tea-item.has-interacted .swap-hint { opacity: 0; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}
@keyframes bounceRight {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}
@keyframes bounceLeft {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-5px); }
}

/* ── Text info below visual ── */
.tea-info {
  position: relative;
  margin-top: 2.6rem;
  min-height: 7rem;
}

/* Both states stacked absolutely, crossfade between them */
.tea-name-state,
.tea-desc-state {
  position: absolute;
  top: 0; left: 0; right: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default: show name only */
.tea-name-state {
  opacity: 1;
  transform: translateY(0);
}
.tea-desc-state {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* After drag: swap states */
.tea-item.has-interacted .tea-name-state {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.tea-item.has-interacted .tea-desc-state {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Typography */
.tea-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-bottom: 0.4rem;
}
.tea-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}
.tea-desc-state h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.tea-desc-state p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(0,0,0,0.55);
  margin: 0 0 1rem;
}
.tea-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.tea-link:hover { opacity: 0.55; }

/* Carousel Indicators (Mobile Only) */
.teas-indicators {
  display: none;
}


/* ── PRODUCT LIST (Text-based rows) ── */
.line-list { border-top: 1px solid var(--border); margin-top: 2rem; }
.line-row {
  display: flex; align-items: center;
  padding: 2.5rem 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: transform 0.4s var(--ease), padding 0.4s;
}
.line-row:hover { transform: translateX(1.5rem); }
.line-n { font-size: 0.7rem; color: rgba(0,0,0,0.2); font-weight: 800; width: 4rem; flex-shrink: 0; }
.line-name { display: flex; align-items: baseline; gap: 1rem; flex: 1; }
.line-en { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.line-jp { font-size: 1.25rem; font-weight: 300; color: var(--muted); }
.line-detail { display: flex; flex-direction: column; gap: 0.2rem; text-align: right; flex-shrink: 0; }
.line-detail span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.line-arrow {
  font-size: 1.4rem; margin-left: 2rem; opacity: 0.25;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.line-row:hover .line-arrow { opacity: 1; transform: rotate(45deg); }

/* ── CEREMONIAL GRID ── */
.cer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
}
.cer-card {
  display: flex; flex-direction: column; gap: 1rem;
}
.cer-window {
  background: #fff; border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.cer-window-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; background: #fff;
}
.cer-window-title { font-size: 1.1rem; display: flex; align-items: baseline; gap: 0.4rem; }
.cer-window-title strong { font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.cer-window-title span { font-weight: 500; color: var(--muted); font-size: 0.8rem; }

.cer-window-dots { display: flex; gap: 0.4rem; }
.cer-window-dots i {
  width: 0.6rem; height: 0.6rem; border-radius: 50%; display: block;
}
.cer-window-dots i:nth-child(1) { background: #FF5F56; }
.cer-window-dots i:nth-child(2) { background: #FFBD2E; }
.cer-window-dots i:nth-child(3) { background: #27C93F; }

.cer-img-wrap {
  position: relative; overflow: hidden;
  background: var(--bg2); border-top: 1px solid var(--border);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cer-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.cer-card:hover .cer-img-wrap img { transform: scale(1.05); }

.cer-meta { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 0.5rem; }
.cer-meta span { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.cer-origin { color: var(--accent) !important; font-weight: 700 !important; }

.cer-desc { font-size: 0.85rem; color: var(--text); font-weight: 400; line-height: 1.5; margin-bottom: 0.8rem; }
.cer-pairing { font-size: 0.75rem; color: var(--accent); font-weight: 600; padding: 0.2rem 0.6rem; background: rgba(39, 201, 63, 0.1); border-radius: 4px; display: inline-block; margin-bottom: 0.8rem; width: fit-content; }
.cer-price { font-size: 0.85rem; color: var(--text); font-weight: 600; margin-bottom: 1rem; border-top: 1px dashed var(--border); padding-top: 0.8rem; display: flex; flex-direction: column; gap: 0.2rem;}

.cer-btn {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1.5px solid var(--border); width: fit-content;
  padding-bottom: 0.2rem; transition: border-color 0.3s;
}
.cer-btn:hover { border-color: var(--accent); }

/* ── TEASER ── */
.teaser { padding: 8rem 0; background: var(--bg2); border-top: 1px solid var(--border); }
.teaser-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.teaser-img-wrap {
  border-radius: 3rem; overflow: hidden; border: 1px solid var(--border);
}
.teaser-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.teaser-whisper {
  font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1.25rem; display: block;
}
.teaser-text h2 {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 1.5rem;
}
.teaser-text p { font-size: 1.05rem; line-height: 1.65; color: var(--muted); margin-bottom: 2.5rem; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: start; }
.about-lead {
  font-size: 1.2rem; font-weight: 500; color: var(--muted); line-height: 1.65; margin-bottom: 3rem;
}
.about-lead em { color: var(--accent); font-style: normal; font-weight: 700; }
.about-stats { border-top: 1px solid var(--border); margin-bottom: 3rem; }
.stat-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; border-bottom: 1px solid var(--border);
}
.stat-big { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-desc { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; text-align: right; max-width: 18ch; }

/* ── CTA (Double Bezel) ── */
.cta-section { padding: 10rem 0; }
.cta-box {
  background: var(--bg2); padding: 1rem; border-radius: 4.5rem;
  border: 1px solid var(--border);
}
.cta-inner {
  background: var(--bg); border-radius: 3.5rem; padding: 8rem 2rem;
  text-align: center; border: 1px solid var(--border);
}
.cta-h2 {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800;
  line-height: 0.95; letter-spacing: -0.04em; margin: 1.5rem 0 3rem;
}
.cta-h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.cta-actions { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cta-note { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── BUTTONS & LINKS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--text); color: var(--bg);
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  padding: 0.9rem 1.75rem; border-radius: 9999px;
  transition: background 0.3s var(--ease), transform 0.3s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent); transform: scale(1.02); }
.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); padding: 0.9rem 1.75rem; border-radius: 9999px;
  text-decoration: none; transition: color 0.25s, border-color 0.25s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(0,0,0,0.2); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 700; color: var(--text); text-decoration: none;
  border-bottom: 1.5px solid var(--border); padding-bottom: 0.1rem;
  transition: color 0.25s, border-color 0.25s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.btn-outline {
  display: inline-flex; align-items: center;
  font-size: 0.85rem; font-weight: 600; color: var(--text); text-decoration: none;
  border: 1.5px solid var(--border); padding: 0.75rem 1.5rem; border-radius: 9999px;
  transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--border); font-size: 1rem;
  color: var(--text); text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.icon-btn:hover { background: var(--text); color: var(--bg); }

/* ── FOOTER (Fabrica Style) ── */
.footer {
  padding: 8rem 0 0;
  background: #F8F8F8;
  color: #000;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 8rem;
}
.footer-contact {
  display: flex;
  flex-direction: column;
}
.footer-phone {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-email {
  font-size: clamp(1rem, 3vw, 3rem);
  font-weight: 800;
  color: #000;
  text-decoration: none;
  border-bottom: 3px solid #000;
  width: fit-content;
  line-height: 1.1;
  transition: opacity 0.3s;
}
.footer-email:hover { opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 6rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.col-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 1.5rem;
}
.footer-col a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s;
}
.footer-col a:hover { opacity: 0.5; }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 4rem;
}
.footer-logo-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 1rem;
  margin-left: -5px; /* Subtle optical alignment */
}

.footer-black-bar {
  background: #000;
  color: #fff;
  padding: 2.5rem 0;
}
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-legal {
  display: flex;
  gap: 2rem;
}
.footer-legal a {
  color: #fff;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.footer-legal a:hover { opacity: 1; }
.footer-built {
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .footer-top { flex-direction: column; gap: 4rem; }
  .footer-links { gap: 4rem; }
}
@media (max-width: 768px) {
  .footer-top { margin-bottom: 4rem; }
  .footer-links { flex-direction: column; gap: 3rem; }
  .footer-brand { padding-bottom: 4rem; }
  .footer-logo-img { margin-left: 0; }
  .footer-brand-sub { font-size: 2rem; }
  .footer-bar-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-legal { flex-direction: column; gap: 1rem; }
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay1 { transition-delay: 0.1s; }
.reveal-delay2 { transition-delay: 0.2s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .teas-grid { gap: 1.5rem; }
  .tea-body { padding: 1.5rem; }
  .tea-body h3 { font-size: 1.6rem; }
  .tea-body p { font-size: 0.85rem; }
  .hero-wordmark { font-size: clamp(4rem, 12vw, 10rem); }
}

@media (max-width: 900px) {
  .teaser-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  /* Hero bottom: stack tagline on bottom, card on top */
  .hero-bottom-strip {
    flex-direction: column-reverse; align-items: flex-start;
    gap: 1.5rem; padding: 1rem 5vw 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-btn { display: none; }
  .burger { display: flex; }
  .nav { padding: 0.5rem 0.5rem 0.5rem 1.25rem; }

  /* Hero mobile layout */
  .hero { min-height: 100svh; grid-template-rows: auto 1fr auto auto; }
  .hero-top-strip { padding: 6rem 5vw 0; text-align: center; justify-content: center; }
  .hero-eyebrow { font-size: 0.65rem; }
  .hero-wordmark-wrap { padding: 0 5vw; }
  .hero-rule { display: none; } 
  .hero-bottom-strip {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7.5rem 6vw 3rem;
    box-sizing: border-box;
    pointer-events: none;
  }
  .hero-tagline,
  .hero-card {
    pointer-events: auto;
  }
  .hero-tagline {
    text-align: left;
  }
  .hero-tagline-jp {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
  }
  .hero-tagline-text {
    font-size: 1.1rem;
    line-height: 1.45;
    max-width: 90%;
  }
  .hero-card {
    width: auto;
    max-width: none;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    align-self: flex-start;
  }
  .hero-card-avatar { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; border-radius: 0.6rem; }
  .hero-card-name { font-size: 0.95rem; }
  .hero-card-role { font-size: 0.58rem; }
  .hero-card-btn { font-size: 0.7rem; padding: 0.35rem 0.8rem; }

  /* Other sections */
  .line-en { font-size: clamp(1.5rem, 6vw, 2.5rem); }
  .line-jp { font-size: 1rem; }
  .line-detail { display: none; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-logo { font-size: 2rem; margin-bottom: 3rem; }
  .footer { padding: 5rem 0 3rem; }
  .cta-box { border-radius: 2.5rem; }
  .cta-inner { border-radius: 2rem; padding: 4rem 1.5rem; }
  .cta-h2 { font-size: clamp(2rem, 8vw, 3rem); }
  .pad-section { padding: 6rem 0; }
  .sect-title, .section-title { font-size: clamp(2rem, 8vw, 3rem); }
  .cer-en { font-size: clamp(1.8rem, 6vw, 3rem); }
  .cer-grid { grid-template-columns: 1fr; gap: 4rem; }
  .cer-card { max-width: 400px; margin: 0 auto; width: 100%; }
  .teas-section { min-height: auto; padding: 5rem 0; overflow: hidden; }
  .teas-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: none;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    margin-top: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .teas-grid::-webkit-scrollbar {
    display: none;
  }
  .tea-item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding: 0 2rem;
  }
  .teas-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.2rem;
    width: 100%;
  }
  .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
  }
  .indicator-dot.active {
    width: 24px;
    background: var(--accent);
    border-radius: 4px;
  }

  /* Swap arrow hint - mobile only */
  .swap-hint {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    right: 0.5rem;
    color: rgba(0,0,0,0.35);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
    animation: bounceRight 1.4s ease-in-out infinite;
    white-space: nowrap;
  }
  .swap-hint span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  /* Last slide: flip to left side */
  .swap-hint--back {
    right: auto;
    left: 0.5rem;
    flex-direction: row-reverse;
    animation: bounceLeft 1.4s ease-in-out infinite;
  }
}

@media (max-width: 420px) {
  .hero-wordmark { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero-card { flex-direction: row; align-items: center; gap: 0.75rem; }
}

/* ── PRODUCTS PAGE (Fabrica Style) ── */
.products-page {
  background: var(--bg);
  color: var(--text);
}
.products-header {
  padding: 12rem 5vw 4rem;
}
.ph-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}
.ph-desc {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  max-width: 600px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 500;
}

/* ── PRODUCT GRID ── */
.products-section {
  padding: 4rem 5vw 10rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 1.5rem;
}
.product-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  group;
}
.pi-img-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg2);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pi-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-item:hover .pi-img-wrap img {
  transform: scale(1.05);
}
.products-page .cer-btn {
  display: none !important;
}
.pi-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pi-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pi-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .products-header {
    padding: 8rem 5vw 2rem;
  }
}

/* ==========================================================================
   MATCHA WHISKING MINI-GAME
   ========================================================================== */

#whisk-game-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
  overflow: hidden;
  touch-action: none; /* Prevent scrolling on touch */
  user-select: none;
  cursor: grab;
  perspective: 1000px;
}

#whisk-game-container:active {
  cursor: grabbing;
}

.chawan-outer {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a1a, #333);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.2),
    inset 0 10px 20px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chawan-inner {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: #111;
  box-shadow: inset 0 20px 40px rgba(0,0,0,0.6);
  overflow: hidden;
}

.matcha-liquid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22430B; /* Deep traditional matcha green */
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.matcha-foam {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.foam-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Multi-animation: scale on spawn + organic drift/sway */
  animation: 
    bubbleFadeIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.2) forwards,
    floatSway 4s ease-in-out infinite alternate;
}

@keyframes bubbleFadeIn {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes floatSway {
  0% {
    margin-left: -3px;
    margin-top: -1.5px;
  }
  50% {
    margin-left: 3px;
    margin-top: 2px;
  }
  100% {
    margin-left: -1px;
    margin-top: -3px;
  }
}

.splash-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #8fce00;
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  animation: splashFade 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes splashFade {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(0) var(--splash-translate); opacity: 0; }
}

.chasen-container {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; /* Let the parent container handle drag events */
  transition: transform 0.05s linear;
  z-index: 10;
}

.chasen-shadow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
  transform: translateY(10px);
}

.chasen-whisk {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* Simulate top-down view of bamboo whisk */
  background: repeating-conic-gradient(
    from 0deg,
    #d4b872 0deg 10deg,
    #c4a45d 10deg 20deg
  );
  box-shadow: 
    inset 0 0 10px rgba(0,0,0,0.5),
    0 0 5px rgba(0,0,0,0.3);
  /* Apply 3D tilt based on JS vars */
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transform-style: preserve-3d;
}

.chasen-handle {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #a68a4a;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(30px);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}

.game-instructions {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted, #888888);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pulse-icon {
  animation: pulseMove 1.5s infinite alternate ease-in-out;
}

@keyframes pulseMove {
  0% { transform: translateX(-5px); }
  100% { transform: translateX(5px); }
}

#teaser-headline {
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

#teaser-headline.ready {
  color: var(--accent, #2D4C38);
  text-shadow: 0 0 10px rgba(45, 76, 56, 0.2);
  animation: successScale 0.5s ease-out;
}

@keyframes successScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ── FAQ SECTION (GEO Optimization) ── */
.faq-section {
  padding: 8rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.faq-header {
  margin-bottom: 4rem;
  max-width: 600px;
}
.faq-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.5;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  transition: color 0.3s var(--ease);
}
.faq-trigger:hover {
  color: var(--accent);
}
.faq-question {
  padding-right: 2rem;
}
.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  transition: transform 0.4s var(--ease);
}
/* Horizontal bar */
.faq-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}
/* Vertical bar */
.faq-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}
.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
}
.faq-item.active .faq-icon::before {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-inner {
  padding: 0 0 2rem 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}
.faq-inner p {
  margin-bottom: 1rem;
}
.faq-inner p:last-child {
  margin-bottom: 0;
}
.faq-inner strong {
  color: var(--text);
}
.faq-inner a {
  color: var(--accent);
  text-decoration: underline;
  transition: opacity 0.2s var(--ease);
}
.faq-inner a:hover {
  opacity: 0.8;
}
.faq-inner ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}
.faq-inner li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 6rem 0;
  }
  .faq-header {
    margin-bottom: 3rem;
  }
}
