/* FOOD BOAT EU/US — CVI moodboard v3 */
:root {
  /* CVI v3 six + derived text */
  --off-white: #F7F4EE;
  --warm-grey: #A39C93; /* decoration / dividers / icons ONLY — never body text */
  --light-oak: #D8BC94;
  --champagne: #C9B88A;
  --marble: #ECEBE7;
  --line-ink: #1E1C1A;
  --oak-soft: rgba(216, 188, 148, 0.25); /* oak @ 25% for warm accents */
  --text: #1E1C1A; /* ink */
  --text-muted: rgba(30, 28, 26, 0.7); /* ink #1E1C1A @ 70% — secondary text, ≥4.5:1 on cream & marble */
  --surface: var(--off-white); /* CVI audit 2026-10-18: all cards/panels = off-white (no pure #FFF) */
  --hairline: rgba(30, 28, 26, 0.12); /* ink @ 12% */
  --radius: 0;
  --shadow: none;
  --max: 1120px;
  --read: 720px; /* reading column */
  --font: "Inter", "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0; /* EN site — JP/ZH may use ~0.06em later */
  color: var(--text);
  background: var(--off-white);
  line-height: 1.55; /* EN site — JP/ZH may use ~1.85 later */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: rgba(30, 28, 26, 0.35); }
a:hover { color: var(--text); text-decoration-color: var(--champagne); }
ul { padding-left: 1.2rem; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--line-ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; color: var(--text-muted); font-weight: 400; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 5.25rem 0; } /* product / Why / process tier */
.section--oak {
  /* cream + oak ~10% — mixed solid, not a wood wall / not a gradient wash */
  background: color-mix(in srgb, #D8BC94 10%, #F7F4EE);
}
.section--marble { background: var(--marble); }
.section--ink {
  background: var(--line-ink);
  color: var(--off-white);
}
.section--ink p, .section--ink h2, .section--ink h3 { color: var(--off-white); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none; /* sentence case — no forced uppercase */
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  font-weight: 400;
}
.lede { font-size: 1.1rem; max-width: var(--read); letter-spacing: 0; }
.tbd {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--line-ink);
  background: var(--oak-soft);
  border: 1px solid var(--light-oak);
  padding: 0.15rem 0.45rem;
  border-radius: 0;
  vertical-align: middle;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--line-ink);
}
.logo span { font-size: 1.05rem; }
.logo small {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--line-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--champagne);
}
.nav-cta {
  background: var(--line-ink) !important;
  color: var(--off-white) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 0 !important;
  border: 1px solid var(--line-ink) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0;
  text-decoration: none !important;
  min-width: auto;
}
.nav-cta:hover { background: var(--line-ink) !important; color: var(--off-white) !important; opacity: 0.86; }
.nav-toggle {
  display: none;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 0;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 0;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
  border: 1px solid var(--line-ink);
  min-width: 240px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--line-ink);
  color: var(--off-white);
  border-color: var(--line-ink);
}
.btn-primary:hover { background: var(--line-ink); color: var(--off-white); opacity: 0.86; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--warm-grey); /* outline only — hierarchy vs solid ink primary */
  color: var(--line-ink);
}
.btn-secondary:hover { background: var(--marble); color: var(--line-ink); border-color: var(--warm-grey); }
/* .btn-oak retired — map to secondary (no solid oak/champagne fills) */
.btn-oak {
  background: transparent;
  color: var(--line-ink);
  border: 1px solid var(--line-ink);
}
.btn-oak:hover { background: var(--marble); color: var(--line-ink); text-decoration-color: var(--champagne); }
/* Dark band: secondary = off-white outline */
.section--ink .btn,
.section--ink .btn-secondary,
.section--ink .btn-oak {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--off-white);
}
.section--ink .btn:hover,
.section--ink .btn-secondary:hover,
.section--ink .btn-oak:hover {
  background: rgba(247, 244, 238, 0.08);
  color: var(--off-white);
}
.section--ink .btn-primary {
  background: var(--off-white);
  color: var(--line-ink);
  border-color: var(--off-white);
}
.section--ink .btn-primary:hover {
  background: var(--marble);
  color: var(--line-ink);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  padding: 6.5rem 0 5rem;
  border-bottom: 1px solid var(--hairline); /* B: adjacent same-colour hairline (kept global) */
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-grid > div:first-child { max-width: var(--read); }
.hero-visual {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: var(--off-white);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column; /* caption (.img-note) sits below the image */
  align-items: stretch;
  padding: 0;
}
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
}
/* JP catalog photos are square with product + label near edges: keep whole product */
.hero-visual:has(img[src*="images/jp"]) img {
  aspect-ratio: auto; /* natural ratio of cropped JP photo: no letterbox bands */
  object-fit: contain;
  background: var(--marble);
}
.hero-visual .img-note {
  margin: 0;
  padding: 0.55rem 1rem 0.65rem;
  border-top: 1px solid rgba(30, 28, 26, 0.06);
}
.hero-page {
  padding: 6rem 0 4rem;
  background: var(--marble); /* flat — no gradient wash */
  border-bottom: 1px solid rgba(30,28,26,0.06);
}
.hero-page .container { max-width: 720px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: rgba(30, 28, 26, 0.35); /* deepen to ink hairline */
}
.card-img {
  aspect-ratio: 16/9;
  background: var(--off-white);
  border-bottom: 1px solid rgba(30, 28, 26, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card-body { padding: 1.15rem 1.2rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { font-size: 0.92rem; flex: 1; }
.card-link {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--line-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(30, 28, 26, 0.35);
}
.card-link:hover { text-decoration-color: var(--champagne); }

/* Why / feature strip */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  background: var(--surface);
  border-radius: 0;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--hairline);
  box-shadow: none;
}
.feature-icon { display: none; } /* no gold circular icon stacks */
.feature h3 { font-size: 1.05rem; }

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split > div:not(.split-img) { max-width: var(--read); }
.split-img {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  background: var(--off-white);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  aspect-ratio: 16/9;
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Specs table */
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
  background: var(--surface);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.specs th, .specs td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(30,28,26,0.06);
  vertical-align: top;
}
.specs th {
  width: 38%;
  background: var(--marble);
  color: var(--line-ink);
  font-weight: 500;
}
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.price-tag {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--marble);
  border: 1px solid var(--light-oak);
  border-radius: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--line-ink);
}

/* Flavor chips */
.flavor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.flavor-list li {
  background: var(--marble);
  border: 1px solid var(--marble);
  border-radius: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text);
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.benefits li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0;
  background: var(--light-oak);
  border: 1px solid var(--champagne);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 6.5rem 1.5rem;
}
.cta-band p { margin-inline: auto; max-width: 34rem; }
/* When CTA sits inside .section--ink, drop inner vertical padding (section already has 5rem) */
.section--ink .cta-band { padding: 0 1.5rem; }

/* Form */
.form-wrap {
  max-width: var(--read);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 2rem;
  box-shadow: none;
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: var(--line-ink);
}
.form-group .hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.required { color: var(--line-ink); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(30,28,26,0.18);
  border-radius: 0;
  background: var(--off-white);
  font: inherit;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--line-ink);
  outline-offset: 1px;
  border-color: var(--line-ink);
  background: var(--off-white);
}
textarea { min-height: 140px; resize: vertical; }
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}
.checkbox-grid label {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-error {
  color: var(--line-ink);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.show { display: block; }
.form-success h2 { color: var(--line-ink); }

/* Footer */
.site-footer {
  background: var(--line-ink);
  color: var(--champagne);
  padding: 3rem 0 2rem;
  margin-top: 0; /* no cream strip between ink CTA band and footer */
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer a { color: var(--champagne); text-decoration: none; }
.site-footer a:hover { color: var(--off-white); text-decoration: underline; text-decoration-color: var(--champagne); }
.site-footer h4 {
  color: var(--off-white);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { font-size: 0.9rem; }
.footer-brand strong {
  display: block;
  color: var(--off-white);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid rgba(247,244,238,0.12);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Recognition / badge */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
.badge {
  background: var(--surface);
  border: 1px solid var(--light-oak);
  border-radius: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  max-width: 280px;
}
.badge strong { display: block; color: var(--line-ink); margin-bottom: 0.2rem; }

/* Markets */
.markets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.markets span {
  background: var(--surface);
  border: 1px solid var(--marble);
  padding: 0.4rem 0.95rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Glossary */
.glossary {
  font-size: 0.88rem;
  background: var(--marble);
  border-radius: 0;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.glossary h4 { font-size: 0.85rem; margin-bottom: 0.5rem; }
.glossary table { width: 100%; border-collapse: collapse; }
.glossary td { padding: 0.3rem 0.4rem; border-bottom: 1px solid rgba(30,28,26,0.06); }
.glossary tr:last-child td { border-bottom: none; }

/* Prose */
.prose { max-width: var(--read); }
.prose p { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .card-grid, .feature-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--featured { grid-template-columns: repeat(2, 1fr); }
  .card-grid--secondary { grid-template-columns: repeat(2, 1fr); } /* mid → 2 */
  .hero-grid { grid-template-columns: 1fr; } /* mobile: image under text */
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
  }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .card-grid, .feature-grid, .benefits, .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .card-grid--featured, .card-grid--secondary { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .btn { min-width: 0; width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

/* Product poster (optional download / disclosure — not primary hero) */
.poster-panel {
  margin: 1.5rem 0 0;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--marble);
  padding: 0.85rem 1.1rem;
}
.poster-panel summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--line-ink);
  list-style: none;
}
.poster-panel summary::-webkit-details-marker { display: none; }
.poster-panel summary::before {
  content: "▸ ";
  color: var(--warm-grey); /* decorative glyph only */
}
.poster-panel[open] summary::before { content: "▾ "; }
.poster-panel .poster-frame {
  margin-top: 0.9rem;
  background: var(--off-white);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.75rem;
  display: flex;
  justify-content: center;
}
.poster-panel .poster-frame img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.poster-panel .poster-actions {
  margin-top: 0.65rem;
  font-size: 0.88rem;
}
.poster-panel .poster-actions a {
  font-weight: 400;
  color: var(--line-ink);
}
.img-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.4rem 0 0;
  text-align: center;
}

/* Text / TBD product placeholder (no poster on cards or heroes) */
.card-img--text,
.hero-visual--text,
.split-img--text {
  background: var(--marble);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1.1rem;
  gap: 0.35rem;
}
.card-img--text {
  aspect-ratio: 16/9;
  padding: 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(30, 28, 26, 0.06);
}
.hero-visual--text,
.split-img--text {
  border-radius: 0;
  border: 1px solid var(--hairline);
  box-shadow: none;
  aspect-ratio: 4/3;
  min-height: 220px;
}
.ph-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}
.ph-title {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--line-ink);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}
.hero-visual--text .ph-title,
.split-img--text .ph-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}
.ph-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
  max-width: 16rem;
}
.ph-tbd {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--line-ink);
  background: var(--oak-soft);
  border: 1px solid var(--light-oak);
  padding: 0.2rem 0.55rem;
  border-radius: 0;
}


/* JP catalog SKU grid */
.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.sku-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: none;
}
.sku-card:hover {
  transform: none;
  box-shadow: none;
  color: inherit;
}
.sku-img {
  aspect-ratio: 1;
  background: var(--marble);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.sku-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sku-img--empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}
.sku-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.sku-body h3 {
  font-size: 1rem;
  margin: 0;
}
.sku-jp {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.5rem;
}
.sku-notes {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}
.sku-body .price-tag { margin: 0.35rem 0 0; align-self: flex-start; }
.sku-body .card-link { margin-top: auto; font-size: 0.85rem; font-weight: 500; }
.sku-subhead { margin-top: 2rem; font-size: 1.05rem; }
.empty-sku {
  background: var(--marble);
  border-radius: 0;
  padding: 2rem;
}

/* Keyboard focus */
:focus-visible {
  outline: 2px solid var(--line-ink);
  outline-offset: 3px;
}
.btn:focus-visible, .nav-cta:focus-visible { outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--line-ink);
  outline-offset: 1px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .sku-card:hover, a.card:hover { transform: none; }
}

/* fb doodle images (preview swap) */
/* fb/ photos: 972x972 on cream paper (#F7F4ED ~ --off-white) with doodle
   figures touching top/side edges -> never crop, frame matches paper */
.sku-img:has(img[src*="images/fb/"]) {
  aspect-ratio: 1;
  background: var(--off-white);
  padding: 0.5rem;
}
.sku-img img[src*="images/fb/"] {
  object-fit: contain;
  object-position: center;
}
/* Square SKU / doodle heroes under fb/ — exclude .hero-visual--wide (16:9 lineup cards) */
.hero-visual:has(img[src*="images/fb/"]):not(.hero-visual--wide) img {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: var(--off-white);
}
/* 16:9 category lineup / scene cards (rt-tea card, smoothie page-top) */
.hero-visual.hero-visual--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

/* detail cleanup: neutral TBD + footer contrast */
.tbd, .ph-tbd {
  display: inline;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
  color: var(--text-muted); /* ink 70%: 5.97:1 on cream, 5.5:1 on marble */
}
/* dark footer: ink-70% would be 2.59:1, so use off-white 70% (8.02:1) */
.site-footer .tbd,
.footer-brand p,
.footer-bottom {
  color: rgba(247, 244, 238, 0.7);
}

/* ===== CVI v3 audit 2026-10-18 (design director) ===== */
/* Links styled as buttons / logo / eyebrow: no inherited underline */
.btn, .btn:hover { text-decoration: none; text-align: center; line-height: 1.35; }
.logo, .logo:hover { text-decoration: none; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--line-ink); text-decoration: underline; text-decoration-color: var(--champagne); }
/* Footer brand matches header serif wordmark; contact line one tone */
.footer-brand strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.site-footer h4 { font-family: var(--font); }
.footer-links li { color: rgba(247, 244, 238, 0.7); font-size: 0.9rem; }
/* Hairline frames: one value everywhere */
.hero-visual, .split-img, .specs, .form-wrap, .poster-panel .poster-frame,
.hero-visual--text, .split-img--text { border-color: var(--hairline); }
/* Mobile: comfortable side margins (≥ ~6%) */
@media (max-width: 560px) {
  .container { width: min(100% - 3rem, var(--max)); }
  .hero { padding: 4.5rem 0 3.5rem; }
  .hero-page { padding: 4.5rem 0 3rem; }
  .form-wrap { padding: 1.4rem; }
}
/* Whole-card links: only the "View line" label is underlined */
a.card, a.card:hover { text-decoration: none; color: inherit; }
a.card:hover .card-link, .sku-card:hover .card-link { text-decoration-color: var(--champagne); }
a.card:hover, .sku-card:hover { border-color: rgba(30, 28, 26, 0.35); }
/* Ink CTA band → footer: hairline separation instead of a cream strip */
.site-footer { border-top: 1px solid rgba(247, 244, 238, 0.12); }
/* Market chips match flavor chips (marble), not off-white-on-off-white */
.markets span { background: var(--marble); border-color: var(--marble); font-weight: 400; }

/* Certifications (homepage bottom) */
.section--certs { border-top: 1px solid var(--hairline); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.cert-card { background: var(--surface); border: 1px solid var(--hairline); padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; }
.cert-card strong { font-family: var(--font-serif); font-size: 1.35rem; color: var(--line-ink); }
.cert-card span { color: var(--text-muted); font-size: .95rem; }
.cert-card .cert-meta { font-size: .8rem; }
.cert-img { aspect-ratio: 3 / 4; background: var(--marble); margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-img img { width: 100%; height: 100%; object-fit: contain; }
.cert-img--pending { border: 1px dashed var(--warm-grey); color: var(--text-muted); text-align: center; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }


.cert-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cert-card { padding: 1rem; }
.cert-card strong { font-size: 1.15rem; }
.cert-img a { display: block; width: 100%; height: 100%; }
.cert-img img { background: #fff; }
@media (max-width: 1000px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }

/* v3 flavour library (HPP juices, snow ice blocks) */
.hero-zh, .group-zh { font-size: 0.95rem; color: var(--text-muted); margin: -0.35rem 0 1rem; letter-spacing: 0.04em; }
.flavor-index { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 2rem; font-size: 0.85rem; }
.flavor-index a { color: var(--line-ink); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 0.25em; }
.flavor-index a:hover { text-decoration-color: var(--champagne); }
.flavor-group { padding: 4.5rem 0; }
.group-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 0 1.5rem; margin-bottom: 0.5rem; }
.group-head h2 { margin: 0 0 0.5rem; }
.group-head .group-zh { margin: 0; }
.group-num { font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 0.9; color: var(--champagne); font-weight: 400; }
.group-count { margin: 0; font-size: 0.85rem; text-align: right; }
.series-lede { max-width: var(--read); margin-top: 1rem; }
.flavor-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.flavor-card .card-link { color: var(--line-ink); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 0.25em; }
.flavor-card .card-link:hover { text-decoration-color: var(--champagne); }
.flavor-card--text { justify-content: flex-end; min-height: 100%; }
@media (max-width: 640px) {
  .flavor-group { padding: 3.25rem 0; }
  .group-head { grid-template-columns: auto 1fr; }
  .group-count { grid-column: 1 / -1; text-align: left; margin-top: 0.75rem; }
  .flavor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .flavor-grid .sku-body { padding: 0.75rem 0.75rem 0.9rem; }
  .flavor-grid .sku-body h3 { font-size: 0.95rem; }
}

/* v3: HPP chamber illustration (cream bg) — show whole drawing, letterbox blends into cream */
.split-img img[src*="hpp-chamber"] { object-fit: contain; padding: 0.5rem; }

/* Partners (homepage) — uniform logo box + aligned names */
.section--partners { border-top: 1px solid var(--hairline); }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; align-items: stretch; }
.partner-tile { display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; row-gap: .75rem; background: var(--surface); border: 1px solid var(--hairline); padding: 1.5rem 1rem 1.1rem; }
.partner-logo { width: 100%; max-width: 240px; aspect-ratio: 12 / 5; display: flex; align-items: center; justify-content: center; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.partner-name { font-family: "Noto Sans CJK JP","Noto Sans JP","Hiragino Sans","Yu Gothic","PingFang SC","Microsoft YaHei",var(--font); font-size: .85rem; line-height: 1.2; height: 1.2em; color: var(--text-muted); letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 720px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Partners logos: full-color (design director 2026-10-18) =====
   Logos use images/partners/mono/*.png = #1E1C1A-only artwork (white knocked out), shown at 70%. No hover change. */
.partner-logo img, .partner-tile:hover .partner-logo img { opacity: 1; filter: none; transition: none; }
/* Jianfu: artwork reads lighter/wider -> darker and scaled to KOI Thé visual width (352/410 ≈ .86), aspect kept */
.partner-logo img[src$="jianfu-fook.png"], .partner-tile:hover .partner-logo img[src$="jianfu-fook.png"] { opacity: 1; transform: scale(.86); transform-origin: center; }
/* ===== end partners mono ===== */

/* ===== v3 snow ice blocks grid (2 x 5, design director 2026-10-18) ===== */
.snowblock-hero { margin: 2rem 0 3rem; background: var(--off-white); }
.snowblock-hero img { display: block; width: 100%; height: auto; }
.snowblock-row { margin-top: 2.5rem; }
.snowblock-rowhead { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--hairline); }
.snowblock-rowhead span { letter-spacing: 0.06em; margin-left: 0.6rem; text-transform: none; }
.snowblock-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.snowblock-cell { background: var(--off-white); border: 0; box-shadow: none; border-radius: 0; padding: 0 0 1.1rem; display: flex; flex-direction: column; min-width: 0; }
.snowblock-cell img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.snowblock-cell h3 { font-size: 1rem; margin: 0.25rem 1rem 0; }
.snowblock-cell .sku-jp { margin: 0.2rem 1rem 0.35rem; }
.snowblock-cell .sku-notes { margin: 0 1rem; }
.snowblock-cell .card-link { margin: auto 1rem 0; padding-top: 0.75rem; font-size: 0.85rem; font-weight: 500; }
.snowblock-cell:hover .card-link { text-decoration-color: var(--champagne); }
.snowblock-fineprint { margin: 2.5rem 0 1.5rem; font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 900px) { .snowblock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .snowblock-hero { margin: 1.5rem 0 2rem; }
  .snowblock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .snowblock-cell h3 { font-size: 0.95rem; margin: 0.15rem 0.75rem 0; }
  .snowblock-cell .sku-jp, .snowblock-cell .sku-notes, .snowblock-cell .card-link { margin-left: 0.75rem; margin-right: 0.75rem; }
}
/* ===== end v3 snow ice blocks ===== */

/* ===== v3 microwave smoothie series (1 x 5, design director 2026-10-19) ===== */
.smoothie-keys { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.92rem; color: var(--text-muted); }
.smoothie-keys strong { font-weight: 500; color: var(--line-ink); }
.smoothie-hero { position: relative; margin: 2rem 0 3rem; background: var(--off-white); }
.smoothie-hero img { display: block; width: 100%; height: auto; }
.smoothie-hero-time { position: absolute; right: 9%; top: 50%; transform: translateY(-50%); margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.25em; max-width: 34%; color: var(--line-ink); }
.smoothie-hero-num { font-family: var(--font-serif); font-weight: 400; font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.smoothie-hero-unit { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.2rem, 3.2vw, 2.6rem); }
.smoothie-hero-note { flex-basis: 100%; font-size: clamp(0.72rem, 1.3vw, 0.95rem); color: var(--text-muted); letter-spacing: 0.06em; margin-top: 0.6em; }
.smoothie-row { margin-top: 2.5rem; }
.smoothie-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.smoothie-cell { background: var(--off-white); border: 0; box-shadow: none; border-radius: 0; padding: 0 0 1.1rem; display: flex; flex-direction: column; min-width: 0; }
.smoothie-cell img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.smoothie-cell h3 { font-size: 1rem; margin: 0.25rem 1rem 0; }
.smoothie-cell .sku-jp { margin: 0.2rem 1rem 0.35rem; }
.smoothie-cell .sku-notes { margin: 0 1rem; }
.smoothie-cell .card-link { margin: auto 1rem 0; padding-top: 0.75rem; font-size: 0.85rem; font-weight: 500; }
.smoothie-cell:hover .card-link { text-decoration-color: var(--champagne); }
@media (max-width: 900px) { .smoothie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .smoothie-keys { gap: 0.35rem 1.25rem; font-size: 0.85rem; }
  .smoothie-hero { margin: 1.5rem 0 2rem; }
  .smoothie-hero-time { right: 6%; }
  .smoothie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .smoothie-cell h3 { font-size: 0.95rem; margin: 0.15rem 0.75rem 0; }
  .smoothie-cell .sku-jp, .smoothie-cell .sku-notes, .smoothie-cell .card-link { margin-left: 0.75rem; margin-right: 0.75rem; }
}
/* ===== end v3 microwave smoothie series ===== */

/* Certifications: 2 live certificates (FSSC 22000 + HALAL) */
.section--certs .cert-grid { grid-template-columns: repeat(2, minmax(0, 300px)); gap: 1.5rem; }
@media (max-width: 640px) { .section--certs .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } .section--certs .cert-card span { overflow-wrap: anywhere; } }
.section--certs .cert-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: .35rem; align-content: start; }
.section--certs .cert-card .cert-img { margin-bottom: .65rem; }

/* Sauce size subheads */
.section--oak .sku-subhead { font-size: 1.35rem; margin-top: 2rem; letter-spacing: .02em; }
.section--oak .sku-subhead:first-of-type { margin-top: 1.25rem; }
/* Ambient tea: 3 cards in a row on desktop */
body:has([href*="ambient-tea"]) {}

.page-rt-tea .sku-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .page-rt-tea .sku-grid { grid-template-columns: 1fr; } }

/* ===== Homepage UI polish A–E (design director 2026-10-26) ===== */
/* B — padding tiers (global) */
.section--markets,
.section--partners,
.section--certs { padding: 4.25rem 0; } /* markets / partners / certs ~4–4.5rem */
.section--ink { padding: 5rem 0; }

/* B — adjacent same-colour hairlines (cream↔cream, marble stays distinct) */
.section--marble + .section--markets { border-top: 1px solid var(--hairline); }
/* partners/certs already carry border-top */

/* C — featured row (first 3): desktop 3 cols, image ~1.1× taller; title size unchanged */
.card-grid--featured {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid--featured .card-img {
  aspect-ratio: 16 / 9.9; /* ~1.1× current 16/9 height */
}

/* C — secondary row (last 4): desktop 4 cols; image+type ~0.9× */
.card-grid--secondary {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.25rem;
}
.card-grid--secondary .card-img {
  aspect-ratio: 16 / 8.1; /* ~0.9× current height */
}
.card-grid--secondary .card-body {
  padding: 1rem 1.05rem 1.15rem;
}
.card-grid--secondary .card-body h3 {
  font-size: 1.08rem; /* ~0.9× of 1.2rem */
}
.card-grid--secondary .card-body p {
  font-size: 0.85rem;
}

/* C — card hover: deepen border + ≤2px lift; no shadow stack (base .card:hover) */
a.card:hover {
  border-color: rgba(30, 28, 26, 0.35);
  transform: translateY(-2px);
}

/* A — btn hover motion only (no section entrance animations) */
.btn { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }

/* D — secondary copy already uses --text-muted (ink 70%); eyebrow 0.04em kept global */
/* E — prefers-reduced-motion kept in base block */

/* A — homepage-only hero / h1 / lede (do not leak into product pages) */
.page-home .hero {
  padding: 7.5rem 0 7rem;
}
.page-home .hero-grid {
  grid-template-columns: 0.42fr 0.58fr;
  align-items: start;
}
.page-home .hero-grid > div:first-child { max-width: none; }
.page-home .hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 3.75rem);
  font-weight: 500;
}
.page-home .lede { max-width: 36ch; }
.page-home .hero-visual img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 900px) {
  .page-home .hero { padding: 5rem 0 4rem; }
  .page-home .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-home .hero { padding: 4.5rem 0 3.5rem; }
}
/* A1 — restore featured/secondary mobile columns (desktop 3/4 rules above override earlier breakpoints) */
@media (max-width: 900px) {
  .card-grid--featured { grid-template-columns: repeat(2, 1fr); }
  .card-grid--secondary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid--featured,
  .card-grid--secondary { grid-template-columns: 1fr; }
}

/* ===== end homepage UI polish A–E ===== */

/* Clickable snow-ice / smoothie cells (detail pages, 2026-10-26) */
a.snowblock-cell, a.smoothie-cell, a.snowblock-cell:hover, a.smoothie-cell:hover { color: inherit; text-decoration: none; }
