/* ============================================================
   WSKF Perth - design system implementation (Phase 4 mockup)
   Black floor, gi white, one dan-grade red. border-radius: 0.
   Display: Shippori Mincho. Body/UI: Hanken Grotesk.
   ============================================================ */

:root {
  /* Type families */
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fontfeat-tabular: "tnum" 1, "lnum" 1;

  /* Type scale (desktop) */
  --fs-display: 4.5rem;     --lh-display: 1.04;  --ls-display: -0.01em;
  --fs-h1: 3.25rem;         --lh-h1: 1.08;       --ls-h1: -0.01em;
  --fs-h2: 2.25rem;         --lh-h2: 1.14;       --ls-h2: -0.005em;
  --fs-h3: 1.5rem;          --lh-h3: 1.2;        --ls-h3: 0;
  --fs-h4: 1.25rem;         --lh-h4: 1.25;       --ls-h4: 0;
  --fs-h5: 1.0625rem;       --lh-h5: 1.3;        --ls-h5: 0.01em;
  --fs-h6: 0.9375rem;       --lh-h6: 1.3;        --ls-h6: 0.02em;
  --fs-lead: 1.375rem;      --lh-lead: 1.5;
  --fs-body: 1.125rem;      --lh-body: 1.65;
  --fs-small: 0.9375rem;    --lh-small: 1.55;
  --fs-xs: 0.8125rem;       --lh-xs: 1.5;
  --fs-overline: 0.8125rem; --lh-overline: 1.2; --ls-overline: 0.18em;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-display-bold: 700;

  /* Core palette */
  --c-sumi: #0E0E10;
  --c-tatami: #16161A;
  --c-surface-2: #1E1E24;
  --c-charcoal: #2A2A30;
  --c-line-strong: #3A3A42;
  --c-ash: #8C8C94;
  --c-gi: #F4F1EA;
  --c-white: #FFFFFF;
  --c-paper: #FBFAF6;
  --c-ink: #161514;
  --c-slate: #5A5750;
  --c-stone: #DEDAD0;
  --c-dan: #8E2434;
  --c-dan-deep: #6E1A28;
  --c-dan-wash: #2A1418;
  --c-kohaku-white: #F4F1EA;

  /* State / feedback */
  --ok: #3E6B4C;
  --warn: #B07A2C;
  --danger: #C8412C;
  --focus-ring: #E4B23A;

  /* Semantic (dark default) */
  --bg: var(--c-sumi);
  --surface: var(--c-tatami);
  --surface-2: var(--c-surface-2);
  --ink: var(--c-gi);
  --ink-strong: var(--c-white);
  --muted: var(--c-ash);
  --accent: var(--c-dan);
  --accent-hover: var(--c-dan-deep);
  --accent-wash: var(--c-dan-wash);
  --line: var(--c-charcoal);
  --line-strong: var(--c-line-strong);
  --kohaku-white: var(--c-kohaku-white);

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --container-text: 68ch;
  --gutter: 24px;
  --gutter-sm: 16px;
  --grid-gap: 24px;

  /* Borders / focus / motion */
  --radius: 0;
  --border-hair: 1px solid var(--line);
  --border-strong: 2px solid var(--line-strong);
  --focus-width: 3px;
  --focus-offset: 2px;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --shadow: 0 2px 0 0 var(--line);
}

/* Light section override */
.section--light {
  --bg: var(--c-paper);
  --surface: var(--c-white);
  --surface-2: #F2EFE8;
  --ink: var(--c-ink);
  --muted: var(--c-slate);
  --line: var(--c-stone);
  --line-strong: #C9C4B8;
}

/* ============================================================
   Global base
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important; /* hard constraint: nothing rounded, anywhere */
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-display-bold);
  color: var(--ink);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--fw-semibold); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-semibold); }
h5 { font-family: var(--font-body); font-size: var(--fs-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); font-weight: var(--fw-bold); margin: 0 0 var(--space-3); color: var(--ink); }
h6 { font-family: var(--font-body); font-size: var(--fs-h6); line-height: var(--lh-h6); letter-spacing: var(--ls-h6); font-weight: var(--fw-bold); margin: 0 0 var(--space-2); color: var(--ink); }

p { margin: 0 0 var(--space-4); max-width: var(--container-text); }

.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.xs { font-size: var(--fs-xs); line-height: var(--lh-xs); }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }

.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  line-height: var(--lh-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--accent);
  margin: 0 0 var(--space-3);
  display: block;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

strong, b { font-weight: var(--fw-bold); }

img, svg, video { max-width: 100%; height: auto; display: block; }

.tnum { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: var(--fontfeat-tabular); }

/* Universal keyboard focus */
:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}
:focus:not(:focus-visible) { outline: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -200px;
  z-index: 1000;
  background: var(--accent);
  color: var(--c-white);
  padding: var(--space-3) var(--space-5);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--text { max-width: var(--container-text); }
.section { padding-block: var(--space-9); background: var(--bg); color: var(--ink); }
.section--tight { padding-block: var(--space-8); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.section-head { margin-bottom: var(--space-7); }
.section-head .belt-rule { margin-top: var(--space-3); }
.section-head .overline { margin-bottom: var(--space-3); }
.section-head p { color: var(--muted); }

.stack > * + * { margin-top: var(--space-4); }
.text-center { text-align: center; }

/* ============================================================
   Signature motif: kohaku belt-rule
   ============================================================ */

.belt-rule {
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border: 0;
  margin: var(--space-3) 0 0;
}
.belt-rule--kohaku {
  width: 168px; /* 6 segments of 28px */
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent) 0, var(--accent) 28px,
    var(--kohaku-white) 28px, var(--kohaku-white) 56px
  );
}
.section-divider {
  height: 4px;
  border: 0;
  margin: 0;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent) 0, var(--accent) 28px,
    var(--kohaku-white) 28px, var(--kohaku-white) 56px
  );
}
hr.rule { border: 0; border-top: var(--border-hair); margin: var(--space-6) 0; }

/* ============================================================
   Header / navigation
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-sumi);
  border-bottom: var(--border-hair);
  transition: min-height var(--dur) var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: var(--space-5);
  transition: min-height var(--dur) var(--ease);
}
.site-header.is-condensed .site-header__inner { min-height: 60px; }

.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--c-gi); }
.brand:hover { color: var(--c-gi); }
.brand__mark { width: 40px; height: 40px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }

.primary-nav { display: flex; align-items: center; gap: var(--space-6); }
.primary-nav__list { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.primary-nav__list > li { margin: 0; }
.primary-nav__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--c-gi); text-decoration: none; font-weight: var(--fw-medium);
  padding: 0 2px; position: relative; font-size: 1rem;
}
.primary-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav__list a:hover::after,
.primary-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav__list a[aria-current="page"] { color: var(--c-white); }
.primary-nav__list a:hover { color: var(--c-white); }

/* Dropdown */
.has-sub { position: relative; }
.sub-nav {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--c-tatami); border: var(--border-hair);
  list-style: none; margin: 0; padding: var(--space-2) 0;
  display: none; flex-direction: column; z-index: 110;
}
.has-sub:hover .sub-nav,
.has-sub:focus-within .sub-nav { display: flex; }
.sub-nav li { margin: 0; }
.sub-nav a { display: flex; min-height: 44px; padding: 0 var(--space-5); width: 100%; }
.sub-nav a::after { display: none; }
.sub-nav a:hover { background: var(--accent-wash); color: var(--c-white); }

.nav-cta { white-space: nowrap; }

/* Tap-to-call pinned in mobile drawer */
.nav-call {
  display: none; min-height: 52px; align-items: center; gap: var(--space-3);
  color: var(--c-gi); text-decoration: none; font-weight: var(--fw-bold);
}
.nav-call svg { flex: 0 0 auto; }

/* Hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: transparent; border: var(--border-hair); cursor: pointer;
}
.nav-toggle__bar {
  display: block; height: 2px; background: var(--c-gi); margin: 4px 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 879px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 72px 0 0 0; background: var(--c-sumi);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-5) var(--gutter); transform: translateX(100%);
    transition: transform var(--dur) var(--ease); overflow-y: auto;
    border-top: var(--border-hair);
  }
  @media (prefers-reduced-motion: reduce) {
    .primary-nav { transition: none; }
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav__list > li { border-bottom: var(--border-hair); }
  .primary-nav__list a { min-height: 52px; padding: 0 var(--space-2); }
  .primary-nav__list a::after { bottom: 12px; }
  .sub-nav { position: static; display: flex; border: 0; padding: 0 0 var(--space-3) var(--space-5); background: transparent; }
  .nav-cta { margin-top: var(--space-5); width: 100%; justify-content: center; }
  .nav-call { display: flex; border-bottom: var(--border-hair); }
}
@media (min-width: 880px) { .nav-call { display: none !important; } }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; min-width: 44px; padding: 0 var(--space-6);
  font-family: var(--font-body); font-size: 1rem; font-weight: var(--fw-bold);
  line-height: 1; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--c-white); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--c-white); text-decoration: none; }
.btn--primary:active { transform: translateY(1px); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--accent); color: var(--ink-strong); text-decoration: none; }

.btn--ghost { background: transparent; color: var(--accent); border-color: transparent; padding-inline: var(--space-2); text-decoration: underline; text-underline-offset: 4px; align-self: flex-start; }
.btn--ghost:hover { color: var(--accent-hover); }

.btn:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.icon-arrow { transition: transform var(--dur) var(--ease); display: inline-block; }
.btn:hover .icon-arrow,
a:hover .icon-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .icon-arrow { transition: none; }
  .btn:hover .icon-arrow, a:hover .icon-arrow { transform: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero { position: relative; background: var(--c-sumi); overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: rgba(10,10,12,0.62); }
.hero__content { position: relative; z-index: 2; padding-block: var(--space-9); max-width: 760px; }
.hero__content .overline { color: var(--c-gi); }
.hero__title { color: var(--ink-strong); font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); margin: 0; font-family: var(--font-display); font-weight: 700; }
.hero__content .lead { color: var(--c-gi); }
.hero__rule { width: 168px; margin: var(--space-5) 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero__actions .btn--secondary { color: var(--c-white); border-color: rgba(244,241,234,0.5); }
.hero__actions .btn--secondary:hover { border-color: var(--accent); color: var(--c-white); }

@media (prefers-reduced-motion: no-preference) {
  .hero__rule { transform: scaleX(0); transform-origin: left; animation: belt-reveal 600ms var(--ease) 200ms forwards; }
}
@keyframes belt-reveal { to { transform: scaleX(1); } }
@media (max-width: 767px) { .hero { min-height: 460px; } }

/* Compact page hero (interior pages, no photo) */
.page-hero { background: var(--c-sumi); border-bottom: var(--border-hair); padding-block: var(--space-8); }
.page-hero .overline { margin-bottom: var(--space-3); }
.page-hero h1 { color: var(--ink-strong); max-width: 18ch; }
.page-hero .lead { color: var(--c-gi); max-width: 60ch; }
.page-hero .belt-rule { margin: var(--space-4) 0 var(--space-5); }

/* ============================================================
   Trust strip
   ============================================================ */

.trust-strip { padding-block: var(--space-5); border-block: var(--border-hair); }
.trust-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3) var(--space-4); font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--ink); text-align: center; }
.trust-strip__sep { width: 24px; height: 3px; background: var(--accent); display: inline-block; }
@media (max-width: 600px) { .trust-strip__sep { display: none; } .trust-strip__inner { flex-direction: column; gap: var(--space-2); } }

/* ============================================================
   Split feature (text + photo)
   ============================================================ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--border-hair); }
.split__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--accent); }
.split__body p { color: var(--ink); }
.split__body .belt-rule { margin-top: var(--space-3); margin-bottom: var(--space-5); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: var(--space-6); }
  .split--reverse .split__media { order: 0; }
}

/* ============================================================
   Class cards (age-banded)
   ============================================================ */

.card-grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }

.class-card {
  background: var(--surface); border: var(--border-hair);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.class-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.class-card .belt-rule { margin: 0 0 var(--space-2); }
.class-card__title { margin: 0; }
.class-card__who { color: var(--muted); font-weight: var(--fw-semibold); margin: 0; }
.class-card__times { list-style: none; margin: 0 0 var(--space-3); padding: 0; }
.class-card__times li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; border-bottom: var(--border-hair); margin: 0; }
.class-card__times li span:first-child { color: var(--muted); font-weight: var(--fw-bold); }
.class-card__times li:last-child { border-bottom: 0; }
.class-card .btn--ghost { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .class-card:hover { transform: none; } }

/* ============================================================
   Category / dojo cards
   ============================================================ */

.cat-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: var(--border-hair);
  transition: border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.cat-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.03); }
.cat-card__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--accent); }
.cat-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); }
.cat-card__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-h3); }
.cat-card__meta { color: var(--muted); font-size: var(--fs-small); margin: 0; }
.cat-card__cta { margin-top: var(--space-3); color: var(--accent); font-weight: var(--fw-bold); display: inline-flex; align-items: center; gap: var(--space-2); }
.cat-card:hover .cat-card__cta { color: var(--accent-hover); }
@media (prefers-reduced-motion: reduce) {
  .cat-card:hover { transform: none; }
  .cat-card:hover .cat-card__media img { transform: none; }
}

/* ============================================================
   Timetable
   ============================================================ */

.table-wrap { overflow-x: auto; border: var(--border-hair); }
.timetable { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.timetable caption { text-align: left; }
.timetable th, .timetable td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: var(--border-hair); vertical-align: top; }
.timetable thead th { background: var(--surface-2); color: var(--ink); font-weight: var(--fw-bold); border-bottom: var(--border-strong); position: sticky; top: 0; }
.timetable tbody th { font-weight: var(--fw-semibold); color: var(--ink); }
.timetable tbody td { color: var(--muted); }
.timetable tbody tr:hover { background: var(--accent-wash); }
.section--light .timetable tbody tr:hover { background: #F4ECEC; }
.timetable tbody tr:last-child th, .timetable tbody tr:last-child td { border-bottom: 0; }

.dojo-table { margin-bottom: var(--space-7); }
.dojo-table__head { margin-bottom: var(--space-4); }
.dojo-table__head h3 { margin-bottom: var(--space-2); }
.dojo-table__head p { color: var(--muted); font-size: var(--fs-small); margin: 0; }

/* ============================================================
   Establishment Declaration / blockquote
   ============================================================ */

.declaration { margin: var(--space-7) 0; padding-left: var(--space-6); border-left: 4px solid var(--accent); max-width: var(--container-text); }
.declaration p { font-family: var(--font-body); font-style: italic; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.declaration__cite { display: block; margin-top: var(--space-4); font-style: normal; font-weight: var(--fw-bold); color: var(--muted); font-size: var(--fs-small); }

/* ============================================================
   Instructor card
   ============================================================ */

.instructor { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-6); align-items: start; border-top: var(--border-hair); padding-top: var(--space-6); margin-bottom: var(--space-6); }
.instructor:first-of-type { border-top: 0; padding-top: 0; }
.instructor__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: var(--border-hair); }
.instructor__body .belt-rule { margin: var(--space-2) 0 var(--space-4); }
.instructor__body h3 { margin-bottom: var(--space-1); }
.instructor__placeholder {
  width: 100%; aspect-ratio: 4 / 5; border: var(--border-hair);
  background: var(--c-tatami); position: relative; overflow: hidden;
}
.instructor__placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 22px, var(--c-surface-2) 22px, var(--c-surface-2) 24px);
}
.instructor__placeholder::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--accent);
}
@media (max-width: 560px) {
  .instructor { grid-template-columns: 1fr; }
  .instructor__photo, .instructor__placeholder { max-width: 280px; }
}

/* ============================================================
   Steps (numbered, Start page)
   ============================================================ */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.steps li { margin: 0; border: var(--border-hair); background: var(--surface); padding: var(--space-6); position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--accent);
  display: block; margin-bottom: var(--space-3); line-height: 1;
}
.steps li .belt-rule { margin: var(--space-2) 0 var(--space-3); }
.steps h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.steps p { margin: 0; color: var(--ink); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Forms
   ============================================================ */

.form { display: grid; gap: var(--space-5); max-width: 560px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: var(--fw-bold); font-size: var(--fs-small); color: var(--ink); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: var(--space-3) var(--space-4);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); border-color: var(--accent);
}
.field__hint { color: var(--muted); margin: 0; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: var(--fs-xs); font-weight: var(--fw-bold); margin: 0; }

.form-confirm { border: 2px solid var(--ok); background: rgba(62,107,76,0.12); padding: var(--space-5); color: var(--ink); margin-bottom: var(--space-5); }
.form-confirm__title { font-family: var(--font-display); font-size: var(--fs-h3); margin: 0 0 var(--space-2); }
.form-confirm p { margin: 0; }
.form-confirm[hidden] { display: none; }

/* ============================================================
   Contact details list
   ============================================================ */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.contact-list li { display: flex; align-items: flex-start; gap: var(--space-4); margin: 0; }
.contact-list svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.contact-list__label { display: block; font-size: var(--fs-small); color: var(--muted); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: var(--fw-semibold); }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

/* ============================================================
   Map placeholder (no live embed in static mockup)
   ============================================================ */

.map-figure { margin: 0; border: var(--border-hair); background: var(--surface); }
.map-figure__canvas {
  position: relative; aspect-ratio: 16 / 9; background: var(--c-tatami); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.map-figure__canvas::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-surface-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-surface-2) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.6;
}
.map-figure__pin {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  text-align: center; color: var(--ink); padding: var(--space-5);
}
.map-figure__pin svg { color: var(--accent); }
.map-figure__pin strong { font-family: var(--font-display); font-size: var(--fs-h4); }
.map-figure figcaption { padding: var(--space-4) var(--space-5); border-top: var(--border-hair); color: var(--muted); font-size: var(--fs-small); }
.map-figure figcaption a { color: var(--accent); }

/* Multi-pin map (overview/contact) */
.map-figure__multi { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: center; padding: var(--space-6); }
.map-figure__multi .map-figure__pin { padding: 0; }

/* ============================================================
   Callout / CTA band
   ============================================================ */

.cta-band { background: var(--accent-wash); border-block: 4px solid var(--accent); }
.cta-band .container { text-align: center; }
.cta-band h2 { color: var(--ink-strong); }
.cta-band p { margin-inline: auto; color: var(--c-gi); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-5); }
.cta-band__phone { color: var(--c-gi); font-size: var(--fs-small); margin-top: var(--space-4); }
.cta-band__phone a { color: var(--c-white); font-weight: var(--fw-bold); }

/* ============================================================
   Breadcrumbs
   ============================================================ */

.breadcrumbs { font-size: var(--fs-small); margin-bottom: var(--space-4); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--space-2); color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--muted); }
.breadcrumbs a { color: var(--c-gi); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--muted); }

/* ============================================================
   Prose blocks
   ============================================================ */

.prose { max-width: var(--container-text); }
.prose h2 { margin-top: var(--space-7); }
.prose h2:first-child { margin-top: 0; }
.prose h2 + .belt-rule { margin-bottom: var(--space-5); }
.prose ul { padding-left: var(--space-5); }
.prose ul li { margin-bottom: var(--space-3); }

.cred-list { list-style: none; padding: 0; max-width: var(--container-text); }
.cred-list li { margin-bottom: var(--space-4); padding-left: var(--space-5); position: relative; }
.cred-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 4px; background: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--c-sumi); color: var(--c-gi); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-7); padding-block: var(--space-8); }
.footer-col__lede { color: var(--c-ash); max-width: 36ch; }
.footer-col .xs { color: var(--c-ash); }
.footer-col img { margin-bottom: var(--space-3); }
.footer-col__title { font-family: var(--font-body); font-size: var(--fs-h6); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ash); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col li { margin: 0; }
.footer-col a { display: inline-flex; min-height: 44px; align-items: center; color: var(--c-gi); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { border-top: var(--border-hair); padding-block: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); justify-content: space-between; }
.site-footer__bottom p { color: var(--c-ash); margin: 0; max-width: none; }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Scroll reveal (one allowed effect)
   ============================================================ */

.reveal { opacity: 0; transform: translateY(8px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive type drops
   ============================================================ */

@media (max-width: 1279px) {
  :root {
    --fs-display: 3.5rem;  /* 56px */
    --fs-h1: 2.625rem;     /* 42px */
    --fs-h2: 1.9375rem;    /* 31px */
    --fs-h3: 1.375rem;     /* 22px */
    --fs-h4: 1.1875rem;    /* 19px */
    --fs-lead: 1.3125rem;  /* 21px */
  }
}

@media (max-width: 767px) {
  :root {
    --fs-display: 2.5rem;  /* 40px */
    --fs-h1: 2rem;         /* 32px */
    --fs-h2: 1.625rem;     /* 26px */
    --fs-h3: 1.25rem;      /* 20px */
    --fs-h4: 1.125rem;     /* 18px */
    --fs-lead: 1.1875rem;  /* 19px */
    --fs-body: 1.0625rem;  /* 17px */
    --fs-small: 0.875rem;  /* 14px */
    --gutter: 16px;
  }
  .section { padding-block: var(--space-7); }
  .section--tight { padding-block: var(--space-7); }
}

@media (max-width: 479px) {
  :root {
    --fs-display: 2.0625rem; /* 33px */
    --fs-h1: 1.75rem;        /* 28px */
    --fs-h2: 1.5rem;         /* 24px */
    --fs-h3: 1.1875rem;      /* 19px */
    --fs-body: 1rem;         /* 16px */
  }
}

/* ============================================================
   Print
   ============================================================ */

@media print {
  .site-header, .nav-toggle, .hero__media, .hero__scrim, .form, .nav-cta, .skip-link, .cta-band__actions, .map-figure__canvas { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .page-hero, .cta-band { background: #fff !important; }
  .hero__title, .hero__content .lead, .page-hero h1, .page-hero .lead, .cta-band h2, .cta-band p { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .belt-rule, .section-divider { background: #000 !important; background-image: none !important; }
  .timetable th, .timetable td { border-color: #000; }
}
