/* ──────────────────────────────────────────────────────────────────
   CuriOtaku — main stylesheet
   "Curiosity cabinet at dusk" — boutique gallery + restrained vaporwave
   ────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0a14;
  --elev: #14132a;
  --ink: #ece6d4;
  --muted: #8a8499;
  --dim: #4a4757;
  --accent: #c9a86a;
  --accent-glow: #e8c87a;
  --frame: rgba(236, 230, 212, 0.10);
  --frame-strong: rgba(236, 230, 212, 0.18);
  --display-font: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --display-font-jp: 'Shippori Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --body-font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono-font: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --jp-font: 'Shippori Mincho', 'Noto Serif JP', serif;
  --side: clamp(20px, 5.5vw, 88px);
  --rule: rgba(236, 230, 212, 0.08);
}

/* Light palette adjustment */
:root[data-palette="vellum"] {
  --frame: rgba(26, 22, 32, 0.14);
  --frame-strong: rgba(26, 22, 32, 0.25);
  --dim: #b0a89a;
  --rule: rgba(26, 22, 32, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}

button {
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

a { color: inherit; text-decoration: none; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ───────────── Film grain overlay ───────────── */
.film-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
:root[data-grain="off"] .film-grain { display: none; }

/* ───────────── Type helpers ───────────── */
.serif { font-family: var(--display); font-weight: 500; }
.jp-mini { font-family: var(--jp-font); font-size: 0.78em; color: var(--muted); letter-spacing: 0.04em; }
.jp-medium { font-family: var(--jp-font); font-size: 1.1em; color: var(--accent); letter-spacing: 0.04em; display: block; margin-top: 4px; font-weight: 400; }
.mono-tiny {
  font-family: var(--mono-font);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.mono { font-family: var(--mono-font); font-variant-numeric: tabular-nums; }
.dim { color: var(--muted) !important; opacity: 0.7; }
.hi { color: var(--accent); }
.eyebrow {
  font-family: var(--mono-font);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ───────────── Bi-title ───────────── */
.bititle .bititle-en {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}
.bititle .bititle-jp {
  font-family: var(--jp-font);
  color: var(--accent);
  margin-top: 6px;
  letter-spacing: 0.06em;
}
.bititle-sm .bititle-en { font-size: 24px; line-height: 1.15; }
.bititle-sm .bititle-jp { font-size: 14px; }
.bititle-md .bititle-en { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.bititle-md .bititle-jp { font-size: 16px; }
.bititle-lg .bititle-en { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -0.02em; }
.bititle-lg .bititle-jp { font-size: 20px; }
.bititle-center { text-align: center; }
.bititle-center .eyebrow { display: block; }

/* ───────────── Logo mark ───────────── */
/* Composition: [brush seal] | [typeset wordmark + katakana] */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo-seal {
  height: 100%;
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 100%;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.logo-img-dark { display: block; }
.logo-img-light { display: none; }
:root[data-palette="vellum"] .logo-img-dark { display: none; }
:root[data-palette="vellum"] .logo-img-light { display: block; }

.logo-rule {
  width: 1px;
  height: 62%;
  background: var(--frame-strong);
  display: inline-block;
}
.logo-type {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  /* Keep type a hair smaller than the seal so the seal leads visually. */
}
.logo-en {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.logo-jp {
  font-family: var(--jp-font);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* ───────────── Nav ───────────── */
.nav {
  position: sticky; top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--side);
}
.nav-logo {
  display: flex; align-items: center;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.nav-link {
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
  padding: 6px 2px;
  position: relative;
  transition: opacity 180ms ease;
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}
.nav-cart {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--frame-strong);
  border-radius: 999px;
  transition: border-color 180ms ease, background 180ms ease;
}
.nav-cart:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, transparent); }
.cart-count {
  font-family: var(--mono-font);
  font-size: 11px;
  background: var(--accent);
  color: var(--bg);
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  font-weight: 600;
}
.nav-rule {
  height: 1px;
  background: var(--rule);
}

/* Nav tail group — language toggle + cart sit together on the right */
.nav-tail {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--frame-strong);
  border-radius: 999px;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: border-color 180ms;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-opt {
  color: var(--muted);
  opacity: 0.7;
  transition: color 180ms, opacity 180ms;
}
.lang-opt.on { color: var(--ink); opacity: 1; }
.lang-sep { color: var(--muted); opacity: 0.5; }

/* The active display font — flips between Latin and Japanese based on lang. */
:root { --display: var(--display-font); }
:root[data-lang="jp"] { --display: var(--display-font-jp); }

/* JP mode: body font fallback for non-display copy so Latin and kanji harmonise. */
:root[data-lang="jp"] body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', var(--body-font);
}
:root[data-lang="jp"] .bititle-en {
  letter-spacing: 0.01em;
}
:root[data-lang="jp"] .bititle-en.is-jp {
  line-height: 1.18;
  font-weight: 500;
}
:root[data-lang="jp"] .bititle-jp.is-en {
  font-family: var(--display-font);
  font-style: italic;
}
/* Logo: when in JP, katakana is primary (white-ink) and the wordmark is secondary (small accent). */
.logo-type-jp-primary {
  font-size: 17px !important;
  color: var(--ink) !important;
  letter-spacing: 0.06em !important;
}
.logo-type-en-secondary {
  font-size: 11px !important;
  color: var(--accent) !important;
  letter-spacing: 0.02em !important;
}

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 200ms ease;
  cursor: pointer;
}
.btn-arrow { display: inline-block; transition: transform 220ms ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn-ghost {
  border-color: var(--frame-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-full { width: 100%; justify-content: space-between; }
.btn-added { background: var(--accent) !important; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid var(--frame-strong);
  transition: color 200ms, border-color 200ms;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link .btn-arrow { transition: transform 220ms ease; }
.text-link:hover .btn-arrow { transform: translateX(3px); }

/* ───────────── Form inputs ───────────── */
.input, .select, .field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--frame-strong);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 14px;
  border-radius: 0;
  transition: border-color 180ms;
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder {
  color: var(--muted); opacity: 0.6;
}
.input:focus, .select:focus, .field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; font-family: var(--body-font); }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path fill='%238a8499' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ───────────── Portrait (real photo) ───────────── */
.portrait {
  position: relative;
  width: 100%;
  background: #0a0a14;
  overflow: hidden;
  border: 1px solid var(--frame);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight desaturation + warmth so it sits next to the gradient placeholders
     and dark palette without looking like a snapshot. */
  filter: saturate(0.88) contrast(1.04);
}
.portrait-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Just a hairline frame to match the rest of the dark UI; no vignette —
     the portraits have bright real-world backgrounds that don't want a dark
     wash crushing into them. */
  box-shadow: inset 0 0 0 1px rgba(236, 230, 212, 0.06);
}
.portrait .product-image-caption {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border: 1px solid var(--frame);
}

/* ───────────── Product image (placeholder) ───────────── */
.product-image {
  position: relative;
  width: 100%;
  background: #0a0a14;
  overflow: hidden;
  border: 1px solid var(--frame);
}
.product-image svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.product-image-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.04);
}
.product-image-frame {
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(236, 230, 212, 0.06);
}
.product-image-caption {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(10,10,20,0.6);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border: 1px solid var(--frame);
}
.product-image-caption .mono-tiny {
  font-size: 9px; letter-spacing: 0.1em;
  color: var(--ink);
  opacity: 0.7;
}

/* ───────────── Product card ───────────── */
.product-card {
  display: flex; flex-direction: column;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: none;
  transition: transform 320ms cubic-bezier(.2,.7,.3,1);
}
.product-card:hover { transform: translateY(-4px); }
.product-card:hover .product-image-caption { opacity: 0; transition: opacity 200ms; }
.product-card .product-image {
  transition: border-color 320ms;
}
.product-card:hover .product-image { border-color: var(--frame-strong); }
.product-card-meta {
  display: flex; gap: 8px;
  align-items: baseline;
}
.product-card-title {
  display: flex; flex-direction: column;
  gap: 2px;
}
.product-card-title .serif {
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
}
.product-card-foot {
  display: flex; justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.product-card-dense .product-card-title .serif { font-size: 18px; }

/* ────────────────────────────────────────────────────────
   HOME
   ──────────────────────────────────────────────────────── */
.home { padding-bottom: 80px; }
.route-wrap { min-height: 60vh; }

/* HERO — full-bleed cabinet image with text overlay */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 980px);
  padding: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  z-index: 0;
}
.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* dim the top (so nav reads), darken bottom (where text sits), darken left (text legibility) */
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 55%, transparent) 0%, transparent 18%, transparent 45%, color-mix(in oklab, var(--bg) 88%, transparent) 100%),
    linear-gradient(90deg, color-mix(in oklab, var(--bg) 75%, transparent) 0%, color-mix(in oklab, var(--bg) 45%, transparent) 35%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: clamp(64px, 10vw, 140px) var(--side) clamp(80px, 10vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(560px, 88vh, 980px);
  gap: 0;
}
.hero-eyebrow {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  color: var(--muted);
}
.hero-eyebrow .dim { opacity: 0.6; }
.hero-title {
  display: flex;
  flex-direction: column;
  margin: 0 0 36px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.hero-en {
  font-size: clamp(40px, 5.8vw, 84px);
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.hero-en.italic { font-style: italic; color: var(--accent); }
.hero-jp {
  font-family: var(--jp-font);
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 18px;
  font-style: normal;
  font-weight: 400;
}
:root[data-lang="jp"] .hero-jp {
  font-family: var(--display-font);
  font-style: italic;
}
.hero-blurb p {
  max-width: 48ch;
  color: var(--ink);
  opacity: 0.86;
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 32px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-coord {
  position: absolute;
  z-index: 2;
  bottom: clamp(20px, 3vw, 32px);
  right: var(--side);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}

/* PILLARS */
.pillars {
  padding: clamp(60px, 8vw, 120px) var(--side);
  position: relative;
}
.pillars-rule {
  height: 1px; background: var(--rule);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.pillars-head { margin-bottom: clamp(40px, 5vw, 64px); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px 36px 64px;
  background: var(--bg);
  text-align: left;
  position: relative;
  transition: background 320ms;
  min-height: 280px;
}
.pillar:hover { background: var(--elev); }
.pillar-num {
  color: var(--accent);
  font-size: 10px;
}
.pillar-title {
  display: flex; flex-direction: column;
  gap: 4px;
}
.pillar-title .serif {
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink);
}
.pillar-blurb {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
  flex: 1;
}
.pillar-arrow {
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink);
  opacity: 0.4;
  transition: transform 320ms, opacity 320ms;
}
.pillar:hover .pillar-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translateX(8px);
}

/* VITRINE */
.vitrine {
  padding: clamp(60px, 8vw, 120px) var(--side);
}
.vitrine-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 60px);
  flex-wrap: wrap;
}
.vitrine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

/* WORKSHOP */
.workshop {
  padding: clamp(60px, 8vw, 120px) var(--side);
  background: var(--elev);
  position: relative;
}
.workshop-rule {
  position: absolute; top: 0; left: var(--side); right: var(--side);
  height: 1px; background: var(--rule);
}
.workshop-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.workshop-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.workshop-blurb {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}
.workshop-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.workshop-img:nth-child(1) { transform: translateY(-12px); }
.workshop-img:nth-child(2) { transform: translateY(12px); }
.workshop-img:nth-child(3) { transform: translateY(-6px); }

/* WAITLIST */
.waitlist-section {
  padding: clamp(60px, 8vw, 120px) var(--side);
  display: flex; justify-content: center;
}
.waitlist-card {
  width: 100%;
  max-width: 640px;
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid var(--frame);
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--accent) 4%, transparent));
}
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}
.waitlist-compact { max-width: none; }
.waitlist-intro {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--body-font);
  font-size: 13px;
}
.waitlist-thanks {
  font-size: 26px;
  color: var(--accent);
}
.waitlist.sent { gap: 8px; align-items: center; }

/* ────────────────────────────────────────────────────────
   SHOP
   ──────────────────────────────────────────────────────── */
.shop {
  padding: clamp(40px, 6vw, 80px) var(--side) 120px;
}
.shop-head {
  margin-bottom: clamp(36px, 4vw, 56px);
}
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
  flex-wrap: wrap;
}
.shop-filters {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 10px 16px;
  font-family: var(--mono-font);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--frame-strong);
  border-radius: 999px;
  transition: all 200ms;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on .dim { color: var(--bg) !important; opacity: 0.5; }
.shop-sort { display: flex; align-items: center; gap: 12px; }
.shop-sort .select { width: 200px; padding: 8px 32px 8px 12px; font-size: 12px; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

/* ────────────────────────────────────────────────────────
   PRODUCT DETAIL
   ──────────────────────────────────────────────────────── */
.product-page {
  padding: clamp(24px, 3vw, 36px) var(--side) 100px;
}
.crumbs {
  display: flex; gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  color: var(--muted);
}
.crumbs button { transition: color 180ms; }
.crumbs button:hover { color: var(--accent); }
.product-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: clamp(60px, 8vw, 120px);
}
.product-gallery {
  display: flex; flex-direction: column;
  gap: 16px;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.thumb {
  cursor: pointer;
  border: 1px solid var(--frame);
  transition: border-color 200ms;
  padding: 0;
}
.thumb.on { border-color: var(--accent); }
.thumb:hover { border-color: var(--frame-strong); }

.product-info {
  position: sticky; top: 96px;
  align-self: start;
  display: flex; flex-direction: column;
  gap: 24px;
}
.product-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
}
.status-available { color: var(--accent); }
.product-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.product-price {
  font-size: 24px;
  color: var(--accent);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.product-lore {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
}
.product-specs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.spec-label {
  color: var(--muted);
  font-size: 10px;
}
.spec-val {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.product-actions {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.reassure { color: var(--muted); line-height: 1.5; letter-spacing: 0.08em; }

.related {
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--rule);
}
.related .bititle { margin-bottom: 36px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

/* ────────────────────────────────────────────────────────
   COMMISSIONS
   ──────────────────────────────────────────────────────── */
.commissions {
  padding: clamp(40px, 6vw, 80px) var(--side) 120px;
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 8vw, 120px);
}
.comm-hero { display: flex; flex-direction: column; gap: 24px; max-width: 820px; }
.comm-blurb {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 64ch;
}
.comm-meta {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.comm-meta > div { color: var(--ink); display: flex; gap: 8px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 36px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.process-card {
  background: var(--bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.process-step { color: var(--accent); }
.process-label { font-size: 20px; color: var(--ink); }
.process-body { color: var(--muted); font-size: 14px; line-height: 1.55; }

.comm-form-section { display: flex; justify-content: center; }

/* Commissions — what we'll make grid */
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 36px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.type-card {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.type-num { color: var(--accent); font-size: 11px; }
.type-title { font-size: 28px; color: var(--ink); line-height: 1.1; }
.type-body { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Commissions — IP honesty card */
.ip-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 4%, transparent);
  max-width: 820px;
  margin: 0 auto;
}
.ip-card p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  margin: 12px 0 0;
  max-width: 64ch;
}
.ip-card em {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
}
.comm-form {
  width: 100%;
  max-width: 720px;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--frame);
  background: var(--elev);
}
.form-stepper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.form-step { padding: 4px 8px; border-radius: 999px; }
.form-step.done { color: var(--muted); opacity: 0.6; }
.form-step.on { background: var(--accent); color: var(--bg); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}
.field .mono-tiny { color: var(--muted); margin-bottom: 4px; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; justify-content: flex-end; }
.form-sent { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.form-sent-title { font-size: 32px; color: var(--accent); }
.form-sent-body { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }

/* ────────────────────────────────────────────────────────
   ABOUT
   ──────────────────────────────────────────────────────── */
.about {
  padding: clamp(40px, 6vw, 80px) var(--side) 120px;
  display: flex; flex-direction: column;
  gap: clamp(60px, 8vw, 120px);
}
.about-story {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.story-text { display: flex; flex-direction: column; gap: 20px; max-width: 60ch; }
.story-text p { color: var(--ink); font-size: 18px; line-height: 1.6; margin: 0; }
.story-text p:not(:first-child) { color: var(--muted); }
.story-stat-stack {
  display: flex; flex-direction: column;
  gap: 24px;
  border-left: 1px solid var(--rule);
  padding-left: 32px;
}
.stat { display: flex; align-items: baseline; gap: 16px; }
.stat-num { font-size: 56px; color: var(--accent); line-height: 1; }
.stat-lbl { color: var(--muted); line-height: 1.4; }

.about-team .bititle { margin-bottom: 36px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
}
.team-card { display: flex; flex-direction: column; gap: 20px; }
.team-body { display: flex; flex-direction: column; gap: 8px; }
.team-name { font-size: 28px; color: var(--ink); }
.team-role { color: var(--accent); }
.team-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; max-width: 40ch; }

.about-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 60px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.about-cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ────────────────────────────────────────────────────────
   CART
   ──────────────────────────────────────────────────────── */
.cart {
  padding: clamp(40px, 6vw, 80px) var(--side) 120px;
}
.cart > .bititle { margin-bottom: 48px; }
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 5vw, 80px);
}
.cart-items { display: flex; flex-direction: column; }
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.cart-item:last-child { border-bottom: 1px solid var(--rule); }
.cart-item-img { width: 120px; }
.cart-item-body { display: flex; flex-direction: column; gap: 6px; }
.cart-item-title { display: flex; flex-direction: column; gap: 2px; }
.cart-item-title .serif { font-size: 20px; color: var(--ink); }
.cart-item-meta { letter-spacing: 0.08em; }
.cart-remove {
  align-self: flex-start;
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  font-family: var(--mono-font);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 180ms;
}
.cart-remove:hover { color: var(--accent); }
.cart-item-price { font-size: 18px; color: var(--accent); }

.cart-summary {
  padding: 32px;
  background: var(--elev);
  border: 1px solid var(--frame);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky; top: 96px;
  align-self: start;
}
.summary-row { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink); }
.summary-total { font-family: var(--display); font-size: 22px; padding-top: 16px; border-top: 1px solid var(--rule); margin-top: 8px; }
.summary-foot { line-height: 1.5; letter-spacing: 0.06em; }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 120px; }
.cart-empty-blurb { color: var(--muted); max-width: 44ch; text-align: center; }

/* ────────────────────────────────────────────────────────
   GOMI GO! — Sean's mini-game
   ──────────────────────────────────────────────────────── */
.gomi {
  padding: clamp(48px, 6vw, 80px) var(--side);
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.gomi-blurb { color: var(--muted); max-width: 56ch; text-align: center; margin: 0; line-height: 1.6; }

.gomi-field {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 3 / 2;
  border: 1px solid var(--frame-strong);
  background: var(--bg);
  overflow: hidden;
  cursor: none;
  touch-action: none;
  user-select: none;
  outline: none;
}
/* Focus ring — accent-colored when keyboard-focused so the player knows the
   field is "live" and arrow keys will work. Mouse users won't see it
   (cursor: none + most users won't tab in). */
.gomi-field:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

/* Pixel-art alley background. Image-rendering: pixelated to keep the sharp
   pixel edges. During play it gets a dark dampener overlay so the falling
   items read clearly; during title/over splash it sits at full strength. */
.gomi-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
}
.gomi-bg-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Heavier darkening so the pixel art recedes well behind falling items */
    linear-gradient(180deg, rgba(8, 5, 12, 0.74) 0%, rgba(8, 5, 12, 0.84) 100%),
    radial-gradient(ellipse at 50% 8%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 55%);
  opacity: 1;
  transition: opacity 280ms ease;
}
/* Title + game-over splash: clear the dampener so the alley shows at full strength. */
.gomi-field[data-phase="title"] .gomi-bg-dim,
.gomi-field[data-phase="over"] .gomi-bg-dim { opacity: 0; }
.gomi-ground { display: none; } /* replaced by pixel-art alley floor */

.gomi-hud {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  z-index: 5;
}
.hud-block {
  display: flex; flex-direction: column;
  gap: 4px;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border: 1px solid var(--frame);
  min-width: 78px;
}
.hud-num {
  font-family: var(--mono-font);
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hud-lives { display: inline-flex; gap: 4px; font-size: 18px; line-height: 1; }
.heart { color: var(--dim); transition: color 200ms; }
.heart.on { color: var(--accent); }

.gomi-item {
  position: absolute;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 30px;
  transform: translate(-50%, -50%);
  /* Bright halo so items read against the busy pixel-art alley. */
  filter:
    drop-shadow(0 0 6px rgba(0,0,0,0.95))
    drop-shadow(0 0 14px rgba(0,0,0,0.7))
    drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  will-change: transform;
  z-index: 3;
}
.gomi-item-trash {
  /* Warm accent halo for the catch-me items so the eye snaps to them. */
  filter:
    drop-shadow(0 0 4px rgba(0,0,0,0.95))
    drop-shadow(0 0 14px color-mix(in oklab, var(--accent) 80%, transparent))
    drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}
.gomi-item-dog, .gomi-item-police {
  /* Red halo on hazards so you can read them coming. */
  filter:
    drop-shadow(0 0 4px rgba(0,0,0,0.95))
    drop-shadow(0 0 14px rgba(232, 90, 58, 0.95))
    drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.gomi-player {
  position: absolute;
  width: 64px; height: 64px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 44px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 14px rgba(0,0,0,0.8)) drop-shadow(0 6px 14px rgba(0,0,0,0.6));
  pointer-events: none;
  z-index: 4;
  transition: transform 60ms linear;
}

.gomi-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
  cursor: default;
}
/* Title and game-over splashes: kill the field-wide dim so the alley shows
   through at full strength. The card itself still has its own backdrop for
   readability. */
.gomi-overlay-title {
  background: transparent;
  backdrop-filter: none;
}
.overlay-card {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--frame-strong);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 460px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.9), 0 0 0 1px rgba(236, 230, 212, 0.04) inset;
}
/* Title card sized a bit larger to accommodate the bilingual stacked title. */
.overlay-card-title {
  max-width: 520px;
  gap: 22px;
}
.gomi-title-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.gomi-title-jp {
  font-family: 'Shippori Mincho', 'Yu Mincho', serif;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.4),
    0 0 24px color-mix(in oklab, var(--accent) 30%, transparent);
}
/* Optical sizing fix: katakana ゴミ is visually lighter than the dense kanji 熊
   at the same point size, so the word reads lopsided. Bump the katakana up
   ~18% to match the perceived weight of the kanji beside it. */
.gomi-title-jp .kana {
  font-size: 1.18em;
  letter-spacing: 0.02em;
  margin-right: 0.04em;
}
.gomi-title-jp .latin {
  /* Fullwidth Ｇｏ！ — let it inherit the JP serif from .gomi-title-jp so it
     sits inline with the kana/kanji as a single cohesive word. */
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: 0.02em;
}
.gomi-title-en {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.02em;
  color: var(--accent);
  opacity: 0.85;
}
.overlay-title {
  font-size: clamp(32px, 4vw, 44px);
  color: var(--accent);
  line-height: 1;
}
.overlay-card p {
  color: var(--ink);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 36ch;
}

.gomi-foot {
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.16em;
}

/* ────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────── */
.footer {
  margin-top: 60px;
  background: var(--elev);
}
.footer-rule { height: 1px; background: var(--rule); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(60px, 7vw, 96px) var(--side) 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-brand { gap: 18px; }
.footer-blurb { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.footer-link {
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--muted);
  padding: 0;
  background: transparent;
  border: none;
  text-align: left;
  transition: color 180ms;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px var(--side);
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

/* ────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .vitrine-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .product-info { position: relative; top: 0; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: relative; top: 0; }
  .workshop-inner { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .vitrine-grid { grid-template-columns: 1fr; }
  .shop-grid, .related-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-en { font-size: 44px; }
  .pillar { padding: 36px 24px 48px; min-height: auto; }
  .workshop-imgs { grid-template-columns: 1fr 1fr; }
  .workshop-img:nth-child(3) { display: none; }
  .product-title { font-size: 36px; }
  .stat-num { font-size: 40px; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-price { grid-column: 2; justify-self: end; }
}
