/* ============================================================
   AKARI FARMS — SHARED STYLESHEET
   Pages: index.html (pg-home), growing-guide-lettuce.html (pg-lettuce),
   growing-guide-herbs.html (pg-herbs), growing-guide-microgreens.html (pg-microgreens)
   ============================================================ */

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

/* ── ACCESSIBILITY UTILITIES ── */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── TOKENS ── */
:root {
  --black: #0d1f10;
  --surface: #111e13;
  --surface-2: #162019;
  --amber: #c9883a;
  --amber-lt: #e8b06a;
  --sage: #7ab87f;
  --sage-dk: #4a8c54;
  --cream: #f0ebe2;
  --mist: #c8c4bc;
  --rule: rgba(74, 140, 84, .2);

  /* Jukichi's Garden — parchment book tokens */
  --parchment: #FEFDF9;
  --parchment-deep: #F6F1E3;
  --ink: #0d1f10;
  --water: #7FB5B5;
  --water-deep: #4E8C8C;
  --koi: #E07A3F;
}

/* ── BASE ── */
html,
body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Inria Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* .site-topbar breaks out to full width using 100vw, which on
     browsers/OSes that reserve space for the vertical scrollbar
     (Windows by default, macOS with a mouse connected) is a few
     pixels wider than the true visible viewport. This keeps that
     from ever producing a spurious horizontal scrollbar. */
  overflow-x: hidden;
}

body.pg-home {
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* ── KANJI WATERMARK ── */
body.pg-lettuce::before,
body.pg-herbs::before,
body.pg-microgreens::before {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(280px, 50vw, 640px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 184, 127, .05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

body.pg-lettuce::before {
  content: '菜';
}

body.pg-herbs::before {
  content: '明';
}

body.pg-microgreens::before {
  content: '芽';
}

body.pg-home::before {
  content: '明';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(320px, 55vw, 700px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 184, 127, .06);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.pg-home::before {
    font-size: 280px;
  }
}

/* ── SVG BACKGROUND PATTERN (guide pages) ── */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.pg-lettuce .bg-pattern {
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%237ab87f' stroke-width='0.8'%3E%3Cpath d='M30 5 Q35 20 30 30 Q25 20 30 5Z'/%3E%3Cpath d='M30 5 Q45 15 40 30 Q32 22 30 5Z'/%3E%3Cpath d='M30 5 Q15 15 20 30 Q28 22 30 5Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

body.pg-herbs .bg-pattern {
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%237ab87f' stroke-width='0.8'%3E%3Cellipse cx='60' cy='60' rx='8' ry='18' transform='rotate(0 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='8' ry='18' transform='rotate(45 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='8' ry='18' transform='rotate(90 60 60)'/%3E%3Cellipse cx='60' cy='60' rx='8' ry='18' transform='rotate(135 60 60)'/%3E%3Ccircle cx='60' cy='60' r='3'/%3E%3Cline x1='60' y1='42' x2='60' y2='20'/%3E%3Cline x1='78' y1='52' x2='96' y2='40'/%3E%3Cline x1='78' y1='68' x2='96' y2='80'/%3E%3Cline x1='60' y1='78' x2='60' y2='100'/%3E%3Cline x1='42' y1='68' x2='24' y2='80'/%3E%3Cline x1='42' y1='52' x2='24' y2='40'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

body.pg-microgreens .bg-pattern {
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%237ab87f' stroke-width='0.8'%3E%3Cpath d='M40 60 Q40 40 40 20 Q50 30 55 20 Q50 35 60 30 Q50 40 55 50 Q47 45 40 60Z' /%3E%3Cpath d='M40 60 Q40 40 40 20 Q30 30 25 20 Q30 35 20 30 Q30 40 25 50 Q33 45 40 60Z' /%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ── HERO BACKGROUND PHOTO ── */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--black);
  background-blend-mode: multiply;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 40%, var(--black) 85%);
}

body.pg-home .hero-bg {
  background-image: url('images/bg-1.jpg');
}

body.pg-lettuce .hero-bg {
  background-image: url('images/bg-2.jpg');
}

body.pg-herbs .hero-bg,
body.pg-microgreens .hero-bg {
  background-image: url('images/bg-3.jpg');
}

/* ── AMBIENT GLOW ── */
.glow-top,
.glow-amber,
.glow-bottom {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body.pg-home .glow-top {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(42, 92, 53, .25) 0%, transparent 70%);
}

body.pg-home .glow-bottom {
  bottom: -200px;
  left: 30%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(122, 184, 127, .08) 0%, transparent 70%);
}

body.pg-lettuce .glow-top,
body.pg-herbs .glow-top,
body.pg-microgreens .glow-top {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(42, 92, 53, .25) 0%, transparent 70%);
}

body.pg-lettuce .glow-amber,
body.pg-herbs .glow-amber,
body.pg-microgreens .glow-amber {
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(201, 136, 58, .06) 0%, transparent 70%);
}

/* ── PAGE LAYOUT ── */
body.pg-home .page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 6vw, 60px);
}

body.pg-lettuce .page,
body.pg-herbs .page,
body.pg-microgreens .page {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(20px, 5vw, 48px);
}

/* ── TOP BAR (home) ── */
body.pg-home .topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(32px, 6vh, 56px);
  border-bottom: 1px solid var(--rule);
}

body.pg-home .logo {
  display: flex;
  align-items: center;
}

body.pg-home .logo img {
  display: block;
  height: clamp(32px, 4.2vw, 40px);
  width: auto;
}

body.pg-home .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

body.pg-home .social-link {
  color: var(--mist);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
  letter-spacing: .02em;
}

body.pg-home .social-link:hover {
  color: var(--amber);
}

body.pg-home .social-link i {
  font-size: 16px;
}

/* ── HERO (home) ── */
body.pg-home .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vh, 80px) 0;
  max-width: 720px;
  margin: 0 auto;
  gap: clamp(20px, 4vh, 32px);
}

body.pg-home .hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 500;
  color: var(--sage);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}

body.pg-home .hero-headline {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(38px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--cream);
}

body.pg-home .hero-headline em {
  font-style: normal;
  color: var(--amber);
  display: block;
}

body.pg-home .hero-sub {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  color: var(--mist);
  max-width: 480px;
  line-height: 1.65;
  letter-spacing: .01em;
}

body.pg-home .hero-sub strong {
  color: var(--cream);
  font-weight: 500;
}

/* ── CTA (home) ── */
body.pg-home .cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

body.pg-home .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--amber);
  color: var(--black);
  font-family: 'Inria Sans', sans-serif;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 4px;
  transition: background .18s, transform .18s;
  text-transform: uppercase;
}

body.pg-home .btn-primary:hover {
  background: var(--amber-lt);
  transform: translateY(-2px);
}

body.pg-home .btn-primary i {
  font-size: 14px;
}

body.pg-home .btn-note {
  font-size: 11px;
  color: rgba(200, 196, 188, .45);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

/* ── HERO CAROUSEL (home) ── */
body.pg-home .hero-carousel {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 28px;
}

body.pg-home .hero-carousel-track {
  position: relative;
  height: 100%;
  min-height: 420px;
}

body.pg-home .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out;
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.pg-home .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

body.pg-home .hero-slide--studio {
  background-image: url('images/bg-1.jpg');
}

body.pg-home .hero-slide-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.pg-home .hero-slide-layout {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 64px) clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

body.pg-home .hero-slide-content {
  flex: 1 1 56%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 3vh, 24px);
}

body.pg-home .hero-slide-content .hero-headline {
  font-size: clamp(32px, 4.4vw, 56px);
}

body.pg-home .hero-slide-content .hero-sub {
  max-width: 460px;
}

body.pg-home .hero-slide-visual {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The right side of the scrim is intentionally left clear so the
   photo shows through — give the button's caption a shadow so it
   stays readable over brighter parts of the image without needing
   its own background chip. */
body.pg-home .hero-slide-visual .btn-note {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 14px rgba(0, 0, 0, .6);
}

/* Spans the full-bleed slide (not just the centered content box) so
   there's no hard edge where the margin outside the 1120px column
   would otherwise sit fully undarkened on wide screens. The content
   column is centered, so its left edge approaches (but never
   exceeds) 50% of the viewport as the viewport widens — holding
   solid black out to 50% keeps the text covered at any width, while
   the fade from there to 88% still leaves the image/button side
   clear on ordinary desktop widths. */
body.pg-home .hero-slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .72) 50%, rgba(0, 0, 0, .3) 70%, rgba(0, 0, 0, 0) 88%);
}

/* Arrows */
body.pg-home .hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: rgba(13, 31, 16, .5);
  color: var(--cream);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}

body.pg-home .hero-carousel-arrow:hover,
body.pg-home .hero-carousel-arrow:focus-visible {
  background: rgba(13, 31, 16, .8);
  border-color: var(--amber);
  color: var(--amber);
}

body.pg-home .hero-carousel-arrow--prev {
  left: clamp(8px, 2vw, 24px);
}

body.pg-home .hero-carousel-arrow--next {
  right: clamp(8px, 2vw, 24px);
}

/* Dots */
body.pg-home .hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3vh, 28px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

body.pg-home .hero-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(240, 235, 226, .35);
  cursor: pointer;
  transition: background .18s, transform .18s;
}

body.pg-home .hero-carousel-dot:hover,
body.pg-home .hero-carousel-dot:focus-visible {
  background: rgba(240, 235, 226, .6);
}

body.pg-home .hero-carousel-dot.is-active {
  background: var(--amber);
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  body.pg-home .hero-slide {
    transition: none;
  }
}

@media (max-width: 860px) {
  body.pg-home .hero-carousel-track {
    min-height: 720px;
  }

  body.pg-home .hero-slide-layout {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: left;
  }

  body.pg-home .hero-slide-visual {
    max-width: 360px;
    margin: 0 auto;
  }

  /* The left-to-right scrim is built for the side-by-side desktop
     layout. Stacked on mobile, text spans the full width, so darken
     top-to-bottom instead to keep it readable everywhere it lands. */
  body.pg-home .hero-slide-scrim {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .55) 100%);
  }

  /* Arrows move off the vertical center (where they'd collide with
     stacked text) and sit in the corners of the dots row instead. */
  body.pg-home .hero-carousel-arrow {
    width: 34px;
    height: 34px;
    top: auto;
    bottom: clamp(10px, 2.5vh, 24px);
    transform: none;
  }

  body.pg-home .hero-carousel-arrow--prev {
    left: clamp(8px, 4vw, 20px);
  }

  body.pg-home .hero-carousel-arrow--next {
    right: clamp(8px, 4vw, 20px);
  }
}

/* ── COMING SOON GRID (home) ── */
body.pg-home .coming-soon {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--rule);
}

body.pg-home .cs-card {
  background: var(--surface);
  padding: clamp(18px, 3vw, 28px) clamp(16px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .18s;
}

body.pg-home .cs-card:hover {
  background: rgba(22, 22, 28, .6);
}

body.pg-home .cs-icon {
  font-size: 18px;
  color: var(--sage);
  margin-bottom: 2px;
}

body.pg-home .cs-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: .02em;
}

body.pg-home .cs-desc {
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--mist);
  font-weight: 300;
  line-height: 1.55;
  opacity: .8;
}

body.pg-home .cs-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(201, 136, 58, .55);
}

body.pg-home .cs-badge.live {
  border-color: rgba(122, 184, 127, .3);
  color: var(--sage);
}

/* CTA-style badges used as links inside cs-cards (Live now / guide links / Get in touch) */
body.pg-home .cs-badge-contact {
  text-decoration: none;
  cursor: pointer;
  border-color: rgba(122, 184, 127, .4);
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.pg-home .cs-badge-contact i {
  font-size: 10px;
}

body.pg-home .guide-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

/* ── STORIES PROMO BANNER (home) ── */
body.pg-home .stories-promo {
  width: 100%;
  max-width: 860px;
  margin: 0 auto clamp(28px, 4vh, 40px);
}

body.pg-home .stories-promo-link {
  display: flex;
  align-items: stretch;
  min-height: 140px;
  max-height: 250px;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: background .18s, border-color .18s;
}

body.pg-home .stories-promo-link:hover {
  background: rgba(22, 22, 28, .6);
  border-color: rgba(122, 184, 127, .35);
}

body.pg-home .stories-promo-cover {
  flex: 0 0 clamp(96px, 20vw, 180px);
  background: #F6F1E3;
  overflow: hidden;
}

body.pg-home .stories-promo-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.pg-home .stories-promo-body {
  flex: 1;
  min-width: 0;
  padding: clamp(14px, 2.5vw, 24px) clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

body.pg-home .stories-promo-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.pg-home .stories-promo-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--cream);
}

body.pg-home .stories-promo-desc {
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--mist);
  line-height: 1.55;
  font-weight: 300;
  max-width: 480px;
}

body.pg-home .stories-promo-cta {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 6px;
}

body.pg-home .stories-promo-cta i {
  font-size: 11px;
  transition: transform .18s;
}

body.pg-home .stories-promo-link:hover .stories-promo-cta i {
  transform: translateX(3px);
}

@media (max-width: 480px) {
  body.pg-home .stories-promo-desc {
    display: none;
  }
}

/* ── FOOTER (home) ── */
body.pg-home .footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(24px, 4vh, 40px);
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  gap: 12px;
}

body.pg-home .footer-left {
  font-size: 11px;
  color: rgba(200, 196, 188, .35);
  font-family: 'DM Mono', monospace;
  letter-spacing: .06em;
}

body.pg-home .footer-left strong {
  color: rgba(200, 196, 188, .5);
  font-weight: 500;
}

body.pg-home .footer-right {
  font-size: 11px;
  color: rgba(200, 196, 188, .3);
  font-family: 'DM Mono', monospace;
  letter-spacing: .06em;
}

/* ── LOCATION PILL (home) ── */
body.pg-home .location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  font-size: 11px;
  color: rgba(200, 196, 188, .4);
  font-family: 'DM Mono', monospace;
  letter-spacing: .08em;
}

body.pg-home .location-pill i {
  font-size: 11px;
  color: var(--amber);
  opacity: .6;
}

/* ── HOME MOBILE ── */
@media (max-width: 640px) {
  body.pg-home .coming-soon {
    grid-template-columns: 1fr;
  }

  body.pg-home .topbar-right .social-link span {
    display: none;
  }

  body.pg-home .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  body.pg-home .coming-soon {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── HOME FADE IN ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.pg-home .hero-eyebrow {
  animation: fadeUp .6s ease both .1s;
}

body.pg-home .hero-headline {
  animation: fadeUp .6s ease both .25s;
}

body.pg-home .hero-sub {
  animation: fadeUp .6s ease both .4s;
}

body.pg-home .cta-group {
  animation: fadeUp .6s ease both .55s;
}

body.pg-home .stories-promo {
  animation: fadeUp .6s ease both .62s;
}

body.pg-home .coming-soon {
  animation: fadeUp .6s ease both .75s;
}

/* ============================================================
   GUIDE PAGES — shared chrome
   (growing-guide-lettuce.html, growing-guide-herbs.html, growing-guide-microgreens.html)
   ============================================================ */

body.pg-lettuce .topbar,
body.pg-herbs .topbar,
body.pg-microgreens .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(24px, 4vh, 40px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(32px, 6vh, 56px);
}

body.pg-lettuce .logo,
body.pg-herbs .logo,
body.pg-microgreens .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

body.pg-lettuce .logo img,
body.pg-herbs .logo img,
body.pg-microgreens .logo img {
  display: block;
  height: clamp(28px, 3.8vw, 34px);
  width: auto;
}

body.pg-lettuce .back-link,
body.pg-herbs .back-link,
body.pg-microgreens .back-link {
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .6;
  transition: opacity .2s;
}

body.pg-lettuce .back-link:hover,
body.pg-herbs .back-link:hover,
body.pg-microgreens .back-link:hover {
  opacity: 1;
  color: var(--sage);
}

body.pg-lettuce .article-header,
body.pg-herbs .article-header,
body.pg-microgreens .article-header {
  margin-bottom: clamp(32px, 5vh, 52px);
}

body.pg-lettuce .article-eyebrow,
body.pg-herbs .article-eyebrow,
body.pg-microgreens .article-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--sage);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-lettuce .article-headline,
body.pg-herbs .article-headline,
body.pg-microgreens .article-headline {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--cream);
  margin-bottom: 18px;
}

body.pg-lettuce .article-headline em,
body.pg-herbs .article-headline em,
body.pg-microgreens .article-headline em {
  font-style: normal;
  color: var(--amber);
}

body.pg-lettuce .article-intro,
body.pg-herbs .article-intro,
body.pg-microgreens .article-intro {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--mist);
  line-height: 1.75;
  max-width: 620px;
  font-weight: 300;
}

body.pg-lettuce .article-intro strong,
body.pg-herbs .article-intro strong,
body.pg-microgreens .article-intro strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-lettuce .asian-focus,
body.pg-herbs .asian-focus,
body.pg-microgreens .asian-focus {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(201, 136, 58, .07);
  border: 1px solid rgba(201, 136, 58, .2);
  border-radius: 8px;
  margin: clamp(20px, 3vh, 30px) 0;
}

body.pg-lettuce .asian-focus i,
body.pg-herbs .asian-focus i,
body.pg-microgreens .asian-focus i {
  color: var(--amber);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

body.pg-lettuce .asian-focus-text,
body.pg-herbs .asian-focus-text,
body.pg-microgreens .asian-focus-text {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.65;
}

body.pg-lettuce .asian-focus-text strong,
body.pg-herbs .asian-focus-text strong,
body.pg-microgreens .asian-focus-text strong {
  color: var(--cream);
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

body.pg-lettuce .section,
body.pg-herbs .section,
body.pg-microgreens .section {
  margin-bottom: clamp(40px, 7vh, 68px);
}

body.pg-lettuce .section-label,
body.pg-herbs .section-label,
body.pg-microgreens .section-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--sage);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.pg-herbs .section-label i {
  font-size: 12px;
}

body.pg-lettuce .section-label::after,
body.pg-herbs .section-label::after,
body.pg-microgreens .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

body.pg-lettuce .tip-box,
body.pg-herbs .tip-box,
body.pg-microgreens .tip-box {
  background: var(--surface);
  border-left: 3px solid var(--sage);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: clamp(20px, 3vh, 32px) 0;
  display: flex;
  gap: 14px;
}

body.pg-lettuce .tip-box i,
body.pg-herbs .tip-box i,
body.pg-microgreens .tip-box i {
  color: var(--sage);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

body.pg-lettuce .tip-box-body,
body.pg-herbs .tip-box-body,
body.pg-microgreens .tip-box-body {
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.7;
}

body.pg-lettuce .tip-box-body strong,
body.pg-herbs .tip-box-body strong,
body.pg-microgreens .tip-box-body strong {
  color: var(--cream);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

body.pg-lettuce .btn-primary,
body.pg-herbs .btn-primary,
body.pg-microgreens .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--amber);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .18s;
}

body.pg-lettuce .btn-primary:hover,
body.pg-herbs .btn-primary:hover,
body.pg-microgreens .btn-primary:hover {
  background: var(--amber-lt);
}

body.pg-lettuce .article-footer,
body.pg-herbs .article-footer,
body.pg-microgreens .article-footer {
  border-top: 1px solid var(--rule);
  padding-top: clamp(24px, 4vh, 40px);
  margin-top: clamp(40px, 7vh, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.pg-lettuce .footer-copy,
body.pg-herbs .footer-copy,
body.pg-microgreens .footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: rgba(200, 196, 188, .3);
  letter-spacing: .06em;
}

body.pg-lettuce .footer-copy strong,
body.pg-herbs .footer-copy strong,
body.pg-microgreens .footer-copy strong {
  color: rgba(200, 196, 188, .45);
}

body.pg-lettuce .more-guides,
body.pg-herbs .more-guides,
body.pg-microgreens .more-guides {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.pg-lettuce .more-link,
body.pg-herbs .more-link,
body.pg-microgreens .more-link {
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.pg-lettuce .more-link:hover,
body.pg-herbs .more-link:hover,
body.pg-microgreens .more-link:hover {
  opacity: 1;
  color: var(--sage);
}

/* Small utility spacers shared across guide pages */
.dwc-cta {
  margin-top: 16px;
}

.section-cta {
  margin-top: 8px;
}

/* ============================================================
   LETTUCE / ASIAN GREENS GUIDE — page-specific
   ============================================================ */

body.pg-lettuce .variety-wrap {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}

body.pg-lettuce .variety-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.pg-lettuce .variety-table th {
  font-family: 'DM Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 500;
  background: var(--surface);
}

body.pg-lettuce .variety-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(74, 140, 84, .07);
  color: var(--mist);
  vertical-align: top;
  line-height: 1.5;
}

body.pg-lettuce .variety-table tr:last-child td {
  border-bottom: none;
}

body.pg-lettuce .variety-table tr:hover td {
  background: rgba(122, 184, 127, .025);
}

body.pg-lettuce .vname {
  color: var(--cream);
  font-weight: 500;
  font-size: 13px;
}

body.pg-lettuce .vjp {
  font-size: 12px;
  color: rgba(201, 136, 58);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  display: block;
  margin-top: 1px;
}

body.pg-lettuce .badge-sm {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

body.pg-lettuce .badge-sm i {
  font-size: 7px;
}

body.pg-lettuce .b-easy {
  border-color: rgba(122, 184, 127, .4);
  color: var(--sage);
}

body.pg-lettuce .b-med {
  border-color: rgba(201, 136, 58, .3);
  color: var(--amber);
}

body.pg-lettuce .b-dwc {
  background: rgba(29, 107, 154, .1);
  border-color: rgba(29, 107, 154, .3);
  color: #5ab4dc;
}

body.pg-lettuce .b-mb {
  background: rgba(74, 140, 84, .08);
  border-color: rgba(74, 140, 84, .3);
  color: var(--sage);
}

body.pg-lettuce .b-nft {
  background: rgba(122, 158, 126, .08);
  border-color: rgba(122, 158, 126, .3);
  color: #8fac92;
}

body.pg-lettuce .seed-link {
  color: var(--amber);
  font-size: 11px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: .85;
  white-space: nowrap;
}

body.pg-lettuce .seed-link:hover {
  opacity: 1;
}

/* DWC EXPLAINER */
body.pg-lettuce .dwc-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
}

body.pg-lettuce .dwc-wrap h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.pg-lettuce .dwc-wrap h3 i {
  color: var(--sage);
  font-size: 16px;
}

body.pg-lettuce .dwc-wrap p {
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.75;
  margin-bottom: 12px;
  font-weight: 300;
}

body.pg-lettuce .dwc-wrap p strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-lettuce .dwc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

body.pg-lettuce .dwc-stat {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.pg-lettuce .dwc-stat i {
  color: var(--sage);
  font-size: 13px;
  margin-top: 1px;
  flex-shrink: 0;
}

body.pg-lettuce .dwc-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

body.pg-lettuce .dwc-stat-val {
  font-size: 12px;
  color: var(--cream);
  font-weight: 500;
}

/* DWC SVG */
body.pg-lettuce .dwc-svg-wrap {
  margin: 16px 0;
  background: rgba(0, 0, 0, .2);
  border-radius: 8px;
  padding: 12px;
}

body.pg-lettuce .dwc-svg {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {

  body.pg-lettuce .variety-table td:nth-child(3),
  body.pg-lettuce .variety-table th:nth-child(3) {
    display: none;
  }
}

/* ============================================================
   HERBS GUIDE — page-specific
   ============================================================ */

body.pg-herbs .quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(20px, 3vh, 28px) 0;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
}

body.pg-herbs .quick-nav-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--sage);
  letter-spacing: .15em;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.pg-herbs .quick-nav a {
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.pg-herbs .quick-nav a:hover {
  border-color: var(--sage);
  color: var(--sage);
}

body.pg-herbs .herb-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

body.pg-herbs .herb-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: clamp(24px, 5vw, 64px);
  width: 120px;
  height: 120px;
  background: radial-gradient(ellipse at top right, rgba(122, 184, 127, .06) 0%, transparent 70%);
  pointer-events: none;
}

body.pg-herbs .herb-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

body.pg-herbs .herb-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.pg-herbs .herb-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(122, 184, 127, .1);
  border: 1px solid rgba(122, 184, 127, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--sage);
  flex-shrink: 0;
}

body.pg-herbs .herb-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  color: var(--cream);
}

body.pg-herbs .herb-latin {
  font-size: 12px;
  color: var(--mist);
  opacity: .6;
  font-style: italic;
}

body.pg-herbs .herb-jp {
  font-size: 13px;
  color: rgba(201, 136, 58, .65);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  margin-top: 2px;
  letter-spacing: .04em;
}

body.pg-herbs .herb-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 4px;
}

body.pg-herbs .badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.pg-herbs .badge i {
  font-size: 10px;
}

body.pg-herbs .badge-system {
  border-color: rgba(74, 140, 84, .4);
  color: var(--sage);
}

body.pg-herbs .badge-level {
  border-color: rgba(201, 136, 58, .3);
  color: var(--amber);
}

body.pg-herbs .badge-asian {
  border-color: rgba(201, 136, 58);
  color: var(--amber-lt);
  background: rgba(201, 136, 58, .08);
}

body.pg-herbs .herb-body {
  font-size: clamp(13px, 1.5vw, 14.5px);
  color: var(--mist);
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 300;
}

body.pg-herbs .herb-body strong {
  color: var(--cream);
  font-weight: 500;
}

/* GROW STATS GRID */
body.pg-herbs .herb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 500px) {
  body.pg-herbs .herb-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

body.pg-herbs .stat-cell {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

body.pg-herbs .stat-cell i {
  color: var(--sage);
  font-size: 13px;
  margin-top: 1px;
  flex-shrink: 0;
  opacity: .8;
}

body.pg-herbs .stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

body.pg-herbs .stat-val {
  font-size: 12px;
  color: var(--cream);
  font-weight: 500;
}

/* SEED CTA (herbs) */
body.pg-herbs .seed-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(201, 136, 58, .1);
  border: 1px solid rgba(201, 136, 58, .3);
  border-radius: 4px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .03em;
  transition: all .18s;
}

/* AQUAPONICS CYCLE DIAGRAM */
body.pg-herbs .cycle-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  margin: clamp(20px, 3vh, 32px) 0;
}

body.pg-herbs .cycle-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--sage);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-herbs .cycle-svg {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
}

/* SYSTEM PAIRING */
body.pg-herbs .pairing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

body.pg-herbs .pairing-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 18px 20px;
}

body.pg-herbs .pairing-system {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-herbs .pairing-system i {
  color: var(--sage);
  font-size: 14px;
}

body.pg-herbs .pairing-herbs {
  font-size: 12px;
  color: var(--mist);
  line-height: 1.65;
}

body.pg-herbs .pairing-note {
  font-size: 11px;
  color: rgba(122, 184, 127, .5);
  margin-top: 6px;
  font-style: italic;
}

body.pg-herbs .pairing-cta {
  margin-top: 24px;
}

@keyframes fadeUpHerbs {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.pg-herbs .article-header {
  animation: fadeUpHerbs .5s ease both .1s;
}

/* ============================================================
   MICROGREENS GUIDE — page-specific
   ============================================================ */

body.pg-microgreens .mg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

body.pg-microgreens .mg-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

body.pg-microgreens .mg-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: clamp(24px, 5vw, 64px);
  width: 60px;
  height: 60px;
  background: radial-gradient(ellipse at bottom right, rgba(122, 184, 127, .07) 0%, transparent 70%);
  pointer-events: none;
}

body.pg-microgreens .mg-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(122, 184, 127, .1);
  border: 1px solid rgba(122, 184, 127, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--sage);
}

body.pg-microgreens .mg-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--cream);
}

body.pg-microgreens .mg-kanji {
  font-size: 11px;
  color: rgba(201, 136, 58, .55);
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

body.pg-microgreens .mg-jp {
  font-size: 11px;
  color: rgba(201, 136, 58, .55);
  font-family: 'Zen Kaku Gothic New', sans-serif;
}

body.pg-microgreens .mg-flavor {
  font-size: 12.5px;
  color: var(--mist);
  line-height: 1.65;
  font-weight: 300;
}

body.pg-microgreens .mg-flavor strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-microgreens .mg-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

body.pg-microgreens .mg-stat {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--sage);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.pg-microgreens .mg-stat i {
  font-size: 10px;
}

/* SEED CTA (microgreens) */
body.pg-microgreens .seed-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(201, 136, 58, .1);
  border: 1px solid rgba(201, 136, 58, .3);
  border-radius: 4px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
}

body.pg-herbs .seed-cta:hover,
body.pg-microgreens .seed-cta:hover {
  background: rgba(201, 136, 58, .2);
  border-color: var(--amber);
}

/* INTEGRATION EXPLAINER */
body.pg-microgreens .integration-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: clamp(24px, 4vh, 36px);
}

body.pg-microgreens .integration-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--sage);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-microgreens .integration-svg {
  width: 100%;
  max-width: 560px;
  display: block;
  margin: 0 auto 16px;
}

body.pg-microgreens .integration-note {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.7;
  font-weight: 300;
}

body.pg-microgreens .integration-note strong {
  color: var(--cream);
}

/* STEPS */
body.pg-microgreens .steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.pg-microgreens .step {
  display: flex;
  gap: 0;
  position: relative;
}

body.pg-microgreens .step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--rule);
  z-index: 0;
}

body.pg-microgreens .step-num-wrap {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
}

body.pg-microgreens .step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(122, 184, 127, .1);
  border: 1.5px solid rgba(122, 184, 127, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--sage);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

body.pg-microgreens .step-body {
  padding: 4px 0 28px 18px;
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.7;
}

body.pg-microgreens .step-body strong {
  color: var(--cream);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

body.pg-microgreens .step-body i {
  color: var(--sage);
  margin-right: 4px;
}

/* ============================================================
   SITE EXPANSION — topbar nav, new pages
   ============================================================ */

/* ── Topbar nav (homepage) ── */
body.pg-home .topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

body.pg-home .topbar-nav a {
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  padding: 4px 9px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}

body.pg-home .topbar-nav a:hover {
  color: var(--cream);
  background: rgba(122, 184, 127, .08);
}

body.pg-home .topbar-nav a i {
  font-size: 11px;
  opacity: .7;
}

/* ── Hamburger menu (homepage, mobile) ── */
body.pg-home .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--mist);
  font-size: 15px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  flex-shrink: 0;
}

body.pg-home .menu-toggle:hover,
body.pg-home .menu-toggle:focus-visible {
  color: var(--cream);
  border-color: var(--sage);
}

body.pg-home .menu-toggle .menu-icon-close {
  display: none;
}

body.pg-home .menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

body.pg-home .menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: inline-flex;
}

@media (max-width: 700px) {
  body.pg-home .menu-toggle {
    display: flex;
  }

  body.pg-home .topbar {
    position: relative;
  }

  body.pg-home .topbar-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: clamp(24px, 5vw, 64px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 230px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 30;
  }

  body.pg-home .topbar-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  body.pg-home .topbar-nav a {
    padding: 10px 12px;
  }
}

/* ── New page kanji watermarks ── */
body.pg-how::before {
  content: '水';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(280px, 50vw, 640px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 184, 127, .05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

body.pg-calendar::before {
  content: '旬';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(280px, 50vw, 640px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 184, 127, .05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

body.pg-csa::before {
  content: '箱';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(280px, 50vw, 640px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 184, 127, .05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── New page shared layout ── */
body.pg-how .hero-bg {
  background-image: url('images/bg-1.jpg');
}

body.pg-calendar .hero-bg {
  background-image: url('images/bg-2.jpg');
}

body.pg-csa .hero-bg {
  background-image: url('images/bg-3.jpg');
}

body.pg-how .glow-top,
body.pg-calendar .glow-top,
body.pg-csa .glow-top {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(42, 92, 53, .25) 0%, transparent 70%);
}

body.pg-how .glow-amber,
body.pg-calendar .glow-amber,
body.pg-csa .glow-amber {
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(201, 136, 58, .06) 0%, transparent 70%);
}

body.pg-how .page,
body.pg-calendar .page,
body.pg-csa .page {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(20px, 5vw, 48px);
}

/* ── Shared topbar for new pages ── */
body.pg-how .topbar,
body.pg-calendar .topbar,
body.pg-csa .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(24px, 4vh, 36px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 5vh, 48px);
}

body.pg-how .logo,
body.pg-calendar .logo,
body.pg-csa .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

body.pg-how .logo img,
body.pg-calendar .logo img,
body.pg-csa .logo img {
  display: block;
  height: clamp(26px, 3.4vw, 32px);
  width: auto;
}

/* ── Shared article header, section label, tip box, footer for new pages ── */
body.pg-how .article-header,
body.pg-calendar .article-header,
body.pg-csa .article-header {
  margin-bottom: clamp(28px, 5vh, 48px);
}

body.pg-how .article-eyebrow,
body.pg-calendar .article-eyebrow,
body.pg-csa .article-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--sage);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-how .article-headline,
body.pg-calendar .article-headline,
body.pg-csa .article-headline {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--cream);
  margin-bottom: 18px;
}

body.pg-how .article-headline em,
body.pg-calendar .article-headline em,
body.pg-csa .article-headline em {
  font-style: normal;
  color: var(--amber);
}

body.pg-how .article-footer,
body.pg-calendar .article-footer,
body.pg-csa .article-footer {
  border-top: 1px solid var(--rule);
  padding-top: clamp(24px, 4vh, 40px);
  margin-top: clamp(40px, 7vh, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.pg-how .footer-copy,
body.pg-calendar .footer-copy,
body.pg-csa .footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(200, 196, 188, .3);
  letter-spacing: .06em;
}

body.pg-how .footer-copy strong,
body.pg-calendar .footer-copy strong,
body.pg-csa .footer-copy strong {
  color: rgba(200, 196, 188, .45);
}

body.pg-how .more-guides,
body.pg-calendar .more-guides,
body.pg-csa .more-guides {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.pg-how .more-link,
body.pg-calendar .more-link,
body.pg-csa .more-link {
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.pg-how .more-link:hover,
body.pg-calendar .more-link:hover,
body.pg-csa .more-link:hover {
  opacity: 1;
  color: var(--sage);
}

/* ── How Aquaponics Works page styles ── */
body.pg-how .how-intro {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--mist);
  line-height: 1.75;
  max-width: 620px;
  font-weight: 300;
  margin-bottom: clamp(24px, 4vh, 36px);
}

body.pg-how .how-intro strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-how .how-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: clamp(32px, 5vh, 48px) 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.pg-how .how-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

body.pg-how .cycle-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  margin: clamp(20px, 3vh, 32px) 0;
}

body.pg-how .cycle-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--sage);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-how .how-block {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(18px, 3vw, 26px);
  margin-bottom: 14px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

body.pg-how .how-block-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(122, 184, 127, .1);
  border: 1px solid rgba(122, 184, 127, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--sage);
  flex-shrink: 0;
}

body.pg-how .how-block-body h3 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-how .how-block-body h3 span {
  font-size: 12px;
  color: rgba(201, 136, 58, .6);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
}

body.pg-how .how-block-body p {
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.75;
  font-weight: 300;
}

body.pg-how .how-block-body p strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-how .system-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: clamp(20px, 3vh, 28px) 0;
}

body.pg-how .sys-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
}

body.pg-how .sys-card-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

body.pg-how .sys-card-name i {
  color: var(--sage);
  font-size: 13px;
}

body.pg-how .sys-card-desc {
  font-size: 12px;
  color: var(--mist);
  line-height: 1.6;
  margin-bottom: 8px;
}

body.pg-how .sys-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(122, 184, 127, .3);
  color: var(--sage);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 4px;
  margin-top: 3px;
}

body.pg-how .fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: clamp(24px, 4vh, 36px);
}

body.pg-how .fish-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
}

body.pg-how .fish-emoji {
  font-size: 22px;
  margin-bottom: 6px;
}

body.pg-how .fish-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

body.pg-how .fish-desc {
  font-size: 11px;
  color: var(--mist);
  line-height: 1.55;
}

body.pg-how .tip-box {
  background: var(--surface);
  border-left: 3px solid var(--sage);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: clamp(20px, 3vh, 32px) 0;
  display: flex;
  gap: 14px;
}

body.pg-how .tip-box>i {
  color: var(--sage);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

body.pg-how .tip-box-body p {
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.7;
}

body.pg-how .tip-box-body strong {
  color: var(--cream);
  display: block;
  margin-bottom: 4px;
}

body.pg-how .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--amber);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .18s;
}

body.pg-how .btn-primary:hover {
  background: var(--amber-lt);
}

/* ── Seasonal calendar page styles ── */
body.pg-calendar .cal-intro {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--mist);
  line-height: 1.75;
  max-width: 620px;
  font-weight: 300;
  margin-bottom: clamp(24px, 4vh, 36px);
}

body.pg-calendar .cal-intro strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-calendar .cal-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 20px;
}

body.pg-calendar .cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--mist);
}

body.pg-calendar .cal-legend-item i {
  font-size: 10px;
}

body.pg-calendar .gantt-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: clamp(24px, 4vh, 36px);
  overflow-x: auto;
}

body.pg-calendar .gantt-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-calendar .cal-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.pg-calendar .cal-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

body.pg-calendar .cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: clamp(32px, 5vh, 48px);
}

body.pg-calendar .cal-month {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}

body.pg-calendar .cal-month-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.pg-calendar .cal-month-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--cream);
}

body.pg-calendar .cal-month-jp {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 11px;
  color: rgba(201, 136, 58, .5);
}

body.pg-calendar .cal-crops {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.pg-calendar .cal-crop {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--mist);
}

body.pg-calendar .cal-crop i {
  font-size: 10px;
  width: 12px;
  flex-shrink: 0;
}

body.pg-calendar .cal-crop .icon-plant {
  color: var(--sage);
}

body.pg-calendar .cal-crop .icon-harvest {
  color: #5ab4dc;
}

body.pg-calendar .cal-crop .icon-peak {
  color: var(--amber);
}

body.pg-calendar .cal-crop .icon-avoid {
  color: rgba(200, 196, 188, .3);
}

body.pg-calendar .cal-crop.avoid-crop {
  text-decoration: line-through;
  opacity: .45;
}

body.pg-calendar .year-round-note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: clamp(24px, 4vh, 36px);
  display: flex;
  gap: 14px;
}

body.pg-calendar .year-round-note>i {
  color: var(--sage);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

body.pg-calendar .year-round-note h4 {
  color: var(--cream);
  font-size: 14px;
  margin-bottom: 4px;
}

body.pg-calendar .year-round-note p {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.7;
}

body.pg-calendar .year-round-note a {
  color: var(--amber);
  text-decoration: none;
}

body.pg-calendar .cal-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: clamp(24px, 4vh, 36px);
}

body.pg-calendar .seed-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: rgba(201, 136, 58, .1);
  border: 1px solid rgba(201, 136, 58, .3);
  border-radius: 4px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
}

body.pg-calendar .seed-cta:hover {
  background: rgba(201, 136, 58, .2);
  border-color: var(--amber);
}

body.pg-calendar .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--amber);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .18s;
}

body.pg-calendar .btn-primary:hover {
  background: var(--amber-lt);
}

/* ── CSA waitlist page styles ── */
body.pg-csa .csa-intro {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--mist);
  line-height: 1.75;
  max-width: 600px;
  font-weight: 300;
  margin-bottom: 14px;
}

body.pg-csa .csa-intro strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-csa .csa-hero {
  margin-bottom: clamp(28px, 5vh, 44px);
}

body.pg-csa .csa-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.pg-csa .csa-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

body.pg-csa .box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: clamp(28px, 4vh, 40px);
}

body.pg-csa .box-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

body.pg-csa .box-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: clamp(24px, 5vw, 64px);
  width: 80px;
  height: 80px;
  background: radial-gradient(ellipse at top right, rgba(122, 184, 127, .07) 0%, transparent 70%);
  pointer-events: none;
}

body.pg-csa .box-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(122, 184, 127, .1);
  border: 1px solid rgba(122, 184, 127, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--sage);
}

body.pg-csa .box-name {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
}

body.pg-csa .box-freq {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

body.pg-csa .box-items {
  font-size: 12.5px;
  color: var(--mist);
  line-height: 1.7;
  font-weight: 300;
}

body.pg-csa .box-items strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-csa .waitlist-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  margin: clamp(24px, 4vh, 40px) 0;
}

body.pg-csa .waitlist-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.pg-csa .waitlist-title i {
  color: var(--amber);
}

body.pg-csa .waitlist-sub {
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 500px;
  font-weight: 300;
}

body.pg-csa .waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

body.pg-csa .form-row {
  display: flex;
  gap: 10px;
}

@media (max-width: 500px) {
  body.pg-csa .form-row {
    flex-direction: column;
  }
}

body.pg-csa .form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.pg-csa .form-field label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.pg-csa .form-field input,
body.pg-csa .form-field select {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--cream);
  font-size: 13px;
  padding: 9px 12px;
  font-family: 'Inria Sans', sans-serif;
  outline: none;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}

body.pg-csa .form-field input:focus,
body.pg-csa .form-field select:focus {
  border-color: var(--sage);
}

body.pg-csa .form-field input::placeholder {
  color: rgba(200, 196, 188, .35);
}

body.pg-csa .form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--mist);
  line-height: 1.5;
  cursor: pointer;
}

body.pg-csa .form-check input[type=checkbox] {
  margin-top: 2px;
  accent-color: var(--sage);
  flex-shrink: 0;
}

body.pg-csa .form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--amber);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Inria Sans', sans-serif;
  transition: background .18s;
  align-self: flex-start;
}

body.pg-csa .form-submit:hover {
  background: var(--amber-lt);
}

body.pg-csa .form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

body.pg-csa .form-note {
  font-size: 11px;
  color: rgba(200, 196, 188, .4);
  font-family: 'DM Mono', monospace;
  letter-spacing: .06em;
  margin-top: 4px;
}

body.pg-csa .form-success {
  display: none;
  padding: 20px;
  background: rgba(122, 184, 127, .1);
  border: 1px solid rgba(122, 184, 127, .3);
  border-radius: 8px;
  margin-top: 16px;
}

body.pg-csa .form-success p {
  color: var(--mist);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.65;
}

body.pg-csa .form-success .success-head {
  color: var(--sage);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.pg-csa .community-note {
  background: var(--surface);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: clamp(20px, 3vh, 32px) 0;
  display: flex;
  gap: 14px;
}

body.pg-csa .community-note>i {
  color: var(--amber);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

body.pg-csa .community-note-body strong {
  color: var(--cream);
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

body.pg-csa .community-note-body p {
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.7;
}

body.pg-csa .community-note-body a {
  color: var(--amber);
  text-decoration: none;
}

/* ============================================================
   JUKICHI'S GARDEN — Stories section
   Pages: stories.html (pg-stories), story-the-fish-who-grew-rice.html (pg-story)
   A paper picture book on a dark table: dark site chrome, parchment book panel.
   ============================================================ */

body.pg-stories::before,
body.pg-story::before {
  content: '魚';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(280px, 50vw, 640px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 184, 127, .05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

body.pg-stories .hero-bg,
body.pg-story .hero-bg {
  background-image: url('images/bg-2.jpg');
}

body.pg-stories .glow-top,
body.pg-story .glow-top {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(42, 92, 53, .25) 0%, transparent 70%);
}

body.pg-stories .glow-amber,
body.pg-story .glow-amber {
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(201, 136, 58, .06) 0%, transparent 70%);
}

/* ── Shared topbar / footer chrome ── */
body.pg-stories .page,
body.pg-story .page {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(20px, 5vw, 48px);
}

body.pg-stories .topbar,
body.pg-story .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(24px, 4vh, 36px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 5vh, 48px);
}

body.pg-stories .logo,
body.pg-story .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

body.pg-stories .logo img,
body.pg-story .logo img {
  display: block;
  height: clamp(26px, 3.4vw, 32px);
  width: auto;
}

body.pg-stories .back-link,
body.pg-story .back-link {
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: .6;
  transition: opacity .2s;
}

body.pg-stories .back-link:hover,
body.pg-story .back-link:hover {
  opacity: 1;
  color: var(--sage);
}

body.pg-stories .article-footer,
body.pg-story .article-footer {
  border-top: 1px solid var(--rule);
  padding-top: clamp(24px, 4vh, 40px);
  margin-top: clamp(40px, 7vh, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.pg-stories .footer-copy,
body.pg-story .footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(200, 196, 188, .3);
  letter-spacing: .06em;
}

body.pg-stories .footer-copy strong,
body.pg-story .footer-copy strong {
  color: rgba(200, 196, 188, .45);
}

body.pg-stories .more-guides,
body.pg-story .more-guides {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

body.pg-stories .more-link,
body.pg-story .more-link {
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.pg-stories .more-link:hover,
body.pg-story .more-link:hover {
  opacity: 1;
  color: var(--sage);
}

/* ── Series index hero ── */
body.pg-stories .stories-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vh, 64px);
}

body.pg-stories .stories-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--sage);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.pg-stories .stories-headline {
  font-family: 'Noto Serif JP', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 16px;
}

body.pg-stories .stories-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--mist);
  line-height: 1.7;
  font-weight: 300;
}

/* ── Story card grid (parchment cards on the dark page) ── */
body.pg-stories .story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(40px, 6vh, 64px);
}

body.pg-stories .story-card {
  background: var(--parchment);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

body.pg-stories .story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

body.pg-stories .story-card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--parchment-deep);
  overflow: hidden;
}

body.pg-stories .story-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.pg-stories .story-card-body {
  padding: clamp(16px, 2.5vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

body.pg-stories .story-card-number {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--water-deep);
}

body.pg-stories .story-card-title {
  font-family: 'Noto Serif JP', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink);
  line-height: 1.3;
}

body.pg-stories .story-card-teaser {
  font-size: 13.5px;
  color: rgba(13, 31, 16, .68);
  line-height: 1.6;
  font-weight: 400;
  flex: 1;
}

body.pg-stories .story-card-cta {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--koi);
  display: flex;
  align-items: center;
  gap: 6px;
}

body.pg-stories .story-card-cta i {
  font-size: 11px;
  transition: transform .2s;
}

body.pg-stories .story-card:hover .story-card-cta i {
  transform: translateX(3px);
}

/* ── Cross-link panel (dark chrome, not parchment) ── */
body.pg-stories .stories-crosslink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px) clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

body.pg-stories .stories-crosslink p {
  font-size: 13.5px;
  color: var(--mist);
  line-height: 1.6;
  max-width: 480px;
}

body.pg-stories .stories-crosslink p strong {
  color: var(--cream);
  font-weight: 500;
}

body.pg-stories .stories-crosslink a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(122, 184, 127, .4);
  color: var(--sage);
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s;
}

body.pg-stories .stories-crosslink a:hover {
  background: rgba(122, 184, 127, .1);
  border-color: var(--sage);
}

/* ============================================================
   STORY READER
   ============================================================ */

body.pg-story .story-book {
  background: var(--parchment);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04);
  padding: clamp(20px, 4vw, 44px);
}

body.pg-story .story-header {
  text-align: center;
  margin-bottom: clamp(18px, 3vh, 28px);
}

body.pg-story .story-series {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--water-deep);
  margin-bottom: 8px;
}

body.pg-story .story-title {
  font-family: 'Noto Serif JP', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 32px);
  color: var(--ink);
  line-height: 1.25;
}

/* ── Stage + tap zones ── */
body.pg-story .story-stage-wrap {
  position: relative;
}

body.pg-story .story-stage {
  background: var(--parchment-deep);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 32px);
  min-height: clamp(360px, 56vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

body.pg-story .story-page {
  width: 100%;
}

@keyframes storyBloom {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

body.pg-story .story-page.is-entering {
  animation: storyBloom .5s ease both;
}

@media (prefers-reduced-motion: reduce) {
  body.pg-story .story-page.is-entering {
    animation: none;
  }
}

body.pg-story .story-navzone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 12%, 88px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--water-deep);
  opacity: .35;
  transition: opacity .2s;
  z-index: 2;
}

body.pg-story .story-navzone:hover,
body.pg-story .story-navzone:focus-visible {
  opacity: 1;
}

body.pg-story .story-navzone i {
  font-size: clamp(18px, 2.4vw, 26px);
}

body.pg-story .story-navzone-prev {
  left: 0;
}

body.pg-story .story-navzone-next {
  right: clamp(24px, 5vw, 64px);
}

body.pg-story .story-navzone:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

/* ── Cover page ── */
body.pg-story .story-page-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

body.pg-story .story-page-cover .story-figure {
  max-width: 420px;
  width: 100%;
}

body.pg-story .story-tap-hint {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--water-deep);
  text-transform: uppercase;
}

/* ── Spread pages ── */
body.pg-story .story-page-spread {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

body.pg-story .story-page-spread .story-figure {
  flex: 0 0 58%;
}

body.pg-story .story-page-spread .story-text {
  flex: 1;
}

body.pg-story .story-figure {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(13, 31, 16, .18);
  background: rgba(13, 31, 16, .04);
}

body.pg-story .story-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.pg-story .story-img-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, rgba(13, 31, 16, .05) 0 12px, rgba(13, 31, 16, .02) 12px 24px);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 12.5px;
  color: rgba(13, 31, 16, .5);
  line-height: 1.5;
}

body.pg-story .story-img-placeholder.is-visible {
  display: flex;
}

body.pg-story .story-text p {
  font-family: 'Inria Sans', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: rgba(13, 31, 16, .82);
  font-weight: 400;
  margin-bottom: 14px;
}

body.pg-story .story-text p:last-child {
  margin-bottom: 0;
}

body.pg-story .story-text p.story-dialogue {
  font-family: 'Noto Serif JP', serif;
  color: rgba(13, 31, 16, .68);
}

@media (max-width: 720px) {
  body.pg-story .story-page-spread {
    flex-direction: column;
    align-items: stretch;
  }

  body.pg-story .story-page-spread .story-figure {
    flex: none;
  }
}

/* ── Closing page ── */
body.pg-story .story-page-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

body.pg-story .story-fact-card {
  background: var(--parchment);
  border: 1px solid rgba(78, 140, 140, .25);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  max-width: 520px;
}

body.pg-story .story-fact-card .story-figure {
  max-width: 200px;
  margin: 0 auto 14px;
}

body.pg-story .story-fact-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--water-deep);
  margin-bottom: 8px;
}

body.pg-story .story-fact-text {
  font-family: 'Inria Sans', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: rgba(13, 31, 16, .8);
}

body.pg-story .story-question {
  font-family: 'Noto Serif JP', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--ink);
  max-width: 480px;
}

/* ── Koi stream progress nav ── */
body.pg-story .koi-nav {
  margin-top: clamp(18px, 3vh, 28px);
  text-align: center;
}

body.pg-story .koi-stream-svg {
  width: 100%;
  height: auto;
  display: block;
}

body.pg-story .koi-stream-path {
  stroke: var(--water);
}

body.pg-story .koi-body,
body.pg-story .koi-tail {
  fill: var(--koi);
}

body.pg-story .koi-eye {
  fill: var(--ink);
}

body.pg-story .koi-stone {
  fill: var(--parchment);
  stroke: var(--water-deep);
  stroke-width: 1.5;
  cursor: pointer;
  transition: r .15s, fill .15s;
}

body.pg-story .koi-stone:hover,
body.pg-story .koi-stone:focus-visible {
  fill: var(--water);
}

body.pg-story .koi-stone.is-current {
  fill: var(--koi);
  stroke: var(--koi);
}

body.pg-story .koi-stone:focus-visible {
  outline: 2px solid var(--amber-lt);
  outline-offset: 2px;
}

body.pg-story .koi-fish {
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.pg-story .koi-fish {
    transition: none;
  }
}

body.pg-story .koi-nav-label {
  margin-top: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(13, 31, 16, .5);
}

/* ── Story reader mobile ── */
@media (max-width: 480px) {
  body.pg-story .story-stage {
    padding: 16px;
    min-height: 320px;
  }

  body.pg-story .story-navzone {
    width: 44px;
  }
}

body.pg-home .video-promo {
  width: 100%;
  max-width: 860px;
  margin: 0 auto clamp(28px, 4vh, 40px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

body.pg-home .video-promo-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: #000;
}

body.pg-home .video-promo-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.pg-home .video-promo-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.pg-home .video-promo-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--sage);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

body.pg-home .video-promo-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

body.pg-home .video-promo-desc {
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--mist);
  line-height: 1.6;
  font-weight: 300;
}

body.pg-home .video-promo-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
  width: fit-content;
}

body.pg-home .video-promo-cta i {
  font-size: 12px;
  transition: transform .18s;
}

body.pg-home .video-promo-cta:hover i {
  transform: translateX(3px);
}

@media (max-width: 680px) {
  body.pg-home .video-promo {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   SHARED SITE HEADER  (injected by /js/site-header.js)
   Page-class-independent. Works on every page.
   ============================================================ */
.site-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; position: relative;
  /* Break out of the centered page container to span the FULL browser width */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50vw);
  padding: 16px clamp(24px, 5vw, 64px) 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(28px, 4vh, 44px);
  box-sizing: border-box;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; height: clamp(28px, 3.6vw, 34px); width: auto; }
.site-topbar-right { display: flex; align-items: center; gap: 18px; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  font-size: 12.5px; color: var(--mist); text-decoration: none;
  padding: 6px 10px; border-radius: 5px; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
  transition: color .18s, background .18s;
}
.site-nav a:hover { color: var(--cream); background: rgba(122, 184, 127, .08); }
.site-nav a.is-active { color: var(--amber); }
.site-nav a i { font-size: 11px; opacity: .75; }

.site-social {
  color: var(--mist); font-size: 14px; text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color .2s;
  flex-shrink: 0;
}
.site-social:hover { color: var(--amber); }
.site-social i { font-size: 16px; }

.site-menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: none;
  border: 1px solid var(--rule); border-radius: 6px;
  color: var(--mist); font-size: 15px; cursor: pointer;
  transition: color .18s, border-color .18s; flex-shrink: 0;
}
.site-menu-toggle:hover, .site-menu-toggle:focus-visible { color: var(--cream); border-color: var(--sage); }
.site-menu-toggle .site-icon-close { display: none; }
.site-menu-toggle[aria-expanded="true"] .site-icon-open { display: none; }
.site-menu-toggle[aria-expanded="true"] .site-icon-close { display: inline-flex; }

/* Tablet/mobile: collapse nav into a dropdown */
@media (max-width: 860px) {
  .site-menu-toggle { display: flex; }
  .site-nav {
    position: absolute; top: calc(100% + 10px); right: clamp(24px, 5vw, 64px);
    flex-direction: column; align-items: stretch; gap: 2px; width: 240px;
    background: var(--surface); border: 1px solid var(--rule);
    border-radius: 10px; padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 60;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 11px 12px; }
}
@media (max-width: 460px) {
  .site-social span { display: none; }
}

/* ============================================================
   KIDS SECTION — /kids and /kids/play
   Pages: kids/index.html (pg-kids pg-kids-home), kids/play/index.html (pg-kids pg-kids-play)
   Dark site chrome, bright sunshine-paper kids panel underneath.
   Tokens scoped to .pg-kids so the main site palette is untouched.
   ============================================================ */
.pg-kids {
  --kid-paper: #FFF7E6;
  --kid-ink: #3B2A1E;
  --kid-coral: #FF5A36;
  --kid-teal: #2FC6D6;
  --kid-leaf: #5FBF4C;
  --kid-sun: #FFC229;
}

body.pg-kids .hero-bg { background-image: url('images/bg-2.jpg'); }

body.pg-kids .glow-top {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255, 194, 41, .18) 0%, transparent 70%);
}

body.pg-kids .glow-amber {
  position: fixed; bottom: -100px; right: -100px; width: 400px; height: 400px;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255, 90, 54, .08) 0%, transparent 70%);
}

body.pg-kids .page {
  position: relative; z-index: 1; max-width: 1040px; margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) clamp(20px, 5vw, 48px);
}

body.pg-kids .article-footer {
  border-top: 1px solid var(--rule); padding-top: clamp(24px, 4vh, 40px);
  margin-top: clamp(40px, 7vh, 64px); display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
body.pg-kids .footer-copy { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(200, 196, 188, .3); letter-spacing: .06em; }
body.pg-kids .footer-copy strong { color: rgba(200, 196, 188, .45); }
body.pg-kids .more-guides { display: flex; gap: 12px; flex-wrap: wrap; }
body.pg-kids .more-link {
  font-size: 12px; color: var(--mist); text-decoration: none; opacity: .6;
  transition: opacity .2s; display: flex; align-items: center; gap: 5px;
}
body.pg-kids .more-link:hover { opacity: 1; color: var(--sage); }

/* ── Hub panel (kids/index.html) ── */
body.pg-kids-home .kids-hub-panel {
  position: relative; z-index: 1; background: var(--kid-paper); color: var(--kid-ink);
  border-radius: 22px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

body.pg-kids-home .kids-hub-intro {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(28px, 5vh, 44px);
}
body.pg-kids-home .kids-hub-gigi {
  flex-shrink: 0; width: clamp(84px, 12vw, 130px); aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden;
}
body.pg-kids-home .kids-hub-gigi img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
}

body.pg-kids-home .kids-hub-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--kid-teal);
  letter-spacing: .18em; text-transform: uppercase; display: flex; align-items: center;
  gap: 7px; margin-bottom: 8px;
}
body.pg-kids-home .kids-hub-headline {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900;
  font-size: clamp(32px, 6vw, 54px); line-height: 1.1; color: var(--kid-coral); margin-bottom: 8px;
}
body.pg-kids-home .kids-hub-sub { font-size: clamp(14px, 1.8vw, 17px); line-height: 1.6; color: var(--kid-ink); opacity: .85; max-width: 46ch; }

body.pg-kids-home .kids-hub-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 24px);
}
body.pg-kids-home .kids-hub-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--kid-ink);
  background: #fff; border: 2px solid rgba(59, 42, 30, .08); border-radius: 18px;
  padding: clamp(20px, 3vw, 28px); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.pg-kids-home .kids-hub-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(59, 42, 30, .14); }
body.pg-kids-home .kids-hub-card-stories { border-color: rgba(47, 198, 214, .3); }
body.pg-kids-home .kids-hub-card-stories:hover { border-color: var(--kid-teal); }
body.pg-kids-home .kids-hub-card-play { border-color: rgba(255, 90, 54, .3); }
body.pg-kids-home .kids-hub-card-play:hover { border-color: var(--kid-coral); }
body.pg-kids-home .kids-hub-card-match { border-color: rgba(255, 194, 41, .4); }
body.pg-kids-home .kids-hub-card-match:hover { border-color: var(--kid-sun); }
body.pg-kids-home .kids-hub-card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; color: #fff;
}
body.pg-kids-home .kids-hub-card-stories .kids-hub-card-icon { background: var(--kid-teal); }
body.pg-kids-home .kids-hub-card-play .kids-hub-card-icon { background: var(--kid-coral); }
body.pg-kids-home .kids-hub-card-match .kids-hub-card-icon { background: var(--kid-sun); color: #5c3d00; }
body.pg-kids-home .kids-hub-card-title {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: clamp(19px, 2.4vw, 24px);
}
body.pg-kids-home .kids-hub-card-blurb { font-size: 13.5px; line-height: 1.6; opacity: .78; flex: 1; }
body.pg-kids-home .kids-hub-card-cta { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
body.pg-kids-home .kids-hub-card-stories .kids-hub-card-cta { color: var(--kid-teal); }
body.pg-kids-home .kids-hub-card-play .kids-hub-card-cta { color: var(--kid-coral); }
body.pg-kids-home .kids-hub-card-match .kids-hub-card-cta { color: #8a6500; }
body.pg-kids-home .kids-hub-card-cta i { transition: transform .18s; }
body.pg-kids-home .kids-hub-card:hover .kids-hub-card-cta i { transform: translateX(3px); }

@media (max-width: 900px) {
  body.pg-kids-home .kids-hub-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body.pg-kids-home .kids-hub-intro { flex-direction: column; text-align: center; }
  body.pg-kids-home .kids-hub-cards { grid-template-columns: 1fr; }
}

/* ── Stories crosslink card variant (Build a Loop promo on /kids/stories) ── */
body.pg-stories .stories-crosslink-play { margin-bottom: 16px; }
body.pg-stories .stories-crosslink-play a { border-color: rgba(255, 90, 54, .4); color: #ff8a68; }
body.pg-stories .stories-crosslink-play a:hover { background: rgba(255, 90, 54, .12); border-color: #ff8a68; }

/* ============================================================
   KIDS PLAY — /kids/play  (Build a Loop game)
   ============================================================ */
body.pg-kids-play { line-height: 1.5; }

body.pg-kids-play .page { max-width: 1200px; padding-top: clamp(12px, 2vw, 24px); }

body.pg-kids-play .kp-app {
  position: relative; z-index: 1; max-width: 1140px; margin: 0 auto;
  background: var(--kid-paper); color: var(--kid-ink);
  border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  padding: clamp(14px, 2.4vw, 22px);
  display: flex; flex-direction: column; gap: clamp(12px, 2vw, 16px);
}

/* ── Header ── */
.kp-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kp-header-left { display: flex; align-items: center; gap: 12px; }
.kp-back-link {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; color: var(--kid-ink); opacity: .6; text-decoration: none;
  transition: opacity .18s, background .18s;
}
.kp-back-link:hover { opacity: 1; background: rgba(59, 42, 30, .08); }
.kp-header-title {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: clamp(16px, 2.4vw, 20px);
  color: var(--kid-coral);
}
.kp-header-right { display: flex; align-items: center; gap: 8px; }
.kp-header-link {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--kid-ink); opacity: .6; text-decoration: none; padding: 8px 10px;
}
.kp-header-link:hover { opacity: 1; }
.kp-sound-toggle, .kp-cert-btn, .kp-restart-btn {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  font-family: inherit; border-radius: 999px; padding: 9px 12px; cursor: pointer;
  border: 2px solid rgba(59, 42, 30, .12); background: #fff; color: var(--kid-ink);
  transition: border-color .18s, color .18s, background .18s;
}
.kp-restart-btn:hover { border-color: rgba(59, 42, 30, .3); }
.kp-sound-toggle { padding: 9px; width: 36px; height: 36px; justify-content: center; }
.kp-sound-toggle[aria-pressed="true"] { border-color: var(--kid-teal); color: var(--kid-teal); }
.kp-cert-btn:disabled { opacity: .4; cursor: not-allowed; }
.kp-cert-btn:not(:disabled) { border-color: var(--kid-sun); background: #FFF3D2; color: #8a5a00; }
.kp-cert-btn:not(:disabled):hover { border-color: #e0a800; }

/* ── Stage ── */
.kp-main { display: flex; flex-direction: column; gap: clamp(10px, 1.8vw, 16px); }
.kp-board { display: flex; gap: clamp(14px, 2.5vw, 22px); align-items: stretch; }
.kp-stage-wrap {
  position: relative; border-radius: 18px; overflow: hidden; flex: 1; min-width: 0;
  background: linear-gradient(180deg, #EAF7FA 0%, #FBF3DD 100%);
  border: 2px solid rgba(59, 42, 30, .08);
  padding: 58px 12px 14px;
}
.kp-canvas-wrap {
  position: relative; height: min(36vh, 300px); max-width: 100%; margin: 0 auto;
  aspect-ratio: 440 / 340;
}
.kp-canvas { display: block; width: 100%; height: 100%; }

/* ── Per-piece info cards (shown once a piece is placed, wide screens only) ── */
.kp-info-card {
  display: none; position: absolute; width: 168px; transform: translateY(-50%);
  background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 11.5px; line-height: 1.4;
  color: var(--kid-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  opacity: 0; transition: opacity .3s ease;
}
.kp-info-card.is-visible { opacity: 1; }
.kp-info-card strong { display: block; font-size: 12px; margin-bottom: 3px; color: var(--kid-coral); }
.kp-info-left { left: 14px; }
.kp-info-right { right: 14px; }
#kp-info-tank { top: 26%; }
#kp-info-bed { top: 26%; }
#kp-info-pump { top: 80%; }

@media (min-width: 1100px) {
  .kp-info-card { display: block; }
}

.kp-gigi-hint {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: flex; align-items: flex-start; gap: 8px; max-width: min(78%, 360px);
}
.kp-gigi-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
.kp-gigi-avatar img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.18));
}
.kp-gigi-bubble {
  position: relative; background: #fff; border-radius: 14px; padding: 9px 13px;
  font-size: 12.5px; line-height: 1.45; font-weight: 600; color: var(--kid-ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12); margin-top: 4px;
}
.kp-gigi-bubble::before {
  content: ''; position: absolute; left: -6px; top: 12px; width: 12px; height: 12px;
  background: #fff; transform: rotate(45deg); border-radius: 2px;
}

.kp-power-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  min-width: 58px; height: 40px; padding: 0 14px; border-radius: 999px; border: none; cursor: pointer;
  background: #cbd5d1; color: #fff; font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900; font-size: 14px; letter-spacing: .03em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  transition: background .2s, transform .15s;
}
.kp-power-btn:disabled { cursor: not-allowed; opacity: .55; }
.kp-power-btn.is-ready { background: var(--kid-coral); }
.kp-power-btn[aria-pressed="true"] { background: var(--kid-leaf); }
.kp-power-btn:not(:disabled):active { transform: scale(.92); }
.kp-power-btn.is-pulsing { animation: kp-pulse 1.4s ease-in-out infinite; }

@keyframes kp-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(0,0,0,.18), 0 0 0 0 rgba(255,90,54,.45); }
  50% { box-shadow: 0 8px 20px rgba(0,0,0,.18), 0 0 0 14px rgba(255,90,54,0); }
}

.kp-power-hint {
  position: absolute; top: 56px; right: 10px; z-index: 3; max-width: 110px; text-align: center;
  background: var(--kid-ink); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.3;
  padding: 6px 10px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.kp-power-hint.is-visible { opacity: 1; }

.kp-grow-timer {
  position: absolute; bottom: 14px; right: 14px; z-index: 3; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.kp-grow-timer.is-visible { opacity: 1; }
.kp-grow-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.kp-grow-timer-track { fill: none; stroke: rgba(59, 42, 30, .12); stroke-width: 6; }
.kp-grow-timer-progress {
  fill: none; stroke: var(--kid-leaf); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 169.6; stroke-dashoffset: 169.6;
  transition: stroke-dashoffset .25s linear;
}
.kp-grow-timer-text {
  position: relative; font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900;
  font-size: 13px; color: var(--kid-ink);
}

/* Canvas SVG pieces */
.kp-slot-outline { fill: none; stroke: rgba(59, 42, 30, .28); stroke-width: 2.5; stroke-dasharray: 7 7; }
.kp-slot-outline.is-filled { stroke: none; }
.kp-slot-fill { fill-opacity: 0; transition: fill-opacity .25s ease; }
.kp-slot-fill.is-filled { fill-opacity: 1; }

.kp-icons-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.kp-slot-icon {
  position: absolute; transform: translate(-50%, -50%); color: #fff;
  font-size: clamp(20px, 4.2vw, 32px); opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.kp-slot-icon.is-filled { opacity: 1; }

.kp-swim-fish {
  transform: translateY(-50%) scaleX(1);
  animation-name: kp-swim; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
@keyframes kp-swim {
  0%, 100% { left: var(--swim-start); transform: translateY(-50%) scaleX(1); }
  48% { left: var(--swim-end); transform: translateY(-50%) scaleX(1); }
  50% { left: var(--swim-end); transform: translateY(-50%) scaleX(-1); }
  98% { left: var(--swim-start); transform: translateY(-50%) scaleX(-1); }
}
.kp-pipe {
  fill: none; stroke: var(--kid-teal); stroke-width: 7; stroke-linecap: round;
  transition: stroke-dashoffset .7s ease;
}
.kp-pipe.is-flowing { stroke-dasharray: 10 8; animation: kp-flow 0.6s linear infinite; }
@keyframes kp-flow { to { stroke-dashoffset: -18; } }

.kp-piece-settle { animation: kp-settle .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes kp-settle { 0% { transform: scale(.7); opacity: .4; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.kp-piece-shake { animation: kp-shake .4s ease; }
@keyframes kp-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* ── Tray (left column on wide screens, row above the stage on narrow ones) ── */
.kp-tray {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 100px; gap: 18px; padding: 4px;
}
.kp-tray-piece {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: none; cursor: grab; touch-action: none; padding: 0;
  font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.kp-tray-piece:active { cursor: grabbing; }
.kp-tray-piece.is-placed { display: none; }
.kp-tray-piece-shape { position: relative; display: block; width: 74px; }
.kp-tray-piece-svg {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.18));
}
.kp-tray-piece-shape .kp-piece-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #fff; font-size: 18px;
}
.kp-tray-piece-label {
  font-size: 11px; font-weight: 700; color: var(--kid-ink); opacity: .75;
  text-align: center; line-height: 1.2;
}
.kp-tray-piece.kp-dragging { position: fixed; z-index: 50; pointer-events: none; }

/* ── Toasts ── */
.kp-toast-layer {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 80;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.kp-toast {
  background: var(--kid-ink); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.3);
  animation: kp-toast-pop .3s cubic-bezier(.34,1.56,.64,1), kp-toast-fade .3s ease 1.1s forwards;
}
@keyframes kp-toast-pop { 0% { transform: scale(.6) translateY(-8px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes kp-toast-fade { to { opacity: 0; transform: translateY(-6px); } }

/* ── Selector strip ── */
.kp-selector-strip {
  display: flex; gap: clamp(16px, 3vw, 32px); justify-content: center; flex-wrap: wrap;
  opacity: .35; pointer-events: none; transition: opacity .3s ease;
}
.kp-selector-strip.is-enabled { opacity: 1; pointer-events: auto; }
.kp-selector-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: 8px; text-align: center; }
.kp-selector-options { display: flex; gap: 8px; }
.kp-swatch {
  width: 62px; min-height: 62px; border-radius: 14px; border: 3px solid transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 15px; padding: 6px 3px; font-family: inherit;
  transition: transform .15s, border-color .15s;
}
.kp-swatch:hover { transform: scale(1.06); }
.kp-swatch.is-selected { border-color: var(--kid-ink); }
.kp-swatch-label { font-size: 9px; font-weight: 800; line-height: 1.15; text-align: center; }

/* ── Harvest row ── */
.kp-harvest-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.kp-harvest-btn {
  display: flex; align-items: center; gap: 9px; font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900; font-size: 15px; color: #fff; background: #cbd5d1; border: none;
  border-radius: 999px; padding: 13px 26px; cursor: pointer; transition: background .2s, transform .15s;
}
.kp-harvest-btn:disabled { cursor: not-allowed; }
.kp-harvest-btn.is-active { background: var(--kid-sun); color: #5c3d00; }
.kp-harvest-btn.is-active.is-pulsing { animation: kp-harvest-pulse 1.2s ease-in-out infinite; }
.kp-harvest-btn:not(:disabled):active { transform: scale(.96); }
@keyframes kp-harvest-pulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(0,0,0,.15), 0 0 0 0 rgba(255,194,41,.55); }
  50% { box-shadow: 0 6px 16px rgba(0,0,0,.15), 0 0 0 12px rgba(255,194,41,0); }
}
.kp-timeline { display: flex; gap: 10px; }
.kp-timeline-pod {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid rgba(59,42,30,.15);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: rgba(59,42,30,.3);
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.kp-timeline-pod.is-filled { background: var(--kid-leaf); border-color: var(--kid-leaf); color: #fff; }
.kp-timeline-pod.is-popping { animation: kp-settle .4s cubic-bezier(.34,1.56,.64,1); }

/* ── Footer ── */
.kp-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 8px;
}
.kp-footer-copy { font-family: 'DM Mono', monospace; font-size: 10px; color: rgba(59,42,30,.4); }
.kp-footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.kp-footer-nav a { font-size: 12px; color: rgba(59,42,30,.6); text-decoration: none; }
.kp-footer-nav a:hover { color: var(--kid-coral); }

/* ── Confetti ── */
.kp-confetti-layer { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; }
.kp-confetti-piece {
  position: absolute; top: -20px; width: 9px; height: 14px; opacity: .9; border-radius: 2px;
  animation-name: kp-confetti-fall; animation-timing-function: ease-in; animation-fill-mode: forwards;
}
@keyframes kp-confetti-fall {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) translateX(var(--drift)) rotate(var(--rot)); opacity: .85; }
}

/* ── Modal ── */
.kp-modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(13, 20, 15, .6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.kp-modal-overlay[hidden] { display: none; }
.kp-modal {
  position: relative; background: var(--kid-paper); color: var(--kid-ink); border-radius: 20px;
  max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: clamp(24px, 4vw, 34px); box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.kp-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(59,42,30,.08); color: var(--kid-ink); cursor: pointer; font-size: 14px;
}
.kp-modal-gigi { width: 84px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; }
.kp-modal-gigi img { display: block; width: 100%; height: auto; }
.kp-modal-gigi-sm { width: 52px; margin-bottom: 8px; }
.kp-celebration-scene {
  margin: 0 auto 14px; border-radius: 12px; overflow: hidden; background: #FBF3DD;
  width: 78%; max-height: 170px;
}
.kp-celebration-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.kp-modal h2 {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 24px; text-align: center;
  color: var(--kid-coral); margin-bottom: 8px;
}
.kp-modal p { font-size: 14px; line-height: 1.6; text-align: center; margin-bottom: 16px; }

.kp-intro-modal-box { max-width: 480px; }
.kp-intro-gigi { width: 92px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.kp-intro-gigi img { display: block; width: 100%; height: auto; }
.kp-intro-modal-box p { text-align: left; font-size: 13.5px; margin-bottom: 12px; }
.kp-intro-modal-box p:last-of-type { margin-bottom: 20px; }
.kp-name-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.kp-name-input {
  width: 100%; font-family: inherit; font-size: 15px; padding: 11px 14px; border-radius: 10px;
  border: 2px solid rgba(59,42,30,.15); margin-bottom: 16px;
}
.kp-modal-btn {
  width: 100%; font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 15px;
  color: #fff; background: var(--kid-coral); border: none; border-radius: 999px; padding: 14px;
  cursor: pointer; transition: background .2s;
}
.kp-modal-btn:hover { background: #e64b28; }
.kp-modal-btn:disabled { background: #cbd5d1; cursor: not-allowed; }
.kp-cert-preview {
  border: 2px solid rgba(59,42,30,.15); border-radius: 12px; padding: 16px; margin-bottom: 16px; text-align: center;
}
.kp-cert-preview-title { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 13px; color: var(--kid-coral); }
.kp-cert-preview-name { font-family: 'Noto Serif JP', serif; font-size: 20px; margin: 6px 0; }
.kp-cert-preview-detail { font-size: 12px; opacity: .7; }

/* ── Certificate print view (screen: hidden) ── */
.kp-certificate-print { display: none; }

@media print {
  body.pg-kids-play * { visibility: hidden; }
  body.pg-kids-play .kp-certificate-print,
  body.pg-kids-play .kp-certificate-print * { visibility: visible; }
  body.pg-kids-play .kp-certificate-print {
    display: block; position: absolute; top: 0; left: 0; width: 100%;
  }
  @page { size: letter portrait; margin: 0.5in; }
}

.kp-cert-sheet {
  width: 7.5in; min-height: 10in; margin: 0 auto; background: #fff; color: #111;
  padding: 0.4in; box-sizing: border-box; font-family: 'Inria Sans', sans-serif;
  border: 6px solid #111; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.kp-cert-sheet .kp-cert-eyebrow { font-family: 'DM Mono', monospace; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; margin-top: 14px; }
.kp-cert-sheet h1 {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 34px; margin: 10px 0 4px;
}
.kp-cert-sheet .kp-cert-name { font-family: 'Noto Serif JP', serif; font-size: 30px; margin: 14px 0; border-bottom: 2px solid #111; padding-bottom: 6px; min-width: 60%; }
.kp-cert-sheet .kp-cert-body { font-size: 15px; line-height: 1.7; max-width: 5.6in; margin-bottom: 12px; }
.kp-cert-sheet .kp-cert-art { width: 5.4in; margin: 14px 0; }
.kp-cert-sheet .kp-cert-art img { width: 100%; height: auto; display: block; }
.kp-cert-sheet .kp-cert-footer { display: flex; justify-content: space-between; width: 100%; font-size: 11px; margin-top: auto; padding-top: 20px; }

@media (max-width: 900px) {
  .kp-stage-wrap { border-radius: 14px; }
}
@media (max-width: 640px) {
  .kp-board { flex-direction: column; }
  .kp-stage-wrap { order: -1; }
  .kp-tray {
    flex-direction: row; flex-wrap: wrap; width: auto;
    gap: clamp(12px, 4vw, 20px);
  }
}
@media (max-width: 480px) {
  .kp-header-link span, .kp-cert-btn span { display: none; }
  .kp-back-link span { display: none; }
  .kp-power-btn { min-width: 50px; height: 34px; font-size: 12.5px; padding: 0 10px; }
  .kp-gigi-avatar { width: 32px; height: 32px; }
  .kp-gigi-bubble { font-size: 11.5px; padding: 7px 10px; }
  .kp-harvest-btn { font-size: 13.5px; padding: 11px 20px; }
  .kp-grow-timer { width: 44px; height: 44px; bottom: 10px; right: 10px; }
  .kp-grow-timer-text { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .kp-pipe, .kp-slot-fill, .kp-slot-icon { transition: none !important; }
}

/* ============================================================
   MEMORY MATCH — second /kids/play mode
   ============================================================ */
.mode-tabs { display: flex; gap: 10px; margin-bottom: clamp(10px, 1.6vw, 16px); }
.mode-tab {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: 13px;
  padding: 9px 16px; border-radius: 999px; border: 2px solid rgba(59, 42, 30, .12);
  background: #fff; color: var(--kid-ink); opacity: .6; cursor: pointer;
  transition: opacity .18s, border-color .18s, background .18s, color .18s;
}
.mode-tab:hover { opacity: .85; }
.mode-tab.is-active {
  opacity: 1; background: var(--kid-coral); border-color: var(--kid-coral); color: #fff;
}
.mode-tab-thumb {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
#mode-tab-build .mode-tab-thumb { color: var(--kid-leaf); }
#mode-tab-match .mode-tab-thumb { color: var(--kid-teal); }

.mode-panel { display: block; }
.mode-panel[hidden] { display: none; }
.match-panel { display: flex; flex-direction: column; gap: clamp(8px, 1.4vw, 14px); }
.match-panel[hidden] { display: none; }

.match-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.match-gigi-hint { display: flex; align-items: center; gap: 10px; }
.match-gigi-bubble {
  position: relative; background: #fff; border-radius: 14px; padding: 9px 13px;
  font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--kid-ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}
.match-progress {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 900; font-size: 14px;
  color: var(--kid-ink); background: #fff; border-radius: 999px; padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.match-board {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.6vw, 14px);
  max-width: min(460px, 40vh); width: 100%; margin: 0 auto;
}

.match-card {
  position: relative; aspect-ratio: 1; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background-color: #FFF; border: 1px solid #CCC; padding: 30px 10px; border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.match-card:focus-visible { outline: 3px solid var(--kid-teal); outline-offset: 3px; }
.match-card-inner { position: relative; width: 100%; height: 100%; }
.match-card-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px;
  transition: transform .22s ease, opacity .16s ease;
}
.match-card-back {
  color: rgba(59, 42, 30, .28); font-size: clamp(22px, 4.4vw, 32px);
  transform: scaleX(1); opacity: 1;
}
.match-card-front {
  color: var(--icon-color, var(--kid-ink)); font-size: clamp(18px, 3.6vw, 26px);
  transform: scaleX(0); opacity: 0;
}
.match-card.is-flipped .match-card-back { transform: scaleX(0); opacity: 0; }
.match-card.is-flipped .match-card-front { transform: scaleX(1); opacity: 1; }
.match-card-label {
  font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: clamp(9px, 1.6vw, 11px);
  color: var(--kid-ink); text-align: center; line-height: 1.15;
}
.match-card.is-matched { cursor: default; border-color: var(--kid-leaf); box-shadow: 0 2px 6px rgba(95, 191, 76, .25); }
.match-card.is-celebrating .match-card-front { animation: match-pulse .5s ease; }
@keyframes match-pulse {
  0%, 100% { transform: scaleX(1) scale(1); }
  50% { transform: scaleX(1) scale(1.08); }
}

@media (max-width: 480px) {
  .match-board { max-width: 340px; gap: 8px; }
  .match-progress { font-size: 12px; padding: 7px 12px; }
  .mode-tab-label { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .match-card-face { transition: none !important; }
  .match-card.is-celebrating .match-card-front { animation: none !important; box-shadow: 0 0 0 4px var(--kid-sun) inset; }
}


