/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --g0: #0a1a0f;
  --g1: #1b4332;
  --g2: #2d6a4f;
  --g3: #40916c;
  --g4: #52b788;
  --g5: #74c69d;
  --g6: #b7e4c7;
  --g7: #d8f3dc;
  --g8: #f0faf2;
  --cream: #faf8f3;
  --stone: #e8e0d0;
  --ink: #1a1a1a;
  --ink2: #3a3a3a;
  --ink3: #6a6a6a;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans: 'Inter', system-ui, sans-serif;
  --ff-jp: 'Noto Serif JP', serif;
  --radius: 16px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.14);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--g5); color: var(--g0); }

img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--g8); }
::-webkit-scrollbar-thumb { background: var(--g4); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--g1); }
h2 em { font-style: italic; color: var(--g3); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--g1); margin-bottom: 0.5rem; }
p { color: var(--ink2); font-size: 0.95rem; line-height: 1.8; }

/* ===== LAYOUT ===== */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; }
.center { text-align: center; }
.section-label {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 1rem;
}
.section-intro {
  max-width: 640px;
  margin: 1.2rem auto 3rem;
  font-size: 1.05rem;
  color: var(--ink3);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-logo {
  font-family: var(--ff-jp);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--g1);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-logo span {
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-left: 0.5rem;
  color: var(--g3);
  vertical-align: middle;
}

/* Hamburger button */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.menu-btn span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--g1);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
#navbar:not(.scrolled) .menu-btn span { background: rgba(255,255,255,0.8); }
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--g0);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.menu-close {
  position: absolute;
  top: 1.6rem; right: 2.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}
.menu-close:hover { color: var(--g5); }
.menu-overlay-inner {
  display: flex;
  gap: 5rem;
  position: relative;
  z-index: 2;
}
.menu-group { display: flex; flex-direction: column; gap: 0.3rem; }
.menu-group-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g3);
  margin-bottom: 0.8rem;
}
.menu-item {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s, transform 0.2s;
  display: block;
  padding: 0.2rem 0;
}
.menu-item:hover { color: var(--g5); transform: translateX(6px); }
.menu-item-active { color: var(--g4) !important; }
.menu-overlay-kanji {
  position: absolute;
  right: -2rem;
  bottom: -4rem;
  font-family: var(--ff-jp);
  font-size: 18rem;
  color: rgba(116,198,157,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Subpage hero */
.subpage-hero {
  height: 28vh;
  min-height: 180px;
  background: radial-gradient(ellipse 120% 100% at 60% 40%, #1b4332 0%, #0a1a0f 70%);
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}
.subpage-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.subpage-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  color: white;
  line-height: 1.1;
  margin: 0;
}
.subpage-title em { color: var(--g4); font-style: italic; }
.subpage-hero .hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--g4);
  margin-bottom: 0.6rem;
  font-family: var(--ff-sans);
}

/* Explore grid (home page) */
#explore { background: var(--g8); }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.explore-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  border: 1px solid var(--stone);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  transition: transform 0.28s, box-shadow 0.28s;
  overflow: hidden;
}
.explore-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g3), var(--g5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.explore-card:hover::before { transform: scaleX(1); }
.explore-icon { font-size: 2rem; width: 52px; height: 52px; flex-shrink: 0; }
.explore-icon svg { width: 52px; height: 52px; display: block; }
.explore-card h3 { font-size: 1.2rem; color: var(--g1); margin: 0; }
.explore-card p { font-size: 0.83rem; color: var(--ink3); line-height: 1.65; flex-grow: 1; margin: 0; }
.explore-arrow {
  font-size: 1.2rem;
  color: var(--g3);
  margin-top: 0.4rem;
  transition: transform 0.25s;
}
.explore-card:hover .explore-arrow { transform: translateX(5px); }

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 60% 40%, #1b4332 0%, #0a1a0f 55%, #0d2318 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 80% 20%, rgba(82,183,136,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(45,106,79,0.25) 0%, transparent 60%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(116, 198, 157, 0.35);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--g5);
  margin-bottom: 1.5rem;
  font-family: var(--ff-sans);
  font-weight: 400;
}
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.8rem;
}
.hero-kanji {
  font-family: var(--ff-jp);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  color: var(--g5);
  line-height: 1;
  letter-spacing: 0.1em;
  text-shadow: 0 0 80px rgba(82,183,136,0.4);
}
.hero-eng {
  font-family: var(--ff-sans);
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-sub {
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}
.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1.5px solid var(--g4);
  color: var(--g5);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-cta:hover {
  background: var(--g4);
  color: var(--g0);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(82,183,136,0.3);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block;
  width: 1.5px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--g4), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== ORIGIN ===== */
#origin { background: var(--cream); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.split-text p { margin-bottom: 1.2rem; }
.split-text h2 { margin-bottom: 1.5rem; }
.stat-row { display: flex; gap: 2rem; margin-top: 2.5rem; }
.stat { text-align: center; flex: 1; padding: 1.5rem 1rem; background: var(--g8); border-radius: var(--radius); }
.stat span { display: block; font-family: var(--ff-serif); font-size: 2.2rem; font-weight: 600; color: var(--g2); }
.stat small { font-size: 0.72rem; color: var(--ink3); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; }
.origin-visual { position: relative; }
.origin-caption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink3);
  margin-top: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== HISTORY — HORIZONTAL TIMELINE ===== */
#history {
  background: var(--g0);
  color: white;
  padding: 7rem 0 4rem;
  overflow: hidden;
}
#history h2 { color: var(--g5); }
#history h2 em { color: var(--g4); }
#history .section-label { color: var(--g4); }
.history-header { margin-bottom: 4rem; }

/* Outer wrapper — full width */
.htl-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Track line centered vertically — behind everything */
.htl-track-wrap {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  height: 2px;
  pointer-events: none;
  z-index: 0;
}
.htl-line {
  width: 100%;
  height: 2px;
  background: rgba(116,198,157,0.12);
  position: relative;
}
.htl-line-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g3), var(--g5));
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 2px;
}

/* Scrollable row — above the track line */
.htl-scroll {
  display: flex;
  align-items: stretch;
  padding: 2rem 6vw;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  position: relative;
  z-index: 2;
}
.htl-scroll::-webkit-scrollbar { display: none; }
.htl-scroll.dragging { cursor: grabbing; }

/* Each era column */
.htl-era {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: center;
}
.htl-era-last { width: 320px; }

/* Top / bottom card alternation */
.htl-card {
  width: 240px;
  background: #0e2318;
  border: 1px solid rgba(116,198,157,0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.htl-card:hover {
  border-color: rgba(116,198,157,0.5);
  background: #122a1e;
  transform: translateY(-4px);
}
.htl-card-top  { margin-bottom: 0; order: 1; }
.htl-card-bottom { margin-top: 0; order: 3; }

/* Node row (dot on the line) */
.htl-node {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  order: 2;
  position: relative;
  z-index: 4;
}
.htl-dot {
  width: 14px; height: 14px;
  background: var(--g3);
  border: 2.5px solid var(--g5);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(82,183,136,0.15), 0 0 16px rgba(82,183,136,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}
.htl-era:hover .htl-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 7px rgba(82,183,136,0.2), 0 0 24px rgba(82,183,136,0.4);
}
.htl-node-last .htl-dot {
  background: var(--g4);
  border-color: white;
  width: 18px; height: 18px;
}

/* Spacer pushes card to top or bottom */
.htl-spacer { flex: 1; order: 1; min-height: 80px; }
.htl-card-bottom ~ .htl-node { }
.htl-era:has(.htl-card-bottom) .htl-spacer { order: 1; }
.htl-era:has(.htl-card-bottom) .htl-node  { order: 2; }
.htl-era:has(.htl-card-bottom) .htl-card-bottom { order: 3; }

/* Card content */
.htl-icon {
  width: 48px; height: 48px;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}
.htl-icon svg { width: 100%; height: 100%; }
.htl-year {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g4);
  font-weight: 600;
  font-family: var(--ff-sans);
}
.htl-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  color: var(--g6);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}
.htl-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin: 0;
}
.htl-card em { color: var(--g5); font-style: italic; }

/* Nav arrows + dots */
.htl-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}
.htl-nav-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(116,198,157,0.25);
  color: var(--g5);
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.htl-nav-btn:hover {
  background: rgba(82,183,136,0.15);
  border-color: var(--g4);
  transform: scale(1.1);
}
.htl-progress-dots { display: flex; gap: 6px; align-items: center; }
.htl-dot-ind {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(116,198,157,0.25);
  transition: background 0.3s, transform 0.3s;
}
.htl-dot-ind.active {
  background: var(--g4);
  transform: scale(1.5);
}

/* ===== BENEFITS ===== */
#benefits { background: var(--g8); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.benefit-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--stone);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g3), var(--g5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--g6); }
.benefit-icon { font-size: 2rem; margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.benefit-card p { font-size: 0.88rem; color: var(--ink3); }

/* ===== TYPES ===== */
#types { background: var(--cream); }
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.type-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  border: 1px solid var(--stone);
  transition: transform 0.3s, box-shadow 0.3s;
}
.type-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.type-grade {
  background: var(--g1);
  color: var(--g5);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
}
.type-color { height: 80px; }
.type-card h3 { padding: 1.2rem 1.5rem 0.5rem; font-size: 1.3rem; }
.type-card p { padding: 0 1.5rem 1rem; font-size: 0.85rem; color: var(--ink3); }
.type-card ul { padding: 0 1.5rem 1.5rem; list-style: none; }
.type-card li { font-size: 0.8rem; color: var(--ink3); padding: 0.3rem 0; border-bottom: 1px solid var(--g8); }
.type-card li:last-child { border-bottom: none; }
.type-card li strong { color: var(--g2); }
.prep-section {
  margin-top: 4rem;
  background: var(--g1);
  border-radius: var(--radius);
  padding: 3rem;
  color: white;
}
.prep-section h3 { color: var(--g5); font-size: 1.6rem; margin-bottom: 2rem; text-align: center; }
.prep-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.prep-step { text-align: center; }
.prep-num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--g4);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.prep-step h4 { font-family: var(--ff-sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g6); margin-bottom: 0.5rem; }
.prep-step p { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.prep-step em { color: var(--g5); font-style: italic; }

/* ===== ILLUSTRATIONS ===== */
.illustration-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.origin-visual .illustration-img {
  box-shadow: var(--shadow-lg);
}
.illustration-caption {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.8rem;
  letter-spacing: 0.08em;
  font-style: italic;
}
.ceremony-hero-illustration {
  max-width: 760px;
  margin: 0 auto 5rem;
}
.ceremony-illustration {
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}

/* ===== CEREMONY ===== */
#ceremony { background: var(--g0); color: white; }
#ceremony h2 { color: var(--g5); }
#ceremony h2 em { color: var(--g4); }
#ceremony .section-label { color: var(--g4); }
#ceremony .section-intro { color: rgba(255,255,255,0.6); }

.ceremony-sub-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--g5);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Principles */
/* Combined Chado section */
.chado-combined {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.chado-principles {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.chado-principle {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(116,198,157,0.12);
  border-radius: 10px;
  transition: background 0.25s, border-color 0.25s;
}
.chado-principle:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(116,198,157,0.3);
}
.chado-kanji {
  font-family: var(--ff-jp);
  font-size: 2.2rem;
  color: var(--g4);
  line-height: 1;
  flex-shrink: 0;
  text-shadow: 0 0 20px rgba(82,183,136,0.3);
}
.chado-principle strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--g5);
  margin-bottom: 0.25rem;
}
.chado-principle p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }

/* Utensil interactive tabs */
.utensil-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.4rem 0 1rem;
}
.utensil-tab {
  font-family: var(--ff-jp);
  font-size: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(116,198,157,0.15);
  border-radius: 8px;
  color: rgba(255,255,255,0.45);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.utensil-tab:hover {
  background: rgba(255,255,255,0.07);
  color: var(--g5);
  border-color: rgba(116,198,157,0.35);
}
.utensil-tab.active {
  background: rgba(82,183,136,0.15);
  border-color: var(--g4);
  color: var(--g5);
}
.utensil-display { position: relative; }
.utensil-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(116,198,157,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}
.utensil-panel.active { display: grid; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.utensil-svg { width: 100%; height: auto; display: block; }
.utensil-text h4 {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--g5);
  margin-bottom: 0.6rem;
}
.utensil-text p { font-size: 0.84rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 1rem; }
.utensil-facts {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.utensil-facts li {
  font-size: 0.75rem;
  color: var(--g4);
  padding-left: 1rem;
  position: relative;
}
.utensil-facts li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--g6);
  opacity: 0.5;
}

/* Styles */
.ceremony-styles { margin-top: 5rem; }
.styles-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.style-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(116,198,157,0.15);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.style-card:hover {
  border-color: rgba(116,198,157,0.35);
  background: rgba(255,255,255,0.06);
}
.style-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g4);
  display: block;
  margin-bottom: 0.5rem;
}
.style-card h4 {
  font-family: var(--ff-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--g5);
  margin-bottom: 1rem;
}
.jp-small {
  font-family: var(--ff-jp);
  font-size: 1rem;
  color: var(--g4);
  margin-left: 0.4rem;
}
.style-card p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; line-height: 1.8; }
.style-details { list-style: none; padding: 0; border-top: 1px solid rgba(116,198,157,0.1); }
.style-details li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(116,198,157,0.07);
}
.style-details li:last-child { border-bottom: none; }
.style-infographic { margin: 1.4rem 0 0.4rem; }
.style-svg { width: 100%; height: auto; display: block; border-radius: 8px; }


/* Seasons */
.ceremony-seasons { margin-top: 5rem; }
.seasons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.season-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(116,198,157,0.1);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.season-item:hover {
  border-color: rgba(116,198,157,0.3);
  background: rgba(255,255,255,0.06);
  transform: translateY(-5px);
}
.season-kanji {
  font-family: var(--ff-jp);
  font-size: 3rem;
  color: var(--g4);
  line-height: 1;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}
.season-item h4 {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--g6);
  margin-bottom: 0.6rem;
}
.season-item p { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ===== INDIA ===== */
#india { background: var(--cream); }

.india-sub-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--g1);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Market stats */
.india-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 4rem;
}
.india-stat {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  border: 1px solid var(--stone);
  box-shadow: var(--shadow-sm);
}
.india-stat span {
  display: block;
  font-family: var(--ff-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--g2);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.india-stat small {
  font-size: 0.72rem;
  color: var(--ink3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Price bands */
.india-bands { margin-bottom: 4rem; }
.bands-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.band-card {
  border-radius: var(--radius);
  padding: 2rem;
  background: white;
  border: 1px solid var(--stone);
}
.band-budget { }
.band-mid    { }
.band-premium{ }
.band-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 0.4rem;
}
.band-price {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  color: var(--g1);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.band-card p { font-size: 0.83rem; color: var(--ink3); line-height: 1.6; }

/* Filter */
.india-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.india-filter-btn {
  padding: 0.42rem 1.1rem;
  border: 1.5px solid var(--g5);
  background: transparent;
  color: var(--g2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.india-filter-btn.active,
.india-filter-btn:hover {
  background: var(--g2);
  color: white;
  border-color: var(--g2);
}

/* Brand grid */
.india-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
  margin-bottom: 4rem;
}
.india-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.6rem;
  border: 1px solid var(--stone);
  position: relative;
  transition: transform 0.28s, box-shadow 0.28s, opacity 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.india-card.hidden { display: none; }
.india-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.india-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g3), var(--g5));
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.india-card:hover::before { transform: scaleX(1); }

.india-rank {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--ff-serif);
  font-size: 0.8rem;
  color: var(--ink3);
  font-style: italic;
}
.india-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}
.india-card-top h3 {
  font-size: 1.15rem;
  color: var(--g1);
  margin: 0;
  padding-right: 2.5rem;
}
.india-score {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g3);
  background: var(--g8);
  border-radius: 8px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.india-origin {
  font-size: 0.75rem;
  color: var(--ink3);
  margin: 0;
}
.india-grade {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  width: fit-content;
  margin: 0;
}
.grade-ceremonial { background: #e8f5ec; color: var(--g2); border: 1px solid var(--g7); }
.grade-premium    { background: #edf7ef; color: var(--g3); border: 1px solid var(--g6); }
.grade-mixed      { background: #f5f0e8; color: #8a6c2a; border: 1px solid #e0d8c8; }

.india-price {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.per-gram {
  font-size: 0.75rem;
  color: var(--ink3);
  font-weight: 400;
  margin-left: 0.3rem;
}
.india-desc {
  font-size: 0.82rem;
  color: var(--ink3);
  line-height: 1.65;
  flex-grow: 1;
  margin: 0;
}
.india-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.2rem;
}
.india-tags span {
  font-size: 0.63rem;
  background: var(--g8);
  color: var(--g2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid var(--g7);
}
.india-avail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px solid var(--g8);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}
.avail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--g3);
  background: var(--g8);
  border: 1px solid var(--g7);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.avail-link:hover {
  background: var(--g6);
  border-color: var(--g5);
  color: #fff;
}
.avail-link svg { flex-shrink: 0; }

/* Segment picks */
.india-segments { margin-bottom: 3rem; }
.segments-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.segment-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--stone);
  transition: transform 0.28s, box-shadow 0.28s;
}
.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.segment-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.segment-card h4 {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--g1);
  margin-bottom: 0.7rem;
}
.segment-card ul { list-style: none; padding: 0; }
.segment-card li {
  font-size: 0.8rem;
  color: var(--ink3);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--g8);
  line-height: 1.4;
}
.segment-card li:last-child { border-bottom: none; }

/* Note */
.india-note {
  background: var(--g8);
  border-radius: var(--radius);
  padding: 1.4rem 2rem;
  border: 1px solid var(--g7);
}
.india-note p { font-size: 0.8rem; color: var(--ink3); margin: 0; line-height: 1.7; }
.india-note strong { color: var(--ink2); }

/* ===== MODERN ===== */
#modern { background: linear-gradient(180deg, var(--g8) 0%, var(--cream) 100%); }
.modern-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.modern-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--stone);
  transition: transform 0.3s, box-shadow 0.3s;
}
.modern-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.modern-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #d8f3dc, #b7e4c7);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.modern-icon svg { width: 30px; height: 30px; }
.modern-card h3 { margin-bottom: 0.6rem; }
.modern-card p { font-size: 0.85rem; color: var(--ink3); }

/* ===== MAP ===== */
#map { background: var(--g0); padding: 7rem 0; }
#map h2 { color: var(--g5); }
#map h2 em { color: var(--g4); }
#map .section-label { color: var(--g4); }
#map .section-intro { color: rgba(255,255,255,0.6); }
.map-legend {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.legend-item {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(116,198,157,0.2);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  user-select: none;
}
.legend-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(116,198,157,0.4); }
.legend-item.active { background: rgba(116,198,157,0.12); border-color: rgba(116,198,157,0.5); color: #fff; }
.legend-item.dimmed { opacity: 0.35; }
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.origin { background: #ffd700; }
.legend-dot.cafe { background: #74c69d; }
#matcha-map {
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(116,198,157,0.2);
}
.leaflet-popup-content-wrapper {
  background: #0e2318 !important;
  color: #fff !important;
  border-radius: 12px !important;
  border: 1px solid rgba(116,198,157,0.3) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  padding: 0 !important;
}
.leaflet-popup-tip-container { margin-top: -1px; }
.leaflet-popup-tip { background: #0e2318 !important; }
.leaflet-popup-close-button { color: rgba(255,255,255,0.5) !important; top: 10px !important; right: 12px !important; font-size: 16px !important; }
.leaflet-popup-close-button:hover { color: #fff !important; }
.leaflet-popup-content { margin: 0 !important; width: auto !important; }
.map-popup {
  padding: 16px 18px 14px;
  min-width: 230px;
  max-width: 270px;
}
.map-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.map-popup h4 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: #74c69d;
  margin: 0;
  line-height: 1.3;
}
.map-popup .map-detail {
  font-size: 0.68rem;
  color: #52b788;
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}
.map-popup .map-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0 0 0.7rem;
}
.map-popup .tag {
  display: inline-block;
  background: rgba(82,183,136,0.18);
  color: #74c69d;
  font-size: 0.63rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid rgba(82,183,136,0.25);
  letter-spacing: 0.03em;
}
@keyframes mapPulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(2.2); opacity: 0; } }

/* ===== GETTING STARTED ===== */
#getting-started { background: var(--cream); }
#getting-started h2 em { color: var(--g2); }
#getting-started .section-label { color: var(--g2); }
#getting-started .section-intro { color: var(--ink3); }
.gs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.gs-card {
  background: white;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.gs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--g6);
}
.gs-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}
.gs-icon svg { width: 52px; height: 52px; }
.gs-content { flex: 1; min-width: 0; }
.gs-step {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--g3);
  margin-bottom: 0.4rem;
}
.gs-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--g1);
  margin-bottom: 0.6rem;
}
.gs-card p { font-size: 0.84rem; color: var(--ink3); line-height: 1.75; margin-bottom: 0.8rem; }
.gs-tip {
  font-size: 0.78rem;
  color: var(--g2);
  background: var(--g8);
  border-left: 3px solid var(--g5);
  border-radius: 0 6px 6px 0;
  padding: 0.5rem 0.75rem;
  line-height: 1.6;
}
.gs-tip strong { color: var(--g1); }

/* Milk rank bars */
.gs-milk-rank { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.5rem; }
.milk-row { display: flex; align-items: center; gap: 0.6rem; }
.milk-label { font-size: 0.72rem; color: var(--ink3); width: 90px; flex-shrink: 0; }
.milk-bar { flex: 1; height: 6px; background: var(--stone); border-radius: 10px; overflow: hidden; }
.milk-fill { height: 100%; background: linear-gradient(90deg, var(--g4), var(--g5)); border-radius: 10px; }
.milk-score { font-size: 0.68rem; font-weight: 600; color: var(--g2); width: 48px; text-align: right; }

/* Hot/Iced toggle */
.gs-toggle-tabs { display: flex; gap: 0.4rem; margin: 0.6rem 0 0.5rem; }
.gs-tab {
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--stone);
  background: white;
  color: var(--ink3);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.gs-tab.active { background: var(--g7); border-color: var(--g5); color: var(--g1); }
.gs-mode-content { margin-top: 0; }
.gs-mode-content.hidden { display: none; }
.gs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.gs-list li {
  font-size: 0.78rem;
  color: var(--ink3);
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}
.gs-list li::before { content: '—'; position: absolute; left: 0; color: var(--g5); }

/* Color quality guide */
.gs-color-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.7rem; }
.color-swatch { display: flex; flex-direction: column; gap: 0.3rem; }
.swatch-bar { height: 28px; border-radius: 6px; }
.swatch-label { font-size: 0.65rem; font-weight: 600; color: var(--ink2); }
.swatch-note { font-size: 0.62rem; color: var(--ink3); }

@media (max-width: 900px) { .gs-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .gs-color-guide { grid-template-columns: repeat(2, 1fr); } .gs-card { flex-direction: column; gap: 1rem; } }

/* ===== PRODUCTS ===== */
#products { background: var(--cream); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.product-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--stone);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 0.8rem;
}
.product-origin { font-size: 0.78rem; color: var(--ink3); margin-bottom: 0.8rem; }
.product-card p:last-of-type { font-size: 0.85rem; color: var(--ink3); margin-bottom: 1rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.product-tags span {
  font-size: 0.68rem;
  background: var(--g8);
  color: var(--g2);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid var(--g7);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--g2);
  text-decoration: none;
  border-bottom: 1px solid var(--g6);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.product-link:hover { color: var(--g1); border-color: var(--g3); }

/* ===== CAFES ===== */
#cafes { background: var(--g8); }
.cafes-filter { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.45rem 1.2rem;
  border: 1.5px solid var(--g5);
  background: transparent;
  color: var(--g2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--g2);
  color: white;
  border-color: var(--g2);
}
.cafes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.cafe-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--stone);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}
.cafe-card.hidden { display: none; }
.cafe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cafe-flag { font-size: 2rem; flex-shrink: 0; }
.cafe-location { font-size: 0.75rem; color: var(--ink3); margin-bottom: 0.6rem; }
.cafe-info p:last-of-type { font-size: 0.85rem; color: var(--ink3); margin-bottom: 0.8rem; }
.cafe-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cafe-tags span {
  font-size: 0.65rem;
  background: var(--g8);
  color: var(--g2);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 500;
  border: 1px solid var(--g7);
}

/* ===== NEWS ===== */
#news { background: var(--g0); }
#news h2 { color: var(--g5); }
#news h2 em { color: var(--g4); }
#news .section-label { color: var(--g4); }
#news .section-intro { color: rgba(255,255,255,0.6); }

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0 1.2rem;
}
.news-tab {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(116,198,157,0.2);
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.news-tab:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); border-color: rgba(116,198,157,0.35); }
.news-tab.active { background: rgba(82,183,136,0.15); border-color: var(--g4); color: var(--g5); }

.news-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
}
.news-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s;
}
.news-status-dot--loading { background: #c9a84c; animation: pulse 1.4s infinite; }
.news-status-dot--live    { background: #52b788; }
.news-status-dot--error   { background: #e07070; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.news-refresh {
  background: none; border: none;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem; cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.news-refresh:hover { color: var(--g4); background: rgba(116,198,157,0.08); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Skeleton loader */
.news-skeleton {
  height: 170px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* News card */
.news-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(116,198,157,0.12);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  overflow: hidden;
}
.news-card:hover {
  border-color: rgba(116,198,157,0.35);
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}
.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  padding: 1.3rem 1.4rem 1rem;
}
.news-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}
.news-cat {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}
.news-cat-health  { background: rgba(82,183,136,0.18); color: #74c69d; }
.news-cat-culture { background: rgba(201,168,76,0.15); color: #c9a84c; }
.news-cat-trends  { background: rgba(116,198,157,0.12); color: #95d5b2; }
.news-cat-recipe  { background: rgba(183,228,199,0.12); color: #b7e4c7; }
.news-dot { color: rgba(255,255,255,0.2); font-size: 0.65rem; }
.news-source { font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: capitalize; }
.news-card time { font-size: 0.65rem; color: rgba(255,255,255,0.3); }
.news-card-title {
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--g5);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex: 1;
}
.news-desc {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin: 0;
}
.news-card-footer {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(116,198,157,0.08);
}
.news-read {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--g4);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.news-card:hover .news-read { color: var(--g5); }

/* Empty state */
.news-empty { text-align: center; padding: 4rem 0; }
.news-empty.hidden { display: none; }
.news-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.news-empty p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.news-empty-sub { font-size: 0.78rem !important; color: rgba(255,255,255,0.3) !important; margin-top: 0.4rem; }

@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .news-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
#footer {
  background: var(--g0);
  padding: 4rem 0;
  text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.footer-logo {
  font-family: var(--ff-jp);
  font-size: 1.8rem;
  color: var(--g5);
  margin-bottom: 0.8rem;
}
.footer-logo span {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--g4);
  vertical-align: middle;
  margin-left: 0.5rem;
}
.footer-tagline { color: rgba(255,255,255,0.45); font-style: italic; font-family: var(--ff-serif); font-size: 1.1rem; margin-bottom: 2.5rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.footer-links a { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--g5); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-made { font-size: 0.75rem; color: rgba(255,255,255,0.25); margin-top: 0.4rem; }
.footer-insta {
  color: var(--g4);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-insta:hover { color: var(--g5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .chado-combined { grid-template-columns: 1fr; gap: 2rem; }
  .seasons-row { grid-template-columns: repeat(2, 1fr); }
  .segments-grid { grid-template-columns: repeat(3, 1fr); }
  .india-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #navbar { padding: 1rem 1.5rem; }
  .split-layout { grid-template-columns: 1fr; gap: 3rem; }
  .stat-row { gap: 1rem; }
  .htl-era { width: 230px; }
  .htl-card { width: 200px; }
  .prep-steps { grid-template-columns: repeat(2, 1fr); }
  .styles-split { grid-template-columns: 1fr; }
  .utensil-panel { grid-template-columns: 1fr; }
  .utensil-svg { max-width: 180px; margin: 0 auto; }
  .bands-row { grid-template-columns: 1fr; }
  .segments-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-overlay-inner { flex-direction: column; gap: 2rem; padding: 6rem 2rem 2rem; align-items: flex-start; overflow-y: auto; }
  .menu-overlay-kanji { display: none; }
  section { padding: 5rem 0; }
}
@media (max-width: 600px) {
  .prep-steps { grid-template-columns: 1fr; }
  .stat-row { flex-direction: column; }
  .hero-kanji { font-size: 5rem; }
  .seasons-row { grid-template-columns: repeat(2, 1fr); }
  .india-stats { grid-template-columns: repeat(2, 1fr); }
  .segments-grid { grid-template-columns: 1fr 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
}
