/* ============================================================
   MKK East: Miyagi Kan Karate
   Black / white / red brand system
   ============================================================ */

:root {
  /* Palette drawn from the WKF tatami photo: bright mat blue, coral-red
     mats, white gis, sky-blue belts/pads. */
  --black: #16283f;        /* ink: deep navy text */
  --black-soft: #1d3251;
  --white: #ffffff;
  --off-white: #f2f6fb;
  --red: #e8554b;          /* coral red of the mats */
  --red-dark: #cf4038;
  --blue: #2e6fc9;         /* tatami blue */
  --blue-deep: #1a4a8f;    /* deep blue for dark sections */
  --blue-sky: #4aa3df;     /* belt / mitt blue */
  --grey: #5d6b80;
  --grey-light: #d7dfea;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(22, 40, 63, 0.12);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id],
#trial,
#contact {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}
.container--narrow { width: min(820px, 92%); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 1rem; }
h2 em, h1 em { font-style: normal; color: var(--red); }

.section { padding: clamp(2.8rem, 5.5vw, 4.2rem) 0; }

.section__eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 1rem;
}

.section__lead { font-size: 1.1rem; color: var(--grey); max-width: 46ch; }
.section__body p + p { margin-top: 1rem; }
.section__body a { color: var(--red); font-weight: 600; }

.section--dark {
  background: linear-gradient(165deg, var(--blue-deep) 0%, #143a72 100%);
  color: var(--white);
  padding: clamp(3.2rem, 6vw, 4.8rem) 0;
}
.section--dark .section__eyebrow {
  color: #ff9d93;
}
.section--dark h2 {
  color: var(--white);
}
.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.75);
}
.section--dark .section__body p {
  color: rgba(255, 255, 255, 0.82);
}

.section--red {
  background: linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: clamp(3.2rem, 6vw, 4.8rem) 0;
}
.section--red .section__eyebrow {
  color: rgba(255, 255, 255, 0.92);
}
.section--red h2 {
  color: var(--white);
}
.section--red .section__lead {
  color: rgba(255, 255, 255, 0.9);
}

.section--off-white {
  background: var(--off-white);
  border-top: 1px solid rgba(22, 40, 63, 0.06);
  border-bottom: 1px solid rgba(22, 40, 63, 0.06);
}
.section--off-white .pillar {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(22, 40, 63, 0.06);
}

/* ============ Alternating Rhythmic Gradient Brand System ============
   Every single section has a distinct background color, separating each section cleanly
   and fading harmoniously across the page:
   1. Hero: Midnight Dark Navy
   2. Gallery: Tatami BLUE Gradient (eases in from dark hero, out to white timetable)
   3. Timetable: Daylight Pure WHITE
   4. Lineage: Crimson RED Gradient (eases in from white timetable, out to white senseis)
   5. Senseis: Daylight Pure WHITE
   6. Why MKK East: Tatami BLUE Gradient (eases in from white senseis, out to white community)
   7. Community: Daylight Pure WHITE
   8. Contact Us: Crimson RED Gradient (eases in from white community, out to white FAQ)
   9. FAQ: Daylight Pure WHITE
   10. Footer: Daylight Pure WHITE
*/

/* 1. GALLERY: Tatami BLUE Gradient */
#gallery {
  background: linear-gradient(
    180deg,
    rgba(10, 20, 34, 0.95) 0%,
    rgba(26, 74, 143, 0.50) 25px,
    var(--blue-deep) 55px,
    #143a72 calc(100% - 75px),
    rgba(20, 58, 114, 0.80) calc(100% - 55px),
    rgba(20, 58, 114, 0.45) calc(100% - 35px),
    rgba(20, 58, 114, 0.15) calc(100% - 18px),
    var(--white) 100%
  );
  color: var(--white);
  padding-top: clamp(3.8rem, 5.5vw, 4.8rem);
  padding-bottom: clamp(4rem, 6vw, 5.2rem);
}
#gallery h2 { color: var(--white); }
#gallery .section__eyebrow { color: #8dc2f8; }
#gallery .section__body p { color: rgba(255, 255, 255, 0.9); }
#gallery .section__body strong { color: var(--white); }
#gallery .scrapbook__item {
  background: var(--white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38), 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 2. TIMETABLE: Clean Daylight WHITE */
#timetable {
  background: var(--white);
  color: var(--black);
  padding: clamp(2.8rem, 5vw, 4.2rem) 0;
}
#timetable h2 { color: var(--black); }
#timetable .section__eyebrow { color: var(--red); }
#timetable .section__lead { color: var(--grey); }
#timetable .timetable {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(22, 40, 63, 0.08);
  border: 1px solid rgba(22, 40, 63, 0.06);
}
#timetable .btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* 3. LINEAGE: Crimson RED Gradient */
#lineage {
  background: linear-gradient(
    180deg,
    var(--white) 0%,
    rgba(232, 85, 75, 0.05) 15px,
    rgba(232, 85, 75, 0.20) 30px,
    rgba(232, 85, 75, 0.55) 45px,
    var(--red) 65px,
    var(--red-dark) calc(100% - 75px),
    rgba(207, 64, 56, 0.75) calc(100% - 55px),
    rgba(207, 64, 56, 0.40) calc(100% - 35px),
    rgba(207, 64, 56, 0.12) calc(100% - 18px),
    var(--white) 100%
  );
  color: var(--white);
  padding-top: clamp(4.5rem, 6.5vw, 5.6rem);
  padding-bottom: clamp(4.5rem, 6.5vw, 5.6rem);
}
#lineage h2 { color: var(--white); }
#lineage .section__eyebrow { color: rgba(255, 255, 255, 0.95); }
#lineage .section__lead { color: rgba(255, 255, 255, 0.9); }
#lineage .section__body p { color: rgba(255, 255, 255, 0.9); }
#lineage .htl__track::before { background: rgba(255, 255, 255, 0.35); }
#lineage .htl__node { color: rgba(255, 255, 255, 0.75); }
#lineage .htl__node:hover,
#lineage .htl__node.is-active { color: var(--white); }
#lineage .htl__node.is-active::before {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
}
#lineage .htl__node .htl__node-label { color: rgba(255, 255, 255, 0.8); }
#lineage .htl__card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
#lineage .htl__era {
  background: var(--white);
  color: var(--red-dark);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}
#lineage .htl__body h3 { color: var(--white); }
#lineage .htl__text { color: rgba(255, 255, 255, 0.92); }
#lineage .htl__arrow {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
}
#lineage .htl__arrow:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

/* 4. SENSEIS / INSTRUCTORS: Clean Daylight WHITE */
#instructors {
  background: var(--white);
  color: var(--black);
  padding: clamp(2.8rem, 5vw, 4.2rem) 0;
}
#instructors h2 { color: var(--black); }
#instructors .section__eyebrow { color: var(--red); }
#instructors .card {
  background: var(--white);
  border: 1px solid rgba(22, 40, 63, 0.1);
  box-shadow: 0 10px 30px rgba(22, 40, 63, 0.06);
}

/* 5. WHY MKK EAST: Tatami BLUE Gradient */
#about {
  background: linear-gradient(
    180deg,
    var(--white) 0%,
    rgba(26, 74, 143, 0.05) 15px,
    rgba(26, 74, 143, 0.20) 30px,
    rgba(26, 74, 143, 0.55) 45px,
    var(--blue-deep) 65px,
    #143a72 calc(100% - 75px),
    rgba(20, 58, 114, 0.75) calc(100% - 55px),
    rgba(20, 58, 114, 0.40) calc(100% - 35px),
    rgba(20, 58, 114, 0.12) calc(100% - 18px),
    var(--white) 100%
  );
  color: var(--white);
  padding-top: clamp(4.5rem, 6.5vw, 5.6rem);
  padding-bottom: clamp(4.5rem, 6.5vw, 5.6rem);
}
#about h2 { color: var(--white); }
#about h2 em { color: #ff9d93; }
#about .section__eyebrow { color: #8dc2f8; }
#about .section__body p { color: rgba(255, 255, 255, 0.9); }
#about .section__body strong { color: var(--white); }
#about .pillar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(10, 25, 45, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#about .pillar h3 { color: var(--black); }
#about .pillar p { color: var(--grey); }

/* Why MKK East Patch Crest */
.why-mkk__crest {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}
.why-mkk__patch-img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  box-shadow: 
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(255, 255, 255, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  flex-shrink: 0;
}
.why-mkk__patch-img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 
    0 18px 42px rgba(0, 0, 0, 0.55),
    0 0 0 4px rgba(255, 255, 255, 0.55);
}
.why-mkk__patch-badge {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.why-mkk__patch-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff9d93;
}
.why-mkk__patch-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* 6. COMMUNITY: Clean Daylight WHITE */
#community {
  background: var(--white);
  color: var(--black);
  padding: clamp(2.8rem, 5vw, 4.2rem) 0;
}
#community h2 { color: var(--black); }
#community .section__eyebrow { color: var(--red); }
#community .section__lead { color: var(--grey); }
#community .section__body p { color: var(--grey); }
#community .community-gallery__item {
  background: var(--white);
  border: 1px solid rgba(22, 40, 63, 0.08);
  box-shadow: 0 8px 24px rgba(22, 40, 63, 0.06);
}

/* 7. CONTACT US & FREE TRIAL: Crimson RED Gradient */
#trial-contact {
  background: linear-gradient(
    180deg,
    var(--white) 0%,
    rgba(232, 85, 75, 0.05) 15px,
    rgba(232, 85, 75, 0.20) 30px,
    rgba(232, 85, 75, 0.55) 45px,
    var(--red) 65px,
    var(--red-dark) calc(100% - 75px),
    rgba(207, 64, 56, 0.75) calc(100% - 55px),
    rgba(207, 64, 56, 0.40) calc(100% - 35px),
    rgba(207, 64, 56, 0.12) calc(100% - 18px),
    var(--white) 100%
  );
  color: var(--white);
  padding-top: clamp(4.5rem, 6.5vw, 5.6rem);
  padding-bottom: clamp(4.5rem, 6.5vw, 5.6rem);
}
#trial-contact h2 { color: var(--white); }
#trial-contact .section__eyebrow { color: rgba(255, 255, 255, 0.95); }
#trial-contact .jotform-embed-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(22, 40, 63, 0.06);
}

/* 8. FAQ: Clean Daylight WHITE */
#faq {
  background: var(--white);
  color: var(--black);
  padding: clamp(2.8rem, 5vw, 4.2rem) 0;
}
#faq h2 { color: var(--black); }
#faq .section__eyebrow { color: var(--red); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.center { text-align: center; margin-top: 2.5rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--dark:hover {
  background: var(--black-soft);
  border-color: var(--black-soft);
}

.btn--full { width: 100%; }
.btn--nav {
  padding: 0.52rem 1.15rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 40, 63, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--black);
}

.nav__logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav__brand:hover .nav__logo {
  transform: scale(1.06);
}

.nav__kanji {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 700;
  line-height: 1;
}

.nav__name {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 400;
}
.nav__name strong { font-weight: 700; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav__links a {
  color: rgba(22, 40, 63, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--blue); }
.nav__links a.btn { color: var(--white); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background-color: #0c1827;
  color: var(--white);
  overflow: hidden;
  padding: clamp(3.8rem, 7vw, 5.5rem) 0 clamp(4rem, 7vw, 6.5rem);
  min-height: min(100vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero__inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header text block: left-aligned */
.hero__header {
  max-width: 45%;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.hero__eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  color: #ff9d93;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 22ch;
  line-height: 1.14;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero__title em {
  display: inline-block;
  white-space: nowrap;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.hero__title-location {
  font-size: 0.52em;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.70);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 10;
}

.hero__contact {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.hero__contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.hero__contact-items {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.95rem;
  background: rgba(14, 26, 43, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.86rem;
  transition: all var(--transition);
}

.hero__contact-pill:hover {
  background: rgba(14, 26, 43, 0.92);
  border-color: var(--red);
  transform: translateY(-1px);
  color: var(--white);
}

.hero__contact-pill strong {
  color: var(--white);
  font-weight: 600;
}

.hero__contact-pill:hover strong {
  color: var(--red);
}

.hero__contact-icon {
  color: var(--red);
  flex-shrink: 0;
}

.hero__stats {
  list-style: none;
  align-self: stretch;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 2rem;
  z-index: 10;
}

.hero__stats li { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--red);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero__stat-nowrap,
.hero__stats strong.hero__stat-nowrap {
  white-space: nowrap !important;
}
.hero__stats span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }

/* Kick action frame */
.hero__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero__kick-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.hero__kick-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 36%;
  user-select: none;
  -webkit-user-select: none;
  display: block;
}

.hero__kick-img--base {
  z-index: 1;
}

.hero__kick-img--chamber {
  z-index: 2;
  will-change: opacity;
  opacity: 1;
}

/* Kick interactive badge */
.hero__kick-badge {
  position: absolute;
  bottom: 24px;
  right: 32px;
  background: rgba(10, 20, 34, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 5;
}

.hero__kick-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: kickBadgePulse 1.8s infinite;
}

@keyframes kickBadgePulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Overlay on desktop: darken left for text, clear on right for kick */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      90deg,
      rgba(10, 20, 34, 0.88) 0%,
      rgba(10, 20, 34, 0.75) 28%,
      rgba(10, 20, 34, 0.38) 48%,
      rgba(10, 20, 34, 0.10) 65%,
      rgba(10, 20, 34, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 20, 34, 0.45) 0%,
      transparent 18%,
      transparent 70%,
      rgba(10, 20, 34, 0.96) 100%
    );
}

/* ============ Mobile Hero (< 900px) ============ */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: clamp(2.4rem, 6vw, 3.5rem) 0 3rem;
  }
  .hero__inner {
    align-items: stretch;
  }
  .hero__header {
    max-width: 100%;
    width: 100%;
  }
  .hero__bg {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    margin: 1.4rem 0 1.6rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
    background: #08111d;
    cursor: pointer;
    touch-action: pan-y;
    pointer-events: auto; /* enable touch tap on mobile */
    z-index: 5;
  }
  .hero__kick-frame {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .hero__kick-img {
    object-position: center;
  }
  .hero__kick-badge {
    bottom: 10px;
    right: 12px;
    font-size: 0.72rem;
    padding: 0.32rem 0.68rem;
  }
  .hero__overlay {
    display: none; /* remove dark wash on mobile so full photo is bright and clear */
  }
  .hero__cta {
    margin-top: 0;
    margin-bottom: 0.9rem;
    width: 100%;
    display: flex;
    gap: 0.8rem;
  }
  .hero__cta .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 0.8rem;
    font-size: 0.82rem;
    line-height: 1.25;
  }
  .hero__contact {
    margin-top: 0;
    margin-bottom: 2rem;
    width: 100%;
  }
  .hero__contact-items {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .hero__contact-pill {
    justify-content: center;
    padding: 0.6rem 0.9rem;
    font-size: 0.84rem;
  }
  .hero__stats {
    margin-top: 0;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 1.2rem;
  }
  .hero__stats strong {
    font-size: clamp(1.2rem, 3.6vw, 1.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__kick-img--chamber {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* ============ Scrapbook Gallery (Why MKK East) ============ */
.scrapbook {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem 1.25rem;
  align-items: center;
  position: relative;
  padding: 1.5rem 0.5rem 2rem;
}

.scrapbook__item {
  position: relative;
  background: var(--white);
  padding: 10px 10px 22px 10px;
  border-radius: 4px;
  box-shadow: 
    0 10px 25px -4px rgba(22, 40, 63, 0.12),
    0 4px 10px -2px rgba(22, 40, 63, 0.06),
    0 0 0 1px rgba(22, 40, 63, 0.04);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              z-index 0.4s ease;
  cursor: pointer;
  z-index: 1;
}

.scrapbook__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 70px;
  height: 22px;
  background: rgba(242, 246, 251, 0.85);
  border-left: 2px dashed rgba(22, 40, 63, 0.14);
  border-right: 2px dashed rgba(22, 40, 63, 0.14);
  box-shadow: 0 1px 4px rgba(22, 40, 63, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 3;
  pointer-events: none;
}

.scrapbook__photo {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--off-white);
}

.scrapbook__photo img,
.scrapbook__photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scrapbook__photo--video {
  position: relative;
  background: #000;
}

/* Individual placement, aspects and organic scrapbook tilts */
.scrapbook__item--1 {
  grid-column: 1 / span 4;
  transform: rotate(-2.2deg);
}
.scrapbook__item--1 .scrapbook__tape {
  transform: translateX(-50%) rotate(-4deg);
}
.scrapbook__item--1 .scrapbook__photo {
  aspect-ratio: 4 / 3;
}

.scrapbook__item--2 {
  grid-column: 5 / span 4;
  transform: rotate(2deg) translateY(-8px);
  z-index: 2;
}
.scrapbook__item--2 .scrapbook__tape {
  transform: translateX(-50%) rotate(3deg);
}
.scrapbook__item--2 .scrapbook__photo {
  aspect-ratio: 3 / 4;
}

.scrapbook__item--3 {
  grid-column: 9 / span 4;
  transform: rotate(-1.8deg) translateY(6px);
}
.scrapbook__item--3 .scrapbook__tape {
  transform: translateX(-50%) rotate(-2deg);
}
.scrapbook__item--3 .scrapbook__photo {
  aspect-ratio: 4 / 3;
}

.scrapbook__item--4 {
  grid-column: 1 / span 4;
  margin-top: -0.5rem;
  transform: rotate(2deg);
}
.scrapbook__item--4 .scrapbook__tape {
  transform: translateX(-50%) rotate(3deg);
}
.scrapbook__item--4 .scrapbook__photo {
  aspect-ratio: 4 / 3;
}

.scrapbook__item--6 {
  grid-column: 5 / span 4;
  margin-top: -0.5rem;
  transform: rotate(-1.5deg);
  z-index: 2;
}
.scrapbook__item--6 .scrapbook__tape {
  transform: translateX(-50%) rotate(2.5deg);
}
.scrapbook__item--6 .scrapbook__photo {
  aspect-ratio: 3 / 4;
}

.scrapbook__item--5 {
  grid-column: 9 / span 4;
  margin-top: -0.5rem;
  transform: rotate(2.2deg);
}
.scrapbook__item--5 .scrapbook__tape {
  transform: translateX(-50%) rotate(-3deg);
}
.scrapbook__item--5 .scrapbook__photo {
  aspect-ratio: 4 / 3;
}

/* Hover lift effect */
.scrapbook__item:hover {
  transform: scale(1.05) rotate(0deg) translateY(-10px) !important;
  box-shadow: 
    0 24px 48px -8px rgba(22, 40, 63, 0.22),
    0 12px 20px -4px rgba(22, 40, 63, 0.12);
  z-index: 10;
}

.scrapbook__item:hover .scrapbook__photo img,
.scrapbook__item:hover .scrapbook__photo video {
  transform: scale(1.03);
}

/* Video badge and controls */
.scrapbook__video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(18, 28, 42, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 4;
}

.scrapbook__video-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff334b;
  box-shadow: 0 0 6px #ff334b;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.scrapbook__video-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 4;
}

.scrapbook__video-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(18, 28, 42, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
  line-height: 1;
  padding: 0;
}

.scrapbook__video-btn:hover {
  background: rgba(230, 57, 70, 0.95);
  transform: scale(1.08);
}

/* ============ Pillars ============ */
.pillars {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.pillar h3 { margin: 0; margin-bottom: 0.6rem; font-size: 1.25rem; }
.pillar p { color: var(--grey); font-size: 0.96rem; line-height: 1.55; }

/* ============ Interactive history timeline ============ */
.htl { margin-top: clamp(3rem, 6vw, 5rem); }

.htl__track {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.htl__track::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 8px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.htl__node {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 0.6rem 0;
  flex: 1;
  min-width: 82px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.htl__node::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.htl__node:hover { color: var(--white); }
.htl__node.is-active { color: var(--white); }
.htl__node.is-active::before {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 6px rgba(227, 54, 63, 0.25);
}
.htl__node span { display: block; }
.htl__node .htl__node-label {
  font-weight: 400;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.15rem;
}

.htl__card {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem;
  min-height: 240px;
}
.htl__card.is-switching .htl__body,
.htl__card.is-switching .htl__portrait { opacity: 0; transform: translateY(10px); }

.htl__portrait {
  position: relative;
  width: 200px;
  height: 215px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.htl__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.htl__portrait img[src=""] { display: none; }
.htl__kanji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  color: rgba(227, 54, 63, 0.55);
  user-select: none;
}

.htl__body { transition: opacity 0.3s ease, transform 0.3s ease; }
.htl__era {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.htl__body h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.htl__text { color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; max-width: 58ch; }

.htl__nav {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}
.htl__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.htl__arrow:hover { border-color: var(--red); background: rgba(227, 54, 63, 0.15); transform: translateY(-2px); }
.htl__arrow:disabled { opacity: 0.3; cursor: default; transform: none; }

@media (max-width: 700px) {
  .htl__card { grid-template-columns: 1fr; gap: 1.2rem; }
  .htl__portrait { width: 150px; height: 150px; }
  .htl__node { min-width: 96px; }
  .htl__track { justify-content: flex-start; }
}

/* ============ Instructor cards ============ */
.cards {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card__belt {
  width: 52px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue) 60%, var(--red) 60%);
  margin-bottom: 1.4rem;
}

.card h3 { font-size: 1.25rem; }
.card__role {
  color: var(--red);
  font-size: 0.82rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0.4rem 0 1rem;
}
.card ul { list-style: none; }
.card li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--off-white);
  color: var(--grey);
  font-size: 0.93rem;
}

/* ============ Timetable ============ */
.timetable {
  margin-top: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(22, 40, 63, 0.08);
  border: 1px solid rgba(22, 40, 63, 0.06);
}

.timetable table {
  width: 100%;
  border-collapse: collapse;
  color: var(--black);
}

.timetable th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-align: left;
  background: var(--blue-deep);
  color: var(--white);
  padding: 1rem 1.6rem;
}

.timetable td {
  padding: 0.95rem 1.6rem;
  border-top: 1px solid var(--off-white);
  font-size: 0.98rem;
}

.timetable td[rowspan] {
  font-family: var(--font-display);
  font-weight: 700;
  vertical-align: top;
  border-right: 1px solid var(--off-white);
}

/* ============ Forms ============ */
.form {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
}

.form--onDark { border: none; }

.form__title { font-size: 1.3rem; margin-bottom: 1.4rem; }

.form__row { margin-bottom: 1.1rem; }
.form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  color: var(--black);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--grey-light);
  border-radius: 10px;
  background: var(--off-white);
  color: var(--black);
  transition: border-color var(--transition), background var(--transition);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.form input.is-invalid { border-color: var(--red); }

.form select:disabled { opacity: 0.55; cursor: not-allowed; }

.form__hint {
  font-size: 0.8rem;
  color: var(--grey);
  margin: -0.4rem 0 1.1rem;
}

.form__status {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.4em;
}
.form__status.is-success { color: #1e9e50; }
.form__status.is-error { color: var(--red); }

/* ============ Ticks ============ */
.ticks { list-style: none; margin-top: 1.6rem; }
.ticks li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--grey);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  clip-path: none;
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.55em;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* ============ FAQ ============ */
.faq { margin-top: 2rem; }

.faq details {
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(22, 40, 63, 0.04);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq details:hover {
  box-shadow: 0 6px 20px rgba(22, 40, 63, 0.08);
}
.faq details[open] { border-color: var(--blue); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--red);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
  padding: 0 1.4rem 1.3rem;
  color: var(--grey);
  font-size: 0.97rem;
}

/* ============ Contact ============ */
.contact__details {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact__details h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--black);
}
.contact__details p { color: var(--grey); font-size: 0.95rem; }
.contact__details p + p { margin-top: 0.7rem; }

.contact__phone {
  color: var(--red) !important;
  font-weight: 600;
  text-decoration: none;
}

.hours { list-style: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: var(--grey);
  border-bottom: 1px solid var(--off-white);
}
.hours li span:first-child { font-weight: 600; color: var(--black); }

/* Compact contact info block used inside the "ask a question" form card */
.form__lead {
  color: var(--grey);
  font-size: 0.95rem;
  margin: -0.4rem 0 1.4rem;
}

.contact__mini {
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--off-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact__mini h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.contact__mini p { color: var(--grey); font-size: 0.9rem; }
.contact__mini .hours { margin: 0; }
.contact__mini .hours li { font-size: 0.85rem; padding: 0.2rem 0; }

@media (max-width: 520px) {
  .contact__mini { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============ Jotform Embed ============ */
.jotform-embed-wrapper {
  width: 100%;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  box-shadow: 0 14px 40px rgba(22, 40, 63, 0.08);
  border: 1px solid rgba(22, 40, 63, 0.06);
}
.jotform-embed-wrapper iframe {
  width: 100% !important;
  min-width: 100% !important;
  border: none !important;
  display: block;
  margin: 0 auto;
}

/* ============ Footer ============ */
.footer {
  background: var(--white);
  color: var(--black);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(22, 40, 63, 0.08);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.35fr 1.15fr 0.8fr;
  gap: 2.2rem;
  align-items: start;
}

.footer__hours {
  display: flex;
  flex-direction: column;
}

.footer__hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer__hours-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--grey);
}

.footer__hours-list .footer__day {
  font-weight: 600;
  color: var(--black);
  min-width: 38px;
}

.footer__hours-list .footer__time {
  color: var(--grey);
  white-space: nowrap;
}

.footer__hours-list .footer__time--closed {
  color: #8896a6;
}

.footer__brand-wrapper {
  display: flex;
  flex-direction: column;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--black);
  transition: opacity var(--transition);
}

.footer__brand:hover {
  opacity: 0.88;
}

.footer__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer__name {
  font-family: var(--font-display);
  letter-spacing: 0.26em;
  font-size: 0.85rem;
  margin: 0;
  color: var(--black);
}

.footer__name strong {
  color: var(--red);
}

.footer__tag {
  margin-top: 0.8rem;
  color: var(--grey);
  font-size: 0.9rem;
  max-width: 34ch;
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.footer__links, .footer__contact, .footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__links a, .footer__social a, .footer__contact-item {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer__contact-item strong {
  color: var(--black);
  font-weight: 600;
}
.footer__contact-icon {
  color: var(--red);
  flex-shrink: 0;
}
.footer__links a:hover, .footer__social a:hover, .footer__contact-item:hover { color: var(--red); }
.footer__contact-item:hover strong { color: var(--red); }

.footer__location {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--grey);
  display: flex;
  flex-direction: column;
}
.footer__location-sub {
  font-size: 0.78rem;
  color: #8896a6;
}

.footer__legal {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(22, 40, 63, 0.08);
  color: #8896a6;
  font-size: 0.82rem;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand-wrapper {
    grid-column: 1 / -1;
  }

  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 1.4rem 6%;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(22, 40, 63, 0.1);
    box-shadow: 0 18px 30px rgba(22, 40, 63, 0.12);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .scrapbook {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem 1.2rem;
    padding: 1.2rem 0;
  }
  .scrapbook__item--1 {
    grid-column: 1 / span 1;
    transform: rotate(-1deg);
  }
  .scrapbook__item--2 {
    grid-column: 2 / span 1;
    transform: rotate(1.5deg);
  }
  .scrapbook__item--3 {
    grid-column: 1 / span 1;
    transform: rotate(-1.5deg);
  }
  .scrapbook__item--4 {
    grid-column: 2 / span 1;
    margin-top: 0;
    transform: rotate(1.2deg);
  }
  .scrapbook__item--6 {
    grid-column: 1 / span 1;
    margin-top: 0;
    transform: rotate(-1.4deg);
  }
  .scrapbook__item--5 {
    grid-column: 2 / span 1;
    margin-top: 0;
    transform: rotate(1.8deg);
  }
}

@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form__row--split { grid-template-columns: 1fr; }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.85rem;
  }
  .hero__stats strong {
    font-size: clamp(1.05rem, 4.4vw, 1.35rem);
  }
  .hero__stat-nowrap {
    white-space: nowrap !important;
  }
  .timetable th, .timetable td { padding: 0.75rem 0.9rem; font-size: 0.88rem; }
  .scrapbook {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0;
  }
  .scrapbook__item--1,
  .scrapbook__item--2,
  .scrapbook__item--3,
  .scrapbook__item--4,
  .scrapbook__item--5,
  .scrapbook__item--6 {
    grid-column: 1 / span 1;
    margin-top: 0;
  }
  .scrapbook__item:nth-child(odd) {
    transform: rotate(-1.2deg);
  }
  .scrapbook__item:nth-child(even) {
    transform: rotate(1.2deg);
  }
}

@media (max-width: 380px) {
  .hero__cta .btn {
    padding: 0.8rem 0.5rem;
    font-size: 0.78rem;
  }
  .hero__stats {
    gap: 1.1rem 0.6rem;
  }
  .hero__stats strong {
    font-size: clamp(0.95rem, 4.3vw, 1.15rem);
  }
}

/* ============ Community photo gallery ============ */
.community-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.community-gallery__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid rgba(22, 40, 63, 0.08);
  box-shadow: 0 8px 24px rgba(22, 40, 63, 0.06);
  margin: 0;
}

.community-gallery__item--main {
  aspect-ratio: 4 / 3;
}

.community-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.community-gallery__item:hover .community-gallery__img {
  transform: scale(1.04);
}

/* Placeholder shown when image is missing or fails to load */
.community-gallery__placeholder {
  display: none; /* shown via onerror JS */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: absolute;
  inset: 0;
  color: var(--grey);
  font-size: 0.82rem;
  font-family: var(--font-body);
  text-align: center;
  padding: 1rem;
  background: var(--off-white);
  border: 2px dashed var(--grey-light);
  border-radius: 14px;
}

.community-gallery__placeholder span:first-child {
  font-size: 2rem;
  opacity: 0.6;
}

@media (max-width: 960px) {
  .community-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .community-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============ Lineage portrait placeholder improvement ============ */
/* When kanji shows (no image yet), make the placeholder more inviting */
.htl__portrait:not(:has(img[style*="display: none"])) .htl__kanji {
  font-size: 3.2rem;
}

/* Dashed border hint on portrait when no image is loaded */
.htl__portrait:has(img[style*="display: none"]) {
  border: 2px dashed rgba(255, 255, 255, 0.18);
}

