/* EmptyHands — traditional karate, healing & wellbeing school
   Palette: rice paper, sumi ink, bronze (from the logo) and a hanko-seal red. */

/* Fonts are self-hosted (SIL Open Font Licence, see assets/fonts) so no visitor data goes to Google.
   Shippori Mincho is subset to the Latin and kanji characters this site uses. */
@font-face { font-family: "Karla"; src: url("../fonts/karla.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("../fonts/shippori-mincho-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("../fonts/shippori-mincho-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("../fonts/shippori-mincho-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f2ea;
  --paper-2: #ede6d9;
  --paper-3: #e3d9c7;
  --ink: #1c1a16;
  --ink-2: #4b463d;
  --ink-3: #7b7466;
  --bronze: #7a684a;
  --bronze-2: #a48c62;
  --bronze-3: #cbb48a;
  --seal: #a8342a;
  --night: #14120f;
  --night-2: #1e1b17;
  --line: rgba(28, 26, 22, .12);
  --line-light: rgba(246, 242, 234, .14);

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
/* Every title uses the same face and weight, even when imported text wraps words in bold or italics */
:is(h1, h2, h3, h4) :is(strong, b, em, i) { font-weight: inherit; font-style: normal; color: inherit; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 700 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.75; }
.kanji { font-family: var(--serif); font-weight: 700; }
.muted { color: var(--ink-3); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.6em; border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 700 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn--seal { --bg: var(--seal); --fg: #fff; }
.btn--seal:hover { background: #8f2a21; border-color: #8f2a21; }
.btn--ghost { background: transparent; color: var(--bg); }
.btn--ghost:hover { background: var(--bg); color: var(--fg); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--ghost.btn--light { color: var(--paper); }
.btn--ghost.btn--light:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; text-decoration: none;
  font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, color .35s;
  color: var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-over-hero { color: var(--paper); }
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(246, 242, 234, .92); color: var(--ink);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; position: relative; z-index: 2; }
/* The logo is large enough to read and hangs below the header bar like a badge;
   it shrinks back to header size once the page is scrolled or the menu is open. */
.site-header .brand { align-self: flex-start; margin-top: 10px; transition: margin-top .3s var(--ease); }
.brand img { height: 130px; width: auto; border-radius: 18px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55); transition: height .3s var(--ease), border-radius .3s var(--ease); }
.site-header.is-scrolled .brand { margin-top: 12px; }
.site-header.is-scrolled .brand img { height: 68px; border-radius: 12px; }
.site-header .wrap { align-self: stretch; }
.page-hero { padding-top: calc(var(--header-h) + clamp(70px, 9vw, 110px)); }
@media (max-width: 600px) {
  .brand img { height: 84px; border-radius: 14px; }
  .site-header.is-scrolled .brand { margin-top: 9px; }
  .site-header.is-scrolled .brand img, .menu-open .site-header .brand img { height: 52px; }
}
.brand .logo-light { display: none; }
.is-over-hero:not(.is-scrolled) .brand .logo-dark { display: none; }
.is-over-hero:not(.is-scrolled) .brand .logo-light { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn), .nav-group > button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: 999px;
  font: 700 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s;
}
.nav > a:not(.btn):hover, .nav-group > button:hover { background: rgba(127, 110, 80, .14); }
.nav > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--seal); border-radius: 0; }
.nav-group { position: relative; }
.nav-group > button svg { width: 10px; height: 10px; transition: transform .2s; }
.nav-group.open > button svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 250px;
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; box-shadow: 0 24px 60px -20px rgba(20, 18, 15, .35);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-group.open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.nav-menu a:hover { background: var(--paper-2); }
.nav-menu .k { font: 700 1.2rem/1 var(--serif); color: var(--bronze); width: 1.8em; text-align: center; }
.nav-menu strong { display: block; font-size: .95rem; }
.nav-menu small { display: block; color: var(--ink-3); font-size: .8rem; line-height: 1.3; }
.nav .btn { margin-left: 10px; min-height: 42px; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 12px) var(--gutter) 32px; background: var(--paper); color: var(--ink);
    overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--ink); }
  .menu-open .brand .logo-dark { display: block !important; }
  .menu-open .brand .logo-light { display: none !important; }
  .nav > a:not(.btn), .nav-group > button { height: auto; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: .9rem; width: 100%; justify-content: space-between; }
  .nav > a[aria-current="page"] { box-shadow: none; color: var(--seal); }
  .nav-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 8px; display: none; min-width: 0; background: none; }
  .nav-group.open .nav-menu { display: block; transform: none; }
  .nav .btn { margin: 24px 0 0; }
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--paper); background: var(--night); overflow: hidden; isolation: isolate;
}
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 18, 15, .55) 0%, rgba(20, 18, 15, .15) 30%, rgba(20, 18, 15, .55) 65%, rgba(20, 18, 15, .95) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(20, 18, 15, .5), transparent 60%);
}
.hero .wrap { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(40px, 8vh, 90px); position: relative; }
.hero h1 { max-width: 15ch; margin-bottom: .35em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--bronze-3); }
.hero .lead { color: rgba(246, 242, 234, .86); max-width: 56ch; }
.hero .eyebrow { color: var(--bronze-3); }
.hero-kanji {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 40px);
  writing-mode: vertical-rl; font: 700 clamp(3.5rem, 9vw, 7.5rem)/1 var(--serif);
  color: rgba(246, 242, 234, .9); letter-spacing: .1em; text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}
.hero-kanji small { display: block; font: 700 .7rem/1 var(--sans); letter-spacing: .4em; color: var(--bronze-3); margin-top: 1.2em; text-transform: uppercase; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(36px, 7vh, 70px);
  border-top: 1px solid var(--line-light);
}
.hero-stats div { padding: 20px 20px 0 0; }
.hero-stats strong { display: block; font: 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--serif); }
.hero-stats span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 242, 234, .7); }
/* Home hero playing the dojo film: lighter overlay so the film reads, plus a sound button */
.hero.has-film::before {
  background:
    linear-gradient(90deg, rgba(20, 18, 15, .88) 0%, rgba(20, 18, 15, .7) 38%, rgba(20, 18, 15, .25) 68%, rgba(20, 18, 15, .1) 100%),
    linear-gradient(180deg, rgba(20, 18, 15, .5) 0%, rgba(20, 18, 15, 0) 20%, rgba(20, 18, 15, 0) 60%, rgba(20, 18, 15, .85) 100%);
}
.hero.has-film .hero-kanji { display: none; }
.hero-sound {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 18px); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--seal); color: #fff; font: 700 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(168, 52, 42, .6); animation: sound-pulse 2s infinite;
}
.hero-sound svg { width: 20px; height: 20px; }
.hero-sound .wave { display: none; }
.hero-sound.is-on { background: rgba(20, 18, 15, .55); animation: none; padding: 12px; }
.hero-sound.is-on span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-sound.is-on .wave { display: inline; }
.hero-sound.is-on .cross { display: none; }
@keyframes sound-pulse { 70% { box-shadow: 0 0 0 14px rgba(168, 52, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 52, 42, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-sound { animation: none; } }
@media (max-width: 760px) {
  .hero.has-film::before { background: linear-gradient(180deg, rgba(20, 18, 15, .55) 0%, rgba(20, 18, 15, .45) 22%, rgba(20, 18, 15, .78) 45%, rgba(20, 18, 15, .95) 100%); }
}
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-light); background: rgba(20, 18, 15, .4); color: var(--paper); cursor: pointer;
  display: grid; place-items: center;
}
.video-toggle svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(20, 18, 15, .6), rgba(20, 18, 15, .55) 40%, rgba(20, 18, 15, .95)); }
  .hero-kanji { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(n+3) { padding-top: 16px; }
  .video-toggle { display: none; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(50px, 9vw, 110px)) 0 clamp(50px, 7vw, 90px);
  background: var(--paper-2); overflow: hidden; isolation: isolate;
}
.page-hero.has-media { color: var(--paper); background: var(--night); min-height: 62vh; display: flex; align-items: flex-end; }
.page-hero.has-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 18, 15, .5), rgba(20, 18, 15, .25) 40%, rgba(20, 18, 15, .9));
}
.page-hero.has-media .eyebrow { color: var(--bronze-3); }
.page-hero.has-media .lead { color: rgba(246, 242, 234, .86); }
.page-hero video, .page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero .watermark {
  position: absolute; right: -0.05em; bottom: -0.22em; z-index: -1; pointer-events: none;
  font: 700 clamp(9rem, 26vw, 22rem)/1 var(--serif); color: rgba(122, 104, 74, .1); white-space: nowrap;
}
.page-hero.has-media .watermark { color: rgba(246, 242, 234, .1); }
.crumbs { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.4rem; opacity: .75; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(50px, 7vw, 80px) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--night); color: var(--paper); }
.section--dark .eyebrow { color: var(--bronze-3); }
.section--dark .lead, .section--dark .muted { color: rgba(246, 242, 234, .72); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { max-width: 20ch; margin: 0; }
.section-head .lead { max-width: 46ch; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.figure-stack { position: relative; }
.figure-stack img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.figure-stack .main { aspect-ratio: 4 / 5; }
.figure-stack .inset {
  position: absolute; width: 46%; aspect-ratio: 1; right: -6%; bottom: -8%;
  border: 8px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(20, 18, 15, .5);
}
.section--alt .figure-stack .inset { border-color: var(--paper-2); }
.seal {
  position: absolute; left: -18px; top: 24px; width: 74px; height: 74px; border-radius: 10px;
  background: var(--seal); color: #fff; display: grid; place-items: center; transform: rotate(-6deg);
  font: 700 1.25rem/1.05 var(--serif); text-align: center; box-shadow: 0 12px 30px -10px rgba(168, 52, 42, .6);
}
@media (max-width: 860px) { .figure-stack .inset { right: 0; } .seal { left: 8px; } }

/* ------------------------------------------------------------------ discipline cards */
.disciplines { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.discipline {
  position: relative; grid-column: span 2; min-height: 420px; border-radius: 6px; overflow: hidden; isolation: isolate;
  color: var(--paper); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  background: var(--night);
}
.discipline:nth-child(1) { grid-column: span 3; min-height: 500px; }
.discipline:nth-child(2) { grid-column: span 3; min-height: 500px; }
.discipline img, .discipline video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.discipline::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(20, 18, 15, .92)); transition: background .4s; }
.discipline:hover img, .discipline:hover video { transform: scale(1.05); }
.discipline .k { position: absolute; top: 22px; right: 24px; font: 700 2.6rem/1 var(--serif); writing-mode: vertical-rl; opacity: .9; }
.discipline h3 { font-size: 1.9rem; margin-bottom: .2em; }
.discipline p { color: rgba(246, 242, 234, .8); font-size: .95rem; margin-bottom: 1em; max-width: 40ch; }
.discipline .link-arrow { color: var(--bronze-3); }
@media (max-width: 960px) {
  .disciplines { grid-template-columns: 1fr 1fr; }
  .discipline, .discipline:nth-child(1), .discipline:nth-child(2) { grid-column: span 1; min-height: 360px; }
  .discipline:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .disciplines { grid-template-columns: 1fr; }
  .discipline, .discipline:nth-child(1) { grid-column: span 1; min-height: 320px; }
}

/* ------------------------------------------------------------------ pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.pillar { padding: 34px 26px 10px 0; border-right: 1px solid var(--line-light); margin-right: 26px; }
.pillar:last-child { border-right: 0; margin-right: 0; }
.pillar .k { font: 700 3.4rem/1 var(--serif); color: var(--bronze-3); margin-bottom: 18px; }
.pillar h3 { margin-bottom: .1em; }
.pillar .romaji { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 242, 234, .55); margin-bottom: 14px; display: block; }
.pillar p { color: rgba(246, 242, 234, .74); font-size: .96rem; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; margin-right: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; margin-right: 0; border-top: 1px solid var(--line-light); } .pillar:first-child { border-top: 0; } }

/* ------------------------------------------------------------------ dojo kun */
.dojo-kun { display: grid; grid-template-columns: auto 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.dojo-kun-title { writing-mode: vertical-rl; font: 700 clamp(3rem, 7vw, 5.5rem)/1 var(--serif); color: var(--ink); letter-spacing: .14em; position: sticky; top: calc(var(--header-h) + 30px); }
.dojo-kun-title span { color: var(--seal); }
.kun-list { list-style: none; padding: 0; margin: 0; counter-reset: kun; }
.kun-list li { display: grid; grid-template-columns: 70px 1fr; gap: 10px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); counter-increment: kun; }
.kun-list li::before { content: counter(kun, cjk-ideographic); font: 700 1.6rem/1 var(--serif); color: var(--seal); grid-row: span 2; padding-top: 4px; }
.kun-list .jp { font: 600 1.2rem/1.4 var(--serif); color: var(--ink-3); }
.kun-list .en { font: 600 clamp(1.25rem, 2.4vw, 1.7rem)/1.3 var(--serif); }
@media (max-width: 640px) {
  .dojo-kun { grid-template-columns: 1fr; }
  .dojo-kun-title { writing-mode: horizontal-tb; position: static; font-size: 2.6rem; }
  .kun-list li { grid-template-columns: 44px 1fr; }
}

/* ------------------------------------------------------------------ timetable */
.timetable { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tt-row { display: grid; grid-template-columns: 140px 1.2fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 20px 24px; background: var(--paper); }
.section--alt .tt-row { background: var(--paper); }
.tt-row.head { background: var(--paper-3); font: 700 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding: 14px 24px; }
.tt-day { font: 700 1.05rem/1.2 var(--serif); }
.tt-class { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.tt-class .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bronze); flex-shrink: 0; }
.tt-class .dot.karate { background: var(--ink); }
.tt-class .dot.yoga { background: #7f8f6a; }
.tt-class .dot.taichi { background: var(--bronze-2); }
.tt-class .dot.shiatsu { background: var(--seal); }
.tt-class small { display: block; font-weight: 400; color: var(--ink-3); }
.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); font-size: .74rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 820px) {
  /* Each class becomes a small card: day + tag, then the class, then time · dojo */
  .tt-row { grid-template-columns: auto 1fr auto; grid-template-areas: "day day tag" "cls cls cls" "time dojo dojo"; gap: 8px 10px; padding: 18px 18px; }
  .tt-row.head { display: none; }
  .tt-row > :nth-child(1) { grid-area: day; }
  .tt-row > :nth-child(2) { grid-area: cls; }
  .tt-row > :nth-child(3) { grid-area: time; color: var(--ink-2); font-size: .95rem; }
  .tt-row > :nth-child(4) { grid-area: dojo; color: var(--ink-2); font-size: .95rem; }
  .tt-row > :nth-child(4):not(:empty)::before { content: "· "; }
  .tt-row > :nth-child(5) { grid-area: tag; justify-self: end; }
}

/* ------------------------------------------------------------------ people */
.founder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.founder-photo { position: relative; }
.founder-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.15); }
.founder-photo .caption {
  position: absolute; left: 20px; right: 20px; bottom: 20px; background: var(--paper); color: var(--ink); border-radius: var(--radius);
  padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.founder-photo .caption strong { font: 700 1.1rem/1.2 var(--serif); display: block; }
.founder-photo .caption span { font-size: .8rem; color: var(--ink-3); }
.founder-photo .caption .k { font: 700 1.8rem/1 var(--serif); color: var(--seal); }
.quals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.quals li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 700; }
.section--dark .quals li { border-color: var(--line-light); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } }

.timeline { list-style: none; padding: 0; margin: 2em 0 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--seal); }
.timeline strong { display: block; font: 700 1.1rem/1.3 var(--serif); }
.timeline span { color: var(--ink-2); font-size: .96rem; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.person {
  position: relative; background: var(--paper); border-radius: 6px; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid var(--line); padding: 0; transition: transform .35s var(--ease), box-shadow .35s;
}
.section--alt .person { background: var(--paper); }
.person:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(20, 18, 15, .45); }
.person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.person:hover img { filter: grayscale(0); }
.person .body { padding: 16px 18px 18px; }
.person .rank { font: 700 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--seal); }
.person h3 { font-size: 1.2rem; margin: .45em 0 .2em; }
.person .date { font-size: .85rem; color: var(--ink-3); }
.person .belt { position: absolute; top: 14px; left: 14px; height: 6px; width: 46px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--paper); }
.person .belt[data-dan]::after { content: attr(data-dan); white-space: nowrap; position: absolute; left: 52px; top: -7px; font: 700 .66rem/20px var(--sans); background: var(--paper); padding: 0 7px; border-radius: 999px; letter-spacing: .1em; }

.profile { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 70px); padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); }
.profile:first-of-type { border-top: 0; padding-top: 0; }
.profile img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: top; position: sticky; top: calc(var(--header-h) + 24px); }
.profile .rank { font: 700 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--seal); display: block; margin-bottom: .8em; }
.profile h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile img { position: static; max-width: 360px; } }

/* dialog */
dialog.modal {
  width: min(880px, calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 0; border: 0; border-radius: 10px;
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
}
dialog.modal::backdrop { background: rgba(20, 18, 15, .7); backdrop-filter: blur(4px); }
.modal-inner { display: grid; grid-template-columns: 300px 1fr; }
.modal-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; min-height: 340px; }
.modal-inner .body { padding: 36px 36px 30px; overflow-y: auto; max-height: calc(100svh - 40px); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; font-size: 1.4rem; line-height: 1; }
@media (max-width: 680px) { .modal-inner { grid-template-columns: 1fr; } .modal-inner img { max-height: 300px; min-height: 0; } .modal-inner .body { padding: 24px; max-height: none; } }

/* ------------------------------------------------------------------ testimonials */
.quotes { position: relative; }
.quote-track { align-items: stretch; display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
.quote-track::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start; background: var(--night-2); border: 1px solid var(--line-light); border-radius: 8px;
  padding: 34px 32px 28px; display: flex; flex-direction: column; margin: 0;
}
.quote::before { content: "“"; font: 700 4.5rem/.6 var(--serif); color: var(--bronze-2); height: 34px; }
.quote blockquote { margin: 0 0 24px; font: 500 1.1rem/1.65 var(--serif); color: rgba(246, 242, 234, .9); flex: 1; }
.quote-track .quote blockquote { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; flex: 0 1 auto; margin-bottom: auto; }
.quote-track .quote figcaption { margin-top: auto; padding-top: 24px; }
.quote figcaption strong { display: block; font-size: 1rem; }
.quote figcaption span { font-size: .85rem; color: rgba(246, 242, 234, .6); }
.stars { color: var(--bronze-3); letter-spacing: .2em; font-size: .9rem; margin-bottom: 12px; }
.quote-nav { display: flex; gap: 10px; }
.quote-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light); background: none; color: var(--paper); cursor: pointer; font-size: 1.2rem; transition: background .2s; }
.quote-nav button:hover { background: rgba(246, 242, 234, .1); }

.quote-grid { columns: 2 340px; column-gap: 22px; }
.quote-grid .quote { break-inside: avoid; margin-bottom: 22px; background: var(--paper); border-color: var(--line); }
.quote-grid .quote blockquote { color: var(--ink); }
.quote-grid .quote figcaption span { color: var(--ink-3); }

/* ------------------------------------------------------------------ yudansha strip */
.faces { display: flex; flex-wrap: wrap; justify-content: center; }
.faces img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--paper-2); margin-left: -14px; filter: grayscale(1); transition: transform .3s, filter .3s; }
.faces img:first-child { margin-left: 0; }
.faces img:hover { transform: translateY(-6px); filter: none; z-index: 1; }

/* ------------------------------------------------------------------ film */
.film { position: relative; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-play {
  position: absolute; inset: 0; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--paper);
  background: linear-gradient(180deg, rgba(20, 18, 15, .15), rgba(20, 18, 15, .6)); transition: background .3s;
}
.film-play span { width: 92px; height: 92px; border-radius: 50%; background: var(--seal); display: grid; place-items: center; transition: transform .3s var(--ease); box-shadow: 0 0 0 14px rgba(168, 52, 42, .25); }
.film-play:hover span { transform: scale(1.08); }
.film-play svg { width: 30px; height: 30px; margin-left: 5px; }
.film-sound {
  position: absolute; top: 18px; right: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--seal); color: #fff; font: 700 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.film-sound[hidden] { display: none; }
.film-sound svg { width: 18px; height: 18px; }
.film-meta { position: absolute; left: 26px; bottom: 22px; text-align: left; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.film-meta strong { display: block; font: 700 1.5rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------------------------ cards: posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card .thumb { aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--paper-3); margin-bottom: 18px; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .meta { display: flex; gap: 12px; align-items: center; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.post-card .meta .cat { color: var(--seal); font-weight: 700; }
.post-card h3 { font-size: 1.32rem; transition: color .2s; }
.post-card:hover h3 { color: var(--bronze); }
.post-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.post-card.is-hidden { display: none; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

.post-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.post-card--feature .thumb { margin: 0; aspect-ratio: 16 / 10; }
.post-card--feature h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
@media (max-width: 760px) { .post-card--feature { grid-template-columns: 1fr; gap: 0; } .post-card--feature .thumb { margin-bottom: 18px; } }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 40px; }
.filters button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-weight: 700; font-size: .85rem; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters input { margin-left: auto; min-width: 240px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 11px 18px; font: inherit; font-size: .92rem; }
@media (max-width: 640px) { .filters input { margin-left: 0; width: 100%; min-width: 0; } }

/* ------------------------------------------------------------------ article */
.article-hero { padding: calc(var(--header-h) + 60px) 0 40px; background: var(--paper-2); }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-3); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.article-meta .cat { color: var(--seal); font-weight: 700; }
.article-cover { margin: -10px auto 0; max-width: 980px; padding: 0 var(--gutter); position: relative; }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 6px; background: var(--paper-3); }
.article-cover.contain img { object-fit: contain; background: #fff; padding: 20px; }
.prose { font-size: 1.08rem; line-height: 1.85; color: var(--ink-2); }
.prose > * { max-width: 700px; margin-left: auto; margin-right: auto; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8em; }
.prose h2 { font-size: 1.9rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.2rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: 6px; margin: 1.8em auto; max-height: 520px; width: auto; }
.prose figure { margin: 2em auto; }
.prose figure:has(table) { overflow-x: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--seal); }
.prose blockquote { border-left: 3px solid var(--seal); margin: 1.8em auto; padding: .2em 0 .2em 1.4em; font: 500 1.25rem/1.6 var(--serif); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.prose td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.prose > p:first-child::first-letter { float: left; font: 700 4.2em/.85 var(--serif); color: var(--seal); margin: .08em .1em 0 0; }

.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 30px; margin-top: 50px; }
.share { display: flex; gap: 10px; align-items: center; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: none; cursor: pointer; text-decoration: none; }
.share svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ fees */
.fee-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.fee-tabs button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 12px 20px; cursor: pointer; font-weight: 700; display: inline-flex; gap: 10px; align-items: center; }
.fee-tabs button .k { font-family: var(--serif); color: var(--bronze); }
.fee-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fee-tabs button[aria-selected="true"] .k { color: var(--bronze-3); }
.fee-panel[hidden] { display: none; }
.price-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.price {
  border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--paper);
  display: flex; flex-direction: column; gap: 6px;
}
.price.featured { background: var(--night); color: var(--paper); border-color: var(--night); }
.price.featured .muted { color: rgba(246, 242, 234, .65); }
.price .label { font: 700 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.price.featured .label { color: var(--bronze-3); }
.price .amount { font: 700 2.4rem/1.1 var(--serif); }
.price .amount small { font: 400 1rem var(--sans); opacity: .7; }
.price .belts { display: flex; gap: 4px; margin-top: auto; padding-top: 14px; }
.price .belts i { height: 6px; flex: 1; border-radius: 2px; }
.note { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--seal); background: var(--paper-2); font-size: .95rem; border-radius: 0 6px 6px 0; }

/* ------------------------------------------------------------------ words (definitions) */
.words { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.word { background: var(--paper); padding: 30px 26px; }
.section--alt .word { background: var(--paper-2); }
.word strong { display: block; font: 700 2rem/1 var(--serif); color: var(--bronze); margin-bottom: 6px; }
.word .ph { font-weight: 700; font-size: .9rem; color: var(--ink); }
.word p { margin: 6px 0 0; font-size: .9rem; color: var(--ink-3); line-height: 1.5; }

/* ------------------------------------------------------------------ info list / facts */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts li { background: var(--paper); padding: 18px 22px; display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.facts li span:first-child { font: 700 .72rem/1.8 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); }
.section--alt .facts li { background: var(--paper); }

/* ------------------------------------------------------------------ gallery */
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery button { display: block; width: 100%; border: 0; padding: 0; margin: 0 0 14px; background: var(--paper-3); cursor: zoom-in; border-radius: 6px; overflow: hidden; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .7s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(14, 12, 10, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(0, 0, 0, .3); color: var(--paper); font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(246, 242, 234, .7); font-size: .85rem; letter-spacing: .14em; }
@media (max-width: 600px) { .lightbox { padding: 70px 10px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; } }

/* ------------------------------------------------------------------ locations / contact */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.location { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.location iframe { width: 100%; height: 260px; border: 0; filter: grayscale(.85) contrast(1.05); display: block; background: var(--paper-3); }
.map-consent { height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: var(--paper-3); }
.map-consent p { margin: 0; font-size: .82rem; color: var(--ink-3); }
.map-load { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 12px 22px; cursor: pointer; font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.map-load:hover { background: var(--ink); color: var(--paper); }
.location .body { padding: 24px 26px 26px; }
.location h3 { display: flex; align-items: baseline; gap: 12px; }
.location h3 .k { color: var(--seal); font-size: 1rem; }
.location ul { list-style: none; padding: 0; margin: 0 0 18px; color: var(--ink-2); }
.location li { padding: 4px 0; }
@media (max-width: 760px) { .locations { grid-template-columns: 1fr; } }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--paper); transition: border-color .2s, transform .3s var(--ease); }
.contact-card:hover { border-color: var(--bronze); transform: translateY(-3px); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; flex-shrink: 0; color: var(--seal); }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card strong { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.contact-card span { font: 600 1.08rem/1.4 var(--serif); word-break: break-word; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font: 700 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(28, 26, 22, .2); background: var(--paper); border-radius: 6px; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(122, 104, 74, .15); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { margin: 0; cursor: pointer; position: relative; }
.choices input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choices span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(28, 26, 22, .2); border-radius: 999px; font: 700 .88rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--paper); transition: all .2s; }
.choices input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--seal); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--seal); margin-top: 3px; flex-shrink: 0; }
.form-note { font-size: .88rem; color: var(--ink-3); }
.form-status { grid-column: 1 / -1; padding: 16px 20px; border-radius: 6px; background: #e7efe0; color: #2f4a22; display: none; }
.form-status.show { display: block; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 4vw, 44px); }
.aside-card { background: var(--night); color: var(--paper); border-radius: 10px; padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card h3 { color: var(--paper); }
.aside-card ol { padding-left: 1.2em; color: rgba(246, 242, 234, .8); }
.aside-card li { margin-bottom: .8em; }
.aside-card li::marker { color: var(--bronze-3); font-weight: 700; }
.aside-card a { color: var(--bronze-3); }

/* ------------------------------------------------------------------ CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--seal); color: #fff; isolation: isolate; }
.cta-band::after { content: "道"; position: absolute; right: -0.05em; top: 50%; transform: translateY(-50%); font: 700 clamp(14rem, 34vw, 30rem)/1 var(--serif); color: rgba(255, 255, 255, .08); z-index: -1; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0; max-width: 18ch; }
.cta-band p { margin: .6em 0 0; color: rgba(255, 255, 255, .85); max-width: 50ch; }
.cta-band .btn--light:hover { background: #fff; }

/* ------------------------------------------------------------------ downloads */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.download { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--paper); transition: border-color .2s, transform .3s var(--ease); }
.download:hover { border-color: var(--bronze); transform: translateY(-3px); }
.download .ic { width: 46px; height: 56px; border-radius: 4px; background: var(--seal); color: #fff; display: grid; place-items: center; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; flex-shrink: 0; }
.download strong { display: block; font-family: var(--serif); font-size: 1.08rem; }
.download span { font-size: .85rem; color: var(--ink-3); }
.section--dark .download { background: var(--night-2); border-color: var(--line-light); }
.section--dark .download span { color: rgba(246, 242, 234, .6); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--night); color: rgba(246, 242, 234, .75); padding: clamp(60px, 8vw, 100px) 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font: 600 1.15rem/1.2 var(--serif); letter-spacing: .005em; color: var(--bronze-3); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--paper); }
.site-footer .brand img { height: 56px; margin-bottom: 20px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--seal); border-color: var(--seal); color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .82rem; color: rgba(246, 242, 234, .5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* floating whatsapp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #1f8f4e; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-tucked { transform: translateY(calc(100% + 30px)); }
.wa-float svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 1.2rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-l { margin-top: clamp(40px, 6vw, 70px); }
.img-round { border-radius: 6px; width: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ phones (iPhone & Android)
   Tuned at 360–430px wide. Covers the notch / home bar, keeps controls clear of the
   WhatsApp button, and turns long lists into denser grids so pages don't scroll forever. */
html { -webkit-tap-highlight-color: transparent; }
.site-header .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.wa-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
.site-footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }

@media (max-width: 600px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }

  /* Small headings: smaller, no leading rule, so long ones wrap cleanly */
  .eyebrow { font-size: .66rem; letter-spacing: .16em; gap: 0; line-height: 1.5; }
  .eyebrow::before, .center .eyebrow::after { display: none; }

  /* Faded kanji behind page titles: smaller and fainter so it never fights the text */
  .page-hero .watermark { font-size: 7.5rem; bottom: -0.12em; opacity: .55; }
  .page-hero { padding-top: calc(var(--header-h) + 50px); padding-bottom: 44px; }
  .page-hero.has-media { min-height: 56vh; }
  .page-hero.has-media::before { background: linear-gradient(180deg, rgba(20, 18, 15, .72), rgba(20, 18, 15, .55) 45%, rgba(20, 18, 15, .92)); }
  .page-hero.has-media .eyebrow { color: var(--paper); opacity: .85; }

  /* Home hero: room under the header for the sound button */
  .hero .wrap { padding-top: calc(var(--header-h) + 84px); padding-bottom: 32px; }
  .hero-sound { top: calc(var(--header-h) + 16px); padding: 10px 16px; font-size: .74rem; }
  .hero-sound.is-on { padding: 10px; }
  .hero h1 { font-size: 2.5rem; }
  .hero .btn-row .btn { flex: 1 1 auto; }
  .hero-stats { margin-top: 28px; }
  .hero-stats strong { font-size: 1.6rem; }

  .section-head { margin-bottom: 28px; }
  .btn { min-height: 48px; padding: 0 1.3em; }

  /* Discipline cards: shorter so five of them don't fill several screens */
  .discipline, .discipline:nth-child(1), .discipline:nth-child(2) { min-height: 260px; padding: 22px; }
  .discipline h3 { font-size: 1.6rem; }

  /* Fee tabs: one swipeable row instead of three rows of pills */
  .fee-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; -webkit-overflow-scrolling: touch; }
  .fee-tabs::-webkit-scrollbar { display: none; }
  .fee-tabs button { flex-shrink: 0; }
  /* Journal: search box first, category pills below */
  .filters { gap: 8px; margin-bottom: 28px; }
  .filters button { order: 1; padding: 9px 14px; }
  .filters input { order: 0; flex-basis: 100%; margin: 0 0 4px; }

  /* iOS zooms into any text box under 16px; keep them all at 16px */
  input, select, textarea, .filters input { font-size: 16px !important; }

  /* Black belts / mentors and the gallery: two per row */
  .people { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .person .body { padding: 12px 12px 14px; }
  .person h3 { font-size: 1rem; }
  .person .rank { font-size: .6rem; letter-spacing: .12em; }
  .person .date { font-size: .78rem; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery button { margin-bottom: 8px; }

  .price { padding: 20px; }
  .price .amount { font-size: 2rem; }
  .profile { gap: 22px; padding: 36px 0; }
  .profile img { max-width: 100%; aspect-ratio: 1; }
  .quote { padding: 26px 22px 22px; }
  .quote blockquote { font-size: 1.02rem; }
  .cta-band .btn-row { width: 100%; }
  .cta-band .btn { flex: 1 1 auto; }
  .film-meta { left: 16px; bottom: 14px; }
  .film-meta strong { font-size: 1.1rem; }
  .prose { font-size: 1.02rem; }
  .prose figure:has(table) { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }

  .wa-float { width: 50px; height: 50px; }
  .wa-float svg { width: 25px; height: 25px; }
}

/* Our app page */
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.05rem; }
.app-icon { display: grid; justify-items: center; gap: 14px; }
.app-icon img { width: min(240px, 60vw); border-radius: 22%; box-shadow: 0 30px 60px -30px rgba(20, 18, 15, .55); }
.app-icon span { font-weight: 700; letter-spacing: .02em; }
.app-features { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.app-feature .k { display: block; font: 700 2.4rem/1 var(--serif); color: var(--bronze-2); margin-bottom: 12px; }
.app-steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.app-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.app-step ol { margin: 0; padding-left: 20px; }
.app-step li { margin-bottom: 6px; }

/* ------------------------------------------------------------------ cookie consent (Google Ads only) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  max-width: 560px; margin: 0 auto; padding: 20px 22px; border-radius: 12px;
  background: var(--night); color: var(--paper); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  display: grid; gap: 14px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .95rem; color: rgba(246, 242, 234, .85); }
.consent strong { color: var(--paper); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { min-height: 44px; }
.consent .btn--ghost { --bg: var(--paper); color: var(--paper); }
.consent .btn--ghost:hover { color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; margin-right: 10px; }
.link-btn[hidden] { display: none; }

/* ------------------------------------------------------------------ normal text: one size and font everywhere
   Intro paragraphs, card text, quotes and articles all match ordinary paragraph text. */
.lead, .discipline p, .pillar p, .timeline span, .post-card p, .prose, .prose table, .note, .word p,
.quote blockquote, .prose blockquote, .cta-band p, .location ul, .aside-card ol {
  font-family: var(--sans); font-size: 1em; font-weight: 400; font-style: normal; line-height: 1.7;
}
.lead, .prose { color: var(--ink); }
.prose > p:first-child::first-letter { float: none; font: inherit; color: inherit; margin: 0; }

/* ------------------------------------------------------------------ FAQ (discipline pages) */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 1.15rem/1.35 var(--serif); color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--seal); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; max-width: 65ch; }
