/* DeLeon Judo Club — styles
 * Look: pale cool page, plain nav, huge centred headlines over small gray copy,
 * large rounded tiles, logo-red pill buttons. The last section of this file
 * ("Open layout") holds the centred, tile-led treatment. */
:root {
  --red: #a30000;
  --black: #111111;
  --ink: #111111;   /* same as --black: one dark for text */
  --muted: #6a7282;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --panel: #f1f3f6;
  --panel-deep: #e6e9ee;
  --gold: #ffcc00;
  /* Judo belt colours, in kyu order — accents that break up the white page.
     Used as tile fills and small markers, never as text on white (yellow
     fails contrast; --belt-yellow-ink is the readable version). */
  --belt-yellow: #f2b705;
  --belt-yellow-ink: #8a6800;
  --belt-orange: #b9530f;  /* deep enough for white text (4.9:1) */
  --belt-green: #267a4b;   /* 5.3:1 with white */
  --belt-blue: #2563c9;
  --belt-blue-deep: #1b4fa6;   /* hover / pressed */
  --cta: var(--red);           /* the logo red: buttons, links, big numerals */
  --cta-deep: #850000;         /* hover / pressed */
  --belt-purple: #6d4ab0;
  --belt-brown: #7b4b2a;
  --max: 1080px;
  --gutter: clamp(12px, 1.6vw, 24px);   /* inset of panels from the viewport edge */
  --radius: 16px;                        /* cards, tables, FAQ rows */
  --radius-lg: 28px;                     /* section panels */
  --font: "Satoshi", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--cta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cta-deep); }
/* Type scale. The jump from a headline to the body copy under it is the main
   device on this site: headlines run 2.5–5x the 16px body, tightly tracked and
   set at or below single leading; nothing lives in the middle of the scale. */
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; color: var(--black); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.05; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
small { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2.5rem); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons — one colour, belt blue. Primary is a solid pill; secondary
   (.btn-outline and .link-arrow) is the same pill, outlined, that fills on
   hover. No icons. On a colour fill everything flips to white, and the
   fill colour (--fill) becomes the text. */
:root { --spring: cubic-bezier(0.32, 0.72, 0, 1); }
.btn, .link-arrow {
  --tone: var(--cta);
  --tone-deep: var(--cta-deep);
  --on-tone: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.4s var(--spring), color 0.4s var(--spring), box-shadow 0.4s var(--spring), transform 0.4s var(--spring);
}
.btn { background: var(--tone); color: var(--on-tone); }
.btn:hover { background: var(--tone-deep); color: var(--on-tone); }
.btn.btn-outline, .link-arrow { background: transparent; color: var(--tone); box-shadow: inset 0 0 0 1.5px var(--tone); }
.btn.btn-outline:hover, .link-arrow:hover { background: var(--tone); color: var(--on-tone); }
.btn:active, .link-arrow:active { transform: scale(0.98); }
.btn:focus-visible, .link-arrow:focus-visible { outline: 2px solid var(--tone); outline-offset: 3px; }
section.band.blue  { --fill: var(--belt-blue); }
section.band.green { --fill: var(--belt-green); }
section.dark       { --fill: var(--black); }
:is(section.band, section.dark, .callout-section:is(.red, .green, .orange, .black, .brown, .purple)) :is(.btn, .link-arrow) {
  --tone: #fff;
  --tone-deep: rgba(255, 255, 255, 0.88);
  --on-tone: var(--fill);
}
/* A row of them */
.link-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 2.5rem 0 0; }
.link-row.left { justify-content: flex-start; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* Header / nav — a plain white bar stuck to the top: logo left, links right.
   Below 980px the links drop down from a hamburger. --nav-h is also what the
   phone hero subtracts to fill the first screen. */
:root { --nav-h: 64px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--black); text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.brand:hover { color: var(--black); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.site-nav a { display: block; padding: 0.45rem 0.7rem; color: var(--black); text-decoration: none; font-size: 0.9rem; font-weight: 500; border-radius: 8px; transition: color 0.3s var(--spring); }
.site-nav a:hover { color: var(--cta); }
.site-nav a[aria-current="page"] { color: var(--cta); font-weight: 600; }
.site-nav a.nav-cta { margin-left: 0.5rem; background: var(--cta); color: #fff; padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; transition: background 0.3s var(--spring); }
.site-nav a.nav-cta:hover { background: var(--cta-deep); color: #fff; }
.site-nav .nav-meta { display: none; }
.site-nav a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* Hamburger: three bars that fold into an X when the menu is open */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--black); cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--spring), opacity 0.2s var(--spring); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  /* Phone menu: a full-screen sheet under the bar. Big headline-font links
     slide in one after another; Register sits at the bottom. */
  .site-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 49;
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    padding: clamp(1rem, 4vh, 2rem) clamp(1.25rem, 5vw, 2.5rem) max(1.5rem, env(safe-area-inset-bottom));
    background: var(--bg);
    visibility: hidden; opacity: 0;
    transition: opacity 0.25s var(--spring), visibility 0s linear 0.25s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transition: opacity 0.25s var(--spring); }
  .site-nav ul { flex: 1; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--spring), transform 0.5s var(--spring); }
  .site-nav.open li { opacity: 1; transform: none; }
  .site-nav.open li:nth-child(2) { transition-delay: 0.03s; }
  .site-nav.open li:nth-child(3) { transition-delay: 0.06s; }
  .site-nav.open li:nth-child(4) { transition-delay: 0.09s; }
  .site-nav.open li:nth-child(5) { transition-delay: 0.12s; }
  .site-nav.open li:nth-child(6) { transition-delay: 0.15s; }
  .site-nav.open li:nth-child(7) { transition-delay: 0.18s; }
  .site-nav.open li:nth-child(n+8) { transition-delay: 0.22s; }
  .site-nav a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.3rem 0; border-radius: 0;
    color: var(--black); font-family: "Outfit", var(--font); font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.04em;
  }
  .site-nav a:hover, .site-nav a:active { color: var(--cta); }
  .site-nav a[aria-current="page"] { color: var(--black); font-weight: 700; }
  .site-nav a[aria-current="page"]::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cta); }
  .site-nav li:has(.nav-cta) { margin-top: auto; padding-top: 1.5rem; }
  .site-nav a.nav-cta {
    justify-content: center; margin: 0; padding: 1rem; border-radius: 999px;
    color: #fff; font-family: inherit; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em;
  }
  .site-nav .nav-meta { display: block; padding-top: 0.85rem; color: var(--muted); font-size: 1rem; text-align: center; }
  html.nav-locked { overflow: hidden; }
  html.nav-locked .consent { visibility: hidden; }
}
@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  .site-nav li { transform: none; transition: opacity 0.2s linear; }
}
/* Hero — big, centered, high impact */
.hero { padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5.5rem); text-align: center; }
.hero .wrap { max-width: 1080px; }
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 26ch;
  margin: 0 auto 1.1rem;
  text-wrap: balance;
}
.hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 620px; margin: 0 auto; color: var(--muted); }
.hero .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2rem; justify-content: center; }
/* Hero photo clusters — groups of club photos rise behind the copy: each one
 * fades in while rising, keeps rising the whole time it's visible, and fades
 * out still rising. Positions come from js/main.js as --x/--y/--w (percent of
 * the hero box); --life is the per-photo lifetime, --i the stagger index. */
.hero.has-photos { position: relative; overflow: hidden; }
.hero.has-photos .wrap { position: relative; z-index: 2; }
.hero-photos, .hero-veil { position: absolute; inset: 0; pointer-events: none; }
.hero-veil { z-index: 1; background: radial-gradient(ellipse 42% 60% at 50% 50%, rgba(249,250,251,0.92) 0%, rgba(249,250,251,0.6) 55%, rgba(249,250,251,0) 100%); }
.hero-photo {
  position: absolute;
  left: var(--x); top: var(--y); width: var(--w);
  aspect-ratio: var(--ar, 4 / 3);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  opacity: 0;
  animation: hero-rise var(--life, 6s) linear both;
  animation-delay: calc(var(--i) * 160ms);
  will-change: opacity, transform;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  animation: hero-pop var(--life, 6s) linear both;
  animation-delay: inherit;
}
/* The rise is linear over the whole lifetime so there is never a still
   moment; only the opacity has an in and an out. The scale pop lives on the
   img so it can ease independently of the linear rise. */
@keyframes hero-rise {
  0%   { opacity: 0; transform: translateY(var(--rise, 70px)); }
  5%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--rise, 70px) * -1)); }
}
/* Speech-bubble pop in (quick, overshoots, settles — 6.5% ≈ 0.42s of a 6.5s
   life), then a pop out over the last ~12% (≈0.8s) that starts where the
   opacity fade-out does: no overshoot, but a hard ease-in so it snaps away. */
@keyframes hero-pop {
  0%   { transform: scale(0.4); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  6.5% { transform: none; animation-timing-function: linear; }
  88%  { transform: none; animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.2); }
  100% { transform: scale(0.45); }
}
@media (min-width: 760px) {
  .hero.has-photos { min-height: min(86vh, 880px); display: flex; align-items: center; }
  .hero.has-photos .wrap { width: 100%; }
  /* Keep the headline inside the middle ~60% so the photo clusters have gutters. */
  .hero.has-photos h1 { font-size: clamp(2.5rem, 5.8vw, 5.25rem); max-width: min(26ch, 66vw); }
  .hero.has-photos .lead { max-width: min(620px, 58vw); }
}
/* Phones: the hero fills most of the first screen below the nav. The copy sits
   in the middle and the photos scatter around it (HERO_SLOTS_PHONE in
   js/main.js), tucking behind the text under a taller veil. */
@media (max-width: 759px) {
  .hero.has-photos {
    --rise: 28px;
    display: flex;
    align-items: center;
    padding: 0;
    /* Fills the screen on phones; capped so a narrow but tall desktop window
       doesn't stretch it. The tallest phones stay under the cap. */
    min-height: min(calc(100vh - var(--nav-h)), 820px);
    min-height: min(calc(100svh - var(--nav-h)), 820px);
  }
  .hero.has-photos .wrap { width: 100%; padding-block: 100px; }
  .hero.has-photos h1 { font-size: 2.25rem; margin-bottom: 0.8rem; }
  .hero.has-photos .lead { font-size: 1rem; line-height: 1.45; }
  .hero.has-photos .actions { margin-top: 1.25rem; gap: 0.4rem; }
  .hero.has-photos .btn { padding: 0.7rem 0.85rem; font-size: 0.9rem; }
  .hero.has-photos .btn.btn-outline { background: var(--bg); }
  .hero.has-photos .btn.btn-outline:hover { background: var(--tone); }
  .hero-photo { border-radius: 14px; }
  .hero-veil { background: radial-gradient(ellipse 90% 48% at 50% 50%, rgba(249,250,251,0.96) 0%, rgba(249,250,251,0.9) 62%, rgba(249,250,251,0) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-photo img { animation: none; opacity: 1; }
}


/* Page header (interior pages) — same impact, one notch smaller */
.page-head { padding: clamp(3rem, 7.5vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.page-head h1 {
  margin: 0 auto;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 16ch;
  text-wrap: balance;
}
.page-head p { margin: 1rem auto 0; color: var(--muted); max-width: 620px; font-size: clamp(1rem, 1.4vw, 1.2rem); text-wrap: pretty; }

/* Sections — no dividers. Rhythm comes from whitespace, and from the
   alternating inset panels (.alt) that sit a gutter in from the viewport. */
section { padding: clamp(5rem, 8.5vw, 8rem) 0; }
section.alt, section.dark, .callout-section:is(.red, .green, .orange, .black) {
  margin: var(--gutter);
  border-radius: var(--radius-lg);
}
section.alt { background: var(--panel); }
section.dark { background: var(--black); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark a:not(.btn, .link-arrow) { color: var(--gold); }
section.dark .muted, section.dark .section-title p { color: #fff; }
section.dark small { color: #fff; }
.section-title { margin-bottom: 2.75rem; }
.section-title h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 16ch;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.section-title p { color: var(--muted); margin: 0; font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 54ch; text-wrap: pretty; }
.section-title.center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; margin-bottom: 3.25rem; }
.section-title.center h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.section-title.center p { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* Headlines inside a two-column prose block — a step down from a full-width
   section title, still well clear of the body copy under them. */
.grid-2 .prose > h2 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.grid-2 .prose > h2:not(:first-child) { margin-top: 3rem; }
.prose { max-width: 680px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Cards — no borders, no shadows; a tone step from whatever they sit on. */
.card { background: var(--panel); border-radius: var(--radius); padding: 1.6rem; }
section.alt .card { background: var(--bg); }
.card h3 { margin-top: 0; }
.card .rank { color: var(--red); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

/* Bento — a 6-column grid of tiles in mixed sizes. Tiles are flat: a tone
   step (gray on white, white on a gray panel) or a solid belt colour. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  background: var(--panel);
  border-radius: 24px;
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
}
section.alt .tile { background: var(--bg); }
.tile > * { margin: 0; }
.tile h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.tile h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.tile p { color: var(--black); text-wrap: pretty; }
.tile .push { margin-top: auto; } /* pins a link or button to the tile's bottom edge */
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }
.tile.span-6 { grid-column: span 6; }
.tile.row-2 { grid-row: span 2; }

/* Solid belt tiles */
.tile.fill { color: #fff; }
.tile.fill :is(h2, h3, p, strong) { color: inherit; }
.tile.fill-yellow { background: var(--belt-yellow); color: var(--black); }
.tile.fill-orange { background: var(--belt-orange); }
.tile.fill-green  { background: var(--belt-green); }
.tile.fill-blue   { background: var(--belt-blue); }
.tile.fill-black  { background: var(--black); }
.tile.fill-red    { background: var(--red); }

/* Split section — a left-aligned title beside its content */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split .section-title { margin: 0; }
.split .section-title h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.split .link-row { justify-content: flex-start; margin-top: 1.5rem; }

/* ---------- Cards ----------
   A white card on a soft, wide shadow. .shell is the card's outer box (kept
   so photos and cards share markup); .core is the card face. Photos never
   get a shadow — they stay flat. */
:root { --soft-shadow: 0 1px 2px rgba(20, 24, 32, 0.04), 0 14px 36px -14px rgba(20, 24, 32, 0.14); }
.shell { --r: 26px; --pad: 0px; border-radius: var(--r); min-width: 0; }
.core {
  height: 100%;
  margin: 0;
  border-radius: var(--r, 26px);
  background: #fff;
  box-shadow: var(--soft-shadow);
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.core > * { margin: 0; }
.core .push { margin-top: auto; padding-top: 1rem; }
.ph.core, img.photo, .map-embed.core { box-shadow: none; }

/* A lede: the one sentence under a headline, in full ink */
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--black); max-width: 46ch; text-wrap: pretty; }

/* 12-column grid; spans collapse to full width on tablets and phones */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: 1 / -1; }
.row-3 { grid-row: span 3; }

/* Headline left, lede right, on one baseline */
.head-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head-split h2, #contact .section-title h2 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
/* Headlines that share their row with something else run a step smaller */
.core-lead h2, .band-split h2, .faq-split h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.head-split .lede { justify-self: end; }

/* Start section */
.core-lead { gap: 1.25rem; }
.core-lead h2 { max-width: 14ch; }
.core-lead .lede { margin-top: -0.25rem; }
/* Start card — one wide card: the pitch on the left, a tinted panel on the
   right holding the week strip (like a product shot of the schedule). */
.start-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; padding: clamp(1.5rem, 3vw, 2.75rem); }
.start-copy { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(0.5rem, 1.5vw, 1.25rem) 0; }
.start-copy h2 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 0.95; letter-spacing: -0.045em; margin: 0; max-width: 15ch; text-wrap: balance; }
.start-copy .lede { margin: 0; }
.week-panel { display: grid; align-items: center; }
/* The week sits straight on the card as a light inset — no extra panel, no shadow */
.week-card { width: 100%; background: #f7f8fa; border-radius: 20px; padding: clamp(1.25rem, 2.4vw, 1.75rem); }
.week { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.day { display: grid; justify-items: center; gap: 0.2rem; padding: 0.6rem 0 0.55rem; border-radius: 12px; background: #f4f6fa; }
.day-name { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.day-note { font-size: 0.72rem; font-weight: 600; min-height: 1em; font-variant-numeric: tabular-nums; }
.day.class { background: var(--cta); }
.day.class .day-name, .day.class .day-note { color: #fff; }
.day.appt { background: #dfe8f8; }
.day.appt .day-name, .day.appt .day-note { color: var(--cta-deep); }
.day.off { background: #eef0f3; }
.day.off .day-name { color: var(--muted); font-weight: 500; }
/* Legend: each session stacked — day, then the time large, then who it's for */
.week-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.week-legend li { display: grid; gap: 0.2rem; align-content: start; }
.week-legend strong { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; color: var(--black); white-space: nowrap; }
.week-legend .key { flex: 0 0 auto; width: 0.7rem; height: 0.7rem; border-radius: 3px; background: var(--cta); }
.week-legend li.appt .key { background: #c9d8f2; }
.week-legend .when { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--black); white-space: nowrap; font-variant-numeric: tabular-nums; }
.week-legend li.appt .when { color: var(--black); }
.week-legend .who { font-size: 0.95rem; color: var(--muted); }
.week-legend li.class .who { color: var(--black); }

.card-title { font-size: 1.25rem; letter-spacing: -0.02em; }
.span-6 { grid-column: span 6; }
/* Location card: the map fills the top, name and directions below */
.place-card { gap: 1.1rem; padding: 0.6rem 0.6rem clamp(1.2rem, 2.2vw, 1.6rem); }
.place-map { display: block; width: 100%; flex: 1 1 auto; min-height: 220px; border: 0; border-radius: 20px; background: var(--panel-deep); }
.place-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; padding: 0 clamp(0.9rem, 1.8vw, 1.3rem); }
.place-info h3 { margin: 0 0 0.3rem; }
.place-info p { margin: 0; color: var(--black); line-height: 1.5; max-width: 34ch; }

/* Start card steps — light sub-cards. The number gets its own section on
   the left (a slightly deeper tone), centred top to bottom; the text sits
   to its right. No colour: the tone step does the work. */
.start-list { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; counter-reset: start; }
.start-list li { counter-increment: start; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); overflow: hidden; border-radius: 16px; background: #f8f8f9; font-size: 1rem; line-height: 1.5; color: var(--black); }
.start-list li::before {
  content: counter(start);
  align-self: stretch;
  display: grid; place-items: center;
  background: #f0f0f2;
  font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--black);
}
.start-list li > span { padding: 1rem 1.2rem; }
.start-list strong { display: block; color: var(--black); font-weight: 600; }

/* What we teach — three equal columns: photo in a tray, belt bar, text */
.belt-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.belt-path h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 0.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.belt-path h3::before { content: ""; display: block; width: 3rem; height: 6px; border-radius: 999px; background: var(--c); margin-top: 1.4rem; }
.belt-path p { margin: 0; text-wrap: pretty; max-width: 40ch; }

/* Photo placeholders — flat blocks captioned with the shot that belongs
   there. Swap each for <img class="core photo"> in the same tray. */
.ph { position: relative; aspect-ratio: var(--ar, 4 / 3); height: auto; background: var(--panel-deep); justify-content: flex-end; padding: 1.1rem 1.2rem; }
.ph.portrait { --ar: 4 / 5; height: 100%; }
.ph figcaption { font-size: 0.85rem; line-height: 1.35; color: var(--muted); max-width: 32ch; }
.ph figcaption::before { content: "Placeholder · "; font-weight: 600; color: var(--black); }
.ph.on-colour { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.ph.on-colour figcaption, .ph.on-colour figcaption::before { color: #fff; }
img.photo { display: block; width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; padding: 0; }

/* Blue band */
.band-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.band-split h2 { margin-bottom: 1.4rem; }
.band-split p { max-width: 44ch; font-size: 1.1rem; margin-bottom: 2rem; }

/* Teachers */
/* Instructors — two portraits with captions under them, and a gray panel for
   the senpai. Rank is shown as a short belt swatch, not a badge. */
.faculty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.mentor { display: flex; flex-direction: column; min-width: 0; }
.mentor .ph { height: auto; border-radius: 26px; margin: 0 0 1.25rem; display: flex; flex-direction: column; }
.mentor h3 { font-size: 1.45rem; letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.mentor > p { margin: 0; max-width: 36ch; text-wrap: pretty; color: var(--black); }
.mentor-meta { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; }
.rank { margin: 0; font-size: 0.9rem; color: var(--muted); }
.obi { flex: none; display: inline-block; width: 2.25rem; height: 6px; border-radius: 999px; background: var(--black); }
/* 6th dan wears the red-and-white kōhaku belt */
.obi-kohaku { background: repeating-linear-gradient(90deg, var(--red) 0 0.75rem, #fff 0.75rem 1.5rem); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.senpai-panel { background: var(--panel); border-radius: 26px; padding: clamp(1.5rem, 2.6vw, 2.25rem); display: flex; flex-direction: column; gap: 0.75rem; }
.senpai-panel h3 { font-size: 1.45rem; letter-spacing: -0.03em; margin: 0; }
.senpai-panel > p { margin: 0; color: var(--muted); max-width: 30ch; text-wrap: pretty; }
.senpai-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.senpai-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 0; font-weight: 600; color: var(--black); }
.senpai-list li + li { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.07); }
.senpai-list small { margin-left: auto; font-weight: 400; font-size: 0.85rem; }
.senpai-panel .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) {
  .faculty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .senpai-panel { grid-column: 1 / -1; }
  .senpai-panel .link-arrow { margin-top: 1rem; }
}
@media (max-width: 600px) {
  .faculty { grid-template-columns: 1fr; gap: 2.5rem; }
}
.recognized-shell { margin-top: clamp(3rem, 6vw, 5rem); }
.recognized { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.recognized p { max-width: 48ch; }
.recognized strong { color: var(--black); font-weight: 600; }
.affil-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.affil-logos img { max-height: 42px; max-width: 120px; width: auto; display: block; }

/* FAQ — title left, questions right */
.faq-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-split .section-title { margin: 0; display: grid; gap: 1.25rem; }
.faq-split .section-title p { margin: 0; }
.faq-split .faq-list { max-width: none; }
.faq-item summary { transition: color 0.4s var(--spring); }
.faq-item summary::after { transition: transform 0.5s var(--spring); }
.faq-item[open] summary::after { content: "+"; transform: rotate(45deg); }

/* Contact */
#contact .section-title { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
#contact .section-title p { margin: 0; }
#contact .contact-grid { gap: 1rem; }
#contact .map-embed { padding: 0; min-height: 420px; border-radius: var(--r); }
.contact-note { font-size: 0.9rem; margin: 0; }

/* Scroll reveal — heavy fade-up with a blur that resolves. Hidden state only
   applies once main.js has confirmed IntersectionObserver and motion are OK. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.9s var(--spring), transform 0.9s var(--spring), filter 0.9s var(--spring);
  transition-delay: var(--d, 0ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

@media (max-width: 900px) {
  .grid-12 > * { grid-column: 1 / -1; }
  .row-3 { grid-row: auto; }
  .ph.portrait { height: auto; }
  .steps-row, .belt-path, .head-split, .band-split, .faq-split, .start-card { grid-template-columns: 1fr; }
  .head-split .lede { justify-self: start; }
}
/* Belt band — a full colour panel, laid out left-aligned in two columns so it
   reads as a different kind of block from the centred red call to action. */
section.band { margin: var(--gutter); border-radius: var(--radius-lg); color: #fff; }
section.band.blue { background: var(--belt-blue); }
section.band :is(h2, h3, p, strong) { color: #fff; }
section.band p { color: #fff; }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.span-3 { grid-column: span 1; }
  .tile.span-4, .tile.span-6 { grid-column: span 2; }
  .tile.row-2 { grid-row: auto; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.span-3, .tile.span-4, .tile.span-6 { grid-column: auto; }
}

/* Callouts — inline, inside prose */
.callout { border-left: 3px solid var(--red); padding: 0.25rem 0 0.25rem 1rem; margin: 1.5rem 0; color: var(--black); }
.callout p:last-child { margin-bottom: 0; }

/* Callout sections — centered statement blocks */
.callout-section { padding: clamp(3.75rem, 7vw, 6.5rem) 0; text-align: center; }
.callout-section .wrap { max-width: 880px; }
.callout-section h2 {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 16ch;
  margin: 0 auto 1rem;
  text-wrap: balance;
}
.callout-section p { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 620px; margin: 0 auto 1em; text-wrap: pretty; }
.callout-section p:last-child { margin-bottom: 0; }
.callout-section .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

/* Colour variants — each page's call to action takes its own colour: red on
   the home page, a belt colour elsewhere (black on Instructors, for the black
   belts who teach). */
.callout-section:is(.red, .green, .orange, .black) { background: var(--fill); color: #fff; }
.callout-section.red    { --fill: var(--red); }
.callout-section.green  { --fill: var(--belt-green); }
.callout-section.orange { --fill: var(--belt-orange); }
.callout-section.black  { --fill: var(--black); }
.callout-section:is(.red, .green, .orange, .black) h2 { color: #fff; }
.callout-section:is(.red, .green, .orange, .black) p { color: #fff; }
.callout-section:is(.red, .green, .orange, .black, .brown, .purple) a:not(.btn, .link-arrow) { color: #fff; }

/* Dark variant (rides on section.dark) */
.callout-section.dark p { color: #fff; }

/* Schedule table — a soft block, rows separated by the page tone */
.table-wrap { overflow-x: auto; }
.schedule { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
section.alt .schedule { background: var(--bg); }
.schedule th, .schedule td { padding: 0.9rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 2px solid var(--bg); }
section.alt .schedule th, section.alt .schedule td { border-bottom-color: var(--panel); }
.schedule th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; padding-top: 1rem; padding-bottom: 0.7rem; }
.schedule tr:last-child td { border-bottom: 0; }
.schedule td strong { color: var(--black); font-weight: 600; }
.schedule td:nth-child(2) { white-space: nowrap; } /* the wrapper scrolls; never break a time range */

/* Quote */
blockquote.quote { margin: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--red); font-size: 1.15rem; color: var(--black); }
blockquote.quote cite { display: block; margin-top: 0.75rem; font-style: normal; font-size: 0.9rem; color: var(--muted); }

/* Big centered pull quote (inside a .callout-section) */
blockquote.quote-lead {
  border-left: 0;
  padding: 0;
  margin: 0 auto 1.75rem;
  max-width: 760px;
  font-size: clamp(1.3rem, 2.9vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--black);
  text-wrap: pretty;
}
blockquote.quote-lead cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--red);
}
.callout-section.dark blockquote.quote-lead { color: #fff; }
.callout-section.dark blockquote.quote-lead cite { color: var(--gold); }
.callout-section:is(.red, .green, .orange, .black) blockquote.quote-lead { color: #fff; }
.callout-section:is(.red, .green, .orange, .black) blockquote.quote-lead cite { color: #fff; }

/* Affiliations */
.affil-strip { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.affil-strip li {
  flex: 1 1 220px;
  max-width: 320px;
  text-align: center;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  background: var(--panel);
}
section.alt .affil-strip li { background: var(--bg); }
.board-list { list-style: none; padding: 0; margin: 0; }
.board-list li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.board-list li:first-child { border-top: 0; padding-top: 0; }
.board-list strong { display: block; color: var(--black); font-weight: 600; }
.board-list small { display: block; line-height: 1.35; }

.affil-strip a { display: block; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; color: var(--black); }
.affil-strip a:hover { color: var(--cta); }
.affil-strip small { display: block; margin-top: 0.2rem; line-height: 1.35; }

/* Affiliate logos — the three marks have very different aspect ratios, so the
   box gives them a common baseline and each image sets its own height inline. */
.affil-logo-box { display: flex; align-items: center; justify-content: flex-start; height: 68px; margin-bottom: 0.75rem; }
.affil-strip .affil-logo-box { justify-content: center; }
.affil-logo { width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 600px) { .affil-logo-box { height: 60px; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1.25rem; max-width: 680px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 0.75rem; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--black); color: #fff; font-weight: 600; font-size: 0.85rem; }
.steps h3 { margin: 0.1rem 0 0.2rem; }
.steps p { margin: 0; }

/* FAQ accordion — soft rows, no borders */
.faq-list { max-width: 760px; }
.faq-item { background: var(--panel); border-radius: var(--radius); margin-bottom: 0.5rem; }
section.alt .faq-item { background: var(--bg); }
.faq-item summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq-item .faq-body { padding: 0 1.25rem 1.1rem; color: var(--black); }
.faq-body p:last-child { margin-bottom: 0; }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-list li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr; gap: 0.75rem; }
section.alt .contact-list li { border-bottom-color: var(--panel-deep); }
section.dark .contact-list li { border-color: rgba(255,255,255,0.12); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list li span:first-child { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; padding-top: 0.3rem; }
section.dark .contact-list li span:first-child { color: var(--gold); }
.contact-list strong { font-weight: 600; color: var(--black); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 300px; border-radius: var(--radius); background: var(--panel-deep); }

/* Footer — tagline and link columns, then a quiet legal line */
.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; font-size: 0.9rem; color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; padding-bottom: 2.5rem; }
.footer-brand .brand { margin-bottom: 1rem; font-size: 1rem; }
.footer-brand p { max-width: 30ch; margin: 0; font-size: 1.15rem; line-height: 1.35; color: var(--black); letter-spacing: -0.015em; text-wrap: pretty; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 { font-size: 0.8rem; margin: 0 0 0.8rem; color: var(--black); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--black); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.8rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* Legal pages (privacy, terms) */
.legal { max-width: 720px; }
.legal h2 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.015em; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 1.5rem; }
.legal p, .legal li { color: var(--black); }
.legal .legal-meta { color: var(--muted); font-size: 0.9rem; }
.legal .callout p { color: var(--black); }

/* Placeholder flag — marks stand-in content that must not ship. Deliberately
   loud so it cannot survive a review of the page. Delete the markup (and this
   rule) once real contact details are in. */
.placeholder-flag {
  display: inline-block;
  background: #b30000;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* Stats strip (kept for compatibility; unused on home now) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stats strong { display: block; font-size: 1.6rem; color: var(--black); line-height: 1; margin-bottom: 0.25rem; }
.stats span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Instructors */
.roster { max-width: 720px; }
.person { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.person:first-child { padding-top: 0; }
.person:last-child { border-bottom: 0; }
.person h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 0.15rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.person .role { color: var(--muted); margin-bottom: 0.75rem; }
.person p:last-child { margin-bottom: 0; }
.belt { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; line-height: 1.4; vertical-align: middle; }
.belt-rokudan { background: #fff; color: var(--red); border: 1px solid var(--red); }
.belt-godan { background: var(--black); color: #fff; border: 1px solid var(--black); box-shadow: inset 0 -3px 0 var(--red); }
.belt-shodan { background: var(--black); color: #fff; border: 1px solid var(--black); }
.senpai { list-style: none; padding: 0; margin: 0; }
.senpai li { padding: 0.55rem 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }

/* ==========================================================================
   Interior pages — the home page's system carried through: white cards on a
   soft shadow, head-split headlines, belt-colour markers, one colour band per
   page, and colour blocks that never touch.
   ========================================================================== */

/* Belt colour handles for --c (cards, bars, swatches) */
.c-white  { --c: #fff; }
.c-yellow { --c: var(--belt-yellow); }
.c-orange { --c: var(--belt-orange); }
.c-green  { --c: var(--belt-green); }
.c-blue   { --c: var(--belt-blue); }
.c-purple { --c: var(--belt-purple); }
.c-brown  { --c: var(--belt-brown); }
.c-black  { --c: var(--black); }
.c-red    { --c: var(--red); }

/* Page head: one lede under the headline, nothing else */
.page-head .jp { display: block; margin: 0 auto 1.1rem; font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 500; letter-spacing: 0.3em; color: var(--muted); }

/* Card grids. Equal columns, every card the same weight. */
.cards { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cards.two  { --cols: 2; }
.cards.four { --cols: 4; }
@media (max-width: 900px) { .cards, .cards.four { --cols: 2; } }
@media (max-width: 600px) { .cards, .cards.two, .cards.four { --cols: 1; } }

/* A card that wears its belt: a short bar at the top in --c */
.core.belted::before { content: ""; display: block; width: 3rem; height: 6px; border-radius: 999px; background: var(--c); margin-bottom: 0.4rem; }
.core.belted.c-white::before { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16); }
.core h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.core p { text-wrap: pretty; }
.core .jp-term { color: var(--muted); font-weight: 500; }
.core .sub { color: var(--muted); font-size: 0.95rem; margin-top: -0.4rem; }
section.alt .core.flat { box-shadow: none; }

/* Inline note — replaces the old left-border callout: a quiet tone step */
.callout { border: 0; background: var(--panel); border-radius: 20px; padding: 1.2rem 1.4rem; margin: 1.5rem 0; }
section.alt .callout { background: var(--bg); }
.core .callout { margin: 0; background: var(--panel); }

/* Note row — a wide card: one statement on the left, its link on the right */
.note-row { margin-top: clamp(2rem, 4vw, 3rem); }
.note-row .core { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 3rem; }
.note-row p { max-width: 60ch; }
.note-row strong { color: var(--black); font-weight: 600; }
.fine { color: var(--muted); font-size: 0.9rem; max-width: 70ch; margin: 1.5rem 0 0; text-wrap: pretty; }

/* Facts: label / value rows inside a card */
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0.85rem 0; }
.facts > div + div { box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.07); }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; color: var(--black); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Bullet list with belt-colour dots instead of bullets */
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.dot-list li { display: grid; grid-template-columns: 0.7rem minmax(0, 1fr); gap: 0.9rem; align-items: baseline; text-wrap: pretty; }
.dot-list li::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 3px; background: var(--c, var(--black)); transform: translateY(0.05rem); }
.dot-list strong { color: var(--black); font-weight: 600; }

/* Photo placeholder that fills its half of a split card */
.start-card > .ph { margin: 0; border-radius: 20px; height: 100%; min-height: 280px; }

/* Belt ladder — stages of rank on a colour band, one translucent row each */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ladder li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; align-items: start; padding: 1.2rem 1.4rem; border-radius: 18px; background: rgba(255, 255, 255, 0.1); }
.ladder .stage { display: flex; align-items: center; gap: 0.8rem; color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.ladder p { margin: 0; color: #fff; font-size: 1rem; max-width: none; }
.obis { display: flex; gap: 0.3rem; }
.obis .obi { width: 1.6rem; background: var(--c); }
.obis .obi.c-white { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.obis.solo .obi { width: 2.6rem; }


/* Belt rail — every belt in order, as one long row of swatches */
.belt-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.4rem; margin: 0 0 0.9rem; padding: 0; list-style: none; }
.belt-rail li { height: 14px; border-radius: 999px; background: var(--c); }
.belt-rail li.c-white { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16); }
.belt-rail li.kohaku { background: repeating-linear-gradient(90deg, var(--red) 0 0.9rem, #fff 0.9rem 1.8rem); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16); }
.rail-key { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Timeline — years set large in tabular figures */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline .year { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--black); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .timeline { grid-template-columns: 1fr; } }

/* Translucent cards on a colour band */
.band .core { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.band .core :is(h3, p, strong) { color: #fff; }
.band .core .jp-term { color: #fff; }
.band .head-split .lede { color: #fff; }
section.band.green  { background: var(--belt-green); }
section.band.purple { background: var(--belt-purple); }

/* Instructor profiles — portrait left, the story right */
.profile .core { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(0.6rem, 1vw, 0.75rem); }
.profile + .profile { margin-top: clamp(1rem, 2vw, 1.5rem); }
.profile .ph { --ar: 1 / 1; border-radius: 20px; height: auto; margin: 0; }
.profile-photo { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 20px; object-fit: cover; }
.profile-body { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2.25rem) 0; }
.profile-body > * { margin: 0; }
.profile-body h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 0.98; letter-spacing: -0.045em; }
.profile-body p { max-width: 58ch; }
.dan-list { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
.dan-list li { background: var(--panel); border-radius: 12px; padding: 0.7rem 0.8rem; display: grid; gap: 0.15rem; }
.dan-list strong { font-size: 1.05rem; color: var(--black); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dan-list span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) {
  .profile .core { grid-template-columns: 1fr; }
  .profile-body { padding: 0.5rem 1rem 1.25rem; }
  .dan-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Senpai cards — smaller portrait, name, belt */
.senpai-card .ph { border-radius: 18px; margin-bottom: 0.4rem; }
.senpai-card.core { padding: 0.6rem 0.6rem 1.4rem; }
.senpai-card > :not(.ph) { padding: 0 0.9rem; }
.senpai-card h3 { margin-top: 0.4rem; }

/* Colour variants for page CTAs */
.callout-section:is(.brown, .purple) { margin: var(--gutter); border-radius: var(--radius-lg); background: var(--fill); color: #fff; }
.callout-section.brown  { --fill: var(--belt-brown); }
.callout-section.purple { --fill: var(--belt-purple); }
.callout-section:is(.brown, .purple) h2 { color: #fff; }
.callout-section:is(.brown, .purple) p { color: #fff; }
.callout-section:is(.brown, .purple) blockquote.quote-lead { color: #fff; }
blockquote.quote-lead cite { text-transform: none; letter-spacing: -0.01em; font-size: 0.95rem; }
.callout-section:is(.brown, .purple) blockquote.quote-lead cite { color: #fff; }

/* Full FAQ page: one centred column */
#faq[data-notitle] .faq-list { margin: 0 auto; }
#faq[data-notitle] { padding-top: clamp(1rem, 3vw, 2rem); }

/* Affiliation cards and the CENCO block (rendered by js/main.js) */
.affil-card .affil-logo-box { margin-bottom: 0.25rem; }
.board-list li { border-top-color: rgba(0, 0, 0, 0.07); }

/* Legal pages: a sticky table of contents beside the text */
.legal-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.legal-layout .legal { max-width: 68ch; }
.toc { position: sticky; top: 96px; font-size: 0.9rem; }
.toc p { margin: 0 0 0.75rem; font-weight: 600; color: var(--black); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 0.4rem 0.75rem; border-radius: 10px; color: var(--muted); text-decoration: none; transition: background 0.4s var(--spring), color 0.4s var(--spring); }
.toc a:hover { background: var(--panel); color: var(--black); }
.legal h2 { scroll-margin-top: 96px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Small pieces used by single pages */
.band-note { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 62ch; font-size: 1.05rem; text-wrap: pretty; }
/* Timeline stacked inside a split card (What is judo) */
.timeline.stack { grid-template-columns: 1fr; gap: 0.5rem; background: #edf2fb; border-radius: 20px; padding: clamp(1rem, 2.5vw, 1.75rem); align-content: center; }
.timeline.stack li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 1rem; background: #fff; border-radius: 16px; padding: 1rem 1.25rem; }
.timeline.stack .year { font-size: clamp(1.6rem, 2.4vw, 2rem); color: var(--cta-deep); }
.timeline.stack p { margin: 0; }
.visiting { background: var(--panel); box-shadow: none; }
section.alt .visiting { background: transparent; padding-top: 1rem; }
.senpai-card .mentor-meta { margin: -0.3rem 0 0; }
.affil-card p { max-width: 62ch; }
@media (max-width: 600px) {
  .timeline.stack li { grid-template-columns: 4.5rem minmax(0, 1fr); padding: 0.9rem 1rem; }
  .rail-key { flex-direction: column; gap: 0.25rem; }
  .facts > div { grid-template-columns: 6rem minmax(0, 1fr); }
}

/* Home: the two principles under "What is judo?" on the blue band */
.principles { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.5rem; max-width: 46ch; }
.principles li { padding: 0.9rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.12); color: #fff; text-wrap: pretty; }

/* ==========================================================================
   Open layout — no gray panels and no split headers. Every section is a huge
   centred headline, small gray copy under it, then large rounded tiles.
   ========================================================================== */
body { font-weight: 360; letter-spacing: -0.01em; }
strong, b { font-weight: 600; }
p, .prose li { color: var(--muted); }

/* One display size for every big headline */
.page-head h1, .section-title h2, .head-split h2, #contact .section-title h2, .callout-section h2, .faq-split h2 {
  font-size: clamp(2.6rem, 5.3vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.core-lead h2, .band-split h2, .grid-2 .prose > h2 { font-size: clamp(2.2rem, 3.8vw, 3.25rem); line-height: 1.05; letter-spacing: -0.04em; }
h3, .card-title, .mentor h3, .card h3 { font-size: 1.5rem; letter-spacing: -0.04em; line-height: 1.2; }
.hero .lead, .lede, .page-head p, .section-title p, .callout-section p, .principles-head p, .more-people p, .closer-copy > p { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--muted); }

/* Rhythm: more air between sections, no gray panels */
section { padding: clamp(3.75rem, 7vw, 6.5rem) 0; }
section.alt { background: none; margin: 0; border-radius: 0; }
.section-title, .section-title.center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title h2, .section-title p { margin-left: auto; margin-right: auto; }
.section-title h2 { max-width: 20ch; }
.hero .lead, .section-title p, .page-head p { max-width: 38rem; text-wrap: pretty; }
.head-split { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 1.5rem; }
.head-split h2 { max-width: 20ch; }
.head-split .lede { justify-self: center; max-width: 36rem; }

/* FAQ: title centred over the questions, like every other section */
.faq-split { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(2rem, 4vw, 3rem); }
.faq-split > * { width: 100%; max-width: 760px; }
.faq-split > :first-child { text-align: center; }
.faq-split .section-title { justify-items: center; gap: 0.65rem; }
.faq-split .section-title .actions { margin-top: 0.75rem; }
.faq-split .actions { justify-content: center; }
.faq-item, section.alt .faq-item { background: #fff; box-shadow: var(--soft-shadow); }
#contact { padding-bottom: clamp(2rem, 4vw, 3.5rem); }

/* Cards: white on the page tone, with the one soft shadow */
.card, section.alt .card, .tile, section.alt .tile { background: #fff; box-shadow: var(--soft-shadow); border-radius: 24px; }
.shell { --r: 24px; }

/* Colour bands are tiles the width of the content */
section.band { width: min(1000px, 100% - 2 * clamp(1rem, 3vw, 2.5rem)); margin: clamp(1.5rem, 4vw, 3.5rem) auto; border-radius: 28px; }
section.band :is(p, li) { color: #fff; }

/* Calls to action are plain centred text, like every other section */
.callout-section:is(.red, .green, .orange, .black, .brown, .purple) { background: none; color: inherit; margin: 0; border-radius: 0; }
.callout-section:is(.red, .green, .orange, .black, .brown, .purple) h2 { color: var(--black); }
.callout-section:is(.red, .green, .orange, .black, .brown, .purple) p { color: var(--muted); }
.callout-section:is(.red, .green, .orange, .black, .brown, .purple) :is(.btn, .link-arrow) { --tone: var(--cta); --tone-deep: var(--cta-deep); --on-tone: #fff; }

/* What we teach — tall photo cards with the words on them */
.teach-c { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); list-style: none; margin: 0; padding: 0; }
.teach-c li { position: relative; overflow: hidden; aspect-ratio: 3 / 4.3; border-radius: 24px; background: #111; }
.teach-c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teach-c li::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 60%, rgba(0, 0, 0, 0.9) 100%); }
.teach-c div { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.4rem; }
.teach-c h3 { margin: 0 0 0.4rem; color: #fff; font-size: 1.25rem; letter-spacing: -0.03em; }
.teach-c p { margin: 0; color: #fff; font-size: 0.92rem; line-height: 1.4; text-wrap: pretty; }

/* Instructors — tile, then name, rank and caption centred under it */
.mentor { text-align: center; align-items: center; }
.mentor .ph { width: 100%; text-align: left; order: 0; }
.mentor > img { order: 0; width: 100%; aspect-ratio: 4 / 5; margin: 0 0 1.25rem; border-radius: 26px; object-fit: cover; }
.mentor h3 { order: 1; }
.mentor-meta { order: 2; justify-content: center; }
.mentor > p { order: 3; }
.rank, .card .rank { font-family: inherit; font-weight: 400; font-size: 0.94rem; letter-spacing: inherit; text-transform: none; color: var(--muted); }

/* Closing section — four photos of a class, tall and short in turn,
   then a left-aligned statement with its detail on the right. */
.class-arc { --spread: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); align-items: start; }
.class-arc figure { margin: 0; transform: translateY(calc((1 - var(--spread)) * (var(--i) + 1) * 28px)); }
.class-arc img { width: 100%; object-fit: cover; border-radius: 18px; }
.class-arc .tall img { aspect-ratio: 3 / 4; }
.class-arc .short img { aspect-ratio: 1 / 1; }
.closer-copy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: end; margin-top: clamp(3rem, 6vw, 5rem); }
.closer-copy h2 { max-width: 13ch; margin: 0 0 1.75rem; font-size: clamp(2.6rem, 5.3vw, 4.75rem); line-height: 1.05; letter-spacing: -0.04em; }
.closer-copy > p { margin: 0; text-wrap: pretty; }
/* FAQ and contact closers have no photo strip */
.closer-copy:first-child { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); }
.footer-brand p { color: var(--muted); }

/* Start section — the shared dojo card, then three step cards */
.class-when .dojo-address { margin-bottom: 0.4rem; }
.class-extra { margin: 0; color: var(--muted); font-size: 1rem; }
.class-where { margin: 1.5rem 0; }
.class-where p { margin: 0; }
.class-where .label { color: var(--muted); font-size: 0.9rem; }
.class-where .place { color: var(--black); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.big-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); margin: clamp(0.75rem, 1.5vw, 1.25rem) 0 0; padding: 0; counter-reset: step; }
.big-steps li { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: 24px; background: #fff; box-shadow: var(--soft-shadow); counter-increment: step; }
.big-steps li::before { content: counter(step); display: block; margin-bottom: 0.4rem; color: var(--cta); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.big-steps h3 { margin: 0 0 0.4rem; font-size: 1.15rem; letter-spacing: -0.03em; }
.big-steps p { margin: 0; font-size: 0.94rem; text-wrap: pretty; }

@media (max-width: 760px) {
  .teach-c { grid-template-columns: minmax(0, 1fr); }
  .teach-c li { aspect-ratio: 4 / 5; }
  .big-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .start-card { grid-template-columns: minmax(0, 1fr); }
  .start-card > .ph { width: 100%; height: auto; min-height: 0; }
}
@media (max-width: 760px) {
  .placeholder-flag { white-space: normal; }
  .class-arc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closer-copy { grid-template-columns: minmax(0, 1fr); }
}


/* What is judo — a wide muted video with the founder's card hanging off its
   corner, then the two principles as equal cards */
.judo-stage { position: relative; }
.judo-video { overflow: hidden; aspect-ratio: 1280 / 850; border-radius: 28px; background: #111; }
.judo-video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.founder-card { position: absolute; top: -28px; right: -28px; display: flex; align-items: center; gap: 1.25rem; width: 480px; padding: 1rem; border-radius: 24px; background: #fff; box-shadow: var(--soft-shadow); }
.founder-photo, .founder-card > img { flex: none; width: 124px; height: 150px; border-radius: 14px; object-fit: cover; }
.founder-photo { display: grid; place-items: center; background: var(--panel-deep); color: var(--muted); font-size: 0.85rem; line-height: 1.2; text-align: center; }
.founder-card h3 { margin: 0 0 0.35rem; font-size: 1.5rem; letter-spacing: -0.03em; }
.founder-card p { margin: 0; font-size: 1rem; line-height: 1.45; text-wrap: pretty; }

/* The two principles — a short intro, then the same photo cards as What we teach,
   in twos and square. */
.principles-head { margin-top: clamp(4.5rem, 8vw, 6.5rem); text-align: center; text-wrap: balance; }
.principles-head h3 { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.1; }
.principles-head p { max-width: 38rem; margin: 0 auto; text-wrap: pretty; }
.teach-c.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.teach-c.two li { aspect-ratio: 1 / 1; }
.teach-c.two .term { margin: 0 0 0.3rem; color: #fff; font-size: 0.85rem; }

@media (max-width: 1120px) {
  .founder-card { right: -12px; }
}
@media (max-width: 760px) {
  .founder-card { position: static; width: auto; margin-top: 0.75rem; }
  .founder-photo, .founder-card > img { width: 96px; height: 116px; }
  .founder-card h3 { font-size: 1.25rem; }
  .founder-card p { font-size: 0.95rem; }
  .teach-c.two { grid-template-columns: minmax(0, 1fr); }
  .teach-c.two li { aspect-ratio: 1 / 1; }
}

/* Japanese text — a heavy gothic. Latin text around it keeps the site font. */
[lang="ja"], .jp-term { font-family: "Zen Kaku Gothic Antique", "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 500; }
.teach-c.two .term span { font-size: 1.05rem; letter-spacing: 0.04em; }

/* Senseis — the same photo cards. Portrait slots hold the place until the photos arrive. */
.teach-c.senseis { margin-top: 0; }
.portrait-slot { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; background: #3a3e46; color: #fff; font-size: 0.85rem; }
.more-people { max-width: 38rem; margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; }
.more-people p { margin: 0 auto 1.25rem; text-wrap: pretty; }

/* Affiliation logos — each explains itself in a small label on hover or focus */
.affil-block { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.affil-block > p { margin: 0 0 1.75rem; color: var(--black); font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; }
.logo-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); margin: 0; padding: 0; }
.logo-row a { position: relative; display: block; color: inherit; text-decoration: none; }
.logo-row img { width: auto; max-width: none; mix-blend-mode: multiply; }
.logo-row a:focus-visible { outline: 2px solid var(--cta); outline-offset: 4px; border-radius: 6px; }
.affil-tip { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 12px); width: 230px; padding: 0.7rem 0.85rem; border-radius: 12px; background: #111; color: #fff; font-size: 0.84rem; line-height: 1.35; text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 6px); transition: opacity 0.2s ease, transform 0.25s var(--spring), visibility 0.2s; }
.affil-tip strong { display: block; margin-bottom: 0.1rem; color: #fff; font-weight: 500; }
.affil-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #111; }
.logo-row a:hover .affil-tip, .logo-row a:focus-visible .affil-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: none), (max-width: 760px) {
  .logo-row { flex-direction: column; gap: 1.5rem; }
  .logo-row img { margin: 0 auto 0.5rem; }
  .affil-tip { position: static; width: auto; padding: 0; background: none; color: var(--muted); text-align: center; opacity: 1; visibility: visible; transform: none; }
  .affil-tip strong { color: var(--black); }
  .affil-tip::after { content: none; }
}

/* Find the dojo — one white card, half words, half map running to the edge */
.dojo-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; min-height: clamp(360px, 34vw, 440px); border-radius: 26px; background: #fff; box-shadow: var(--soft-shadow); }
.dojo-card > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem); }
.dojo-card h3 { margin: 0 0 0.5rem; }
.dojo-address { margin: 0 0 1.5rem; color: var(--black); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance; }
.dojo-card iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
@media (max-width: 760px) {
  .dojo-card { grid-template-columns: minmax(0, 1fr); }
}
#contact .section-title.center { display: block; max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
#contact .section-title.center h2 { margin: 0 auto 1.25rem; }
#contact .section-title.center p { margin: 0 auto; }

/* One measure for every intro paragraph on the page */
.hero.has-photos .wrap .lead, .hero .wrap .lead, .section-title.center p, .section-title p, .principles-head p, .more-people p, .page-head p { max-width: 42rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.5; text-wrap: pretty; }
.more-people { max-width: none; }

/* Photo card text — sized to read comfortably over a photo */
.teach-c h3 { font-size: 1.5rem; letter-spacing: -0.035em; }
.teach-c p { font-size: 1.05rem; line-height: 1.4; }
.teach-c.two .term { font-size: 0.95rem; }
.teach-c.two .term span { font-size: 1.2rem; }

/* Reading sizes — nothing that needs reading drops below about 17px */
.faq-item summary { padding: 1.5rem 1.75rem; font-size: 1.4rem; letter-spacing: -0.025em; }
.faq-item summary::after { font-size: 1.7rem; }
.faq-item p, .faq-item li { font-size: 1.2rem; line-height: 1.5; }
.big-steps h3 { font-size: 1.3rem; }
.big-steps p, .class-where p, .class-extra, .founder-card p { font-size: 1.05rem; }
.class-where .place { font-size: 1.25rem; }
.class-where .label { font-size: 0.95rem; }
.logo-row .affil-tip { font-size: 1.1rem; line-height: 1.4; }
.logo-row .affil-tip strong { margin-bottom: 0.2rem; font-size: 1.2rem; font-weight: 600; }
@media (hover: hover) and (min-width: 761px) {
  .logo-row .affil-tip { width: 320px; padding: 1rem 1.15rem; border-radius: 14px; color: #fff; }
}
.faq-item .faq-body { padding: 0 1.75rem 1.5rem; }
.btn, .link-arrow { font-size: 1rem; }
.teach-c.two .term { font-size: 1rem; }
.class-where .label { font-size: 1rem; }
/* The street line reads as part of the place name: black and bold */
.class-where .place + p { color: var(--black); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }

/* The wide two-up cards have room for larger text */
.teach-c.two h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.45rem; }
.teach-c.two p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.teach-c.two .term { font-size: clamp(1rem, 1.3vw, 1.1rem); }
.teach-c.two .term span { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }
.teach-c.two li > div { padding: clamp(1.4rem, 2.4vw, 1.9rem); }

.section-title .link-row { margin-top: 1.25rem; }

/* Three-up cards: titles start on one line whatever the copy length */
@media (min-width: 761px) {
  .teach-c:not(.two) li > div { min-height: 10.5rem; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .teach-c:not(.two) li > div { min-height: 13.5rem; }
}

/* ==========================================================================
   Page kit — the home page's language for every other page. DESIGN.md says
   when to use each piece. Pages are built from these and the pieces above
   (.section-title, .teach-c, .big-steps, .dojo-card, .closer); the older
   .shell/.core, .head-split, .callout-section and .belted cards are retired.
   ========================================================================== */
:root { --tile-gap: clamp(0.75rem, 1.5vw, 1.25rem); }

/* Page head: the home hero's headline and lede, without the photos */
.page-head { padding: clamp(4rem, 9vw, 7rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { max-width: 18ch; line-height: 1.05; }
.page-head .actions { justify-content: center; margin-top: 1.75rem; }

/* One big photo or video, nothing on it */
.wide-photo { overflow: hidden; margin: 0; aspect-ratio: 16 / 9; border-radius: 28px; background: #111; }
.wide-photo img, .wide-photo video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Text cards — for copy too long to sit on a photo. Same white card as the
   numbered steps. Add .two for pairs, .four for short facts. */
.info-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap); margin: 0; padding: 0; }
.info-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-cards > li { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: 24px; background: #fff; box-shadow: var(--soft-shadow); }
.info-cards h3 { margin: 0 0 0.4rem; font-size: 1.3rem; letter-spacing: -0.03em; }
.info-cards h3 .jp-term { margin-left: 0.25em; color: var(--muted); letter-spacing: 0.02em; }
.info-cards p { margin: 0; font-size: 1.05rem; text-wrap: pretty; }
.info-cards p + p { margin-top: 0.6rem; }
.info-cards .sub { margin: 0 0 0.6rem; color: var(--black); font-size: 1.05rem; }
.info-cards .figure { margin: 0 0 0.4rem; color: var(--cta); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.info-cards .push { margin-top: auto; padding-top: 1.25rem; }
/* Fee cards: small header on top, big value on the bottom edge */
.info-cards[data-pricing] > li { min-height: clamp(10rem, 16vw, 12.5rem); }
.info-cards[data-pricing] h3 { margin: 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -0.02em; }
.info-cards[data-pricing] .fee-value { margin-top: auto; padding-top: 1.5rem; color: var(--black); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.fee-value strong { color: var(--belt-green); font-size: clamp(2.75rem, 4.4vw, 3.5rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; }
.text-arrow { color: var(--cta); font-weight: 500; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.16em; }
.text-arrow:hover { color: var(--cta-deep); }
/* inline-block keeps the underline off the arrow */
.text-arrow::after { content: "\2192"; display: inline-block; margin-left: 0.35em; transition: transform 0.3s var(--spring); }
.text-arrow:hover::after { transform: translateX(3px); }
/* The plain answers under a page photo: when, where, cost, sign up */
.essentials { margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0; }
.essentials > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: 0.25rem clamp(1rem, 3vw, 2.5rem); align-items: baseline; padding: clamp(1.1rem, 2vw, 1.5rem) 0; }
.essentials > div + div { border-top: 1px solid var(--line); }
.essentials dt { color: var(--muted); font-size: 1.05rem; }
.essentials dd { margin: 0; }
/* Under a centred heading: narrower, so the rows sit centred beneath it */
.essentials.centered { max-width: 52rem; margin: 0 auto; }
.essentials p { margin: 0; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
.essentials p.main { margin-bottom: 0.2rem; color: var(--black); font-size: clamp(1.35rem, 2.1vw, 1.65rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; }
.essentials .text-arrow { font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 760px) {
  .essentials > div { grid-template-columns: minmax(0, 1fr); }
  .essentials .action { margin-top: 0.5rem; }
}
.info-cards .affil-logo-box { margin-bottom: 1rem; }
.board-list { list-style: none; width: 100%; margin: 0.5rem 0 0; padding: 0; }
.board-list li { padding: 0.5rem 0; font-size: 1.05rem; }
.board-list strong, .board-list small { display: block; }
.board-list small { color: var(--muted); font-size: 1rem; }

/* Half words, half picture: .dojo-card takes a photo as well as a map.
   .flip puts the picture on the left. */
.dojo-card > img { display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.dojo-card.flip > :first-child { order: 2; }
.dojo-card h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; }
.dojo-card p { font-size: 1.05rem; text-wrap: pretty; }
.dojo-card .dojo-address { font-size: clamp(2rem, 4vw, 3rem); text-wrap: balance; }
.dojo-card .actions { margin-top: 1.25rem; }
.dojo-card .facts { width: 100%; }
.contact-card .contact-list { width: 100%; margin: 0 0 1.25rem; }
.contact-card .contact-list li { font-size: 1.05rem; }
.contact-card .contact-note { margin: 1rem 0 0; font-size: 1rem; }

/* Tiles stacked in one section sit a tile-gap apart */
.wrap > :is(.teach-c, .info-cards, .dojo-card, .big-steps, .wide-photo) + :is(.teach-c, .info-cards, .dojo-card, .big-steps, .wide-photo) { margin-top: var(--tile-gap); }

/* A centred sentence after the tiles, with an optional link. Fine print is
   the same thing, quieter. */
.center-note { margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center; }
.center-note p { max-width: 42rem; margin: 0 auto; font-size: clamp(1.1rem, 1.5vw, 1.25rem); text-wrap: pretty; }
.center-note .link-arrow, .center-note .btn { margin-top: 1.25rem; }
.fine { max-width: 42rem; margin: 1.5rem auto 0; font-size: 1rem; text-align: center; text-wrap: pretty; }
.link-row { text-align: center; }

/* Legal pages read as one long, quiet column */
.legal p, .legal li { font-size: 1.1rem; line-height: 1.6; }
.legal h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.035em; }
.legal .callout { padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 0; border-radius: 24px; background: #fff; box-shadow: var(--soft-shadow); }
.legal .callout p { margin: 0; }
.toc, .toc a, .toc p { font-size: 1rem; }

@media (max-width: 900px) {
  .info-cards, .info-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .info-cards, .info-cards.two, .info-cards.four { grid-template-columns: minmax(0, 1fr); }
  .wide-photo { aspect-ratio: 4 / 3; }
  .dojo-card.flip > :first-child { order: 0; }
}

/* Contact rows: plain gray labels, not uppercase ones */
.contact-list li span:first-child { padding-top: 0; color: var(--muted); font-size: 1rem; font-weight: 400; letter-spacing: inherit; text-transform: none; }
.legal h2 { margin-top: 2.75rem; padding-top: 0; border-top: 0; }
.legal .legal-meta { font-size: 1rem; }

/* Page kit: small helpers */
.wrap > .tile-gap { margin-top: var(--tile-gap); }
.dojo-card .mentor-meta { order: 0; }
.dojo-card .slot-frame { position: relative; min-height: 280px; }
/* The flag sits inside a <strong> whose colour would otherwise win */
.contact-list .placeholder-flag { color: #fff; }
/* The bare #contact rule also reaches <h2 id="contact"> on the legal pages */
.legal h2#contact { padding-bottom: 0; }
/* On the blue band, a thin outline keeps the blue belt and dark belts visible */
section.band .belt-rail li { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
section.band .rail-key { font-size: 1rem; }
.legal li { color: var(--black); }
.contact-card .contact-list small { font-size: 1rem; }

/* Interior openers run straight into their first tiles, the way the home hero
   runs into its first section. */
.page-head { padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head + section { padding-top: 0; }

/* about.html#cenco lands with the logos under the 64px sticky header. Same offset as .legal h2. */
#cenco { scroll-margin-top: 96px; }

/* Principle tiles: small romaji, big kanji under it, then the title */
.teach-c.two .term { margin-bottom: 0.5rem; font-size: 0.9rem; }
.teach-c.two .term span { display: block; margin-top: 0.15rem; color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: 0.02em; }

/* Photo opener (classes, kids, about): the page head runs into one wide photo.
   Set --pos on the figure to keep faces in frame when the crop is tight. */
.wide-photo.page-photo { aspect-ratio: 21 / 9; }
.wide-photo.page-photo img { object-position: var(--pos, 50% 50%); }
@media (max-width: 760px) {
  .wide-photo.page-photo { aspect-ratio: 4 / 3; }
}

/* Prose — plain paragraphs for when a section has something to say. One
   comfortable column on the page itself: no card, no photo, dark text. */
.story { max-width: 40rem; margin: 0 auto; }
.story p, .bio-text p, .people p { color: var(--black); font-size: clamp(1.1rem, 1.4vw, 1.2rem); line-height: 1.6; text-wrap: pretty; }
.story p { margin: 0 0 1.15em; }
.story p:last-child { margin-bottom: 0; }
.story .link-arrow { margin-top: 0.5rem; }
.section-title:has(+ .story) { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

/* Bios — a flat portrait beside the story, straight on the page */
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.bio + .bio { margin-top: clamp(4rem, 8vw, 7rem); }
.bio > img, .bio > .bio-slot { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 24px; object-fit: cover; }
.bio > .bio-slot { position: relative; overflow: hidden; }
.bio-text h2 { margin: 0 0 0.35rem; font-size: clamp(2.2rem, 3.8vw, 3.25rem); line-height: 1.05; letter-spacing: -0.04em; }
.bio-text .role { margin: 0 0 1.5rem; color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.bio-text p:not(.role) { margin: 0 0 1em; }
.bio-text p:last-child { margin-bottom: 0; }

/* Roster — name, rank and a few lines of prose, no card and no photo */
.people { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.25rem, 4vw, 3.25rem) clamp(2rem, 6vw, 5rem); max-width: 56rem; margin: 0 auto; padding: 0; }
.people h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.035em; }
.people .role { margin: 0.1rem 0 0.6rem; color: var(--muted); font-size: 1.05rem; }
.people p { margin: 0; font-size: 1.1rem; }

@media (max-width: 760px) {
  .bio { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: minmax(0, 1fr); }
}

/* Story with a mark — prose beside one big thing: kanji, a number or a line of
   type. The mark stays in view while the words scroll past. */
.story-set { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.story-set .story { margin: 0; }
.story-set.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.story-set.flip .mark { order: 2; }
.mark { position: sticky; top: 112px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mark p { margin: 0; }
.mark-kanji { color: var(--black); font-family: "Zen Kaku Gothic Antique", "Hiragino Sans", "Yu Gothic", sans-serif; font-size: clamp(6rem, 13vw, 10.5rem); font-weight: 900; line-height: 1.02; }
.mark-kanji.tall { writing-mode: vertical-rl; letter-spacing: 0.04em; }
.mark-num { color: var(--cta); font-size: clamp(5rem, 11vw, 9rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.mark-note { max-width: 15rem; margin-top: 0.85rem !important; color: var(--muted); font-size: 1.05rem; line-height: 1.35; text-wrap: balance; }
.mark-num + .mark-note + .mark-num { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* Two flags on crossed poles, in place of a photo in a .founder-card */
.flag-cross { position: relative; flex: none; width: 144px; height: 116px; }
.flag-cross span { position: absolute; left: 50%; bottom: 4px; width: 3px; height: 108px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); transform-origin: 50% 75%; }
.flag-cross span:first-child { transform: rotate(-20deg); }
.flag-cross span:last-child { transform: rotate(20deg); }
.flag-cross img { position: absolute; top: 0; display: block; width: auto; max-width: none; height: 32px; box-shadow: 0 0 0 1px var(--line); }
.teach-c + .founder-card { width: 440px; }
@media (max-width: 760px) { .teach-c + .founder-card { width: auto; } }
.flag-cross span:first-child img { right: 100%; }
.flag-cross span:last-child img { left: 100%; }

/* Text-only tips: an even grid, every tile the same size */
.info-cards.even { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.info-cards.even > li { min-height: clamp(14rem, 19vw, 16rem); }
.rebus { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 2.75rem; line-height: 1.1; letter-spacing: 0.08em; transform-origin: 50% 80%; }
/* Tip cards lift on hover and their emoji wiggle. The lift uses `translate`
   so it can't fight the scroll reveal, which owns `transform`. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .info-cards.even > li { transition: translate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease; }
  .reveal-on .info-cards.even > li[data-reveal] {
    transition: opacity 0.9s var(--spring), transform 0.9s var(--spring), filter 0.9s var(--spring), translate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0ms, 0ms;
  }
  .info-cards.even > li:hover { translate: 0 -8px; box-shadow: 0 2px 4px rgba(20, 24, 32, 0.05), 0 26px 44px -16px rgba(20, 24, 32, 0.24); }
  .info-cards.even > li:hover .rebus { animation: rebus-wiggle 0.6s ease-in-out; }
}
@keyframes rebus-wiggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -9deg; } 45% { rotate: 8deg; } 70% { rotate: -5deg; } 88% { rotate: 3deg; } }
.info-cards.even h3 { margin-top: clamp(2.5rem, 4.5vw, 4rem); }
@media (max-width: 760px) {
  .info-cards.even { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .info-cards.even > li { min-height: 0; }
  .info-cards.even h3 { margin-top: 1.25rem; }
}

/* Pull line — one sentence set large inside the prose, or a real quotation */
.pull { margin: 1.75rem 0; color: var(--black); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.story p.pull { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; }
blockquote.pull { padding: 0; }
blockquote.pull cite { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 1.05rem; font-style: normal; font-weight: 400; letter-spacing: normal; line-height: 1.35; }

@media (max-width: 760px) {
  .story-set, .story-set.flip { grid-template-columns: minmax(0, 1fr); }
  .story-set.flip .mark { order: 0; }
  .mark { position: static; }
  .mark-kanji.tall { writing-mode: horizontal-tb; letter-spacing: 0; }
  .mark-kanji { font-size: clamp(4.5rem, 22vw, 6rem); }
}

/* Japanese weight follows size: 500 in sentences, 700 in titles, 900 for display */
:is(h1, h2, h3) :is([lang="ja"], .jp-term) { font-weight: 700; }
.teach-c.two .term span, .mark-kanji { font-weight: 900; }

/* FAQ page — jump links, then one centred section per kind of question */
.faq-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: clamp(1rem, 3vw, 2rem); }
.faq-group { max-width: 760px; margin: clamp(3.5rem, 7vw, 6rem) auto 0; scroll-margin-top: 96px; }
.faq-group h2 { margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem); font-size: clamp(2.2rem, 3.8vw, 3.25rem); line-height: 1.05; letter-spacing: -0.04em; text-align: center; }
.faq-group .faq-list { max-width: none; }

/* Pull lines keep their size and spacing inside prose and bios */
.story p.pull, .bio-text p.pull { margin: 1.75rem 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; }

/* Two big ideas side by side, no cards */
.big-pair { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2rem, 6vw, 5rem); margin: clamp(1rem, 3vw, 2rem) 0 0; padding: 0; text-align: center; }
.big-pair li { display: flex; flex-direction: column; align-items: center; }
.big-pair .mark-kanji { margin: 0; font-size: clamp(5rem, 10vw, 8rem); }
.big-pair .mark-note { margin: 0.6rem 0 1.5rem; }
.big-pair h3 { max-width: 15ch; margin: 0 0 0.75rem; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; }
.big-pair li > p:last-child { max-width: 26rem; margin: 0; font-size: clamp(1.1rem, 1.4vw, 1.2rem); text-wrap: pretty; }
@media (max-width: 760px) {
  .big-pair { grid-template-columns: minmax(0, 1fr); }
}

/* Roster of names only: one centred row */
.people.names { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.people.names .role { margin-bottom: 0; }
/* Drawn stand-in for a person with no photo: flat circle, white figure */
.avatar { display: block; width: clamp(6rem, 10vw, 7.5rem); height: auto; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--avatar, var(--belt-blue)); }
.avatar-body { fill: #fff; }
.avatar-hair { fill: var(--black); transform: translate(5.76px, -2.44px) scale(0.88); }  /* sits on the head at cy 31, r 15 */
.avatar-lapel { fill: none; stroke: var(--muted); stroke-width: 2; }
.avatar-belt, .avatar-ink { fill: var(--black); }
.aloha-shirt { fill: var(--belt-yellow); }
.aloha-collar { fill: var(--belt-orange); }
.aloha-leaf { fill: var(--belt-green); }
.aloha-flower { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.01 3.76; }  /* five round petals */
.aloha-eye { fill: #fff; }
.center-note.wide p { max-width: 58rem; text-wrap: balance; }
.wide-photo.page-photo + .story-set { margin-top: clamp(3rem, 6vw, 5rem); }
.wide-photo.page-photo + .essentials.centered { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
@media (max-width: 760px) {
  .people.names { grid-template-columns: minmax(0, 1fr); }
}

/* Nav polish — still a plain bar, with more air: a larger brand, quiet gray
   links that darken, a short blue bar under the current page, and no rule
   until the page scrolls. */
.site-header { box-shadow: none; transition: box-shadow 0.3s var(--spring); }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.site-header .brand { gap: 0.7rem; font-size: 1.15rem; letter-spacing: -0.03em; }
.site-header .brand img { width: 38px; height: 38px; }
@media (min-width: 981px) {
  :root { --nav-h: 68px; }
  .site-nav ul { gap: clamp(0.1rem, 0.6vw, 0.5rem); }
  .site-nav a { position: relative; padding: 0.5rem clamp(0.4rem, 0.8vw, 0.65rem); color: var(--muted); font-size: 1rem; font-weight: 450; letter-spacing: -0.015em; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--black); font-weight: 450; }
  .site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--cta); }
  .site-nav a.nav-cta { margin-left: clamp(0.25rem, 1vw, 0.75rem); padding: 0.55rem 1.25rem; color: #fff; font-size: 1rem; font-weight: 600; }
}
@media (min-width: 981px) and (max-width: 1120px) {
  .site-header .brand { font-size: 1.05rem; }
  .site-header .brand img { width: 32px; height: 32px; }
  .site-nav a { font-size: 0.94rem; }
  .site-nav a.nav-cta { padding: 0.6rem 1.05rem; font-size: 0.94rem; }
}

/* Wordmark — geometric, bold and tracked in, on one line beside the emblem.
   Only these letters of Outfit are downloaded. */
.brand span { font-family: "Outfit", var(--font); font-weight: 700; letter-spacing: -0.045em; word-spacing: 0.06em; }
.site-header .brand { font-size: 1.3rem; letter-spacing: normal; }
.site-header .brand span { transition: color 0.3s var(--spring); }
@media (hover: hover) { .site-header .brand:hover span { color: var(--cta); } }
.site-header .brand:focus-visible span { color: var(--cta); }
.footer-brand .brand { font-size: 1.15rem; }
@media (min-width: 981px) and (max-width: 1120px) {
  .site-header .brand { font-size: 1.15rem; }
}
.site-footer .brand span { color: var(--black); }

/* Wordmark sits large against the emblem; the emblem keeps its size */
.site-header .brand { gap: 0.7rem; font-size: 1.45rem; }
.footer-brand .brand { font-size: 1.35rem; }
@media (min-width: 1121px) {
  .site-header .brand { font-size: 1.7rem; }
}
@media (min-width: 981px) and (max-width: 1120px) {
  .site-header .brand { font-size: 1.35rem; }
}

/* Home headline — one huge line of type running nearly edge to edge, in the
   wordmark's face. It breaks out of the page width and sits over the photos. */
.hero.has-photos .wrap { position: relative; z-index: 2; max-width: none; }
.hero.has-photos h1.mega { max-width: none; margin: 0 auto 1.5rem; color: var(--black); font-family: "Outfit", var(--font); font-size: min(8.25vw, 12rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; word-spacing: 0.05em; text-wrap: nowrap; }
.mega-last { display: block; }
@media (max-width: 759px) {
  .hero.has-photos h1.mega { margin-bottom: 1.1rem; font-size: 17.7vw; line-height: 0.95; }
  .mega span { display: block; }
}

/* Between phone and desktop the headline takes more of the width as it narrows */
@media (min-width: 760px) and (max-width: 1040px) {
  .hero.has-photos h1.mega { font-size: 10vw; }
}
/* A soft white wash behind the headline, so the photos fade out around the type */
@media (min-width: 760px) {
  .hero-veil { background: radial-gradient(ellipse 58% 46% at 50% 47%, rgba(249, 250, 251, 0.97) 0%, rgba(249, 250, 251, 0.93) 58%, rgba(249, 250, 251, 0) 100%); }
}

/* Page headlines share the home headline's voice, a size down */
.page-head h1 { max-width: 16ch; font-family: "Outfit", var(--font); font-size: clamp(3rem, 6.2vw, 6.5rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; word-spacing: 0.04em; }
.page-head p { margin-top: 1.875rem; }
@media (max-width: 759px) {
  .page-head h1 { font-size: 13vw; }
}
.mark-note + .mark-kanji { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Self-hosted fonts, so nothing goes to Google on page load. Outfit and Zen
   Kaku are OFL (public/fonts/OFL.txt). Satoshi is under the ITF Free Font
   License (public/fonts/Satoshi-FFL.txt), which allows self-hosting but bans
   subsetting or converting the files, so keep them as downloaded. Zen Kaku is subset to kana plus only the kanji the
   site uses today: a new kanji needs the woff2 files rebuilt with pyftsubset,
   or it falls back to Hiragino. */
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 400; font-display: swap; src: url("../public/fonts/Satoshi-Regular.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 500; font-display: swap; src: url("../public/fonts/Satoshi-Medium.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 700; font-display: swap; src: url("../public/fonts/Satoshi-Bold.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("../public/fonts/outfit-latin-700-800.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic Antique"; font-style: normal; font-weight: 500; font-display: swap; src: url("../public/fonts/zen-kaku-gothic-antique-500.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic Antique"; font-style: normal; font-weight: 700; font-display: swap; src: url("../public/fonts/zen-kaku-gothic-antique-700.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic Antique"; font-style: normal; font-weight: 900; font-display: swap; src: url("../public/fonts/zen-kaku-gothic-antique-900.woff2") format("woff2"); }

/* Consent card: built by js/main.js. Both choices carry the same weight until
   one is made; on reopening, the current choice shows filled. */
.consent { position: fixed; z-index: 60; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: min(25rem, calc(100vw - 32px)); padding: 1.25rem; border-radius: 24px; background: #fff; box-shadow: var(--soft-shadow); }
.consent p { margin: 0 0 1rem; color: var(--black); font-size: 1.05rem; line-height: 1.4; text-wrap: pretty; }
.consent button, .map-gate button { font-family: inherit; }
.consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.75rem; }
.consent .btn.btn-outline[aria-pressed="true"] { background: var(--tone); color: var(--on-tone); }
.consent a:not(.btn) { color: var(--muted); font-size: 1rem; }
.consent a:not(.btn):hover { color: var(--black); }
@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-in 0.5s var(--spring) both; }
}
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }

/* Map gate: stands in for an iframe until the visitor agrees, at the same size */
iframe[data-src][hidden] { display: none; }
.map-gate, .dojo-card > .map-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 280px; padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.map-gate p { max-width: 26ch; margin: 0; color: var(--muted); text-wrap: balance; }

/* Page sub nav: a tight row of anchor links attached to the header, on long
   pages only. It's the first thing in main, as a direct child, or it won't
   stick. Smaller than the reading floor on purpose: it's a utility row, not
   copy. main.js sets the two heights and marks the current link. */
:root { --header-h: 68px; --subnav-h: 44px; --bars: calc(var(--header-h) + var(--subnav-h)); }
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--bg); border-top: 1px solid var(--line); transition: box-shadow 0.3s var(--spring); }
.subnav.is-stuck { box-shadow: 0 1px 0 var(--line); }
body:has(.subnav) .site-header.is-stuck { box-shadow: none; }
.subnav ul { position: relative; display: flex; gap: 0.15rem; margin: 0; padding: 0.3rem var(--gutter); list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li:first-child { margin-left: auto; }
.subnav li:last-child { margin-right: auto; }
.subnav a { position: relative; display: block; padding: 0.4rem 0.55rem; color: var(--muted); font-size: 0.875rem; font-weight: 450; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; transition: color 0.3s var(--spring); }
.subnav a:hover, .subnav a[aria-current] { color: var(--black); }
.subnav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 0.1rem; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: var(--cta); }
.subnav a:focus-visible { outline: 2px solid var(--cta); outline-offset: -4px; border-radius: 8px; }
/* Anchors land with the headline just under both bars, not the section's
   padding. Elements without section padding use the second rule. */
.subnav ~ section[id] { scroll-margin-top: calc(var(--bars) + 1.5rem - clamp(5rem, 8.5vw, 8rem)); }
.subnav ~ section [id] { scroll-margin-top: calc(var(--bars) + 1.5rem); }
.subnav ~ section #cenco { scroll-margin-top: calc(var(--bars) + 1.5rem); }

/* Footer control that behaves like a link but opens the consent card. */
.footer-link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.footer-link:hover { color: var(--black); }
.footer-link:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

/* Small flags above a headline. The hairline keeps Japan's white field visible
   on a white card. */
.flags { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.flags img { display: block; height: 28px; width: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }

/* Home: the two principles, a pair of photos with centred words under each */
.principles-step { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(1.75rem, 3vw, 2.5rem); text-align: center; }
.principles-step img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 55% 40%; border-radius: 28px; }
.principle-mark { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; width: fit-content; margin: -3.25rem auto 1.25rem; padding: 0.75rem 1.5rem; border-radius: 20px; background: #fff; box-shadow: var(--soft-shadow); }
.principle-mark .mark-kanji { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; white-space: nowrap; }
.principle-mark .mark-note { max-width: none; margin: 0 !important; }
.principles-step h3 { margin: 0 0 0.35rem; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.04em; }
.principles-step > div > p:last-child { margin: 0; color: var(--black); font-size: clamp(1.1rem, 1.4vw, 1.2rem); line-height: 1.5; text-wrap: pretty; }
@media (max-width: 760px) {
  .principles-step { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

/* Saved layouts: .big-pair.compact under a wide photo, and .triptych */
.big-pair.compact { margin-top: clamp(2.5rem, 5vw, 4rem); }
.big-pair.compact .mark-kanji, .triptych .mark-kanji { font-size: clamp(3.25rem, 6vw, 5rem); white-space: nowrap; }
.big-pair.compact h3 { max-width: none; }
.triptych { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; text-align: center; }
.triptych img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--pos, 50% 50%); border-radius: 28px; }
.triptych .mark-kanji { display: inline-block; margin: 0; letter-spacing: 0.04em; line-height: 1; }
.triptych .mark-note { max-width: none; margin: 0.85rem 0 0.75rem; }
.triptych h3 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance; }
.triptych div > p:last-child { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); text-wrap: pretty; }
@media (max-width: 760px) {
  .big-pair.compact .mark-kanji, .triptych .mark-kanji { font-size: clamp(3.25rem, 16vw, 4.5rem); }
  .triptych { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .triptych .mark-kanji { writing-mode: horizontal-tb; letter-spacing: 0; }
  .triptych img { aspect-ratio: 4 / 3; }
}

/* Step cards: small "Step 1" on top, title on the bottom edge, like the fee cards */
.big-steps li { display: flex; flex-direction: column; }
.big-steps li::before { content: "Step " counter(step); margin-bottom: 0; color: var(--black); font-size: 1.1rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.big-steps h3 { margin: auto 0 0.4rem; padding-top: 1.5rem; font-size: clamp(1.4rem, 2.1vw, 1.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }

/* Steps with photos: no card, centred words under each photo */
.big-steps.with-photos li { padding: 0; background: none; box-shadow: none; text-align: left; }
.big-steps.with-photos img { order: -1; display: block; width: 100%; margin-bottom: 1.25rem; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; }
.big-steps.with-photos li::before { color: var(--cta); }
.big-steps.with-photos h3 { margin: 0.35rem 0 0.5rem; padding-top: 0; font-weight: 700; text-wrap: pretty; }
.big-steps.with-photos p { color: var(--black); font-size: 1.1rem; line-height: 1.5; }

/* Home: one text style for the instructors note and affiliations */
.more-people p, .affil-block p { color: var(--black); font-size: clamp(1.1rem, 1.5vw, 1.25rem); font-weight: 400; line-height: 1.5; letter-spacing: normal; }

/* A section intro long enough to need the darker text */
.section-title.readable { text-align: left; max-width: none; }
.wide-photo + :is(.section-title.readable, .section-title.center) { margin-top: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0; }
.wide-photo + .section-title.center p + p { margin-top: 1rem; }
/* A centred block of three or more sentences: wider lines, fewer of them */
.section-title.center.wide-copy { max-width: 58rem; }
.section-title.center.wide-copy p { max-width: 56rem; }
.section-title.readable h2, .section-title.readable p { margin-left: 0; margin-right: 0; }
.section-title.readable .link-row { justify-content: flex-start; }
.section-title.readable p { color: var(--black); }
.section-title.readable p + p { margin-top: 1rem; }

/* No widows: body copy never ends on a stray word; centred intros even out their lines */
p, li, figcaption, .faq-body { text-wrap: pretty; }
h1, h2, h3, h4, summary { text-wrap: balance; }
.hero.has-photos .wrap .lead, .hero .wrap .lead, .section-title:not(.readable) p, .section-title.center p, .page-head p, .principles-head p, .principles-step p, .more-people p, .callout-section p, #contact .section-title.center p { text-wrap: balance; }

/* Kanji card: mirrors the founder card on the video's opposite corner */
.founder-card.kanji-card { top: auto; right: auto; bottom: -28px; left: -28px; width: auto; flex-direction: column; gap: 0.35rem; padding: 0.95rem 1.5rem; text-align: center; }
.kanji-card .mark-kanji { margin: 0; font-size: clamp(2.6rem, 4.5vw, 3.75rem); line-height: 1.05; white-space: nowrap; }
.kanji-card h3 { margin: 0; color: var(--black); font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.kanji-card h3 span { color: var(--muted); font-weight: 400; }
@media (max-width: 1100px) { .founder-card.kanji-card { left: -12px; } }

/* Home hero: a plain word and a thin chevron; only the chevron bounces */
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: clamp(0.75rem, 2vw, 1.5rem); display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.25rem 1rem; transform: translateX(-50%); color: var(--muted); font-size: 0.95rem; line-height: 1.2; letter-spacing: -0.01em; text-decoration: none; transition: color 0.2s ease; }
.scroll-cue svg { display: block; color: var(--black); }
.scroll-cue:hover, .scroll-cue:hover svg { color: var(--cta); }
.scroll-cue:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: cue-bounce 1.8s ease-in-out infinite; }
}
@keyframes cue-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Resources: one plain column of links, grouped by section */
.resources { max-width: 42rem; margin-inline: auto; }
.resources h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.035em; margin: 3rem 0 0.5rem; }
.resources h2:first-child { margin-top: 0; }
.resources ul { list-style: none; margin: 0; padding: 0; }
.resources li { padding: 0.6rem 0; font-size: 1.1rem; line-height: 1.4; }
.resources li > a, .resources li > strong { font-weight: 500; }
.resources li > strong:not(.placeholder-flag) { color: var(--black); }
.resources li > span { display: block; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }

/* Countdown notice shown before a link leaves for Parks & Rec */
.leave { width: min(30rem, calc(100vw - 32px)); margin: auto; padding: clamp(1.75rem, 4vw, 2.5rem); border: 0; border-radius: 28px; background: #fff; box-shadow: var(--soft-shadow); text-align: center; }
.leave:focus { outline: none; }
.leave::backdrop { background: rgba(20, 24, 32, 0.45); }
.leave-path { display: flex; align-items: center; justify-content: center; gap: clamp(0.75rem, 3vw, 1.25rem); margin-bottom: 1.5rem; }
.leave-path img, .leave-park { flex: none; width: 56px; height: 56px; border-radius: 50%; }
.leave-park { display: grid; place-items: center; background: var(--belt-green); }
.leave-park svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.leave-ring { position: relative; flex: none; width: 96px; height: 96px; display: grid; place-items: center; }
.leave-ring > svg:first-child { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke: var(--line); stroke-width: 5; }
.leave-ring .run { stroke: var(--cta); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.leave[data-state="counting"] .run { animation: leave-drain var(--leave-secs) linear both; }
@keyframes leave-drain { to { stroke-dashoffset: 100; } }
.leave-count { display: none; color: var(--cta); font-family: "Outfit", var(--font); font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.leave[data-state="counting"] .leave-count { display: block; }
.leave-mark { width: 40px; height: 40px; fill: none; stroke: var(--cta); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.leave[data-state="counting"] .leave-mark { display: none; }
.leave h2 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.035em; text-wrap: balance; }
.leave p { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.1rem; line-height: 1.45; text-wrap: balance; }
.leave-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.leave-actions > a { display: none; }
.leave[data-state="blocked"] .leave-actions > a { display: inline-flex; }
.leave button { font-family: inherit; }
@media (prefers-reduced-motion: reduce) { .leave[data-state="counting"] .run { animation: none; } }

/* A link-styled button that reveals the club email on click */
.email-reveal { padding: 0; border: 0; background: none; font-family: inherit; font-size: inherit; cursor: pointer; }
button.btn { font-family: inherit; }
/* Skip link: hidden until focused with the keyboard */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 1000; padding: 0.6rem 1rem; border-radius: 999px; background: var(--cta); color: #fff; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 1rem; }
