/* ============================================================
   HIRAKI — site2 · "Slate" edition
   Cool charcoal texture, editorial spacing, thin serif caps,
   side rail with chapter markers, corner-framed cards.
   ============================================================ */

:root {
  --bg: #16181c;
  --bg-2: #1b1e23;
  --bg-3: #21252b;
  --ink: #e7e2d9;
  --ink-2: #a9a49b;
  --ink-3: #6f6b64;
  --brass: #b7905a;
  --brass-2: #d3b07a;
  --line: rgba(231, 226, 217, 0.10);
  --line-2: rgba(231, 226, 217, 0.20);
  --line-brass: rgba(183, 144, 90, 0.55);
  --max: 1240px;
  --rail: 88px;
  --nav-h: 72px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 15% 0%, rgba(255,255,255,.035), transparent 60%),
    radial-gradient(900px 700px at 90% 100%, rgba(183,144,90,.05), transparent 60%);
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .75;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer, .edge { position: relative; z-index: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--brass); color: var(--bg); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.1; }
.caps {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .32em; font-weight: 400;
}
.caps-xl { font-size: clamp(2.4rem, 6vw, 5.2rem); letter-spacing: .38em; font-weight: 300; }
.caps-l  { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: .34em; }
.caps-m  { font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: .3em; }
.caps-s  { font-size: .72rem; letter-spacing: .3em; font-family: var(--font-body); font-weight: 600; color: var(--brass); }
.sub { font-family: var(--font-jp); color: var(--ink-2); letter-spacing: .3em; font-size: .85rem; }
.serif { font-family: var(--font-display); }
.lede { font-size: 1.05rem; color: var(--ink-2); max-width: 52ch; }
.muted { color: var(--ink-2); }
.small { font-size: .82rem; }
.jp { font-family: var(--font-jp); }
p { margin: 0; }
.prose { display: grid; gap: 18px; color: var(--ink-2); font-size: .95rem; max-width: 50ch; }
.prose strong { color: var(--ink); font-weight: 600; }

.vertical { font-family: var(--font-jp); writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .4em; color: var(--ink-3); font-size: .8rem; line-height: 1; }

/* ---------- Edge captions (fixed, like the mockup margins) ---------- */
.edge { position: fixed; top: 50%; transform: translateY(-50%); z-index: 5; pointer-events: none; }
.edge.left { left: 22px; }
.edge.right { right: 22px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.wrap.wide { width: min(1440px, 100% - 40px); }
.section { padding-block: clamp(72px, 10vw, 150px); }
.section.flush { padding-top: 0; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.dotted { border: 0; border-top: 1px dotted var(--line-2); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px;
  border: 1px solid var(--line-2); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600;
  transition: all .35s var(--ease); white-space: nowrap;
}
.btn:hover { border-color: var(--brass); color: var(--brass-2); }
.btn.brass { border-color: var(--brass); color: var(--brass-2); }
.btn.brass:hover { background: var(--brass); color: var(--bg); }
.btn.fill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.fill:hover { background: var(--brass-2); border-color: var(--brass-2); color: var(--bg); }
.textlink { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; color: var(--brass-2); display: inline-flex; gap: 12px; align-items: center; }
.textlink::after { content: "—"; transition: transform .3s var(--ease); }
.textlink:hover::after { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(22,24,28,.84); backdrop-filter: blur(12px); border-color: var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; }
.brand span { font-family: var(--font-display); letter-spacing: .34em; text-transform: uppercase; font-size: .95rem; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.nav-links a { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--brass-2); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 4px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(92vh, 900px); min-height: 560px; max-height: 900px; margin-top: 0; }
.hero .media { position: absolute; inset: 0; overflow: hidden; }
.hero .media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); transform: scale(1.02); }
.hero .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,24,28,.55) 0%, rgba(22,24,28,.15) 35%, rgba(22,24,28,.25) 65%, var(--bg) 100%);
}
.hero .content { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 20px; }
.hero .stack { display: grid; gap: 18px; justify-items: center; transform: translateY(-4%); }
.hero .kanji { width: clamp(120px, 14vw, 180px); filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.hero h1 { color: var(--ink); text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero .sub { color: var(--ink); opacity: .85; }
.hero .rule-pair { display: flex; align-items: center; gap: 18px; color: var(--ink-2); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.hero .rule-pair::before, .hero .rule-pair::after { content: ""; width: 56px; height: 1px; background: var(--line-brass); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--ink-3); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--brass), transparent); }

/* ---------- Chapter layout with side rail ---------- */
.chapters { position: relative; }
.chapter { position: relative; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 0 clamp(20px, 3vw, 48px); padding-block: clamp(56px, 7vw, 110px); }
.rail { position: relative; }
.rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rail .mark { position: sticky; top: 45vh; display: grid; justify-items: center; gap: 10px; }
.rail .num { font-family: var(--font-display); font-size: .95rem; letter-spacing: .2em; color: var(--brass); background: var(--bg); padding: 4px 0; position: relative; }
.rail .tick { width: 22px; height: 1px; background: var(--brass); }
.rail .glyph { font-family: var(--font-jp); font-size: 1.1rem; color: var(--ink-3); background: var(--bg); padding: 6px 0; }
.chapter .body { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }

/* chapter variants */
.ch-split .body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ch-split.rev .body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.ch-split.rev .body > .text { order: -1; }
.text { display: grid; gap: 22px; }
.text .head { display: grid; gap: 8px; }
.text .head .caps-l { color: var(--ink); }

.frame { position: relative; overflow: hidden; background: var(--bg-3); margin: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.frame.portrait { aspect-ratio: 4 / 5; }
.frame.landscape { aspect-ratio: 3 / 2; }
.frame.square { aspect-ratio: 1; }
.frame.wide { aspect-ratio: 21 / 9; }
.frame .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); background: linear-gradient(transparent, rgba(22,24,28,.75)); }

/* big + two small (mockup row 3) */
.ch-mosaic .body { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: stretch; }
.ch-mosaic .stack { display: grid; grid-template-rows: auto auto; gap: clamp(16px, 2vw, 28px); align-content: start; }
.ch-mosaic .stack .frame { aspect-ratio: 4 / 3; min-height: 0; }
.ch-mosaic .stack .frame img { object-position: center 40%; }
.ch-mosaic .big { aspect-ratio: auto; min-height: 0; }

/* corner-framed card (mockup row 4) */
.card {
  position: relative; padding: clamp(32px, 4.5vw, 64px); background: rgba(27,30,35,.7);
  display: grid; gap: 22px;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 46%; height: 46%; border: 1px solid var(--line-brass); pointer-events: none;
}
.card::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.card::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.card .head { text-align: center; display: grid; gap: 10px; justify-items: center; }
.card .head .caps-l { color: var(--ink); }
.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.leaders li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px dotted var(--line-2); }
.leaders li:last-child { border-bottom: 0; }
.leaders .name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; }
.leaders .name small { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--ink-2); letter-spacing: 0; margin-top: 2px; }
.leaders .dots { border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.leaders .price { font-family: var(--font-display); font-size: 1.2rem; color: var(--brass-2); }
.card .foot { text-align: center; color: var(--ink-3); font-size: .78rem; }
.card .center { justify-self: center; }

/* ---------- Full-bleed band ---------- */
.band { position: relative; height: clamp(360px, 55vh, 640px); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(22,24,28,.55) 30%, rgba(22,24,28,.65) 50%, rgba(22,24,28,.55) 70%, var(--bg) 100%); }
.band .quote { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 24px; }
.band .quote blockquote { margin: 0; padding: 40px 56px; background: radial-gradient(ellipse at center, rgba(22,24,28,.82) 0%, rgba(22,24,28,.55) 55%, transparent 100%); font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 300; font-style: italic; color: var(--ink); max-width: 26ch; text-shadow: 0 4px 30px rgba(0,0,0,.6); line-height: 1.3; }
.band .quote cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--font-body); font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--brass-2); }

/* ---------- Four columns (menu preview + footer, mockup bottom) ---------- */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.col h4 { font-family: var(--font-body); font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.col li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.col li b { color: var(--ink); font-weight: 500; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; }
.col li span:last-child { font-family: var(--font-display); color: var(--ink); }
.col p { font-size: .88rem; color: var(--ink-2); }
.col.hours-col li span:last-child { font-family: var(--font-body); font-size: .9rem; letter-spacing: .02em; }
.center-head { text-align: center; display: grid; gap: 12px; justify-items: center; margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Visit + reservation ---------- */
.visit .body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours td { padding: 10px 0; border-bottom: 1px dotted var(--line-2); color: var(--ink-2); }
.hours td:last-child { text-align: right; color: var(--ink); font-family: var(--font-body); font-size: .9rem; letter-spacing: .02em; }
.todo { color: var(--brass-2); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
form.book { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
form.book .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--ink);
  padding: 10px 0; font: inherit; font-size: .95rem; color-scheme: dark; transition: border-color .3s; border-radius: 0;
}
.field select option { background: var(--bg-2); }
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.form-foot p { font-size: .78rem; color: var(--ink-3); max-width: 44ch; }
.form-msg { display: none; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line-brass); color: var(--ink); font-size: .92rem; }
.form-msg.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 32px; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px dotted var(--line-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .72rem; color: var(--ink-3); letter-spacing: .08em; }
.socials { display: flex; gap: 18px; }
.socials a { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
.socials a:hover { color: var(--brass-2); }

/* ---------- Menu page ---------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(32px, 4vw, 56px); text-align: center; display: grid; gap: 14px; justify-items: center; }
.menu-nav { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(22,24,28,.9); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.menu-nav ul::-webkit-scrollbar { display: none; }
.menu-nav a { display: inline-block; padding: 16px 14px; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.menu-nav a:hover, .menu-nav a.active { color: var(--brass-2); border-bottom-color: var(--brass); }
.menu-section { padding-block: clamp(56px, 7vw, 100px); scroll-margin-top: calc(var(--nav-h) + 56px); border-bottom: 1px dotted var(--line-2); }
.menu-section:last-of-type { border-bottom: 0; }
.menu-section .grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.m-head { position: sticky; top: calc(var(--nav-h) + 80px); display: grid; gap: 14px; }
.m-head .kanji { font-family: var(--font-jp); font-size: clamp(2rem, 3.4vw, 3rem); color: var(--ink); letter-spacing: .1em; line-height: 1.1; }
.m-head p { color: var(--ink-2); font-size: .9rem; max-width: 30ch; }
.m-head .frame { aspect-ratio: 4 / 3; margin-top: 8px; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 44px; }
.items.one { grid-template-columns: 1fr; }
.item { display: grid; align-content: start; gap: 4px; padding-bottom: 14px; border-bottom: 1px dotted var(--line-2); }
.item .row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 14px; }
.item .name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: .02em; }
.item .name .jp { color: var(--ink-3); font-size: .85rem; margin-left: 8px; }
.item .price { font-family: var(--font-display); font-size: 1.15rem; color: var(--brass-2); white-space: nowrap; }
.item .price small { font-family: var(--font-body); font-size: .7rem; color: var(--ink-2); }
.item .desc { color: var(--ink-2); font-size: .88rem; }
.item .tag { display: inline-block; font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-2); border: 1px solid var(--line-brass); padding: 2px 7px; margin-left: 8px; vertical-align: middle; font-family: var(--font-body); font-weight: 700; }
.subhead { grid-column: 1 / -1; font-family: var(--font-body); font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-top: 14px; }
.sashimi-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sashimi-table th { text-align: left; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); padding: 0 0 10px; font-weight: 700; }
.sashimi-table th:not(:first-child), .sashimi-table td:not(:first-child) { text-align: right; font-family: var(--font-display); font-size: 1.15rem; color: var(--brass-2); }
.sashimi-table td { padding: 10px 0; border-bottom: 1px dotted var(--line-2); }
.sashimi-table td:first-child { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.sashimi-table td .jp { color: var(--ink-3); font-size: .85rem; margin-left: 8px; }
.note { font-size: .8rem; color: var(--ink-3); }
.sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* image-led item cards (maki rolls) */
.items.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.items.cards .item { border-bottom: 0; padding-bottom: 0; gap: 10px; }
.items.cards .item .frame { aspect-ratio: 5 / 4; margin-bottom: 4px; }
.items.cards .item .name { font-size: 1.15rem; }
@media (max-width: 1100px) { .items.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .items.cards { grid-template-columns: 1fr; } .items.cards .item .frame { aspect-ratio: 4 / 3; } }

/* featured item with a full-width photo (nigiri omakase) */
.item.featured { grid-column: 1 / -1; gap: 12px; }
.item.featured .frame.wide { aspect-ratio: 2.4 / 1; margin-bottom: 6px; }
.item.featured .name { font-size: 1.4rem; }
@media (max-width: 600px) { .item.featured .frame.wide { aspect-ratio: 2 / 1; } }

/* list item with its own photo, stays in the two-column flow */
.item.photo { gap: 10px; }
.item.photo .frame { aspect-ratio: 5 / 4; margin-bottom: 6px; }

.nav-links .mobile-only { display: none; }
@media (max-width: 900px) { .site-header.open .nav-links .mobile-only { display: block; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .frame img { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .edge { display: none; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-section .grid { grid-template-columns: 1fr; }
  .m-head { position: static; }
  .m-head .frame { display: none; }
}
@media (max-width: 900px) {
  :root { --rail: 44px; --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: grid; }
  .site-header.open { background: var(--bg); }
  .site-header.open .nav-links { display: flex; flex-direction: column; gap: 6px; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg-2); padding: 20px 20px 28px; border-bottom: 1px solid var(--line); }
  .site-header.open .nav-links a { display: block; padding: 12px 6px; font-size: .8rem; }
  .ch-split .body, .ch-split.rev .body, .ch-mosaic .body, .visit .body { grid-template-columns: 1fr; }
  .ch-split.rev .body > .text { order: 0; }
  .ch-mosaic .stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .ch-mosaic .big { aspect-ratio: 3 / 2; }
  .ch-mosaic .stack .frame { aspect-ratio: 1; min-height: 0; }
  .rail .mark { top: 40vh; }
  .card::before, .card::after { width: 40%; height: 30%; }
  form.book { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
  .sets { grid-template-columns: 1fr; }
  .hero { height: min(86vh, 720px); min-height: 520px; }
  .hero .kanji { width: 110px; }
}
@media (max-width: 600px) {
  .cols { grid-template-columns: 1fr; }
  .wrap, .wrap.wide { width: min(var(--max), 100% - 32px); }
  .chapter { grid-template-columns: 1fr; }
  .rail { display: none; }
  .caps-xl { letter-spacing: .26em; }
}

/* ---------- SEO pass 2026-09: local section, FAQ, a11y helper ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero .stack .rule-pair { margin: 0; }
.local { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.local .prose { max-width: 58ch; font-size: 1rem; }
.local .prose a:not(.textlink) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-brass); text-underline-offset: 3px; }
.local .prose a:not(.textlink):hover { color: var(--brass-2); }
.local h3 { margin: 0 0 14px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 18px 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--font-body); font-size: 1rem; color: var(--brass-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); font-size: .93rem; line-height: 1.65; max-width: 60ch; }
.faq details p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-brass); text-underline-offset: 3px; }
@media (max-width: 820px) { .local { grid-template-columns: 1fr; } }

/* logos are sized by CSS, never by intrinsic dimensions */
.brand img, .foot-brand img { width: auto; }
