/* ── Reset & Variables ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --crimson:    #8B1A1A;
  --crimson-dk: #6a1212;
  --gold:       #D4AF37;
  --gold-lt:    #e8cc6a;
  --black:      #0f0f0f;
  --dark:       #1a1a1a;
  --dark2:      #222222;
  --mid:        #3a3a3a;
  --light:      #F8F4EE;
  --white:      #ffffff;
  --text:       #2C2C2C;
  --text-muted: #888;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.18);
  --transition: .25s ease;
  --font-head:  'Cinzel', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography helpers ─────────────────────────────────────────── */
.section__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1rem;
}
.section__title span { color: var(--crimson); }

.section__subtitle {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ── Container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: 6rem 0; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .03em;
  border: 2px solid transparent;
}

.btn--gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn--full { width: 100%; text-align: center; }

/* ── NAV ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(10,8,6,.95);
  backdrop-filter: blur(12px);
  padding: .65rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav__logo-symbol { color: var(--gold); font-size: 1.2rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  background: var(--crimson) !important;
  color: var(--white) !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--crimson-dk) !important; color: var(--white) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Dragon & Phoenix — styles ready for when images are dropped in */
.hero__dragon,
.hero__phoenix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  opacity: 0.35;
  pointer-events: none;
  filter: invert(78%) sepia(47%) saturate(529%) hue-rotate(1deg);
  z-index: 1;
}
.hero__dragon { left: 2%; }
.hero__phoenix { right: 2%; transform: translateY(-50%) scaleX(-1); }
@media (max-width: 1200px) {
  .hero__dragon, .hero__phoenix { width: 150px; opacity: 0.28; }
}
@media (max-width: 960px) {
  .hero__dragon, .hero__phoenix { display: none; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(139,26,26,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(212,175,55,.12) 0%, transparent 50%),
    linear-gradient(160deg, #0f0f0f 0%, #1a0a0a 40%, #0f0707 100%);
  z-index: 0;
}

/* Decorative SVG pattern overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(212,175,55,.04) 79px, rgba(212,175,55,.04) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(212,175,55,.04) 79px, rgba(212,175,55,.04) 80px);
  opacity: .6;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem 1.5rem;
  animation: fadeUp .9s ease both;
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero__title span { color: var(--gold); }

.hero__tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.35);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 1;
  animation: pulse 2.5s ease infinite;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(212,175,55,.6), transparent);
}

/* ── ABOUT ──────────────────────────────────────────────────────── */
.about { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about__image-wrap { position: relative; }

.about__image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--dark) 0%, #2a0a0a 100%);
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212,175,55,.15);
}

.placeholder-art svg { width: 120px; height: 160px; opacity: .7; }

.about__badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  padding: .6rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about__text p {
  color: var(--mid);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about__stats {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.stat__number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--crimson);
  font-weight: 700;
  line-height: 1;
}
.stat__label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .3rem;
}

.about__instructor {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--light);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.about__instructor strong { display: block; font-weight: 600; }
.about__instructor span { font-size: .85rem; color: var(--text-muted); }
.instructor__info { flex: 1; }
.about__inst-link {
  margin-left: auto;
  font-size: .82rem;
  font-weight: 600;
  color: var(--crimson);
  white-space: nowrap;
  padding: .4rem .8rem;
  border: 1px solid var(--crimson);
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
}
.about__inst-link:hover {
  background: var(--crimson);
  color: var(--white);
}

.instructor__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #111;
}

/* ── CURRICULUM ─────────────────────────────────────────────────── */
.curriculum { background: var(--dark); }
.curriculum .section__title { color: var(--white); }
.curriculum .section__subtitle { color: rgba(255,255,255,.5); }
.curriculum .section__label { color: var(--gold); }

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

.curriculum__card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.12);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: var(--transition);
}
.curriculum__card:hover {
  background: rgba(212,175,55,.07);
  border-color: rgba(212,175,55,.3);
  transform: translateY(-3px);
}

.curriculum__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.curriculum__card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: .6rem;
}
.curriculum__card p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

/* Lineage bar */
.lineage-bar {
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
  margin-bottom: 2.5rem;
  padding: .75rem 1.5rem;
  border: 1px solid rgba(212,175,55,.12);
  border-radius: 30px;
  display: inline-block;
  width: 100%;
}
.lineage-label {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .15em;
  margin-right: .75rem;
}

/* Rank Accordion */
.rank-accordion {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 3.5rem;
}

.rank-item {
  border: 1px solid rgba(212,175,55,.12);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.rank-item.open {
  border-color: rgba(212,175,55,.35);
}

.rank-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.03);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
  color: var(--white);
  font-family: var(--font-body);
}
.rank-header:hover { background: rgba(255,255,255,.06); }
.rank-item.open .rank-header { background: rgba(212,175,55,.06); }

.rank-sash-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rank-name {
  font-family: var(--font-head);
  font-size: .95rem;
  color: var(--gold);
  white-space: nowrap;
  min-width: 140px;
}

.rank-summary {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  flex: 1;
}

.rank-chevron {
  font-size: 1.2rem;
  color: rgba(255,255,255,.3);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.rank-item.open .rank-chevron { transform: rotate(180deg); color: var(--gold); }

.rank-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(212,175,55,.1);
}
.rank-item.open .rank-body { display: block; }

.rank-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 1rem;
}

.rank-cols h4 {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
  font-weight: 600;
}
.rank-cols ul {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.rank-cols li {
  font-size: .87rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.rank-cols li strong { color: rgba(255,255,255,.9); font-weight: 600; }
.rank-cols li em { color: rgba(255,255,255,.35); font-style: italic; }

@media (max-width: 640px) {
  .rank-cols { grid-template-columns: 1fr; }
  .rank-summary { display: none; }
  .rank-name { min-width: unset; }
}

/* Rank Overview (index page) */
.rank-overview {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
  border: 1px solid rgba(212,175,55,.12);
  border-radius: 12px;
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 22px 150px 1fr;
  align-items: start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background var(--transition);
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: rgba(255,255,255,.03); }
.rank-row--black { background: rgba(212,175,55,.03); }
.rank-row--black:hover { background: rgba(212,175,55,.06); }

/* Clickable rank rows */
a.rank-row--link {
  text-decoration: none;
  grid-template-columns: 22px 150px 1fr auto;
  cursor: pointer;
}
a.rank-row--link:hover { background: rgba(255,255,255,.05); }
a.rank-row--link.rank-row--black:hover { background: rgba(212,175,55,.08); }
.rank-row__arrow {
  color: rgba(212,175,55,.3);
  font-size: 1rem;
  align-self: center;
  transition: color var(--transition), transform var(--transition);
}
a.rank-row--link:hover .rank-row__arrow {
  color: var(--gold);
  transform: translateX(4px);
}

.rank-row__sash {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .2rem;
}

.rank-row__name {
  font-family: var(--font-head);
  font-size: .9rem;
  color: var(--gold);
  padding-top: .05rem;
}

.rank-row__desc {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}

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

@media (max-width: 640px) {
  .rank-row {
    grid-template-columns: 16px 80px 1fr;
    gap: .75rem;
    padding: .85rem 1rem;
  }
  .rank-row__desc { font-size: .82rem; }
}

/* Sash system */
.sash-system { text-align: center; }
.sash-system__title {
  font-family: var(--font-head);
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.sash-system__levels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.sash {
  padding: .4rem 1rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--c, #888);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.15);
}

/* ── SCHEDULE ───────────────────────────────────────────────────── */
.schedule { background: var(--light); }

.schedule__note {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: .95rem;
}
.schedule__note strong { color: var(--crimson); }

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

.schedule__program {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: var(--shadow);
}
.schedule__program--featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-lg);
}

.schedule__program-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.schedule__program-header h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--dark);
}

.badge {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 20px;
  background: rgba(139,26,26,.1);
  color: var(--crimson);
}
.badge--gold {
  background: rgba(212,175,55,.15);
  color: #8a6d00;
}

.schedule__program > p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.schedule__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.schedule__table th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: .4rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.schedule__table td {
  padding: .5rem 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
  color: var(--text);
}
.schedule__table tr:last-child td { border-bottom: none; }

/* ── PRICING ────────────────────────────────────────────────────── */
.pricing { background: var(--dark); }
.pricing .section__title { color: var(--white); }
.pricing .section__subtitle { color: rgba(255,255,255,.5); }
.pricing .section__label { color: var(--gold); }

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

.pricing__simple {
  display: flex;
  justify-content: center;
}
.pricing__card--single {
  max-width: 480px;
  width: 100%;
}

.pricing__card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 2.2rem 1.8rem;
  position: relative;
}
.pricing__card--featured {
  background: rgba(255,255,255,.07);
  border-color: var(--gold);
  transform: scale(1.03);
}

.pricing__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--black);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 0 0 8px 8px;
}

.pricing__tier {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .06em;
  margin-bottom: .75rem;
  text-transform: uppercase;
}

.pricing__price {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: .75rem;
}
.pricing__price span {
  font-size: 1.1rem;
  color: rgba(255,255,255,.4);
}

.pricing__desc {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
  min-height: 2.8rem;
}

.pricing__features {
  margin-bottom: 2rem;
}
.pricing__features li {
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.pricing__features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing__feature--muted { color: rgba(255,255,255,.25) !important; }
.pricing__feature--muted::before { content: '–' !important; color: rgba(255,255,255,.2) !important; }

.pricing__card .btn--outline {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
}
.pricing__card .btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.pricing__note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.4);
}

/* ── GALLERY ────────────────────────────────────────────────────── */
.gallery { background: var(--white); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
}

.gallery__item {
  background: linear-gradient(135deg, #1a0808 0%, #2d1515 50%, #1a1a1a 100%);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: auto;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(212,175,55,.1);
}
.gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.gallery__item::before {
  content: attr(data-label);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2rem .85rem .65rem;
  font-weight: 500;
  z-index: 2;
}
.gallery__item:has(img) {
  border-color: rgba(212,175,55,.3);
  cursor: zoom-in;
}
.gallery__item::after {
  content: '⬤';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: rgba(212,175,55,.12);
  font-size: 5rem;
}

.gallery__item--tall  { grid-row: span 2; }
.gallery__item--xtall { grid-row: span 3; }
.gallery__item--wide  { grid-column: span 2; }
.gallery__item--full  { grid-column: span 3; }
.gallery__item--contain img { object-fit: contain; background: #111; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}
.gallery__item:has(img)::after { display: none; }

/* ── LIGHTBOX ───────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  cursor: pointer;
}
.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__content img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox__label {
  position: absolute;
  bottom: -2rem;
  left: 0; right: 0;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox__close:hover { color: var(--white); }

/* ── CONTACT ────────────────────────────────────────────────────── */
.contact { background: var(--light); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact__info p {
  color: var(--mid);
  margin-bottom: 2rem;
}
.contact__info .section__title { color: var(--dark); }

.contact__details { display: flex; flex-direction: column; gap: 1.3rem; }

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact__icon {
  width: 38px;
  height: 38px;
  background: rgba(139,26,26,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact__detail strong { display: block; font-weight: 600; font-size: .88rem; color: var(--dark); }
.contact__detail span { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.contact__form-wrap {
  background: var(--white);
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,.06);
}
.contact__form h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}
.form__group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form__group input,
.form__group select,
.form__group textarea {
  padding: .7rem .9rem;
  border: 1.5px solid rgba(0,0,0,.1);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(139,26,26,.08);
}
.form__group textarea { resize: vertical; min-height: 100px; }

.contact__form .btn--gold { margin-top: .5rem; padding: .9rem; font-size: 1rem; }

.form__success {
  display: none;
  margin-top: 1rem;
  padding: .85rem 1rem;
  background: rgba(40, 120, 60, .1);
  border: 1px solid rgba(40, 120, 60, .25);
  border-radius: var(--radius);
  color: #1e7a3a;
  font-size: .9rem;
  font-weight: 500;
}
.form__success.visible { display: block; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  padding: 3rem 0 1.5rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer__brand .nav__logo-symbol { color: var(--gold); font-size: 1.3rem; margin-bottom: .2rem; }
.footer__brand strong {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.1rem;
}
.footer__brand p { color: rgba(255,255,255,.35); font-size: .85rem; max-width: 260px; }

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer__links a {
  color: rgba(255,255,255,.4);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: .9; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about__grid           { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__image-wrap     { max-width: 400px; margin: 0 auto; }
  .curriculum__grid      { grid-template-columns: repeat(2, 1fr); }
  .schedule__cards,
  .schedule__cards--three { grid-template-columns: 1fr; }
  .pricing__grid         { grid-template-columns: 1fr; }
  .pricing__card--featured { transform: none; }
  .gallery__grid         { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide               { grid-column: span 2; }
  .gallery__item--tall,
  .gallery__item--xtall              { grid-row: span 1; }
  .contact__grid         { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .nav__links {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: rgba(10,5,5,.97);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    font-size: 1.2rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 999;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__cta { padding: .65rem 1.5rem !important; }
  .nav__burger { display: flex; position: relative; z-index: 1000; }
  .curriculum__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide,
  .gallery__item--tall,
  .gallery__item--xtall { grid-column: span 1; grid-row: span 1; }
  .form__row { grid-template-columns: 1fr; }
  .about__stats { gap: 1rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Instructor card — stack button below name on small screens */
  .about__instructor { flex-wrap: wrap; gap: .75rem; }
  .about__inst-link  { margin-left: 0; flex: 0 0 100%; text-align: center; }

  /* Rank rows — stacked layout on mobile */
  .rank-row,
  a.rank-row--link {
    grid-template-columns: 14px 1fr;
    gap: .4rem .6rem;
    padding: .85rem 1rem;
  }
  .rank-row__sash  { grid-column: 1; grid-row: 1; align-self: center; }
  .rank-row__name  { grid-column: 2; grid-row: 1; font-size: .85rem; }
  .rank-row__desc  { grid-column: 2; grid-row: 2; font-size: .8rem; line-height: 1.5; color: rgba(255,255,255,.45); }
  .rank-row__arrow { display: none; }

  /* Section headers — less gap on mobile */
  .section__header { margin-bottom: 2rem; }
}
