/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:          #0a0a0a;
  --surface:     #121212;
  --surface-2:   #1a1a1a;
  --surface-3:   #242424;
  --red:         #c8102e;
  --red-dark:    #9e0d22;
  --red-glow:    rgba(200, 16, 46, 0.25);
  --gold:        #d4af37;
  --gold-light:  #e8c96a;
  --white:       #f0f0f0;
  --grey-lt:     #aaaaaa;
  --grey:        #666666;
  --border:      rgba(255, 255, 255, 0.07);
  --border-md:   rgba(255, 255, 255, 0.12);

  --font-disp: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-jp:   'Noto Serif JP', serif;

  --max-w:    1200px;
  --nav-h:    72px;
  --r:        8px;
  --r-lg:     16px;
  --r-xl:     24px;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --t:        0.3s var(--ease);
  --shadow:   0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg:0 12px 48px rgba(0, 0, 0, 0.65);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; }

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.875rem;
}
.label::before, .label::after {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--red);
}

.heading {
  font-family: var(--font-disp);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.0;
  margin-bottom: 1rem;
}

.subheading {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--grey-lt);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.625rem;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.btn--lg { padding: 0.9375rem 2.25rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--primary:hover {
  background: #e01535;
  border-color: #e01535;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--red-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.badge--green { background: rgba(80,180,80,0.15); color: #6dca6d; border: 1px solid rgba(80,180,80,0.2); }
.badge--blue  { background: rgba(70,130,255,0.15); color: #708fff; border: 1px solid rgba(70,130,255,0.2); }
.badge--red   { background: rgba(200,16,46,0.15);  color: #e85070; border: 1px solid rgba(200,16,46,0.2); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}
.nav__logo-jp {
  font-family: var(--font-jp);
  font-size: 1.375rem;
  color: var(--red);
  line-height: 1;
}
.nav__logo-text {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--white);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
}
.nav__menu a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  color: var(--grey-lt);
  border-radius: 6px;
  transition: color var(--t);
  position: relative;
}
.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__menu a:hover { color: var(--white); }
.nav__menu a:hover::after { transform: scaleX(1); }

.nav__cta { margin-left: 0.5rem; font-size: 0.875rem; padding: 0.5rem 1.125rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 65% 45%, rgba(200,16,46,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 5% 85%,  rgba(200,16,46,0.07) 0%, transparent 60%);
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: 0.65; }
  to   { opacity: 1; }
}

.hero__kanji {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(160px, 28vw, 420px);
  line-height: 1;
  writing-mode: vertical-rl;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.035);
  user-select: none;
  will-change: transform;
}

.hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5rem 0 6rem;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--red);
}

.hero__title {
  font-family: var(--font-disp);
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 0.92;
  margin-bottom: 1.75rem;
  max-width: 14ch;
  letter-spacing: 0.01em;
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--red); }

.hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: var(--grey-lt);
  max-width: 52ch;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong {
  font-family: var(--font-disp);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.hero__stat span {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  margin-top: 0.2rem;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-md);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
}
.hero__scroll-indicator span {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--grey), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: clamp(5rem, 9vw, 9rem) 0; }

/* ============================================================
   HERO — tighter title font for longer lines
   ============================================================ */
.hero__title {
  font-size: clamp(2.75rem, 7vw, 6.25rem);
  max-width: none;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--surface); }

.about__layout {
  max-width: 860px;
  margin: 0 auto;
}

.about__content > *:not(:last-child) { margin-bottom: 1.5rem; }

.about__lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.7;
}

.about__body {
  color: var(--grey-lt);
  line-height: 1.8;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
.about__value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: border-color var(--t), transform var(--t);
}
.about__value:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
}
.about__value-kanji {
  font-family: var(--font-jp);
  font-size: 1.75rem;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
}
.about__value h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.about__value p {
  font-size: 0.8125rem;
  color: var(--grey-lt);
  line-height: 1.6;
}

/* ============================================================
   ABOUT — affiliations
   ============================================================ */
.about__affiliations {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.about__affiliations-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.75rem;
}
.about__affils {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.affil {
  font-size: 0.8rem;
  color: var(--grey-lt);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.875rem;
  white-space: nowrap;
  transition: border-color var(--t), color var(--t);
}
.affil:hover {
  border-color: rgba(200,16,46,0.35);
  color: var(--white);
}

/* ============================================================
   WHAT IS KARATE
   ============================================================ */
.karate-meaning { background: var(--bg); }

.karate-chars {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 3rem;
}

.karate-char {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 2.5rem 1rem;
  border-right: 1px solid var(--border);
  transition: background var(--t);
}
.karate-char:hover { background: rgba(200,16,46,0.05); }
.karate-char--result {
  flex: 1.6;
  background: rgba(200,16,46,0.07);
  border-right: none;
}
.karate-char--result:hover { background: rgba(200,16,46,0.12); }

.karate-char__jp {
  display: block;
  font-family: var(--font-jp);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.karate-char--result .karate-char__jp {
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: var(--gold);
}

.karate-char__roman {
  display: block;
  font-family: var(--font-disp);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--white);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.karate-char__meaning {
  display: block;
  font-size: 0.6875rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.karate-char__symbol {
  font-family: var(--font-disp);
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--grey);
  padding: 0 0.5rem;
  flex-shrink: 0;
}
.karate-char__symbol--eq { color: var(--gold-light); }

.karate-quote {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.karate-quote p {
  font-family: var(--font-jp);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--white);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  font-style: italic;
}
.karate-quote cite {
  font-size: 0.8125rem;
  color: var(--grey);
  font-style: normal;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  transition: transform var(--t), border-color var(--t);
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(212,175,55,0.3);
}
.pillar__jp {
  font-family: var(--font-jp);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
  line-height: 1;
  display: block;
}
.pillar h3 {
  font-family: var(--font-disp);
  font-size: 1.625rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--grey-lt);
  line-height: 1.75;
}

/* ============================================================
   CLASSES — 3-column layout
   ============================================================ */
.classes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.class-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.class-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200,16,46,0.35);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,16,46,0.12);
}
.class-card--featured {
  background: linear-gradient(145deg, rgba(200,16,46,0.1) 0%, var(--surface) 60%);
  border-color: rgba(200,16,46,0.3);
}

.class-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
}
.class-card__icon { font-size: 2.25rem; margin-bottom: 1rem; line-height: 1; }
.class-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.class-card__age { font-size: 0.8125rem; color: var(--gold); font-weight: 600; margin-bottom: 1rem; }
.class-card > p { color: var(--grey-lt); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.25rem; }

.class-card__list { display: flex; flex-direction: column; gap: 0.5rem; }
.class-card__list li {
  font-size: 0.875rem;
  color: var(--grey);
  padding-left: 1.25rem;
  position: relative;
}
.class-card__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.7rem;
  top: 0.15em;
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule { background: var(--surface); }

.schedule__wrapper {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.schedule__table-wrap { overflow-x: auto; }

.schedule__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
.schedule__table th {
  background: var(--surface-3);
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--border);
}
.schedule__table td {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
  vertical-align: middle;
}
.schedule__table tr:last-child td { border-bottom: none; }
.schedule__table tr:hover td { background: rgba(255,255,255,0.02); }
.schedule__table td:first-child { font-weight: 600; color: var(--white); }
.schedule__table td:nth-child(2) { color: var(--grey-lt); }
.schedule__table td:nth-child(3) { color: var(--white); }

.schedule__note {
  padding: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--grey);
  border-top: 1px solid var(--border);
  background: var(--surface-3);
  text-align: center;
}

/* ============================================================
   INSTRUCTORS
   ============================================================ */

/* ── Grid — chief spans full width, senpais share one row ── */
.instructors__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ── Base card — horizontal (photo left, info right) ── */
.instructor-card {
  display: flex;
  flex-direction: row;
  min-height: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.instructor-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

/* ── Photo strip ── */
.instructor-card__photo {
  width: 200px;
  flex-shrink: 0;
  align-self: stretch;
  background: #111;
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.instructor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(1.05) contrast(1.05);
}

/* ── Info panel ── */
.instructor-card__info {
  flex: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.instructor-card__info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.instructor-card__rank {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.875rem;
}
.instructor-card__info > p {
  font-size: 0.875rem;
  color: var(--grey-lt);
  line-height: 1.75;
}

/* ── Header row: name block + badge ── */
.instructor-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}
.instructor-card__chief-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: flex-start;
}

/* ── Chief card — full width, wider photo, red accent ── */
.instructor-card--chief {
  grid-column: 1 / -1;
  min-height: 340px;
  background: linear-gradient(to right, rgba(200,16,46,0.06) 0%, var(--surface) 45%);
  border-color: rgba(200,16,46,0.35);
}
.instructor-card--chief:hover {
  border-color: rgba(200,16,46,0.55);
}
.instructor-card--chief .instructor-card__photo {
  width: 280px;
  border-right-color: rgba(200,16,46,0.2);
}
.instructor-card--chief .instructor-card__info {
  padding: 2rem 2.5rem;
}
.instructor-card--chief .instructor-card__info h3 { font-size: 1.375rem; }
.instructor-card--chief .instructor-card__info > p { font-size: 0.9375rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--surface); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
}
.gallery__item {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform var(--t), border-color var(--t);
}
.gallery__item:hover {
  transform: scale(1.025);
  border-color: rgba(200,16,46,0.3);
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__placeholder span {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: rgba(255,255,255,0.08);
  user-select: none;
}

.gallery__cta {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--grey);
}
.gallery__cta a { color: var(--red); transition: color var(--t); }
.gallery__cta a:hover { color: #e01535; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact__item {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.contact__item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.contact__item h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 0.3rem;
}
.contact__item p, .contact__item a { font-size: 0.9375rem; color: var(--white); line-height: 1.5; }
.contact__item a:hover { color: var(--red); }

.contact__osu {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-top: 0.5rem;
}
.contact__osu-jp {
  font-family: var(--font-jp);
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
}
.contact__osu p {
  font-size: 0.875rem;
  color: var(--grey-lt);
  line-height: 1.65;
}

/* Form */
.contact__form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group:last-of-type { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey-lt);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.form-optional { font-weight: 400; color: var(--grey); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--grey); }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; padding-right: 2.5rem; }
.form-group select option { background: #1a1a1a; color: var(--white); }
.form-group textarea { resize: vertical; min-height: 108px; }

.form-note {
  text-align: center;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--grey);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer__logo-jp {
  font-family: var(--font-jp);
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.footer__logo-text {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--white);
}
.footer__brand > p {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.75;
  max-width: 38ch;
}

.footer__nav h4,
.footer__contact h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.25rem;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__nav a { font-size: 0.9rem; color: var(--grey-lt); transition: color var(--t); }
.footer__nav a:hover { color: var(--white); }

.footer__contact p {
  font-size: 0.875rem;
  color: var(--grey-lt);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.footer__contact a { color: var(--grey-lt); transition: color var(--t); }
.footer__contact a:hover { color: var(--white); }

.footer__social-links {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--grey-lt);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.footer__social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--grey);
}
.footer__bottom strong { color: var(--grey-lt); }

.footer__credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--grey);
}
.footer__alberta {
  color: var(--grey-lt);
  font-weight: 500;
}
.footer__divider { color: var(--grey); }
.footer__c2c {
  color: var(--gold);
  font-weight: 600;
  transition: color var(--t);
}
.footer__c2c:hover { color: var(--gold-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__layout {
    grid-template-columns: 1fr;
  }
  .about__visual {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
  .about__art { aspect-ratio: 1/1; }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .instructors__grid { grid-template-columns: 1fr; }
  .instructor-card__photo { width: 160px; }
  .instructor-card--chief .instructor-card__photo { width: 200px; }
}

@media (max-width: 768px) {
  .nav__menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 0.25rem;
  }
  .nav__menu.open { display: flex; }
  .nav__menu a { padding: 0.75rem 1rem; font-size: 1rem; }
  .nav__menu a::after { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .about__values { grid-template-columns: 1fr; }

  .karate-chars { flex-direction: column; }
  .karate-char { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .karate-char:last-child { border-bottom: none; }
  .karate-char__symbol { padding: 0.5rem; }
  .karate-char--result { border-right: none; }

  .pillars { grid-template-columns: 1fr; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__brand { grid-column: span 1; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.375rem;
  }

  .form-row { grid-template-columns: 1fr; }

  .hero__stats { gap: 1.5rem; }
  .hero__stat-divider { display: none; }
}

@media (max-width: 520px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 160px;
  }
  .classes__grid { grid-template-columns: 1fr; }

  .instructor-card {
    flex-direction: column;
    min-height: unset;
  }
  .instructor-card__photo {
    width: 100%;
    height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .instructor-card--chief .instructor-card__photo {
    width: 100%;
    height: 300px;
    border-right: none;
    border-bottom: 1px solid rgba(200,16,46,0.2);
  }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
