/* ============================================================
   BJJO Sakamoto Dojo · site styles
   Palette: off-white canvas, near-black ink, one red (logo red).
   Signature: the red tatami line.
   ============================================================ */

:root {
  --canvas: #f7f5f2;
  --panel: #ffffff;
  --ink: #141414;
  --ink-2: #4a4a4a;
  --ink-3: #666666;
  --line: #e3dfd9;
  --line-strong: #bdb7ae;
  --red: #c8102e;
  --red-hover: #a50d26;
  --red-soft: rgba(200, 16, 46, 0.08);
  --dark: #111111;
  --dark-2: #1b1b1b;
  --dark-line: rgba(255, 255, 255, 0.12);
  --on-dark: #f3f1ee;
  --on-dark-2: #b9b5ae;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
:root[lang="ja"] {
  --font-body: "Barlow", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans JP", ui-monospace, monospace;
}
/* Japanese glyphs are wide and have no condensed cut, so headings run smaller and looser */
:root[lang="ja"] h1, :root[lang="ja"] h2, :root[lang="ja"] h3, :root[lang="ja"] h4 { letter-spacing: 0.01em; line-height: 1.18; font-weight: 900; }
:root[lang="ja"] h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
:root[lang="ja"] h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
:root[lang="ja"] h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.3; }
:root[lang="ja"] .hero h1, :root[lang="ja"] .hero-split h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
:root[lang="ja"] .coach-name, :root[lang="ja"] .stat-n { font-family: var(--font-display); }
:root[lang="ja"] .btn { letter-spacing: 0.06em; font-weight: 700; }
:root[lang="ja"] .nav-link { font-size: 0.95rem; letter-spacing: 0.01em; padding: 8px 9px; }
:root[lang="ja"] .nav-link::after { left: 9px; right: 9px; }
:root[lang="ja"] .site-nav { gap: 18px; }
:root[lang="ja"] .nav-right { gap: 12px; }
:root[lang="ja"] h1, :root[lang="ja"] h2, :root[lang="ja"] h3 { text-wrap: balance; word-break: auto-phrase; }
/* Japanese labels are wider, so the hamburger takes over earlier (below 1120px instead of 980px) */
@media (max-width: 1120px) and (min-width: 981px) {
  :root[lang="ja"] .nav-toggle { display: block; }
  :root[lang="ja"] .site-nav { position: fixed; inset: 72px 0 0 0; background: var(--canvas); flex-direction: column; align-items: stretch; padding: 24px var(--gutter) 40px; gap: 24px; transform: translateX(100%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s 0.3s; overflow: auto; z-index: 49; }
  :root[lang="ja"] .site-nav.is-open { transform: none; visibility: visible; transition: transform 0.3s var(--ease), visibility 0s; }
  :root[lang="ja"] .site-nav ul { flex-direction: column; gap: 0; }
  :root[lang="ja"] .nav-link { font-size: 1.4rem; padding: 12px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  :root[lang="ja"] .nav-link::after { display: none; }
  :root[lang="ja"] .nav-right { flex-direction: column; align-items: stretch; gap: 20px; }
  :root[lang="ja"] .nav-right .btn { width: 100%; font-size: 1.2rem; padding: 16px; }
  :root[lang="ja"] .lang-switch { justify-content: center; font-size: 0.95rem; }
}
:root[lang="ja"] .kicker, :root[lang="ja"] .mono { letter-spacing: 0.06em; }
:root[lang="ja"] .faq-list summary, :root[lang="ja"] .tab, :root[lang="ja"] .foot-name { letter-spacing: 0.02em; }
:root[lang="ja"] .lede, :root[lang="ja"] p { line-height: 1.85; }
:root[lang="ja"] .page-hero h1 { max-width: 22ch; }
:root[lang="ja"] .story-copy .drop::first-letter { font-size: 1em; float: none; margin: 0; color: inherit; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  position: relative;
  overflow-x: hidden;
}
/* one environment: faint grain layer behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(200, 16, 46, 0.05), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(20, 20, 20, 0.04), transparent 60%);
}
body.modal-open, body.nav-open { overflow: hidden; }

::selection { background: var(--red); color: #fff; }
::-moz-selection { background: var(--red); color: #fff; }
.dark ::selection, .site-footer ::selection, .stats ::selection { background: #fff; color: var(--red); }
.cta-band ::selection { background: var(--ink); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}
.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; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; font-size: 0.82em; text-transform: uppercase; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 0.98; margin: 0 0 0.5em; text-transform: uppercase; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.05; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 58ch; }
.dark .lede, .cta-band .lede { color: var(--on-dark-2); }
.kicker {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); flex: none; }
.kicker-light { color: #ff5c73; }
.kicker-light::before { background: #ff5c73; }
.text-link { color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.text-link:hover { border-bottom-color: var(--red); }

/* the signature: red tatami line */
.mat-line { position: absolute; left: 0; right: 0; bottom: 24px; height: 10px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.2s; }
.is-in .mat-line, .no-js .mat-line { transform: scaleX(1); }
.mat-line-v { left: auto; right: -14px; top: 10%; bottom: 10%; width: 10px; height: auto; transform: scaleY(0); transform-origin: top; }
.is-in .mat-line-v { transform: scaleY(1); }
.mat-line-center { position: static; display: block; width: 88px; height: 10px; margin: 0 auto 28px; transform: scaleX(0); }
.is-in .mat-line-center { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .mat-line, .mat-line-v, .mat-line-center { transform: none !important; transition: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 1.05rem; padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-lg { font-size: 1.2rem; padding: 16px 28px; }
.btn-sm { font-size: 0.95rem; padding: 9px 16px; white-space: nowrap; }
@media (pointer: coarse) { .btn, .tab, .chip, .nav-link { min-height: 44px; } }

/* ---------- Header / nav ---------- */
/* The blur lives on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 242, 0.92); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; }
.site-header .nav-wrap { position: relative; z-index: 1; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-top { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-top: 3px; white-space: nowrap; }
@media (max-width: 1120px) and (min-width: 981px) {
  .site-nav { gap: 16px; }
  .site-nav ul { gap: 0; }
  .nav-link { padding: 8px 8px; font-size: 0.98rem; }
  .nav-link::after { left: 8px; right: 8px; }
  .nav-right { gap: 12px; }
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; white-space: nowrap; padding: 8px 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; color: var(--ink-2); position: relative; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.lang-switch a { text-decoration: none; color: var(--ink-3); padding: 4px 2px; white-space: nowrap; }
.lang-switch a.is-current { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--red); }
.lang-switch .sep { color: var(--line-strong); }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 10px; width: 20px; height: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle-bars { top: 19px; }
.nav-toggle-bars::before { content: ""; left: 0; top: -6px; }
.nav-toggle-bars::after { content: ""; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 0 0 0; background: var(--canvas); flex-direction: column; align-items: stretch; padding: 24px var(--gutter) 40px; gap: 24px; transform: translateX(100%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0s 0.3s; overflow: auto; z-index: 49; }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform 0.3s var(--ease), visibility 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .nav-link { font-size: 1.6rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-right { flex-direction: column; align-items: stretch; gap: 20px; }
  .nav-right .btn { width: 100%; font-size: 1.2rem; padding: 16px; }
  .lang-switch { justify-content: center; font-size: 0.95rem; }
  @media (prefers-reduced-motion: reduce) { .site-nav { transition: none; } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 780px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.sec-head-row h2 { margin-bottom: 0; }
.dark { background: var(--dark); color: var(--on-dark); }
.dark + .section, .section + .dark { border-top: 0; }
.dark h2, .dark h3 { color: #fff; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 80px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.6rem, 4.6vw, 4.3rem); hyphens: manual; }
.hero h1 .h-line { white-space: nowrap; }
@media (max-width: 420px) { .hero h1 .h-line { white-space: normal; } }
.h-line { display: block; }
.h-red { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
/* the photo bleeds off the right edge of the screen */
.hero-media { margin: 0; position: relative; margin-right: max(min(calc((var(--wrap) - 100vw) / 2), calc(-1 * var(--gutter))), -96px); padding-bottom: 14px; }
.hero-media img { width: 100%; height: clamp(400px, 56vh, 560px); object-fit: cover; object-position: center 38%; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); }
.hero-media .mat-line { bottom: 0; right: auto; width: 46%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin-right: calc(-1 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); }
  .hero-media img { height: clamp(300px, 50vh, 420px); object-position: center 40%; border-radius: 0; }
  .hero-media .mat-line { left: var(--gutter); }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--ink); color: var(--on-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { border-left: 0; }
.stat-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; letter-spacing: 0; text-transform: none; color: #fff; }
.stat-l { font-size: 0.95rem; color: var(--on-dark-2); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--dark-line); } }

/* ---------- Locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.loc-card { background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--ink); padding: 24px 22px 22px; position: relative; display: flex; flex-direction: column; gap: 6px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.loc-card:hover { transform: translateY(-4px); border-top-color: var(--red); }
.loc-num { position: absolute; right: 18px; top: 16px; color: var(--ink-3); }
.loc-card .kicker { margin-bottom: 8px; }
.loc-card h3 { margin-bottom: 8px; }
.loc-days { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 0.85rem; margin: 0 0 8px; }
.loc-note { font-size: 0.9rem; color: var(--ink-3); margin: 0 0 14px; padding-left: 14px; position: relative; }
.loc-note::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.loc-note.is-base { color: var(--red); }
.loc-note.is-base::before { background: var(--red); }
.loc-card .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 980px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .loc-grid { grid-template-columns: 1fr; } }

/* ---------- Programs ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.prog-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; grid-column: span 2; }
.prog-card:nth-child(1), .prog-card:nth-child(2) { grid-column: span 3; }
.prog-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s var(--ease); }
.prog-card:hover img { transform: scale(1.03); }
.prog-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prog-n { color: var(--red); }
.prog-body h3 { margin-bottom: 4px; }
.prog-body p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.prog-solid { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.prog-solid h3 { color: #fff; }
.prog-solid p { color: var(--on-dark-2); }
.prog-time { color: var(--red) !important; margin-top: auto !important; padding-top: 16px; }
.prog-solid .prog-time { color: #fff !important; }
@media (max-width: 900px) { .prog-grid { grid-template-columns: 1fr 1fr; } .prog-card, .prog-card:nth-child(1), .prog-card:nth-child(2) { grid-column: span 1; } .prog-card:last-child { grid-column: span 2; } }
@media (max-width: 560px) { .prog-grid { grid-template-columns: 1fr; } .prog-card:last-child { grid-column: span 1; } .sec-head-row { flex-direction: column; align-items: flex-start; } }

/* ---------- Family ---------- */
.family-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.family-photos { position: relative; aspect-ratio: 5 / 4; }
.family-photos img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.5); }
.fp-1 { width: 68%; height: 68%; left: 0; top: 0; }
.fp-2 { width: 62%; height: 58%; right: 0; bottom: 0; border: 6px solid var(--canvas); }
@media (max-width: 900px) { .family-grid { grid-template-columns: 1fr; } .family-photos { max-width: 560px; } }

/* ---------- Why (dark) ---------- */
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border-top: 1px solid var(--dark-line); }
.why-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 26px 20px 26px 0; border-bottom: 1px solid var(--dark-line); }
.why-list .mono { color: #ff5c73; padding-top: 6px; }
.why-list h3 { font-size: 1.45rem; margin-bottom: 6px; }
.why-list p { color: var(--on-dark-2); margin: 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 64px); }
.faq-grid .sec-head { margin-bottom: 0; }
.faq-list details { border-top: 1px solid var(--line-strong); padding: 6px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--red); font-size: 1.4rem; line-height: 1; transition: transform 0.25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 16px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -6vw; top: -30%; width: 42vw; height: 160%; background: rgba(0, 0, 0, 0.12); transform: skewX(-12deg); pointer-events: none; }
.cta-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band .kicker { color: #fff; } .cta-band .kicker::before { background: #fff; }
.cta-band .lede { color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band .btn-primary { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: clamp(48px, 6vw, 80px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; }
.foot-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: #fff; margin-bottom: 6px; line-height: 1.05; }
.foot-tag { margin: 0 0 22px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius); color: var(--on-dark); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.social-icons a:hover { border-color: var(--red); color: #fff; background: var(--red); text-decoration: none; }
.foot-h { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #ff5c73; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.foot-visit p { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; }
.foot-visit .ico { flex: none; color: #ff5c73; margin-top: 4px; }
.foot-small { font-size: 0.9rem; margin: 12px 0 0; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 0.9rem; flex-wrap: wrap; }
.foot-bottom p { margin: 0; }
.foot-bottom .lang-switch a { color: var(--on-dark-2); }
.foot-bottom .lang-switch a.is-current { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 4px; }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.story-media { margin: 0; position: relative; padding-bottom: 34px; }
.story-media img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); }
.story-copy p { color: var(--ink-2); font-size: 1.08rem; }
.story-copy .drop::first-letter { font-family: var(--font-display); font-weight: 800; font-size: 3.6em; float: left; line-height: 0.8; margin: 6px 10px 0 0; color: var(--red); }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { background: var(--panel); border: 1px solid var(--line); padding: 28px 24px; position: relative; }
.pillar .mono { color: var(--red); display: block; margin-bottom: 14px; }
.pillar h3 { font-size: 2rem; }
.pillar p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .pillar-grid { grid-template-columns: 1fr; } }
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; padding-bottom: 44px; }
.medal { border-top: 6px solid #ff5c73; padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.medal:nth-child(2) { border-top-color: #cfcfcf; }
.medal:nth-child(3) { border-top-color: #b07a45; }
.medal-note { grid-column: 1 / -1; color: var(--on-dark-2); position: absolute; bottom: 0; left: 0; }
@media (max-width: 900px) { .record-grid { grid-template-columns: 1fr; } }
.sunday-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.sunday-media { margin: 0; position: relative; padding-bottom: 14px; }
.sunday-media img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); width: 100%; }
.sunday-media .mat-line { bottom: 0; width: 40%; }
.sunday-copy .lede { margin: 0; }
@media (max-width: 900px) { .sunday-grid { grid-template-columns: 1fr; } }

/* ---------- Instructors ---------- */
.page-instructors .page-hero h1 { max-width: 20ch; }
.coach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.coach-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.coach-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.35); }
.coach-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-bottom: 4px solid var(--red); }
.coach-photo-empty { background: repeating-linear-gradient(135deg, #ece9e4 0 12px, #f4f2ee 12px 24px); display: grid; place-items: center; }
.coach-photo-empty span { font-family: var(--font-display); font-weight: 800; font-size: 3.5rem; color: var(--ink-3); }
.coach-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.coach-card h3 { margin-bottom: 4px; font-size: 1.5rem; }
.coach-role { color: var(--red); margin: 0 0 14px; }
.coach-bullets { list-style: none; margin: 0 0 18px; padding: 0; }
.coach-bullets li { padding: 8px 0 8px 22px; border-top: 1px solid var(--line); position: relative; font-size: 0.95rem; color: var(--ink-2); }
.coach-bullets li::before { content: ""; position: absolute; left: 0; top: 1em; width: 12px; height: 3px; background: var(--red); }
.coach-bullets li:last-child { border-bottom: 1px solid var(--line); }
.coach-bio-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; margin-top: auto; align-self: flex-start; }
.coach-meta { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 0.9rem; margin-bottom: 18px; }
.ach { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.ach li { padding-left: 22px; position: relative; }
.ach li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 3px; background: var(--red); }
.bio-body h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.bio-body p { color: var(--ink-2); }
.modal-card-wide { width: min(760px, 100%); }
.is-placeholder { position: relative; }
.is-placeholder::after { content: "Placeholder"; position: absolute; top: 12px; right: 12px; z-index: 1; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; background: var(--ink); color: #fff; padding: 4px 8px; }
@media (max-width: 1000px) { .coach-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .coach-grid { grid-template-columns: 1fr; } }

/* ---------- Visitors ---------- */
.hero-split { border-bottom: 1px solid var(--line); }
.hero-split h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); max-width: 20ch; text-wrap: balance; }
.hero-media-wide img { height: clamp(320px, 40vh, 440px); object-position: 100% 55%; }
@media (max-width: 900px) { .hero-media-wide img { height: clamp(220px, 40vw, 340px); } }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.info-item { padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.info-item h3 { font-size: 1.35rem; margin-bottom: 8px; }
.info-item p { color: var(--ink-2); margin: 0 0 10px; max-width: 62ch; }
.info-item p:last-child { margin-bottom: 0; }
.travel-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: stretch; }
.travel-card { background: var(--dark-2); border: 1px solid var(--dark-line); border-top: 6px solid var(--red); padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; }
.travel-code { color: #ff5c73; font-size: 1rem; margin: 0 0 6px; }
.travel-card h3 { font-size: 2rem; color: #fff; margin-bottom: 4px; }
.travel-addr { color: var(--on-dark-2); margin: 0 0 18px; }
.travel-facts { margin: 0 0 24px; border-top: 1px solid var(--dark-line); }
.travel-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--dark-line); }
.travel-facts dt { color: var(--on-dark-2); }
.travel-facts dd { margin: 0; color: #fff; text-transform: none; letter-spacing: 0; font-size: 0.9rem; text-align: right; }
.travel-card .btn { margin-top: auto; align-self: flex-start; }
.travel-map { min-height: 380px; border: 1px solid var(--dark-line); background: var(--dark-2); }
.travel-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(0.9); }
.vis-note { margin: 22px 0 0; color: var(--ink-3); font-size: 0.92rem; }
@media (max-width: 900px) { .travel-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-updated { color: var(--ink-3); margin: 8px 0 0; text-transform: none; letter-spacing: 0.04em; }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.legal-toc li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.legal-toc li a:hover { color: var(--red); }
.legal-body { max-width: 72ch; }
.legal-sec { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-sec:first-child { border-top: 0; padding-top: 0; }
.legal-sec h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.legal-sec h2 .mono { color: var(--red); font-size: 0.8rem; }
.legal-sec p, .legal-sec li { color: var(--ink-2); }
.legal-sec ul { margin: 0 0 1em; padding-left: 22px; }
.legal-sec li { margin-bottom: 6px; }
.legal-contact { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 24px 22px; margin-top: 12px; }
.legal-contact a { color: var(--red); }
.foot-legal { margin-left: 10px; }
.foot-legal a { color: var(--on-dark-2); }
:root[lang="ja"] .legal-sec h2 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ---------- Reviews ---------- */
.reviews { background: var(--panel); }
.rating-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 0; }
.g-word { font-family: "Product Sans", Arial, sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; }
.g-word span:nth-child(1) { color: #4285f4; } .g-word span:nth-child(2) { color: #ea4335; } .g-word span:nth-child(3) { color: #fbbc05; } .g-word span:nth-child(4) { color: #4285f4; } .g-word span:nth-child(5) { color: #34a853; } .g-word span:nth-child(6) { color: #ea4335; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; margin: 0; }
.rating-text { font-weight: 600; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { background: var(--canvas); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.review-text { margin: 0; color: var(--ink-2); flex: 1; }
.review-author { margin: 0; font-size: 0.95rem; }
.review-author .mono { color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.review-note { margin: -6px 0 0; color: var(--ink-3); font-size: 0.7rem; text-transform: none; letter-spacing: 0.04em; }
.reviews-more { margin: 28px 0 0; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- Schedule ---------- */
.quick-list { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line-strong); background: var(--panel); }
.quick-list > div { padding: 18px 18px 20px; border-left: 1px solid var(--line); }
.quick-list > div:first-child { border-left: 0; }
.quick-list dt { color: var(--red); margin-bottom: 8px; }
.quick-list dd { margin: 0; font-size: 0.98rem; color: var(--ink-2); }
.quick-list .is-rest { background: var(--canvas); }
.quick-list .is-rest dt { color: var(--ink-3); }
@media (max-width: 900px) { .quick-list { grid-template-columns: 1fr 1fr; } .quick-list > div { border-left: 0; border-top: 1px solid var(--line); } .quick-list > div:nth-child(-n+2) { border-top: 0; } .quick-list > div:nth-child(even) { border-left: 1px solid var(--line); } }
@media (max-width: 560px) { .quick-list { grid-template-columns: 1fr; } .quick-list > div { border-left: 0 !important; } .quick-list > div:nth-child(2) { border-top: 1px solid var(--line); } }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line-strong); margin-bottom: 18px; }
.tab { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.03em; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; padding: 12px 18px; cursor: pointer; color: var(--ink-3); transition: color 0.2s, border-color 0.2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--red); }
.legend { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-3); margin-bottom: 22px; text-transform: none; letter-spacing: 0; font-size: 0.82rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 2px; line-height: 1.2; }
.legend .tag { width: 14px; height: 14px; padding: 0; }
.tag-kids { background: #e8f0e8; color: #2d6a3a; }
.tag-adults { background: var(--red-soft); color: var(--red); }
.base-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red); display: inline-block; }
.sched-panel { background: var(--panel); border: 1px solid var(--line); }
.sched-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 26px 26px 20px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.sched-head h3 { margin: 0; font-size: 2rem; }
.sched-head .kicker { margin-bottom: 6px; }
.sched-addr { margin: 0; text-align: right; color: var(--ink-2); font-size: 0.95rem; }
.base-flag { color: var(--red); }
.sched-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 26px; border-top: 1px solid var(--line); align-items: baseline; }
.sched-row:first-of-type { border-top: 0; }
.sched-row h4 { margin: 0; font-size: 1.25rem; }
.sched-row ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sched-row li { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; align-items: baseline; }
.time { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.9rem; white-space: nowrap; }
.dash { color: var(--ink-3); padding: 0 3px; }
.cls { font-weight: 500; }
.sched-row.is-rest { background: var(--canvas); }
.sched-row.is-rest .cls { color: var(--ink-3); font-weight: 400; }
.sched-row .rest { grid-template-columns: 1fr; }
.sched-note { margin: 18px 0 0; color: var(--ink-3); font-size: 0.92rem; }
.sched-note a { color: var(--red); }
@media (max-width: 700px) {
  .sched-head { flex-direction: column; align-items: flex-start; }
  .sched-addr { text-align: left; }
  .sched-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .sched-row li { grid-template-columns: 1fr auto; }
  .sched-row li .time { grid-column: 1 / -1; }
}

/* ---------- Gallery ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--panel); border: 1px solid var(--line-strong); padding: 9px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); transition: all 0.2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item { margin: 0; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; }
.g-item[hidden] { display: none; }
.g-item:nth-child(1) { grid-row: span 2; }
.g-link { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.g-item:nth-child(1) .g-link { aspect-ratio: auto; flex: 1; min-height: 0; }
.g-item figcaption { flex: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.g-link:hover img { transform: scale(1.04); }
.g-item figcaption { font-size: 0.85rem; color: var(--ink-3); padding: 10px 14px; }
.gal-follow { margin: 28px 0 0; color: var(--ink-2); }
.gal-follow a { color: var(--red); font-weight: 600; text-decoration: none; margin-left: 10px; }
.social-links a + a { margin-left: 18px; }
@media (max-width: 900px) { .g-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .g-grid { grid-template-columns: 1fr; } .g-item:nth-child(1) { grid-row: auto; } .g-item:nth-child(1) .g-link { aspect-ratio: 4 / 3; height: auto; } }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, 0.92); display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity 0.2s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: min(1400px, 100%); max-height: 90vh; width: auto; height: auto; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.lb-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:hover { border-color: #fff; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.c-card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--ink); padding: 24px 22px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.c-card:hover { transform: translateY(-4px); border-top-color: var(--red); }
.c-card p { margin: 0; color: var(--ink-2); }
.c-big { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; text-transform: uppercase; color: var(--ink) !important; line-height: 1.05; margin-bottom: 4px !important; }
.c-email { text-transform: none; font-size: 1.3rem; word-break: break-all; }
.c-card .text-link { display: inline-block; margin-top: 12px; }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.map-wrap { aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--panel); margin-bottom: 26px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.side-h { font-size: 1.3rem; margin: 0 0 12px; }
.hours { margin: 0 0 28px; border-top: 1px solid var(--line-strong); }
.hours > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: 0.9rem; text-align: right; }
.hours .is-rest dt, .hours .is-rest dd { color: var(--ink-3); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.form .span-2 { grid-column: span 2; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; min-height: 46px;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: 3px solid var(--red-soft); outline-offset: 0; }
.form-privacy { font-size: 0.85rem; color: var(--ink-3); margin: 12px 0 0; }
.form-error { color: var(--red); font-weight: 600; margin: 12px 0 0; }
.form-success { border: 1px solid var(--line); background: var(--panel); padding: 32px 28px; text-align: center; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--ink-2); }
.success-mark { display: block; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--red); position: relative; }
.success-mark::after { content: ""; position: absolute; left: 20px; top: 12px; width: 12px; height: 24px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form .span-2 { grid-column: span 1; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.7); opacity: 0; transition: opacity 0.2s; }
.modal-card { position: relative; background: var(--canvas); width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(24px, 4vw, 40px); border-top: 10px solid var(--red); border-radius: var(--radius); transform: translateY(16px); opacity: 0; transition: transform 0.25s var(--ease), opacity 0.2s; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-card { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 2px solid var(--line-strong); background: transparent; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-close:hover { border-color: var(--ink); }
.modal-card h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.modal-card .lede { font-size: 1.05rem; margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal-card, .lightbox { transition: none; } }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
