/* Jiangxin — site stylesheet. Tokens mirror the Jiangxin design system (tokens.json).
   Layout concept: a museum catalogue in blue-and-white porcelain — objects shown as square
   "plates" with catalogue labels beside them; Chinese names set vertically like seal columns. */
/* Fonts are self-hosted in fonts.css (loaded first by functions.php). */

:root {
  /* Palette: cinnabar red on ash white */
  --porcelain: #F1F0EC;
  --porcelain-raised: #FAF9F6;
  --glaze: #E7E5E0;
  --line: #D8D5CE;
  --ink: #1C1B19;
  --ink-muted: #615E58;
  --cobalt: #A8231C;
  --cobalt-deep: #7D1913;
  --cobalt-soft: #FBE5E0;
  --on-cobalt: #FFFFFF;
  --celadon: #6E8F7E;
  --seal: #B8261D;
  --on-seal: #FFFFFF;
  --verified: #2F6B4F;
  --band: #E4E2DC;
  --on-band: #1C1B19;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-cjk: "Noto Serif SC", "Songti SC", "STSong", serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-none: 0; --radius-sm: 2px; --radius-pill: 999px;
  --measure: 64ch;
  --max: 1240px;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --porcelain: #171210; --porcelain-raised: #201916; --glaze: #271E1A; --line: #3B2F29;
    --ink: #F3EBE0; --ink-muted: #B7A99C; --cobalt: #EC6F61; --cobalt-deep: #F5A096;
    --cobalt-soft: #3B1C17; --on-cobalt: #171210; --celadon: #8FB3A0; --seal: #E2574A;
    --on-seal: #171210; --verified: #7FC7A2; --band: #5A1A14; --on-band: #F6E9DC; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --porcelain: #171210; --porcelain-raised: #201916; --glaze: #271E1A; --line: #3B2F29;
  --ink: #F3EBE0; --ink-muted: #B7A99C; --cobalt: #EC6F61; --cobalt-deep: #F5A096;
  --cobalt-soft: #3B1C17; --on-cobalt: #171210; --celadon: #8FB3A0; --seal: #E2574A;
  --on-seal: #171210; --verified: #7FC7A2; --band: #5A1A14; --on-band: #F6E9DC; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--porcelain); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--porcelain); }
img, svg { max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- layout ---------- */
.wrap {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: var(--space-9); }
.section.tight { padding-block: var(--space-8); }
.band-glaze { background: var(--glaze); }
.band-ink { background: var(--band); color: var(--on-band); }
.band-ink a { color: var(--on-band); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- type ---------- */
.display-xl, .display-l, .display-m, .title { font-family: var(--font-display); font-weight: 500; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
.display-xl { font-size: clamp(44px, 7.4vw, 96px); line-height: 0.98; font-variation-settings: "opsz" 96; }
.display-l { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; font-variation-settings: "opsz" 72; }
.display-m { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.title { font-size: 22px; line-height: 1.25; }
.display-xl em, .display-l em, .display-m em { font-style: italic; color: var(--cobalt); }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; max-width: 56ch; color: var(--ink); margin: 0; }
.body-l { font-size: 18px; line-height: 1.7; max-width: var(--measure); }
.muted { color: var(--ink-muted); }
.label {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0;
}
.cjk { font-family: var(--font-cjk); font-weight: 500; letter-spacing: 0.04em; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.2; margin: 1.6em 0 0.5em; }
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }

.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-5); margin-bottom: var(--space-7); }
.section-head .stack-3 { min-width: 0; }
@media (max-width: 640px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--porcelain) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-5); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); flex: none; }
.brand-word { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: 0.01em; line-height: 1; }
.nav { display: flex; gap: var(--space-5); margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding-block: var(--space-2); border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--cobalt); color: var(--cobalt); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font: 500 14px var(--font-sans); padding: 8px 12px; cursor: pointer; }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--porcelain); border-bottom: 1px solid var(--line);
         padding: var(--space-3) max(16px, env(safe-area-inset-right, 0px)) var(--space-5) max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: var(--space-4); }
}

/* ---------- seal ---------- */
.seal {
  display: inline-flex; writing-mode: vertical-rl; align-items: center; justify-content: center;
  background: var(--seal); color: var(--on-seal); font-family: var(--font-cjk); font-weight: 700;
  border-radius: var(--radius-sm); line-height: 1; letter-spacing: 0.1em;
  padding: 0.45em 0.3em; font-size: 15px; box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px var(--on-seal);
}
.seal.sm { font-size: 12px; }
.seal.lg { font-size: 22px; }
.seal.square { writing-mode: horizontal-tb; display: inline-grid; grid-template-columns: 1fr 1fr; width: 2.6em; height: 2.6em; padding: 0.25em; font-size: 16px; gap: 0; text-align: center; letter-spacing: 0; }
.seal.square span { writing-mode: vertical-rl; line-height: 1.05; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font: 500 15px/1 var(--font-sans); height: 46px; padding: 0 var(--space-5);
  border-radius: var(--radius-sm); border: 1px solid var(--cobalt); text-decoration: none; cursor: pointer;
  background: var(--cobalt); color: var(--on-cobalt); transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: var(--on-cobalt); }
.btn.secondary { background: transparent; color: var(--cobalt); }
.btn.secondary:hover { background: var(--cobalt-soft); color: var(--cobalt); border-color: var(--cobalt); }
.btn.sm { height: 38px; padding: 0 var(--space-4); font-size: 14px; }
.band-ink .btn { background: var(--on-band); color: var(--band); border-color: var(--on-band); }
.band-ink .btn.secondary { background: transparent; color: var(--on-band); }
.link-arrow { font-weight: 500; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  font: 500 14px/1 var(--font-sans); padding: 9px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--porcelain-raised); color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--cobalt); }
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--cobalt-soft); color: var(--cobalt); }
.tag.verified { background: transparent; color: var(--verified); border: 1px solid currentColor; }
.tag.verified::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.sample { background: transparent; color: var(--ink-muted); border: 1px dashed var(--line); }

/* ---------- plates (image placeholders drawn as blue-and-white motifs) ---------- */
.plate {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%; background: var(--glaze); color: var(--cobalt);
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
}
.plate.tall { aspect-ratio: 4 / 5; }
.plate.wide { aspect-ratio: 16 / 9; }
.plate svg.motif { width: 46%; height: auto; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.plate::after { /* faint concentric glaze rings */
  content: ""; position: absolute; inset: -20%; z-index: -1; opacity: .5;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 22px, color-mix(in srgb, var(--cobalt) 6%, transparent) 22px 23px);
}
.plate.has-img::after { display: none; }
.plate.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .4s ease; }
.card:hover .plate.has-img > img { transform: scale(1.03); }
.plate.has-img .plate-note { background: var(--porcelain); padding: 4px 6px; border-radius: var(--radius-sm); }
.plate.has-img .namecol { background: color-mix(in srgb, var(--porcelain) 88%, transparent); padding: 10px 6px; border-radius: var(--radius-sm); }
.plate .plate-note { position: absolute; left: var(--space-3); bottom: var(--space-3); font: 400 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.plate .seal { position: absolute; top: var(--space-3); right: var(--space-3); }
.plate .play { position: absolute; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--cobalt); color: var(--on-cobalt); }
.plate .play::before { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent currentColor; margin-left: 5px; }

/* ---------- object label (catalogue placard) ---------- */
.objlabel { display: grid; gap: var(--space-3); }
.objlabel .names { display: grid; gap: 2px; }
.objlabel .en { font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 500; margin: 0; }
.objlabel .zh { font-family: var(--font-cjk); font-size: 15px; color: var(--ink-muted); }
.objlabel .zh .py { font-family: var(--font-sans); font-style: italic; margin-left: 6px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--space-4); margin: 0; font-size: 14px; }
.specs dt { font: 400 11px/20px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; }
.price { font-family: var(--font-mono); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--space-7) var(--space-5); }
.grid.c2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { display: grid; gap: var(--space-4); text-decoration: none; color: inherit; align-content: start; min-width: 0; }
.card:hover .plate { outline: 1px solid var(--cobalt); outline-offset: -1px; }
.card:hover .en, .card:hover .card-title { color: var(--cobalt); }
.card-title { font-family: var(--font-display); font-size: 24px; line-height: 1.15; font-weight: 500; margin: 0; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: baseline; }

.artisan-card .plate .namecol { position: absolute; top: var(--space-4); left: var(--space-4); writing-mode: vertical-rl; font-family: var(--font-cjk); font-weight: 700; font-size: 26px; letter-spacing: .18em; color: var(--ink); }
.craft-tile { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); align-items: center; padding: var(--space-4); background: var(--porcelain-raised); border: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: var(--radius-sm); min-width: 0; }
.craft-tile:hover { border-color: var(--cobalt); }
.craft-tile .plate { width: 72px; }
.craft-tile .plate svg.motif { width: 70%; }
.craft-tile strong { font-weight: 600; display: block; }
.craft-tile .cjk { color: var(--ink-muted); font-size: 14px; }

/* ---------- lineage ---------- */
.lineage { list-style: none; margin: 0; padding: 0; position: relative; }
.lineage::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--cobalt); }
.lineage li { position: relative; padding: 0 0 var(--space-5) var(--space-6); }
.lineage li:last-child { padding-bottom: 0; }
.lineage li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--porcelain); border: 1px solid var(--cobalt); }
.lineage li.current::before { background: var(--cobalt); }
.lineage .gen { font: 400 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 4px; }
.lineage .who { font-weight: 600; }
.lineage .who .cjk { font-weight: 500; color: var(--ink-muted); margin-left: 6px; }

/* ---------- process steps (real sequences only) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--space-5); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid currentColor; padding-top: var(--space-4); display: grid; gap: var(--space-2); align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; }
.steps strong { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.2; }
.steps p { margin: 0; font-size: 15px; opacity: .88; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--line); }
table.data thead th { font: 400 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
table.data tbody th { font-weight: 600; width: 22%; }
table.data td { font-variant-numeric: tabular-nums; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--space-5); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 14px; padding: 0; }
.field .hint { font-size: 13px; color: var(--ink-muted); }
.input, .select, .textarea {
  font: 400 16px/1.4 var(--font-sans); color: var(--ink); background: var(--porcelain-raised);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-muted); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
.textarea { min-height: 140px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row label { font: 500 14px/1 var(--font-sans); padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; background: var(--porcelain-raised); }
.radio-row input:checked + label { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }
.radio-row input:focus-visible + label { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.form-done { padding: var(--space-5); border: 1px solid var(--verified); color: var(--ink); border-radius: var(--radius-sm); }

/* ---------- notices ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--line); background: var(--porcelain-raised); border-radius: var(--radius-sm); font-size: 15px; }
.notice p { margin: 0; }
.notice .seal { align-self: start; }

/* ---------- hero ---------- */
.hero { padding-block: var(--space-8) var(--space-9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); } }
.hero-figure { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); }
.hero-figure figcaption { writing-mode: vertical-rl; font-family: var(--font-cjk); font-size: 15px; letter-spacing: .3em; color: var(--ink-muted); }

.page-head { padding-block: var(--space-8) var(--space-7); border-bottom: 1px solid var(--line); }
.page-head .lede { margin-top: var(--space-4); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: var(--space-7); }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
.two-col.media-first { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .two-col, .two-col.media-first { grid-template-columns: 1fr; gap: var(--space-6); } }
.sticky-side { position: sticky; top: calc(var(--header-h) + var(--space-5) + env(safe-area-inset-top, 0px)); }
@media (max-width: 900px) { .sticky-side { position: static; } }

.kv-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.kv-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.kv-list li strong { font-weight: 600; }
@media (max-width: 560px) { .kv-list li { grid-template-columns: 1fr; gap: var(--space-1); } }

.journal-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-5); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.journal-item:hover .card-title { color: var(--cobalt); }
.journal-item .card-title { font-size: 22px; }

details.faq { border-bottom: 1px solid var(--line); padding-block: var(--space-4); }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
details.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--cobalt); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: var(--space-3) 0 0; max-width: var(--measure); color: var(--ink-muted); }

.tier { border: 1px solid var(--line); background: var(--porcelain-raised); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; border-radius: var(--radius-sm); }
.tier.feature { border-color: var(--cobalt); box-shadow: inset 0 3px 0 var(--cobalt); }
.tier .amount { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.tier ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--space-2); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--glaze); padding-block: var(--space-8) var(--space-6); margin-top: var(--space-9); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--cobalt); text-decoration: underline; }
.footer-legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: 13px; color: var(--ink-muted); }
.footer-legal p { margin: 0; max-width: 80ch; }

.sample-banner { background: var(--cobalt-soft); color: var(--cobalt); font-size: 13px; text-align: center; padding: 8px 16px; }
.empty { padding: var(--space-7); text-align: center; color: var(--ink-muted); border: 1px dashed var(--line); }

/* =====================================================================
   Ink-wash layer (v2): scenes, parallax, petals, framed cards, hanging tags
   ===================================================================== */
.ink { display: block; width: 100%; height: auto; user-select: none; pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ink { filter: invert(1) hue-rotate(180deg) brightness(.92); opacity: .75; } }
:root[data-theme="dark"] .ink { filter: invert(1) hue-rotate(180deg) brightness(.92); opacity: .75; }

/* display type: tighter, larger, like a printed catalogue cover */
.display-xl, .display-l, .display-m { letter-spacing: -0.025em; }
.display-l { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; }

/* ---------- buttons: block with an arrow segment ---------- */
.btn { border-radius: 0; font: 500 13px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; height: 50px; padding: 0 0 0 22px; gap: 0; }
.btn::after { content: "↗"; display: grid; place-items: center; align-self: stretch; width: 46px; margin-left: 20px; margin-block: 12px; border-left: 1px dashed color-mix(in srgb, currentColor 55%, transparent); font-family: var(--font-sans); font-size: 15px; transition: transform .25s ease; }
.btn:hover::after { transform: translate(2px, -2px); }
.btn.sm { height: 40px; padding-left: 16px; font-size: 12px; }
.btn.sm::after { width: 36px; margin-left: 14px; margin-block: 9px; }
.btn.no-arrow { padding-right: 22px; }
.btn.no-arrow::after { display: none; }

/* ---------- scroll reveal ---------- */
html.has-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }
html.has-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- petals ---------- */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

/* ---------- home scene ---------- */
.scene { position: relative; height: clamp(560px, 92svh, 960px); overflow: hidden; background: var(--porcelain); isolation: isolate; }
.scene-layer { position: absolute; left: 50%; width: max(100%, 1400px); transform: translateX(-50%); will-change: transform; }
.scene-back { bottom: 2%; opacity: .95; }
.scene-front { bottom: -4%; z-index: 3; }
.scene-word { position: absolute; left: 0; right: 0; top: 30%; z-index: 2; display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 28px); will-change: transform, opacity; }
.scene-en { font-family: var(--font-display); font-weight: 500; font-size: clamp(88px, 19vw, 300px); line-height: .8; letter-spacing: -0.04em; color: var(--ink); animation: word-in 1.8s cubic-bezier(.2,.7,.2,1) both; }
.scene-seal { display: grid; grid-template-columns: 1fr; place-items: center; background: var(--seal); color: var(--on-seal); font-family: var(--font-cjk); font-weight: 700; font-size: clamp(22px, 3.6vw, 52px); line-height: 1.02; padding: .22em .2em; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 5px var(--on-seal); align-self: flex-start; margin-top: .4em; animation: seal-in 1s 1.1s cubic-bezier(.2,.9,.3,1.3) both; }
.scene-mist { position: absolute; inset: auto 0 0 0; height: 30%; z-index: 4; background: linear-gradient(to bottom, transparent, var(--porcelain) 92%); }
.scene-hint { position: absolute; z-index: 5; left: 50%; bottom: var(--space-5); transform: translateX(-50%); display: grid; justify-items: center; gap: var(--space-2); }
.scene-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--ink-muted), transparent); animation: hint 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes word-in { from { opacity: 0; letter-spacing: .12em; filter: blur(8px); } to { opacity: 1; letter-spacing: -0.04em; filter: none; } }
@keyframes seal-in { from { opacity: 0; transform: scale(1.8) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes hint { 0%, 100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 640px) { .scene { height: 78svh; min-height: 480px; } .scene-word { top: 34%; } .scene-layer { width: 220%; } }

.hero.intro { padding-top: var(--space-6); position: relative; z-index: 2; }

/* ---------- ink branch dividers ---------- */
.ink-branch { position: relative; margin-block: calc(clamp(48px, 7vw, 96px) * -1) calc(clamp(56px, 8vw, 120px) * -1); pointer-events: none; z-index: 1; overflow: hidden; }
.ink-branch .ink { position: relative; left: -4vw; width: min(70vw, 1100px); will-change: transform; }
.ink-branch.flip .ink { left: auto; margin-left: auto; right: -4vw; transform: scaleX(-1); }
@media (max-width: 640px) { .ink-branch .ink { width: 120vw; } }

/* ---------- page heads with an ink landscape ---------- */
.page-head, .hero:not(.intro) { position: relative; overflow: hidden; isolation: isolate; }
.page-head { padding-block: var(--space-9) var(--space-8); }
.page-head::before, .hero:not(.intro)::before {
  content: ""; position: absolute; inset: 0 0 0 30%; z-index: -1; pointer-events: none;
  background: url("../img/ink-landscape.webp") right 30% / cover no-repeat; opacity: .6;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%);
}
.hero:not(.intro)::before { opacity: .32; inset: 0 0 0 20%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-head::before, :root:not([data-theme="light"]) .hero:not(.intro)::before { filter: invert(1) brightness(.85); opacity: .3; } }
:root[data-theme="dark"] .page-head::before, :root[data-theme="dark"] .hero:not(.intro)::before { filter: invert(1) brightness(.85); opacity: .3; }
@media (max-width: 720px) { .page-head::before { inset: 0; opacity: .3; } }

/* ---------- framed catalogue cards ---------- */
.card { border: 1px solid var(--line); background: var(--porcelain-raised); padding: 12px 12px 0; gap: var(--space-4); transition: border-color .25s, transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--ink) 60%, transparent); }
.card:hover .plate { outline: 0; }
.card > .stack-2, .card > .objlabel { padding-inline: 8px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin: 4px -12px 0; padding: 15px 20px; border-top: 1px solid var(--line); font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); transition: background .25s, color .25s; }
.card-foot::after { content: "↗"; font-family: var(--font-sans); font-size: 14px; }
.card:hover .card-foot { background: var(--cobalt); color: var(--on-cobalt); border-top-color: var(--cobalt); }
.card .label.meta { display: flex; justify-content: space-between; gap: var(--space-3); }
.tag.outline { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 0; }

/* ---------- hanging craft tags ---------- */
.hang-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.4vw, 36px); padding-top: 0; }
.hang-tag { --len: 60px; display: grid; justify-items: center; text-decoration: none; color: var(--ink); transform-origin: 50% 0; animation: sway var(--sw, 5s) ease-in-out infinite alternate; animation-delay: var(--sd, 0s); }
.hang-tag .string { width: 1px; height: var(--len); background: var(--seal); position: relative; }
.hang-tag .string::after { content: ""; position: absolute; left: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--seal); background: var(--porcelain); }
.hang-tag .paper { display: grid; justify-items: center; gap: var(--space-3); width: 74px; padding: 18px 8px 16px; margin-top: 2px; background: var(--porcelain-raised); border: 1px solid var(--line);
  border-top: 3px solid var(--seal); box-shadow: 0 10px 22px -16px rgba(0,0,0,.4); transition: background .25s, color .25s; }
.hang-tag .cjk { writing-mode: vertical-rl; font-size: 22px; font-weight: 700; letter-spacing: .2em; }
.hang-tag .en { writing-mode: vertical-rl; font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.hang-tag .count { font: 500 11px/1 var(--font-mono); color: var(--cobalt); }
.hang-tag:hover .paper { background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); }
.hang-tag:hover .en, .hang-tag:hover .count { color: var(--on-cobalt); }
@keyframes sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }

/* ---------- floating inquiry button ---------- */
.float-cta { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 45; background: var(--ink); border-color: var(--ink); color: var(--porcelain); transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.float-cta:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-cobalt); }
.float-cta.show { transform: none; }

/* ---------- footer: ridge and big word ---------- */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--porcelain); border-top: 1px solid var(--line); padding-bottom: 0; }
.site-footer::before { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; background: url("../img/ink-ridge.webp") center bottom / max(100%, 1200px) auto no-repeat; opacity: .35; pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer::before { filter: invert(1); opacity: .18; } }
:root[data-theme="dark"] .site-footer::before { filter: invert(1); opacity: .18; }
.footer-word { font-family: var(--font-display); font-weight: 500; font-size: clamp(72px, 17vw, 260px); line-height: .78; letter-spacing: -0.045em; margin: var(--space-8) 0 0; color: var(--ink); display: flex; align-items: flex-end; gap: .08em; }
.footer-word .seal { font-size: .14em; align-self: center; }
.footer-legal { position: relative; margin-inline: calc(var(--space-4) * -1); padding: var(--space-5) var(--space-4) var(--space-6); background: color-mix(in srgb, var(--porcelain) 86%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

@media (prefers-reduced-motion: reduce) {
  .scene-en, .scene-seal, .hang-tag, .scene-hint::after { animation: none; }
  html.has-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .scene-layer, .scene-word, .ink-branch .ink { transform: none !important; }
  .scene-layer { transform: translateX(-50%) !important; }
}
@media (max-width: 640px) {
  .scene-layer { width: 160%; }
  .scene-back { bottom: 14%; }
  .hang-row { gap: 10px 12px; }
  .hang-tag .string { height: calc(var(--len) * .4); }
  .hang-tag .paper { width: 62px; padding: 14px 6px 12px; }
  .hang-tag .cjk { font-size: 19px; }
}

/* ---------- commission: sticky intro + scroll timeline ---------- */
.commission {
  --c-bg: var(--band); --c-fg: var(--on-band); --c-acc: var(--cobalt);
  --c-line: color-mix(in srgb, var(--c-fg) 24%, transparent);
  position: relative; overflow: clip; isolation: isolate; background: var(--c-bg); color: var(--c-fg);
  padding-block: clamp(88px, 11vw, 168px);
}
.commission-mark { position: absolute; right: -0.04em; top: 8%; z-index: -1; pointer-events: none; writing-mode: vertical-rl; font-family: var(--font-cjk); font-weight: 700; font-size: clamp(180px, 30vw, 460px); line-height: 1; color: var(--c-fg); opacity: .06; }
.commission-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
.commission-intro { position: sticky; top: calc(var(--header-h) + var(--space-7) + env(safe-area-inset-top, 0px)); display: grid; gap: var(--space-5); justify-items: start; }
.commission .label { color: inherit; opacity: .72; margin: 0; }
.commission .display-l em { color: var(--c-acc); }
.commission-lede { margin: 0; max-width: 42ch; font-size: 18px; line-height: 1.6; opacity: .86; }
.commission .btn { background: var(--c-fg); color: var(--c-bg); border-color: var(--c-fg); margin-top: var(--space-2); }
.commission .btn:hover { background: transparent; color: var(--c-fg); border-color: var(--c-fg); }
.commission-count { margin: var(--space-6) 0 0; display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.commission-count .now { font-family: var(--font-display); font-size: clamp(64px, 8vw, 116px); letter-spacing: -0.03em; color: var(--c-acc); font-variant-numeric: tabular-nums; }
.commission-count .of { font: 500 13px/1 var(--font-mono); letter-spacing: .1em; opacity: .6; }

.timeline { --p: 0; list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--c-line); }
.timeline::after { left: 26px; width: 3px; background: var(--c-acc); transform-origin: top; transform: scaleY(var(--p)); }
.timeline li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-5); padding-bottom: clamp(56px, 10vh, 112px); opacity: .32; transition: opacity .6s ease; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li.done { opacity: .62; }
.timeline li.on { opacity: 1; }
.tl-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-bg); font: 500 13px/1 var(--font-mono); letter-spacing: .06em; transition: background .45s, color .45s, border-color .45s, transform .45s cubic-bezier(.2,.9,.3,1.3); }
.timeline li.done .tl-num { border-color: var(--c-acc); color: var(--c-acc); }
.timeline li.on .tl-num { background: var(--c-acc); border-color: var(--c-acc); color: var(--c-bg); transform: scale(1.08); }
.tl-body { padding-top: 4px; display: grid; gap: var(--space-3); }
.tl-body h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.025em; }
.tl-body p:not(.label) { margin: 0; max-width: 44ch; font-size: 17px; line-height: 1.6; opacity: .88; }
@media (max-width: 900px) {
  .commission-grid { grid-template-columns: 1fr; }
  .commission-intro { position: static; }
  .commission-count { display: none; }
  .commission-mark { top: auto; bottom: -2%; }
}
@media (prefers-reduced-motion: reduce) { .timeline li { opacity: 1; } .timeline::after { transform: none; } }

/* =====================================================================
   Scroll experience (v3): smooth scroll, progress, header, transitions,
   word reveals, image wipes, marquee, horizontal gallery
   ===================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; background: var(--cobalt); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

.site-header { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.site-header.hide { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }

/* page transitions */
body { animation: page-in .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-in { from { opacity: 0; } }
html.leaving body { opacity: 0; transition: opacity .28s ease; }

/* headings rise word by word */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .16em 0; margin: 0 -.06em -.16em 0; }
.split-words .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.75,.15,1); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
.split-words.in .w > span { transform: none; }

/* photographs: wipe open, then drift inside the frame */
.plate.has-img > img { scale: var(--isc, 1.1); translate: 0 var(--iy, 0px); transition: scale 1.8s cubic-bezier(.2,.7,.2,1), clip-path 1.3s cubic-bezier(.7,0,.2,1), transform .4s ease; }
html.has-reveal .plate.has-img.reveal-img > img { clip-path: inset(100% 0 0 0); }
html.has-reveal .plate.has-img.reveal-img.in > img { clip-path: inset(0 0 0 0); }
html.has-reveal .plate.has-img.reveal-img > img { --isc: 1.28; }
html.has-reveal .plate.has-img.reveal-img.in > img { --isc: 1.1; }

/* page-head ink drifts slower than the page */
.page-head::before, .hero:not(.intro)::before { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* footer marquee, driven by scroll */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding-block: var(--space-6); margin-bottom: var(--space-8); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -0.03em; padding-right: .5em; white-space: nowrap; color: var(--ink); display: inline-flex; align-items: center; gap: .3em; }
.marquee-track span i { font-style: normal; font-family: var(--font-cjk); font-weight: 700; font-size: .5em; color: var(--seal); }
.marquee-track span::after { content: ""; width: .18em; height: .18em; border-radius: 50%; background: var(--line); margin-left: .2em; }
.site-footer { padding-top: 0; }

/* horizontal gallery: pinned while the cards travel sideways */
.hscroll { position: relative; }
.hscroll-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.hscroll .section-head { margin-bottom: var(--space-6); }
.hscroll-track { display: flex; gap: var(--space-5); padding-inline: max(16px, calc((100vw - var(--max)) / 2 + var(--space-6))); will-change: transform; }
.hscroll-track > * { flex: none; width: clamp(260px, 24vw, 340px); }
.hscroll-more { display: grid; place-content: center; justify-items: center; gap: var(--space-4); text-align: center; border: 1px dashed var(--line); text-decoration: none; color: var(--ink); min-height: 300px; }
.hscroll-more .display-m { color: var(--cobalt); }
.hscroll-bar { margin: var(--space-6) auto 0; width: min(var(--max), calc(100% - 32px)); height: 1px; background: var(--line); position: relative; }
.hscroll-bar::after { content: ""; position: absolute; inset: -1px 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--hp, 0)); }
.hscroll.static .hscroll-pin { position: static; height: auto; padding-block: var(--space-9); overflow: visible; }
.hscroll.static .hscroll-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-4); -webkit-overflow-scrolling: touch; transform: none !important; }
.hscroll.static .hscroll-track > * { scroll-snap-align: start; width: min(78vw, 320px); }
.hscroll.static .hscroll-bar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .split-words .w > span { transform: none; }
  .plate.has-img > img { scale: 1; translate: none; }
  html.has-reveal .plate.has-img.reveal-img > img { clip-path: none; }
  .scroll-progress { display: none; }
}

/* Header inquiry button: keep white text (the nav link colour would otherwise win). */
.nav a.btn, .nav a.btn:hover { color: var(--on-cobalt); border-bottom-color: var(--cobalt); }
.nav a.btn:hover { border-bottom-color: var(--cobalt-deep); }

/* =====================================================================
   Responsive pass (v4): tablets and phones
   ===================================================================== */
.hero-figure { grid-template-columns: minmax(0, 1fr) auto; }
.hero-figure > .stack-3 { min-width: 0; }
.ph-seal { max-width: 100%; }
.card-meta > * { min-width: 0; }

/* tablets */
@media (max-width: 1040px) {
  .section { padding-block: var(--space-8); }
  .hero-grid { gap: var(--space-7); }
  .two-col { gap: var(--space-7); }
  .nav { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .nav a.btn { justify-content: space-between; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .hero-figure { max-width: 560px; }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phones */
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .section { padding-block: var(--space-7); }
  .section.tight { padding-block: var(--space-6); }
  .section-head { margin-bottom: var(--space-5); gap: var(--space-3); }
  .brand-word { font-size: 22px; }
  .brand .seal.square { font-size: 14px; }
  .display-xl { font-size: clamp(38px, 11vw, 56px); }
  .display-l { font-size: clamp(30px, 8.6vw, 40px); }
  .display-m { font-size: clamp(24px, 6.6vw, 30px); }
  .lede, .body-l { font-size: 17px; }
  .btn { height: 46px; padding-left: 18px; font-size: 12px; }
  .btn::after { width: 40px; margin-left: 14px; }
  .btn-row { gap: var(--space-2); }
  .btn-row .btn { flex: 1 1 100%; justify-content: space-between; }

  /* opening scene: keep the big word inside the screen */
  .scene-en { font-size: clamp(56px, 18vw, 88px); }
  .scene-seal { font-size: clamp(16px, 4.6vw, 22px); }

  /* grids: two small works (and craft tiles) per row, artisan cards a little shorter */
  .grid { gap: var(--space-4); }
  .grid.c4, .grid.works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .grid.works .card { padding: 8px 8px 0; gap: var(--space-3); }
  .grid.works .card > .stack-2, .grid.works .card > .objlabel { padding-inline: 2px; }
  .grid.works .objlabel .en, .grid.works .card-title { font-size: 17px; line-height: 1.2; }
  .grid.works .label { font-size: 10px; letter-spacing: .06em; }
  .grid.works .label.meta, .grid.works .card-meta { flex-direction: column; gap: 2px; }
  .grid.works .placeholder-card p.muted { display: none; }
  .grid.works .card-foot { margin-inline: -8px; padding: 12px 10px; font-size: 10px; letter-spacing: .06em; }
  .grid.works .plate .seal { font-size: 12px; }
  .grid.works .placeholder-plate .plate-note { display: none; }
  .grid.works .placeholder-plate .ph-seal { font-size: 18px; }
  .placeholder-plate.tall, .placeholder-card .plate.tall { aspect-ratio: 4 / 3; }
  .placeholder-card .plate { aspect-ratio: 1 / 1; }
  .placeholder-plate .ph-seal { font-size: 22px; }

  /* comparison tables become stacked cards */
  .table-wrap { overflow: visible; }
  table.data { min-width: 0; font-size: 15px; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data, table.data tbody, table.data tr, table.data th, table.data td { display: block; width: auto; }
  table.data tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
  table.data th, table.data td { padding: 0; border: 0; }
  table.data tbody th { width: auto; font-size: 17px; margin-bottom: var(--space-2); }
  table.data td + td { margin-top: var(--space-3); }
  table.data td[data-label]::before { content: attr(data-label); display: block; font: 400 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }

  /* filter chips: one swipeable row instead of five wrapped rows */
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; -webkit-overflow-scrolling: touch;
           -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 28px), transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; }
  .display-xl, .display-l { line-height: 1.06; }

  .journal-item { grid-template-columns: 84px minmax(0, 1fr); gap: var(--space-4); }
  .kv-list li { padding-block: var(--space-3); }
  .specs { grid-template-columns: 1fr; gap: 0; }
  .specs dd { margin: 0 0 var(--space-3); }
  .notice { grid-template-columns: 1fr; gap: var(--space-2); padding: var(--space-4); }
  .footer-grid { gap: var(--space-5); }
  .footer-word { font-size: clamp(60px, 21vw, 96px); }

  /* floating button: small, bottom right, out of the reading line */
  .float-cta { left: auto; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); height: 42px; padding-left: 14px; font-size: 11px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
  .float-cta::after { width: 34px; margin-left: 10px; margin-block: 10px; }

  /* commission timeline */
  .commission-mark { font-size: 160px; opacity: .05; }
  .commission-lede { font-size: 17px; }
}
@media (max-width: 380px) {
  .grid.c4, .grid.works { gap: var(--space-2); }
  .brand-word { font-size: 20px; }
}

/* Logged-in editors: keep the sticky header below the WordPress toolbar. */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
