/* ==========================================================================
   The Glasgow Karate-do Shoto Association
   Tokens: ink (sumi black), gi (cool bone white), tomoe (logo yellow),
   seal (hanko red), sea (Islay slate). Display: DM Serif Display. Body: Archivo.
   ========================================================================== */

:root {
  --ink: #0E0F12;
  --ink-2: #16181D;
  --ink-3: #22252B;
  --gi: #F1F2F0;
  --gi-2: #E6E7E3;
  --tomoe: #F2C11D;
  --tomoe-deep: #D9A800;
  --seal: #B5271E;
  --sea: #2E3E4A;
  --stone: #5C6167;
  --mist: #A9AEB4;
  --line: rgba(14, 15, 18, .14);
  --line-light: rgba(241, 242, 240, .16);

  --display: "DM Serif Display", "Georgia", "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --header-h: 96px;
  --header-h-small: 64px;
  --gutter: clamp(20px, 4vw, 64px);
  --wrap: 1480px;

  --fs-display: clamp(2.4rem, 5.2vw, 4.9rem);
  --fs-h1: clamp(2.8rem, 6.6vw, 6.4rem);
  --fs-lede: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-body: clamp(1rem, 1.05vw, 1.125rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.motion { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--gi);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--tomoe); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: 8px; z-index: 100;
  background: var(--tomoe); color: var(--ink); padding: .6rem 1rem;
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 400; }
.lede { font-size: var(--fs-lede); line-height: 1.5; }
p + p { margin-top: 1em; }

/* Heading mask padding: SplitText line masks are exactly one line box tall,
   so descenders and italic tails get clipped. Pad the mask outward and pull
   it back with negative margins so the layout does not move. */
.mask, .line-mask { padding: .34em .2em .34em; margin: -.34em -.2em -.34em; }

/* --- Buttons --------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: color .35s var(--ease-out), border-color .35s, transform .35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateX(-101%); transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover { transform: translateY(-2px); }
.btn--tomoe { background: var(--tomoe); color: var(--ink); }
.btn--tomoe::before { background: var(--gi); }
.btn--ink { background: var(--ink); color: var(--gi); }
.btn--ink::before { background: var(--tomoe); }
.btn--ink:hover { color: var(--ink); }
.btn--ghost { border: 1px solid rgba(241, 242, 240, .5); color: var(--gi); }
.btn--ghost::before { background: var(--gi); }
.btn--ghost:hover { color: var(--ink); border-color: var(--gi); }

/* --- Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--gi); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
  transition: height .45s var(--ease-out);
}
.site-header.is-small .site-header__inner { height: var(--header-h-small); }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand__mark { width: auto; height: 70px; transition: height .45s var(--ease-out); }
.site-header.is-small .brand__mark { height: 46px; }
.brand__name {
  display: flex; flex-direction: column; font-family: var(--display);
  font-size: 1.15rem; line-height: 1.05; letter-spacing: -.01em;
}
.brand__name span:first-child { font-size: .78em; font-style: italic; color: var(--stone); }
.nav__list { display: flex; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.nav__list a {
  position: relative; text-decoration: none; font-size: .92rem; font-weight: 500; padding: .4rem 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tomoe);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a:focus-visible::after { transform: none; }
.burger {
  display: none; width: 44px; height: 44px; position: relative; margin-left: auto;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--gi);
  padding-top: var(--header-h-small);
  overflow: auto;
}
.menu__inner { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: 8vh 0 6vh; display: flex; flex-direction: column; gap: 2rem; min-height: 100%; }
.menu__list a {
  display: block; font-family: var(--display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.15;
  text-decoration: none; padding: .1em 0; border-bottom: 1px solid var(--line-light);
}
.menu__motto { margin-top: auto; font-family: var(--jp); color: var(--mist); font-size: 1.1rem; letter-spacing: .2em; }

/* --- Hero ------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink);
  padding-bottom: clamp(24px, 4.5vw, 64px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; will-change: transform; backface-visibility: hidden; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 15, 18, .78) 0%, rgba(14, 15, 18, .45) 42%, rgba(14, 15, 18, .05) 75%),
    linear-gradient(180deg, rgba(14, 15, 18, .15) 0%, rgba(14, 15, 18, 0) 35%, rgba(14, 15, 18, .85) 100%);
}
.hero__inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(2rem, 4vh, 3rem);
}
.hero__title {
  font-family: var(--display); font-weight: 400; font-size: var(--fs-h1);
  line-height: 1; letter-spacing: -.015em; max-width: 20ch;
  text-shadow: 0 2px 30px rgba(14, 15, 18, .45);
}
.hero__title em { font-style: italic; position: relative; white-space: nowrap; }
.hero__lead { max-width: 58ch; margin-top: 1.6rem; font-size: var(--fs-lede); line-height: 1.5; color: rgba(241, 242, 240, .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__motto {
  display: flex; flex-direction: row-reverse; gap: .45em; align-self: end;
  font-family: var(--jp); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  color: var(--gi); text-shadow: 0 2px 24px rgba(14, 15, 18, .6);
  margin-left: 2rem; padding-bottom: .5rem;
}
.hero__motto-col { display: flex; flex-direction: column; align-items: center; }
.hero__motto-col:last-child { padding-top: 2.4em; }
.hero__motto-col span { line-height: 1.15; }
.hero__facts {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: .5rem 2.4rem;
  padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--line-light);
  font-size: .85rem; color: rgba(241, 242, 240, .78);
}
.hero__facts li { display: flex; align-items: center; gap: .6rem; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tomoe); }

/* --- Shared section chrome ------------------------------------------- */
section { position: relative; }
.brush {
  position: absolute; left: -2%; top: 0; width: 104%; height: clamp(34px, 5.5vw, 84px);
  transform: translateY(-62%); pointer-events: none; z-index: 2;
  background: var(--gi);
  -webkit-mask: url("../img/brush.png") center / 100% 100% no-repeat;
  mask: url("../img/brush.png") center / 100% 100% no-repeat;
}
.brush--ink { background: var(--ink); }

/* Frames: no image sits alone. */
.frame { position: relative; }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }
.frame__in { position: absolute; inset: 0; overflow: hidden; }
.frame__in > img, .frame__in > video { width: 100%; height: 100%; object-fit: cover; }
.frame--tomoe::after, .frame--offset::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  border: 2px solid var(--tomoe); transform: translate(14px, 14px);
}
.frame--offset::after { border-color: var(--ink); }
.frame-wrap { position: relative; }

/* --- About ----------------------------------------------------------- */
.about { background: var(--gi); color: var(--ink); padding: clamp(5rem, 10vw, 9rem) 0 0; }
.about__title { max-width: none; }
.about__cols {
  display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.about__cols p { color: #2A2D33; font-size: var(--fs-lede); line-height: 1.55; }
.about__ages { display: flex; gap: 2.5rem; justify-content: flex-end; }
.about__age { display: flex; flex-direction: column; align-items: center; }
.about__age b {
  font-family: var(--display); font-weight: 400; font-size: clamp(4rem, 7vw, 7rem); line-height: .9; letter-spacing: -.03em;
}
.about__age sup { font-size: .4em; vertical-align: top; position: relative; top: .3em; color: var(--tomoe-deep); }
.about__age small { font-size: .8rem; color: var(--stone); margin-top: .6rem; }
.panorama { margin-top: clamp(3rem, 6vw, 5rem); overflow: hidden; position: relative; background: var(--ink); }
.panorama__track { width: 100%; }
.panorama__track img { width: 100%; height: auto; }
.motion .panorama__track { width: max-content; }
.motion .panorama__track img { width: auto; height: clamp(320px, 42vw, 640px); max-width: none; }
.panorama__caption {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: flex; justify-content: space-between; gap: 2rem; padding: 1rem 0 1.2rem;
  color: var(--mist); font-size: .85rem;
}
.panorama__caption span:first-child { color: var(--tomoe); }

/* --- Training -------------------------------------------------------- */
.training { background: var(--ink); color: var(--gi); padding: clamp(6rem, 12vw, 10rem) 0 clamp(3rem, 5vw, 5rem); }
.training__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.training__media { position: sticky; top: calc(var(--header-h-small) + 2rem); }
.training__media .frame { aspect-ratio: 4 / 3; }
.training__kanji {
  position: absolute; right: -.1em; bottom: -.25em; z-index: 2; pointer-events: none;
  font-family: var(--jp); font-weight: 500; font-size: clamp(5rem, 11vw, 11rem); line-height: 1; color: var(--tomoe);
  writing-mode: vertical-rl; text-orientation: upright; white-space: nowrap; height: 2.3em; width: 1.1em;
}
.training__kanji span { position: absolute; right: 0; bottom: 0; opacity: 0; transition: opacity .5s; white-space: nowrap; }
.training__kanji span.is-on { opacity: 1; }
.training__copy .lede { margin-top: 1.6rem; color: rgba(241, 242, 240, .9); }
.training__copy p { color: rgba(241, 242, 240, .82); }
.training__intro { margin-top: 2.5rem !important; color: var(--tomoe) !important; font-weight: 500; }
.areas { margin-top: 1rem; border-top: 1px solid var(--line-light); }
.areas__item {
  display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.2rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line-light);
}
.areas__num { font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--tomoe); padding-top: .1em; }
.areas__item h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; }
.areas__item p { margin-top: .4rem; color: var(--mist); }
.areas__jp { font-family: var(--jp); font-size: 1.3rem; color: var(--mist); padding-top: .3em; }

/* --- Creed ----------------------------------------------------------- */
.creed { background: var(--ink); color: var(--gi); overflow: hidden; isolation: isolate; padding: clamp(5rem, 11vw, 9rem) 0 clamp(6rem, 12vw, 10rem); }
.creed__bg { position: absolute; inset: -12% 0; z-index: -2; }
.creed__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); opacity: .75; }
.creed__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(14, 15, 18, .42) 28%, rgba(14, 15, 18, .42) 72%, var(--ink) 100%); }
.creed__inner { display: flex; flex-direction: column; gap: clamp(1.2rem, 2.5vw, 2rem); }
.creed__line { font-size: clamp(1.9rem, 4.2vw, 4rem); max-width: none; }
.creed__line--quote { color: var(--tomoe); }
.creed__note { max-width: none; color: rgba(241, 242, 240, .8); font-size: var(--fs-lede); margin-top: 1rem; columns: 2; column-gap: 3rem; }

/* --- Classes --------------------------------------------------------- */
.classes { background: var(--gi); color: var(--ink); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem); }
.classes__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; }
.classes__head .lede { color: #2A2D33; }
.classes__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2.5rem, 5vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.timetable { border-top: 2px solid var(--ink); }
.timetable__day { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.timetable__day h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1; padding-top: .1em; }
.timetable__day ul { display: flex; flex-direction: column; gap: .7rem; }
.timetable__day li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1rem; align-items: baseline; }
.timetable__day time { font-variant-numeric: tabular-nums; font-weight: 500; }
.timetable__venue { font-size: .8rem; font-weight: 500; letter-spacing: .02em; padding: .3rem .7rem; border-radius: 999px; background: var(--ink); color: var(--gi); white-space: nowrap; }
.venues { position: sticky; top: calc(var(--header-h-small) + 2rem); }
.venues__image { aspect-ratio: 4 / 3; }
.venues__list { margin-top: 2.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.venues__list li { display: flex; flex-direction: column; gap: .2rem; padding-left: 1rem; border-left: 2px solid var(--tomoe); }
.venues__list strong { font-weight: 600; }
.venues__list span { color: var(--stone); font-size: .92rem; }

/* --- Courses --------------------------------------------------------- */
.courses { background: var(--sea); color: var(--gi); overflow: hidden; isolation: isolate; padding: clamp(5rem, 10vw, 8rem) 0 clamp(6rem, 11vw, 9rem); }
.courses__bg { position: absolute; inset: -10% 0; z-index: -2; }
.courses__bg img { width: 100%; height: 100%; object-fit: cover; }
.courses__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(46, 62, 74, .92) 0%, rgba(46, 62, 74, .72) 50%, rgba(46, 62, 74, .35) 100%); }
.courses__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
.courses__copy .lede { margin-top: 1.4rem; color: rgba(241, 242, 240, .88); }
.courses__list { display: flex; flex-direction: column; gap: 1.5rem; }
.course { padding: 1.8rem; background: rgba(14, 15, 18, .42); backdrop-filter: blur(6px); border-left: 3px solid var(--tomoe); }
.course__date { display: block; font-size: .85rem; color: var(--tomoe); font-weight: 500; letter-spacing: .02em; }
.course h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.05; margin-top: .4rem; }
.course p { margin-top: .8rem; color: rgba(241, 242, 240, .85); }

/* --- Instructors ----------------------------------------------------- */
.instructors { background: var(--ink); color: var(--gi); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem); }
.instructors__head { display: grid; grid-template-columns: auto 1fr; gap: 2rem 4rem; align-items: end; }
.instructors__head .display { white-space: nowrap; }
.instructors__head .lede { color: rgba(241, 242, 240, .85); }
.chief { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: center; }
.chief__photo { aspect-ratio: 8 / 7; }
.chief__photo img { object-position: 50% 30%; }
.chief__copy h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.chief__role { margin-top: 1rem; color: var(--tomoe); font-weight: 500; }
.chief__copy > p:not(.chief__role) { color: rgba(241, 242, 240, .85); font-size: var(--fs-lede); }
.archive { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; align-items: center; margin-top: 2.2rem; padding: 1rem; border: 1px solid var(--line-light); }
.archive img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: sepia(.2); }
.archive figcaption { font-size: .9rem; color: var(--mist); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2vw, 2rem); margin-top: clamp(3rem, 6vw, 5rem); }
.team__card h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; margin-top: 1rem; }
.team__card p { margin-top: .4rem; color: var(--mist); font-size: .92rem; line-height: 1.45; }
.team__photo { aspect-ratio: 3 / 4; overflow: hidden; position: relative; background: var(--ink-2); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.35); transition: filter .6s, transform 1.2s var(--ease-out); }
.team__card:hover .team__photo img { filter: none; transform: scale(1.04); }
.team__photo--mark::before {
  content: ""; position: absolute; inset: 18%; background: url("../img/logo-large.png") center / contain no-repeat;
  filter: grayscale(1); opacity: .16;
}
.team__card--cta { display: flex; flex-direction: column; justify-content: flex-end; background: var(--tomoe); color: var(--ink); padding: 1.6rem; aspect-ratio: 3 / 4; }
.team__card--cta h3 { margin-top: 0; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.05; }
.team__card--cta p { color: rgba(14, 15, 18, .75); }
.team__card--cta .btn { margin-top: 1.2rem; align-self: flex-start; }
.team__photo--mark::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 1rem; height: 2px; background: var(--tomoe);
}

/* --- Gallery --------------------------------------------------------- */
.gallery { background: var(--ink); color: var(--gi); }
.gallery__stage { position: relative; }
.gallery__slides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.gallery__slide { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide p {
  position: absolute; left: 1.2rem; bottom: 1rem; font-family: var(--display); font-size: 1.4rem;
  text-shadow: 0 2px 16px rgba(14, 15, 18, .8);
}
.gallery__ui { display: none; }
.motion .gallery { height: calc(var(--slides, 8) * 80vh + 100vh); }
.motion .gallery__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.motion .gallery__slides { display: block; position: absolute; inset: 0; }
.motion .gallery__slide { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; }
.motion .gallery__slide img { object-position: 50% 30%; will-change: transform; }
.motion .gallery__slide p { left: var(--gutter); bottom: 5.5rem; font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.motion .gallery__ui { display: block; position: absolute; inset: 0; pointer-events: none; }
.gallery__head {
  position: absolute; left: 0; right: 0; top: 0; padding: calc(var(--header-h-small) + clamp(1.5rem, 4vh, 3rem)) var(--gutter) 6rem;
  background: linear-gradient(180deg, rgba(14, 15, 18, .75), rgba(14, 15, 18, 0));
}
.gallery__head .display { font-size: clamp(1.9rem, 3.6vw, 3.4rem); max-width: 18ch; }
.gallery__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 3rem; height: 2px; background: rgba(241, 242, 240, .25); }
.gallery__progress span { display: block; height: 100%; width: 0; background: var(--tomoe); }
.gallery__dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: .7rem; pointer-events: auto; }
.gallery__dots button { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(241, 242, 240, .7); transition: background .3s, transform .3s; }
.gallery__dots button.is-active { background: var(--tomoe); border-color: var(--tomoe); transform: scale(1.25); }
.gallery__count { position: absolute; right: var(--gutter); bottom: 4rem; font-family: var(--display); font-size: 1.4rem; display: flex; gap: .5rem; align-items: baseline; }
.gallery__count .gallery__total { font-size: .8em; color: var(--mist); }
.gallery__count .gallery__total::before { content: "/ "; }

/* --- Join ------------------------------------------------------------ */
.join { background: var(--gi); color: var(--ink); overflow: hidden; padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem); }
.join__mark { position: absolute; right: -14vw; top: -6vw; width: 58vw; pointer-events: none; opacity: .14; z-index: 0; }
.join__mark img { width: 100%; height: auto; }
.join__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
.join__copy .lede { margin-top: 1.6rem; color: #2A2D33; }
.join__copy p { color: #2A2D33; }
.join__copy .btn { margin-top: 2rem; }
.join__image { aspect-ratio: 3 / 4; max-width: 520px; justify-self: end; width: 100%; }
.fees { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.fee { padding: 1.8rem 1.8rem 2rem; background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.fee::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--tomoe); }
.fee h3 { font-weight: 500; font-size: 1rem; letter-spacing: .01em; color: var(--stone); }
.fee__price { margin-top: .8rem; display: flex; align-items: baseline; gap: .5rem; color: var(--stone); }
.fee__price span { font-family: var(--display); font-size: clamp(2.6rem, 3.6vw, 3.6rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.fee > p:last-child { margin-top: .9rem; color: #2A2D33; }

/* --- FAQ ------------------------------------------------------------- */
.faq { background: var(--ink-2); color: var(--gi); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem); }
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: start; }
.faq__media { position: sticky; top: calc(var(--header-h-small) + 2rem); }
.faq__media .frame { aspect-ratio: 4 / 5; }
.faq__copy .display { font-size: clamp(2.2rem, 4.2vw, 4rem); }
.accordion { margin-top: 2.5rem; border-top: 1px solid var(--line-light); }
.accordion__item { border-bottom: 1px solid var(--line-light); }
.accordion__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.3rem 0; font-family: var(--display); font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.2;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--tomoe), var(--tomoe)) center / 14px 2px no-repeat, linear-gradient(var(--tomoe), var(--tomoe)) center / 2px 14px no-repeat;
  transition: transform .4s var(--ease-out);
}
.accordion__item[open] summary::after { transform: rotate(45deg); }
.accordion__body { overflow: hidden; }
.accordion__body p { padding: 0 0 1.5rem; color: rgba(241, 242, 240, .82); max-width: none; }

/* --- Contact --------------------------------------------------------- */
.contact { background: var(--tomoe); color: var(--ink); padding: clamp(5rem, 10vw, 8rem) 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: center; }
.contact__inner .display { grid-row: span 2; }
.contact__inner .lede { color: rgba(14, 15, 18, .8); }
.contact__email {
  font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2.6rem); line-height: 1.1; text-decoration: none;
  overflow-wrap: anywhere; border-bottom: 2px solid var(--ink); align-self: start; justify-self: start;
  transition: border-color .3s, color .3s;
}
.contact__email:hover { color: var(--gi); border-color: var(--gi); }

/* --- Footer ---------------------------------------------------------- */
.footer { background: var(--ink); color: var(--mist); padding: clamp(4rem, 7vw, 6rem) 0 2rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer__brand p { margin-top: 1.2rem; }
.footer__brand strong { color: var(--gi); font-weight: 500; }
.footer__plate { display: inline-flex; padding: 12px; background: var(--gi); border-radius: 50%; }
.footer__plate img { height: 84px; width: auto; }
.footer__motto { font-family: var(--jp); letter-spacing: .15em; }
.footer__col h3 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--gi); margin-bottom: 1rem; }
.footer__col li + li { margin-top: .5rem; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--tomoe); }
.footer__bmaba { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.4rem; }
.footer__bmaba img { flex: none; width: 34px; height: auto; margin-top: .1rem; }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-light); font-size: .85rem; }
.footer__base a { color: var(--gi); text-decoration: none; border-bottom: 1px solid var(--tomoe); }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .site-header__cta { display: none; }
  .burger { display: block; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 76px; --header-h-small: 60px; }
  .brand__mark { height: 56px; }
  .site-header.is-small .brand__mark { height: 42px; }
  .brand__name { font-size: 1rem; }
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero__inner { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero__title { max-width: none; font-size: clamp(2.8rem, 12.5vw, 4.5rem); }
  .hero__title em { white-space: normal; }
  .hero__motto { position: absolute; right: var(--gutter); top: 1.5rem; font-size: 1.15rem; margin: 0; opacity: .9; }
  .hero__motto-col:last-child { padding-top: 1.6em; }
  .hero__facts { gap: .4rem 1.4rem; font-size: .8rem; }
  .about__cols { grid-template-columns: 1fr; }
  .about__ages { justify-content: flex-start; }
  .training__grid, .classes__grid, .courses__inner, .chief, .join__grid, .faq__grid, .contact__inner { grid-template-columns: 1fr; }
  .training__media, .venues, .faq__media { position: relative; top: auto; }
  .training__kanji { font-size: clamp(3.4rem, 13vw, 5.4rem); right: .2em; }
  .creed__note { columns: 1; }
  .classes__head, .instructors__head { grid-template-columns: 1fr; align-items: start; }
  .instructors__head .display { white-space: normal; }
  .timetable__day { grid-template-columns: 1fr; gap: .8rem; }
  .timetable__day li { grid-template-columns: 1fr; gap: .15rem; }
  .timetable__venue { justify-self: start; }
  .venues__list { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .join__image { justify-self: start; max-width: none; }
  .join__mark { width: 90vw; right: -30vw; top: 30%; }
  .fees { grid-template-columns: 1fr; }
  .contact__inner .display { grid-row: auto; }
  .contact__email { font-size: clamp(1.1rem, 5.6vw, 1.5rem); }
  .gallery__slides { grid-template-columns: 1fr; }
  .team__card--cta { aspect-ratio: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .motion .gallery { height: calc(var(--slides, 8) * 70vh + 100vh); }
  .motion .gallery__slide p { bottom: 6rem; }
  .gallery__head { padding-bottom: 4rem; }
  .gallery__count { bottom: 4.2rem; }
}
@media (max-width: 480px) {
  .brand__name { display: none; }
  .hero__actions .btn { width: 100%; }
  .archive { grid-template-columns: 110px 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .team__card h3 { font-size: 1.25rem; }
}

/* --- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
