
    :root {
      --cream: #F4EFE6;
      --cream-deep: #ECE5D6;
      --ink: #2A2A2A;
      --ink-low: #6A6A6A;
      --ink-mid: #9A9A9A;
      --forest: #2A7050;
      --forest-bright: #2A7050;
      --gold: #B08B57;
      --gold-soft: rgba(176, 139, 87, 0.12);
      --forest-soft: rgba(42, 112, 80, 0.10);
      --forest-mist: rgba(42, 112, 80, 0.05);
      --transition: cubic-bezier(0.16, 1, 0.3, 1);
      --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body {
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
      background: var(--cream);
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
    body {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    a { color: inherit; text-decoration: none; }

    /* ============ Header (matches shop/cart/connect) ============ */
    /* The .nav is now controlled by the global style.css — discover.html
       uses the same <header class="nav"> as the rest of the site, so the
       local .nav / .nav__* / .btn-nav / .nav-mobile-* rules that used
       to live here are removed to avoid overriding the shared nav. */

    /* ============ Hero (compact, centered) ============ */
    .hero {
      display: block;                 /* override home page .hero grid */
      grid-template-columns: none;    /* override home page 1fr 1fr */
      min-height: 0;                  /* override 82vh */
      padding: 220px 24px 16px;       /* extra top to clear fixed nav (192px) */
      text-align: center;
      max-width: 640px;
      margin: 0 auto;
    }
    .hero-eyebrow {
      font-size: 11px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 14px;
      font-weight: 500;
    }
    .hero h1 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(28px, 4.2vw, 44px);
      font-weight: 400;
      line-height: 1.15;
      color: var(--ink);
      margin: 0 0 14px;               /* override home page 24px */
      letter-spacing: -0.01em;
      max-width: 100%;                /* prevent grid overflow */
    }
    .hero h1 em {
      font-style: italic;
      color: var(--forest);
    }
    .hero-sub {
      font-size: 14.5px;
      line-height: 1.6;
      color: var(--ink-low);
      max-width: 520px;
      margin: 0 auto;
    }

    /* ============ Stage (the card stack) ============ */
    .stage {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px 24px 8px;
      min-height: 540px;
      position: relative;
      overflow: hidden;
    }
    .stage-inner {
      position: relative;
      width: 100%;
      max-width: 460px;
      height: 560px;
      perspective: 1200px;
      perspective-origin: 50% 30%;
    }
    .stack {
      position: relative;
      width: 100%;
      height: 100%;
    }
    .card {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background: white;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 12px 36px -8px rgba(20, 20, 20, 0.18), 0 2px 6px rgba(20, 20, 20, 0.05);
      cursor: grab;
      user-select: none;
      -webkit-user-select: none;
      touch-action: pan-y;
      transition: transform 0.45s var(--spring), opacity 0.35s ease;
      transform-origin: 50% 60%;
      will-change: transform;
    }
    .card.dragging {
      transition: none;
      cursor: grabbing;
    }
    .card.flying {
      transition: transform 0.55s cubic-bezier(0.45, 0, 0.15, 1), opacity 0.45s ease;
      pointer-events: none;
    }
    .card.fly-out-right {
      transform: translate(160%, -50px) rotate(28deg) !important;
      opacity: 0;
    }
    .card.fly-out-left {
      transform: translate(-160%, -50px) rotate(-28deg) !important;
      opacity: 0;
    }
    .card.hidden-back {
      opacity: 0;
      pointer-events: none;
    }

    .card-image {
      width: 100%;
      height: 63%;
      background-size: cover;
      background-position: center;
      background-color: #ddd;
      position: relative;
    }
    .card-image::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 32%;
      background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.04));
      pointer-events: none;
    }
    .kanji-overlay {
      position: absolute;
      top: 18px; left: 20px;
      font-family: 'Noto Serif JP', serif;
      font-size: 26px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.94);
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 0, 0, 0.25);
      z-index: 2;
      pointer-events: none;
      letter-spacing: 0.02em;
    }
    .hanko-overlay {
      position: absolute;
      top: 16px; right: 18px;
      width: 48px; height: 48px;
      background: var(--gold);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Noto Serif JP', serif;
      font-size: 18px;
      font-weight: 600;
      transform: rotate(-5deg);
      box-shadow: 0 4px 14px rgba(176, 139, 87, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
      z-index: 2;
      pointer-events: none;
    }
    .chevron {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px; height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      opacity: 0;
      transition: opacity 0.2s ease, transform 0.2s ease;
      pointer-events: none;
      z-index: 5;
      font-size: 32px;
      font-weight: 300;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    .chevron-left { left: 18px; }
    .chevron-right { right: 18px; }
    .card.dragging-right .chevron-right { opacity: 1; }
    .card.dragging-left .chevron-left { opacity: 1; }

    .card-body {
      padding: 22px 26px 24px;
      background: white;
      height: 37%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
    }
    .card-body::before {
      content: '';
      position: absolute;
      top: 0; left: 24px; right: 24px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--forest-soft), transparent);
    }
    .card-tag {
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 6px;
      font-weight: 500;
    }
    .card-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: 26px;
      font-weight: 500;
      color: var(--ink);
      line-height: 1.18;
      margin-bottom: 4px;
    }
    .card-desc {
      font-size: 13px;
      line-height: 1.5;
      color: var(--ink-low);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 12px;
    }
    .card-price {
      font-family: 'Cormorant Garamond', serif;
      font-size: 18px;
      color: var(--ink);
      font-weight: 500;
    }
    .card-link {
      font-size: 11px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--forest);
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-weight: 500;
      transition: gap 0.2s ease, color 0.2s ease;
    }
    .card-link:hover { gap: 8px; color: var(--forest-bright); }

    /* ============ Actions (buttons below cards) ============ */
    .actions {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
      padding: 20px 24px 8px;
      max-width: 480px;
      margin: 0 auto;
    }
    .btn {
      font-family: inherit;
      font-size: 12.5px;
      font-weight: 500;
      letter-spacing: 0.08em;
      padding: 11px 22px;
      border-radius: 999px;
      border: 1px solid var(--forest);
      background: transparent;
      color: var(--forest);
      cursor: pointer;
      transition: all 0.2s var(--transition);
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-width: 120px;
    }
    .btn:hover {
      background: var(--forest);
      color: white;
      transform: translateY(-1px);
    }
    .btn:active { transform: translateY(0); }
    .btn.btn-primary {
      background: var(--forest);
      color: white;
      border-color: var(--forest);
      min-width: 160px;
      padding: 11px 28px;
    }
    .btn.btn-primary:hover {
      background: var(--ink);
      border-color: var(--ink);
    }
    .btn svg { width: 13px; height: 13px; }

    /* ============ Meta (progress + count + kbd hint) ============ */
    .meta {
      text-align: center;
      padding: 16px 24px 56px;
      max-width: 480px;
      margin: 0 auto;
    }
    .dots {
      display: flex;
      justify-content: center;
      gap: 6px;
      margin-bottom: 12px;
    }
    .dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--forest);
      opacity: 0.22;
      cursor: pointer;
      transition: all 0.25s var(--transition);
      border: none;
      padding: 0;
    }
    .dot:hover { opacity: 0.5; transform: scale(1.15); }
    .dot.active {
      opacity: 1;
      transform: scale(1.4);
      background: var(--gold);
    }
    .meta-text {
      font-size: 11.5px;
      color: var(--ink-mid);
      letter-spacing: 0.04em;
    }
    .meta-text .strong {
      color: var(--ink);
      font-weight: 500;
    }
    .kbd {
      display: inline-block;
      font-family: 'JetBrains Mono', monospace;
      background: white;
      border: 1px solid var(--forest-soft);
      padding: 1px 6px;
      border-radius: 4px;
      font-size: 10px;
      color: var(--ink);
      margin: 0 2px;
      min-width: 18px;
      text-align: center;
      box-shadow: 0 1px 0 var(--forest-soft);
    }

    /* ============ Footer (minimal) ============ */
    .discover-foot {
      text-align: center;
      padding: 16px 24px 24px;
      font-size: 11px;
      color: var(--ink-mid);
      letter-spacing: 0.08em;
    }
    .discover-foot a { color: var(--ink-low); text-decoration: none; border-bottom: 1px solid var(--forest-soft); }

    /* ============ Toast (non-blocking confirmations) ============ */
    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: var(--ink);
      color: white;
      padding: 10px 20px;
      border-radius: 999px;
      font-size: 13px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease, transform 0.3s var(--spring);
      z-index: 200;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    /* ============ Mobile ============ */
    @media (max-width: 768px) {
      .nav { padding: 14px 20px; }
      .nav__links { display: none; }
      .nav-mobile-toggle {
        display: flex;
        width: 36px; height: 36px;
        background: none;
        border: none;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        color: var(--ink);
        margin-left: auto;
      }
      .nav-mobile-menu {
        position: fixed;
        inset: 0;
        background: rgba(244, 239, 230, 0.98);
        backdrop-filter: blur(20px);
        z-index: 200;
        display: none;
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
      }
      .nav-mobile-menu.open { display: flex; }
      .nav-mobile-menu a {
        font-family: 'Cormorant Garamond', serif;
        font-size: 28px;
        padding: 12px 0;
        color: var(--ink);
        border-bottom: 1px solid var(--forest-soft);
      }

      .hero { padding: 140px 20px 8px; } /* clear smaller mobile nav */
      .hero h1 { font-size: 26px; }
      .hero-sub { font-size: 13.5px; }

      .stage { padding: 16px 20px 4px; min-height: 460px; }
      .stage-inner { width: 320px; height: 460px; }
      .card-image { height: 58%; }
      .card-body { padding: 18px 22px 20px; height: 42%; }
      .card-title { font-size: 22px; }
      .card-desc { font-size: 12.5px; -webkit-line-clamp: 2; }
      .kanji-overlay { font-size: 22px; top: 14px; left: 16px; }
      .hanko-overlay { width: 42px; height: 42px; font-size: 16px; top: 12px; right: 14px; }

      .actions {
        flex-direction: column;
        gap: 8px;
        max-width: 320px;
        padding: 16px 20px 8px;
      }
      .btn { width: 100%; min-width: 0; }
      .btn.btn-primary { min-width: 0; }

      .meta { padding: 8px 20px 40px; }
    }

    @media (max-width: 380px) {
      .stage-inner { width: 100%; max-width: 320px; height: 420px; }
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.15s !important;
      }
    }
  
/* ============================================================
   STUDIO FEATURE SECTION — small images, quiet captions, lots
   of breathing room. The opposite of a Pinterest dump.
   ============================================================ */

.studio-feature {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 96px;
  border-top: 1px solid rgba(42, 63, 42, 0.08);
}

/* Section head — mirrors ritual.html's section-mark + h2 + lede */
.studio-feature__head {
  text-align: center;
  margin: 0 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.studio-feature__kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ink-mid);
  text-transform: none;
}
.studio-feature__rule {
  width: 60px; height: 1px;
  background: var(--gold);
  display: block;
}
.studio-feature__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  text-align: center;
  margin: 0 auto 16px;
  max-width: 720px;
  letter-spacing: -0.005em;
}
.studio-feature__lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink-low);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 24px;
}
.studio-feature__cta {
  display: inline-block;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--forest);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  display: block;
  margin-left: auto; margin-right: auto;
}
.studio-feature__cta:hover { color: var(--gold); }

/* The grid — 4 columns × 2 rows = 8 frames. Frame #8 is wider (spans 2).
   Row 1: 4 frames (4×2=8 cols). Row 2: 3 frames (3×2=6) + 1 wide (2) = 8.  */
.studio-feature__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 28px 22px;
  margin-top: 16px;
}
.studio-frame {
  margin: 0;
  grid-column: span 2;
  display: flex; flex-direction: column;
}
.studio-frame--tall { grid-column: span 2; grid-row: span 1; }
.studio-frame--wide { grid-column: span 2; }

/* Image — small, contained, never huge */
.studio-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream-deep);
  border-radius: 2px;
  transition: transform 0.6s var(--transition);
  filter: saturate(0.96);
}
.studio-frame:hover img { transform: scale(1.02); }

/* Caption — quiet, no AI-tells. One line name, one line kanji, one line note. */
.studio-frame figcaption {
  padding: 12px 0 0;
  display: flex; flex-direction: column; gap: 2px;
  text-align: left;
}
.studio-frame__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.studio-frame__ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 2px;
}
.studio-frame__note {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-low);
  line-height: 1.4;
  margin-top: 4px;
}

.studio-feature__foot {
  text-align: center;
  margin: 56px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}

/* Tablet */
@media (max-width: 960px) {
  .studio-feature__grid { grid-template-columns: repeat(4, 1fr); }
  .studio-frame, .studio-frame--tall { grid-column: span 1; }
  .studio-frame--wide { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 600px) {
  .studio-feature { padding: 56px 20px 64px; }
  .studio-feature__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .studio-frame, .studio-frame--tall, .studio-frame--wide { grid-column: span 1; }
}
