/* Noblemono Premium Wagyu Catalogue 2026 — navy/gold like catalogue.noblemono.com, cream "paper" for the cut pages */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('../fonts/cormorant-garamond-italic-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Noto Serif JP'; font-weight: 600; font-display: swap; src: url('../fonts/noto-serif-jp-600-25c5019b.woff2') format('woff2'); }
@font-face { font-family: 'Prompt'; font-weight: 300; font-display: swap; src: url('../../fonts/prompt-300-normal-thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Prompt'; font-weight: 300; font-display: swap; src: url('../../fonts/prompt-300-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: 'Prompt'; font-weight: 400; font-display: swap; src: url('../../fonts/prompt-400-normal-thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Prompt'; font-weight: 400; font-display: swap; src: url('../../fonts/prompt-400-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: 'Prompt'; font-weight: 500; font-display: swap; src: url('../../fonts/prompt-500-normal-thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Prompt'; font-weight: 500; font-display: swap; src: url('../../fonts/prompt-500-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: 'Prompt'; font-weight: 600; font-display: swap; src: url('../../fonts/prompt-600-normal-thai.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Prompt'; font-weight: 600; font-display: swap; src: url('../../fonts/prompt-600-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  --navy-950: #070c16;
  --navy-900: #0b1424;
  --navy-850: #0e1a2e;
  --navy-800: #13223b;
  --navy-700: #1c3052;
  --gold: #c9a45e;
  --gold-bright: #e6c882;
  --gold-pale: #f3e3bd;
  --gold-deep: #9c7a3a;
  --gold-line: rgba(201, 164, 94, .34);
  --gold-soft: rgba(201, 164, 94, .14);
  --cream: #f5f0e6;
  --cream-dim: rgba(245, 240, 230, .74);
  --cream-mute: rgba(245, 240, 230, .52);
  --cream-faint: rgba(245, 240, 230, .12);
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --ink: #0e1a2e;
  --ink-dim: rgba(14, 26, 46, .72);
  --ink-mute: rgba(14, 26, 46, .5);
  --ink-line: rgba(14, 26, 46, .14);
  --line-green: #06c755;
  --serif: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --sans: 'Prompt', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-variant-numeric: lining-nums; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--navy-950); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); font-weight: 300; color: var(--cream); background: var(--navy-950); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.flip { transform: scaleX(-1); }
.jp { font-family: 'Noto Serif JP', serif; font-weight: 600; font-style: normal; }
.jp-read { font-size: .82em; opacity: .75; }
.card-jp, .peek-jp { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 10px; }
.card-jp .jp { color: var(--gold-deep); font-size: .95em; }
.peek-jp .jp { color: var(--gold); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .7em 1.35em; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-950); box-shadow: 0 10px 30px -12px rgba(201, 164, 94, .7); }
.btn-ghost { border-color: var(--gold-line); color: var(--gold-pale); background: rgba(7, 12, 22, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { box-shadow: 0 10px 26px -12px rgba(6, 199, 85, .9); }
.btn-ghost-dark { border-color: var(--ink-line); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-big { min-height: 56px; font-size: 1.05rem; padding: .8em 1.8em; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 var(--gut); background: rgba(7, 12, 22, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--cream-faint); }
.top-logo img { height: 38px; width: auto; }
.top-nav { display: flex; gap: 4px; margin: 0 auto; }
.top-nav a { padding: 8px 12px; border-radius: 999px; font-size: .9rem; color: var(--cream-dim); text-decoration: none; transition: color .2s, background .2s; }
.top-nav a:hover { color: var(--gold-pale); background: var(--cream-faint); }
.top-nav .top-back { color: var(--gold); margin-right: 8px; }
.top-line { min-height: 40px; padding: .45em 1.1em; font-size: .88rem; }
@media (max-width: 860px) {
  .top-nav { display: none; }
  .top { justify-content: space-between; }
}
@media (max-width: 420px) { .top-line span { display: none; } .top-line { width: 44px; padding: 0; } .top-line .ic { width: 22px; height: 22px; } }

/* ── hero ── */
.hero { position: relative; min-height: min(86svh, 820px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-photo { display: block; position: absolute; inset: 0 0 0 auto; width: 72%; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, var(--navy-950) 26%, rgba(7, 12, 22, .86) 40%, rgba(7, 12, 22, .2) 66%, rgba(7, 12, 22, .05) 100%),
  linear-gradient(0deg, var(--navy-950) 0%, rgba(7, 12, 22, 0) 22%); }
.hero-copy { width: min(var(--wrap), 100%); margin: 0 auto; padding: 72px var(--gut) 64px; }
.hero-copy > * { max-width: 560px; }
.kicker { font-family: var(--serif); font-size: .9rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.hero h1 { margin-top: 18px; font-family: var(--serif); font-weight: 500; line-height: .95; color: var(--cream); }
.h1-a { display: block; font-size: clamp(3.2rem, 7.4vw, 6.4rem); letter-spacing: -.01em; }
.h1-b { display: block; margin-top: 14px; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-pale); }
.h1-b em { font-style: italic; color: var(--gold); letter-spacing: .04em; }
.hero h1::after { content: ''; display: block; width: 120px; height: 1px; margin-top: 28px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero-lead { margin-top: 24px; font-size: 1.06rem; color: var(--cream-dim); line-height: 1.85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 44px; }
.hero-facts dt { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--gold-pale); line-height: 1; }
.hero-facts dd { font-size: .8rem; color: var(--cream-mute); margin-top: 6px; letter-spacing: .04em; }
@media (max-width: 700px) {
  .hero { min-height: 0; align-items: end; }
  .hero-photo { position: relative; inset: auto; width: 100%; aspect-ratio: 1 / .82; grid-area: 1 / 1; align-self: start; }
  .hero::before { background: linear-gradient(0deg, var(--navy-950) 34%, rgba(7, 12, 22, .55) 54%, rgba(7, 12, 22, 0) 74%); }
  .hero-copy { grid-area: 1 / 1; padding-top: 52vw; padding-bottom: 40px; }
  .hero-lead { font-size: 1rem; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ── brand strip ── */
.brands { background: var(--paper); color: var(--ink); }
.brands-in { width: min(var(--wrap), 100%); margin: 0 auto; padding: 28px var(--gut); display: flex; align-items: center; gap: 28px; }
.bj { display: flex; align-items: center; gap: 14px; flex: none; }
.bj img { width: 64px; height: auto; }
.bj figcaption { font-size: .82rem; line-height: 1.45; color: var(--ink-dim); }
.brand-list { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 22px; }
.brand-list li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand-list img { height: 54px; width: auto; }
.brand-list span { font-size: .7rem; letter-spacing: .06em; color: var(--ink-mute); white-space: nowrap; }
@media (max-width: 900px) {
  .brands-in { flex-direction: column; align-items: stretch; }
  .brand-list { justify-content: center; gap: 14px 18px; }
  .brand-list img { height: 44px; }
}

/* ── section heads ── */
.sec-head { width: min(860px, 100%); margin: 0 auto; padding: 0 var(--gut); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: .82rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.eyebrow .jp { font-size: 1rem; letter-spacing: .2em; }
.eyebrow i { width: 44px; height: 1px; background: var(--gold-line); }
.eyebrow .th { font-family: var(--sans); letter-spacing: .02em; font-size: .9rem; }
.sec-head h2 { margin-top: 14px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 500; line-height: 1.25; }
.sec-lead { margin-top: 14px; color: var(--cream-dim); }

/* ── cow map ── */
.map { padding: 88px 0 72px; background: radial-gradient(ellipse 80% 60% at 50% 45%, var(--navy-850), var(--navy-950) 70%); }
.filters { width: min(var(--wrap), 100%); margin: 32px auto 0; padding: 0 var(--gut); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gold-line); background: rgba(14, 26, 46, .6); color: var(--cream-dim); font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.chip .ic { width: 22px; height: 22px; color: var(--gold); stroke-width: 1.3; }
.chip:hover { border-color: var(--gold); color: var(--cream); }
.chip[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--navy-950); border-color: var(--gold); }
.chip[aria-pressed="true"] .ic { color: var(--navy-950); }
.chip-count { font-size: .75rem; opacity: .7; }

.map-stage { width: min(var(--wrap), 100%); margin: 28px auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: center; }
.cow { position: relative; }
.cow-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cow-sil { fill: url(#cow-sheen); }
.cow-edge { fill: none; stroke: var(--gold); stroke-width: 22; opacity: .9; }
.cow-dash { fill: none; stroke: var(--gold-pale); stroke-width: 3.2; stroke-linecap: round; opacity: .5; pointer-events: none; }
.rg { fill: var(--gold); fill-opacity: 0; cursor: pointer; transition: fill-opacity .3s var(--ease); outline: none; }
.rg:hover, .rg.hot { fill-opacity: .3; }
.rg.sel { fill: url(#cow-g); fill-opacity: .95; }
.cow.filtering .rg.match { fill-opacity: .55; }
.cow.filtering .rg.match.hot, .cow.filtering .rg.match:hover { fill-opacity: .8; }
.cow-pins { pointer-events: none; }
.pin { pointer-events: auto; cursor: pointer; outline: none; }
.pin circle { fill: var(--navy-950); stroke: var(--gold); stroke-width: 4; transition: fill .2s, r .25s var(--ease); }
.pin text { font-family: var(--sans); font-weight: 500; font-size: 30px; fill: var(--gold-pale); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pin:hover circle, .pin.hot circle, .pin:focus-visible circle { fill: var(--gold); }
.pin:hover text, .pin.hot text, .pin:focus-visible text { fill: var(--navy-950); }
.pin:focus-visible circle { stroke: #fff; stroke-width: 6; }
.pin.x circle { stroke-dasharray: 6 6; }
.cow.filtering .pin:not(.match) { opacity: .25; }
.cow-tip { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 18px)); padding: 8px 14px; border-radius: 10px; background: rgba(7, 12, 22, .92); border: 1px solid var(--gold-line); pointer-events: none; white-space: nowrap; text-align: center; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7); }
.cow-tip b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--gold-pale); line-height: 1.1; }
.cow-tip span { font-size: .8rem; color: var(--cream-dim); }

/* fixed height: the content changes on hover, so the chips below must not move */
.peek { height: 480px; overflow: hidden; padding: 22px; border-radius: 20px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(19, 34, 59, .7), rgba(11, 20, 36, .7)); display: flex; flex-direction: column; }
.peek-empty { margin: auto 0; text-align: center; color: var(--cream-mute); font-size: .92rem; }
.peek-empty svg { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--gold); opacity: .6; }
.peek-img { aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(201, 164, 94, .16), transparent); }
.peek-img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .55)); }
.peek-k { margin-top: 10px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.peek h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.05; margin-top: 4px; }
.peek-th { color: var(--cream-dim); font-size: .95rem; }
.peek-tag { margin-top: 10px; font-size: .9rem; color: var(--gold-pale); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.peek .btn { margin-top: auto; align-self: flex-start; }
.peek .uses { margin: 12px 0 18px; }

.cut-index { width: min(var(--wrap), 100%); margin: 36px auto 0; padding: 0 var(--gut); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; counter-reset: none; }
.cut-index button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--cream-faint); background: rgba(255, 255, 255, .02); font-size: .86rem; color: var(--cream-dim); transition: border-color .2s, color .2s, opacity .2s; }
.cut-index button b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-pale); font-weight: 500; font-size: .78rem; }
.cut-index button:hover, .cut-index button.hot { border-color: var(--gold); color: var(--cream); }
.cut-index button.x b { border-style: dashed; }
.cut-index.filtering button:not(.match) { opacity: .3; }

@media (max-width: 1080px) {
  .map-stage { grid-template-columns: 1fr; }
  .peek { height: 250px; display: grid; grid-template-columns: 42% 1fr; gap: 0 20px; align-items: center; }
  .peek-img { grid-row: span 6; aspect-ratio: 1 / .8; }
  .peek .btn { margin-top: 6px; }
  .peek-empty { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .map { padding: 64px 0 56px; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .pin circle { stroke-width: 6; }
  .pin text { font-size: 40px; }
  .peek { display: none; }                       /* phones: a tap opens the sheet straight away */
  .cow-tip { display: none; }
}

/* ── paper: the cut pages ── */
.paper { background: var(--paper); color: var(--ink); background-image: radial-gradient(rgba(14, 26, 46, .035) 1px, transparent 1px); background-size: 4px 4px; }
.group { width: min(var(--wrap), 100%); margin: 0 auto; padding: 88px var(--gut) 24px; }
.group + .group { padding-top: 64px; }
.group-head { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--gold); margin-bottom: 36px; }
.group-no { grid-row: span 3; align-self: start; font-family: var(--serif); font-size: 1rem; color: var(--paper); background: var(--ink); width: 54px; height: 54px; display: grid; place-items: center; }
.group-head h2 { font-family: var(--serif); font-size: clamp(2.8rem, 6.4vw, 5.4rem); font-weight: 500; line-height: .95; color: var(--gold-deep); }
.group-names { margin-top: 10px; font-size: .92rem; color: var(--ink-dim); }
.group-lead { margin-top: 4px; font-size: .92rem; color: var(--ink-mute); }
.group-extra .group-head { grid-template-columns: 1fr; border-bottom-color: var(--ink-line); }
.h-small { font-family: var(--sans) !important; font-size: 1.3rem !important; color: var(--ink) !important; font-weight: 500 !important; }

.cards { display: grid; gap: 18px; }
.cards-primal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-secondary { grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.cards-extra { grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); padding-bottom: 72px; }
.card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--ink-line); border-radius: 18px; background: #fbf8f2; color: var(--ink); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 24px 40px -26px rgba(14, 26, 46, .45); }
.card-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px 22px 8px; background: radial-gradient(ellipse 60% 55% at 50% 58%, #fff, transparent 80%); }
.card-media img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 14px rgba(14, 26, 46, .22)); transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04) rotate(-.6deg); }
.card-no { position: absolute; top: 14px; left: 14px; min-width: 30px; height: 30px; display: grid; place-items: center; padding: 0 8px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 500; border-radius: 6px; }
.card-no.x { background: transparent; color: var(--ink-mute); border: 1px dashed var(--ink-mute); }
.card-body { padding: 4px 22px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-en { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; line-height: 1.02; padding-left: 12px; border-left: 3px solid var(--gold); }
.card-en small { display: block; font-size: .95rem; font-weight: 500; color: var(--ink-mute); margin-bottom: 2px; }
.card-th { padding-left: 15px; font-size: .95rem; color: var(--ink-dim); }
.card-tag { margin-top: 6px; font-size: .88rem; font-weight: 400; line-height: 1.6; color: var(--ink); }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--ink-line); }
.cards-primal .card-media { aspect-ratio: 4 / 3; }
.cards-primal .card-en { font-size: 2.4rem; }
.cards.filtering .card:not(.match) { opacity: .28; filter: grayscale(.6); }

.uses { display: flex; flex-wrap: wrap; gap: 4px; }
.uses li { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold-deep); }
.peek .uses li { color: var(--gold); }
.uses .ic { width: 22px; height: 22px; stroke-width: 1.3; }
.grades-mini { display: flex; gap: 4px; }
.grades-mini li { font-family: var(--serif); font-weight: 600; font-size: .95rem; padding: 1px 8px; border-radius: 5px; border: 1px solid var(--ink-line); color: var(--ink); }
.grades-mini li.a5 { background: var(--ink); color: var(--gold-pale); border-color: var(--ink); }
@media (max-width: 900px) { .cards-primal { grid-template-columns: 1fr; } .cards-primal .card { display: grid; grid-template-columns: 46% 1fr; } .cards-primal .card-media { aspect-ratio: auto; min-height: 220px; } .cards-primal .card-body { padding-top: 22px; } }
@media (max-width: 600px) {
  .group { padding-top: 64px; }
  .group-head { grid-template-columns: 1fr; }
  .group-no { grid-row: auto; width: 40px; height: 40px; margin-bottom: 10px; }
  .cards-primal .card { display: flex; }
  .cards-primal .card-en { font-size: 2.1rem; }
}

/* ── grades ── */
.grades { padding: 96px 0; background: var(--navy-900); border-top: 1px solid var(--cream-faint); }
.grade-wrap { width: min(1080px, 100%); margin: 44px auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.grade-matrix { display: grid; grid-template-columns: 76px repeat(5, minmax(0, 1fr)); gap: 6px; }
.gm-h { display: grid; place-items: center; min-height: 40px; font-size: .78rem; color: var(--cream-mute); text-align: center; line-height: 1.3; }
.gm-h.big { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-pale); }
.gm-c { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--cream-faint); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--cream-mute); background: rgba(255, 255, 255, .02); transition: transform .3s var(--ease); }
.gm-c.have { color: var(--navy-950); background: linear-gradient(160deg, var(--gold-pale), var(--gold)); border-color: var(--gold); box-shadow: 0 12px 26px -14px rgba(201, 164, 94, .8); }
.gm-c.have:hover { transform: scale(1.06); }
.gm-cap { grid-column: 1 / -1; margin-top: 10px; font-size: .82rem; color: var(--cream-mute); text-align: center; }
.gm-cap b { color: var(--gold-pale); font-weight: 500; }
.grade-notes { display: grid; gap: 14px; }
.gn { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--cream-faint); background: rgba(255, 255, 255, .02); }
.gn-k { font-size: .8rem; letter-spacing: .04em; color: var(--gold); }
.gn h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-top: 2px; }
.gn p:last-child { color: var(--cream-dim); font-size: .92rem; margin-top: 6px; }
.gn-f1 { border-color: var(--gold-line); }
@media (max-width: 860px) { .grade-wrap { grid-template-columns: 1fr; } .grade-matrix { grid-template-columns: 54px repeat(5, minmax(0, 1fr)); gap: 5px; } .gm-c { font-size: 1.2rem; } }

/* ── menu ── */
.menu { padding: 96px 0 80px; }
.menu-groups { width: min(var(--wrap), 100%); margin: 40px auto 0; padding: 0 var(--gut); display: grid; gap: 44px; }
.mg-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--gold-line); margin-bottom: 16px; }
.mg-head h3 { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--gold-pale); }
.mg-head p { color: var(--cream-mute); font-size: .9rem; }
/* justified rows: each photo grows in proportion to its own shape, so square and wide crops share a row */
.mg-grid { --row: 190px; display: flex; flex-wrap: wrap; gap: 12px; }
.mg-grid::after { content: ''; flex: 10 1 0; }
.dish { position: relative; flex: 1.2 1 calc(var(--row) * 1.2); aspect-ratio: 1.2; border-radius: 14px; overflow: hidden; background: var(--navy-800); }
.dish.wide { flex: 3 1 calc(var(--row) * 3); aspect-ratio: 3; }
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dish:hover img { transform: scale(1.05); }
.dish figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(0deg, rgba(7, 12, 22, .9), transparent); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; font-style: italic; color: var(--cream); display: flex; flex-direction: column; gap: 2px; }
.dish .dn-th { font-family: var(--sans); font-size: .8rem; font-weight: 300; font-style: normal; color: var(--cream-mute); line-height: 1.35; }
@media (max-width: 520px) { .mg-grid { --row: 130px; gap: 8px; } .mg-grid::after { display: none; } .dish figcaption { font-size: 1.05rem; padding: 24px 10px 8px; } .dish .dn-th { font-size: .72rem; } }

/* ── closing + footer ── */
.close { padding: 80px var(--gut); text-align: center; background: linear-gradient(180deg, var(--navy-950), var(--navy-850)); border-top: 1px solid var(--cream-faint); }
.close h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; }
.close p { max-width: 560px; margin: 14px auto 28px; color: var(--cream-dim); }
.foot { display: flex; gap: 28px; align-items: center; padding: 40px var(--gut) calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--navy-950); color: var(--cream-mute); font-size: .86rem; border-top: 1px solid var(--cream-faint); justify-content: center; }
.foot img { width: 92px; height: auto; opacity: .9; }
.foot-name { color: var(--cream); letter-spacing: .12em; font-weight: 500; }
.foot a { color: var(--gold-pale); text-decoration: none; }
.foot-note { margin-top: 6px; font-size: .78rem; }
@media (max-width: 600px) { .foot { flex-direction: column; text-align: center; } }

/* ── detail sheet ── */
.sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 13, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
.sheet-card { position: relative; width: min(1120px, 100%); max-height: calc(100svh - 48px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: 1fr auto; background: var(--paper); color: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); animation: rise .45s var(--ease); outline: none; }
.sheet-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ink-line); background: rgba(246, 241, 231, .9); color: var(--ink); }
.sheet-x .ic { width: 20px; height: 20px; }
.sheet-media { position: relative; background: radial-gradient(ellipse 70% 60% at 50% 46%, var(--navy-700), var(--navy-950) 75%); display: grid; grid-template-rows: 1fr auto; padding: 36px 28px 22px; min-height: 0; }
.sheet-photo { align-self: center; justify-self: center; max-width: 100%; max-height: 46svh; width: auto; object-fit: contain; filter: drop-shadow(0 30px 26px rgba(0, 0, 0, .6)); animation: pop .55s var(--ease); }
.sheet-mini { width: min(320px, 80%); justify-self: center; margin-top: 12px; }
.sheet-mini svg { width: 100%; height: auto; display: block; }
.sheet-mini .rg { cursor: default; }
.sheet-mini .cow-edge { stroke-width: 14; }
.sheet-mini .cow-dash { opacity: .28; }
.sheet-body { padding: 40px 40px 24px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-k { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.sheet-en { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1; margin-top: 8px; padding-left: 14px; border-left: 4px solid var(--gold); }
.sheet-en small { display: block; font-size: .42em; font-weight: 500; color: var(--ink-mute); }
.sheet-th { margin-top: 8px; padding-left: 18px; font-size: 1.1rem; color: var(--ink-dim); }
.sheet-jp { margin-top: 12px; padding-left: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sheet-jp .sj-k { font-size: .78rem; color: var(--ink-mute); }
.sheet-jp > .jp { font-size: 1.35rem; color: var(--gold-deep); }
.sheet-jp .jp-read { color: var(--ink-dim); }
.sheet-jp .sj-alt { font-size: .85rem; color: var(--ink-mute); }
.sheet-jp .sj-alt .jp { color: var(--ink-dim); }
.sheet-tag { margin-top: 22px; font-weight: 500; font-size: 1.05rem; line-height: 1.6; }
.sheet-text { margin-top: 10px; color: var(--ink-dim); line-height: 1.9; font-size: .96rem; }
.sheet-row { margin-top: 22px; }
.sheet-row h3 { font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-mute); margin-bottom: 10px; }
.uses-big { display: flex; flex-wrap: wrap; gap: 8px; }
.uses-big li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 10px 4px 8px; border-radius: 12px; border: 1px solid var(--gold-line); color: var(--gold-deep); font-size: .74rem; }
.uses-big .ic { width: 30px; height: 30px; stroke-width: 1.2; }
.uses-big span { color: var(--ink); }
.grade-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.grade-chips li { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; padding: 4px 16px; border-radius: 10px; border: 1px solid var(--ink-line); }
.grade-chips li.a5 { background: var(--ink); color: var(--gold-pale); border-color: var(--ink); }
.sheet-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sheet-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--ink-line); background: var(--paper-2); }
.sheet-nav button { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 24px; border: 0; background: none; color: var(--ink); font-size: .92rem; }
.sheet-nav button:hover { color: var(--gold-deep); }
.sheet-nav span { max-width: 36vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .sheet { padding: 0; align-items: end; }
  .sheet-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; max-height: 94svh; border-radius: 22px 22px 0 0; animation: up .45s var(--ease); }
  .sheet-media { display: block; padding: 26px 18px 18px; text-align: center; }
  .sheet-photo { display: inline-block; max-height: 28svh; }
  .sheet-mini { position: absolute; left: 12px; bottom: 8px; width: 112px; margin: 0; }
  .sheet-body { padding: 24px 20px 22px; }
  .sheet-nav button { padding: 0 16px; min-height: calc(54px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .9rem; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); animation: fade .25s; }

/* ── reveal on scroll ── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
}

.sheet-jp[hidden] { display: none; }

/* ── cut stats ("จุดเด่น"): 10-segment meters, one gold ramp (track = the same gold, faint) ── */
.meter { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; width: 100%; height: 8px; }
.meter i { border-radius: 2px; background: rgba(201, 164, 94, .16); }
.meter i.on { background: var(--gold); }
.m-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-l { font-size: .78rem; color: var(--cream-mute); white-space: nowrap; }
.m-row.hot .m-l { color: var(--cream); font-weight: 500; }
.m-row.hot .meter i.on { background: var(--gold-bright); }
.badge { display: inline-block; margin: 6px 6px 0 0; padding: 1px 10px; border-radius: 999px; font-size: .72rem; line-height: 1.7; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-pale); }
.cite { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 5px; border-radius: 6px; border: 1px solid var(--gold-line); font-size: .7rem; line-height: 1; color: var(--gold); text-decoration: none; vertical-align: middle; }
a.cite:hover { border-color: var(--gold); }

.stats { padding: 96px 0 88px; background: var(--navy-950); border-top: 1px solid var(--cream-faint); }
.sb-list { width: min(1080px, 100%); margin: 28px auto 0; padding: 0 var(--gut); display: grid; gap: 8px; }
.sb-row { width: 100%; display: grid; grid-template-columns: 34px 84px minmax(0, 1fr) minmax(0, 1.9fr); align-items: center; gap: 18px; padding: 10px 20px 10px 12px; border-radius: 16px; border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(19, 34, 59, .62), rgba(11, 20, 36, .62)); color: var(--cream); text-align: left; transition: border-color .2s, background .2s; }
.sb-row:hover { border-color: var(--gold); background: linear-gradient(180deg, rgba(19, 34, 59, .9), rgba(11, 20, 36, .9)); }
.sb-rank { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold); text-align: center; }
.sb-img { aspect-ratio: 1.3; display: grid; place-items: center; }
.sb-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.sb-name { min-width: 0; }
.sb-name b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.sb-name > span:not(.badge) { display: block; font-size: .85rem; color: var(--cream-dim); }
.sb-meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 18px; }
.sb-foot { width: min(1080px, 100%); margin: 40px auto 0; padding: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; font-size: .86rem; color: var(--cream-dim); }
.sb-foot h3 { font-size: .95rem; font-weight: 500; color: var(--cream); margin-bottom: 12px; }
.sb-notes li { margin-bottom: 10px; line-height: 1.75; }
.sb-notes b { color: var(--gold-pale); font-weight: 500; }
.sb-notes .cites { white-space: nowrap; }
.refs li { position: relative; padding-left: 32px; margin-bottom: 12px; line-height: 1.6; scroll-margin-top: 90px; }
.refs { counter-reset: ref; }
.refs li { counter-increment: ref; }
.refs li::after { content: counter(ref); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--gold-line); border-radius: 6px; font-size: .7rem; color: var(--gold); }
.refs li:target { color: var(--cream); }
.refs li:target::after { background: var(--gold); color: var(--navy-950); }
.ref-th { color: var(--cream); }
.ref-t { display: block; font-size: .78rem; color: var(--cream-mute); }
.ref-t a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ref-t a:hover { color: var(--gold-pale); }
@media (max-width: 860px) {
  .sb-row { grid-template-columns: 30px 64px minmax(0, 1fr); gap: 10px 14px; padding: 12px 14px 14px 10px; }
  .sb-meters { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 4px; }
  .sb-foot { grid-template-columns: 1fr; gap: 24px; }
}

/* peek: meters on wide screens; the 250px tablet panel keeps the cooking icons instead */
.peek-stats { display: grid; gap: 7px; margin: 12px 0 16px; }
.peek-stats .m-row { flex-direction: row; align-items: center; gap: 10px; }
.peek-stats .m-l { width: 62px; flex: none; }
.peek.has-stats .uses { display: none; }
.peek.has-stats .peek-tag { -webkit-line-clamp: 2; }
/* the panel is a fixed 480px: text keeps its height, the photo takes what is left */
.peek.has-stats > * { flex-shrink: 0; }
.peek.has-stats .peek-img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.peek.has-stats .peek-img img { height: 100%; }
@media (max-width: 1080px) {
  .peek-stats { display: none; }
  .peek.has-stats .peek-img { aspect-ratio: 1 / .8; }
  .peek.has-stats .peek-img img { height: auto; }
  .peek.has-stats .uses { display: flex; }
}

/* sheet (paper): the same meters in the deep gold */
.sheet-stats .meter { height: 10px; }
.sheet-stats .meter i { background: rgba(156, 122, 58, .16); }
.sheet-stats .meter i.on { background: var(--gold-deep); }
.ss-meters { display: grid; gap: 9px; max-width: 440px; }
.ss-meters .m-row { flex-direction: row; align-items: center; gap: 12px; }
.ss-meters .m-l { width: 72px; flex: none; font-size: .86rem; color: var(--ink); }
.ss-badges { margin: -4px 0 10px; }
.ss-badges .badge { background: var(--ink); border-color: var(--ink); color: var(--gold-pale); }
.ss-fat { margin-top: 14px; font-size: .84rem; line-height: 1.7; color: var(--ink-dim); }
.ss-fat b { color: var(--ink); font-weight: 600; }
.ss-fat a, .sheet-body .ss-src a:not(.cite) { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.ss-src, .sj-src { font-size: .76rem; color: var(--ink-mute); }
.ss-src { margin-top: 8px; }
.sheet-body .cite { color: var(--gold-deep); border-color: rgba(156, 122, 58, .4); }
.sheet-stats[hidden] { display: none; }
