/* =============================================================
   AFRICA MUSIC SCHOOL — Design System
   Palette: brand red #EA1902 · ink black · warm gold · cream · white
   Flat colors only — no gradients.
   ============================================================= */

:root {
  --red: #EA1902;
  --red-dark: #B51300;
  --red-soft: #FDE9E6;
  --ink: #16120E;
  --ink-2: #3A332C;
  --muted: #6E6459;
  --gold: #F5A800;
  --gold-soft: #FFF3D6;
  --cream: #FAF5EE;
  --paper: #FFFFFF;
  --line: #EBE2D7;
  --shadow: 0 12px 40px rgba(22, 18, 14, 0.10);
  --shadow-sm: 0 4px 16px rgba(22, 18, 14, 0.08);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

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

.container { width: min(1200px, 92%); margin-inline: auto; }

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------- type */

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

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red);
}
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--red); border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .kicker::before { display: none; }
.section-head.centered .kicker::after { display: none; }

section { padding: 92px 0; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15.5px; letter-spacing: 0.02em;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(234, 25, 2, 0.28); }
.btn-red:hover { background: var(--red-dark); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }

.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--cream); }

.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-lg { padding: 17px 38px; font-size: 17px; }

/* ------------------------------------------------------------- header */

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--header-h);
}

/* Logo sits on a clear white plate for maximum visibility */
.brand-logo, .footer-logo {
  display: inline-flex; align-items: center;
  background: #fff; padding: 8px 14px; border-radius: 12px;
}
.brand-logo img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; padding: 10px 14px; font-weight: 600; font-size: 15.5px; color: var(--ink-2);
  border-radius: 10px; transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--red); background: var(--red-soft); }
.nav-link.active { color: var(--red); }
.nav-link.active::after {
  content: "♪"; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -12px; font-size: 11px; color: var(--red);
}
.nav-cta { margin-inline-start: 12px; padding: 11px 22px; font-size: 14.5px; }

.header-tools { display: flex; align-items: center; gap: 10px; }

/* language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--cream); border: 1px solid var(--line); color: var(--ink);
  padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  transition: border-color .15s ease, background .15s ease;
}
.lang-btn:hover { border-color: var(--red); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px);
  min-width: 210px; max-height: 380px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 110;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
}
.lang-menu a:hover { background: var(--red-soft); color: var(--red); }
.lang-menu a.current { background: var(--red); color: #fff; }
.lang-flag { font-size: 17px; }

/* burger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ------------------------------------------------------------- hero */

.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  background: var(--ink); color: #fff; overflow: hidden; padding: 0;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform 7s linear;
}
.hero-slide.active { opacity: 1; }
.hero-slide.active img { transform: scale(1.08); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(13, 9, 6, 0.55); }

.hero-content { position: relative; z-index: 2; padding: 110px 0 150px; max-width: 780px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero-kicker .dot { color: var(--gold); }

.hero-title-wrap { position: relative; min-height: 200px; }
.hero-title {
  font-size: clamp(40px, 6.6vw, 82px); font-weight: 680; line-height: 1.04;
  opacity: 0; transform: translateY(24px); transition: opacity .7s ease .15s, transform .7s ease .15s;
  position: absolute; inset-inline: 0; top: 0;
  visibility: hidden;
}
.hero-title.show { opacity: 1; transform: translateY(0); position: relative; visibility: visible; }
.hero-title em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,0.88);
  max-width: 620px; margin: 22px 0 38px;
  opacity: 0; transform: translateY(18px); transition: opacity .7s ease .35s, transform .7s ease .35s;
  position: absolute; visibility: hidden;
}
.hero-sub.show { opacity: 1; transform: translateY(0); position: relative; visibility: visible; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* equalizer bars */
.eq { display: inline-flex; align-items: flex-end; gap: 4px; height: 22px; }
.eq span { width: 4px; background: var(--gold); border-radius: 2px; animation: eq-bounce 1s ease-in-out infinite; }
.eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 90%; animation-delay: .15s; }
.eq span:nth-child(3) { height: 60%; animation-delay: .3s; }
.eq span:nth-child(4) { height: 100%; animation-delay: .45s; }
.eq span:nth-child(5) { height: 50%; animation-delay: .6s; }
@keyframes eq-bounce { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }

/* hero controls */
.hero-dots {
  position: absolute; z-index: 3; bottom: 46px; inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}
.rtl .hero-dots { transform: translateX(50%); }
.hero-dot {
  width: 34px; height: 12px; border: 0; border-radius: 6px;
  background: rgba(255,255,255,0.35); transition: background .2s ease, width .3s ease;
  padding: 0;
}
.hero-dot.active { background: var(--red); width: 58px; }

.hero-scroll {
  position: absolute; z-index: 3; bottom: 38px; inset-inline-end: 5%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
}
.hero-scroll::after {
  content: ""; width: 2px; height: 42px; background: rgba(255,255,255,0.6);
  animation: scroll-pulse 1.6s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ------------------------------------------------------------- marquee */

.marquee { background: var(--red); color: #fff; padding: 18px 0; overflow: hidden; }
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee-run 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 48px;
  font-family: var(--font-display); font-size: 21px; font-weight: 600; font-style: italic;
  white-space: nowrap;
}
.marquee-item::after { content: "♪"; font-style: normal; color: var(--gold); font-size: 18px; }
@keyframes marquee-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rtl .marquee-track { animation-name: marquee-run-rtl; }
@keyframes marquee-run-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ------------------------------------------------------------- stats */

.stats { background: var(--paper); padding: 72px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: "♫"; position: absolute; inset-inline-end: 14px; top: 8px;
  font-size: 54px; color: rgba(234, 25, 2, 0.08);
}
.stat-value {
  font-family: var(--font-display); font-size: clamp(38px, 4vw, 54px); font-weight: 700; color: var(--red);
  line-height: 1;
}
.stat-value sup { font-size: .55em; color: var(--gold); }
.stat-label { margin-top: 10px; font-weight: 600; color: var(--ink-2); }

/* ------------------------------------------------------------- story (home) */

.story { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.story .staff-lines {
  position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 26px; opacity: .06; pointer-events: none;
}
.story .staff-lines i { display: block; height: 1.5px; background: #fff; }

.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; position: relative; }
.story .kicker { color: var(--gold); }
.story .kicker::before { background: var(--gold); }
.story h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 20px; }
.story p { color: rgba(255,255,255,0.82); font-size: 17.5px; margin-bottom: 18px; }

.story-quote {
  border-inline-start: 4px solid var(--red);
  background: rgba(255,255,255,0.06);
  padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0 32px;
}
.rtl .story-quote { border-radius: var(--radius) 0 0 var(--radius); }
.story-quote p {
  font-family: var(--font-display); font-style: italic; font-size: 21px; color: #fff; margin: 0 0 10px;
}
.story-quote cite { color: var(--gold); font-style: normal; font-weight: 600; font-size: 15px; }

.story-media { position: relative; }
.story-media .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.story-media .frame img { width: 100%; height: 520px; object-fit: cover; }
.story-media .badge-note {
  position: absolute; inset-inline-start: -22px; bottom: 42px;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  padding: 16px 24px; border-radius: 14px; box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

/* ------------------------------------------------------------- news */

.news { background: var(--cream); }
.news-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 14px; }

.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.news-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--red-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-thumb .thumb-note {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 64px; color: var(--red);
}

.news-date {
  position: absolute; top: 16px; inset-inline-start: 16px;
  background: #fff; color: var(--ink);
  border-radius: 12px; padding: 8px 14px; text-align: center; line-height: 1.15;
  font-weight: 800; box-shadow: var(--shadow-sm);
}
.news-date .d { font-size: 22px; color: var(--red); display: block; }
.news-date .m { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }

.news-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-cat {
  align-self: flex-start;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.news-cat.cat-news { background: var(--red-soft); color: var(--red); }
.news-cat.cat-event { background: var(--gold-soft); color: #9A6A00; }
.news-cat.cat-announcement { background: #EDEAE4; color: var(--ink-2); }

.news-title { font-size: 21px; line-height: 1.25; }
.news-excerpt { color: var(--muted); font-size: 15.5px; flex: 1; }
.news-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-weight: 700; font-size: 15px;
}
.news-more svg { transition: transform .2s ease; }
.news-card:hover .news-more svg { transform: translateX(4px); }
.rtl .news-more svg { transform: scaleX(-1); }
.rtl .news-card:hover .news-more svg { transform: scaleX(-1) translateX(4px); }

/* ------------------------------------------------------------- programs */

.programs { background: var(--paper); }
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.program-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--red); }
.program-icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red); font-size: 26px;
  margin-bottom: 20px;
}
.program-card:nth-child(4n+2) .program-icon { background: var(--gold-soft); color: #9A6A00; }
.program-card:nth-child(4n+3) .program-icon { background: #EDEAE4; color: var(--ink); }
.program-card h3 { font-size: 19.5px; margin-bottom: 10px; }
.program-card p { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------- media preview / videos */

.media-preview { background: var(--ink); color: #fff; }
.media-preview .section-head p { color: rgba(255,255,255,.72); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video-grid .video-card:first-child { grid-column: span 2; grid-row: span 2; }

.video-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 16 / 9; border: 0; padding: 0; width: 100%;
  cursor: pointer;
}
.video-grid .video-card:first-child { aspect-ratio: auto; min-height: 100%; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .25s ease, transform .5s ease; position: absolute; inset: 0; }
.video-card:hover img { opacity: 1; transform: scale(1.04); }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.play-btn {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--red); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(234, 25, 2, 0.5);
  animation: play-pulse 2.2s infinite;
  pointer-events: none;
}
.play-btn svg { margin-inline-start: 4px; }
@keyframes play-pulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 25, 2, 0.45); }
  70% { box-shadow: 0 0 0 22px rgba(234, 25, 2, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 25, 2, 0); }
}
.video-card .video-label {
  position: absolute; bottom: 0; inset-inline: 0; z-index: 2;
  padding: 18px 22px; background: rgba(13, 9, 6, 0.72); color: #fff;
  font-weight: 600; font-size: 15px; text-align: start;
  display: flex; align-items: center; gap: 10px;
}
.video-label .eq { height: 14px; }
.video-label .eq span { background: var(--red); }

.media-preview-cta { text-align: center; margin-top: 46px; }

/* ------------------------------------------------------------- gallery */

.gallery-masonry { columns: 3; column-gap: 22px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 22px; border-radius: var(--radius);
  overflow: hidden; position: relative; cursor: zoom-in; display: block; width: 100%;
  border: 0; padding: 0; background: none;
}
.gallery-item img { width: 100%; transition: transform .45s ease; }
.gallery-item::after {
  content: "♪"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(234, 25, 2, 0.72); color: #fff; font-size: 44px;
  opacity: 0; transition: opacity .28s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(10, 7, 5, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw; max-height: 86vh; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  width: 52px; height: 52px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox button:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 26px; inset-inline-end: 26px; }
.lb-prev { inset-inline-start: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 26px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------- page hero (inner pages) */

.page-hero {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  padding: 92px 0 88px;
}
.page-hero .notes-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  font-size: 120px; line-height: 1.4; color: #fff; white-space: nowrap;
  font-family: var(--font-display);
}
.page-hero .kicker { color: var(--gold); }
.page-hero .kicker::before { background: var(--gold); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 66px); margin: 16px 0 14px; max-width: 800px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 19px; max-width: 640px; }
.page-hero .accent-bar { position: absolute; bottom: 0; inset-inline: 0; height: 8px; background: var(--red); }

/* ------------------------------------------------------------- about page */

.about-body { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.about-copy p { margin-bottom: 20px; font-size: 17.5px; color: var(--ink-2); }
.about-copy p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 64px; font-weight: 700; color: var(--red);
  float: inline-start; line-height: .9; padding-inline-end: 12px; padding-top: 4px;
}
.about-media { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 24px); }
.about-media img { border-radius: var(--radius); width: 100%; height: 300px; object-fit: cover; box-shadow: var(--shadow-sm); }

.aims { background: var(--cream); }
.aims-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.aim-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px;
}
.aim-num {
  font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--red);
  background: var(--red-soft); border-radius: 12px; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.aim-item p { font-weight: 600; color: var(--ink-2); padding-top: 10px; }

.vision {
  background: var(--red); color: #fff; text-align: center;
}
.vision .container { max-width: 860px; }
.vision h2 { font-size: clamp(28px, 3.8vw, 42px); margin-bottom: 18px; }
.vision h2::before { content: "♬"; display: block; font-size: 40px; color: var(--gold); margin-bottom: 14px; }
.vision p { font-size: clamp(18px, 2.2vw, 22px); font-family: var(--font-display); font-style: italic; }

/* ------------------------------------------------------------- team */

.team-section { background: var(--paper); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--cream); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .45s ease; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-avatar {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 64px; font-weight: 700;
}
.team-card:nth-child(3n) .team-avatar { background: var(--ink); }
.team-card:nth-child(3n+2) .team-avatar { background: var(--gold); color: var(--ink); }
.online-chip {
  position: absolute; top: 14px; inset-inline-start: 14px;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.online-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DD37A; }
.team-info { padding: 20px 22px 24px; }
.team-info h3 { font-size: 19px; margin-bottom: 5px; }
.team-role { color: var(--red); font-weight: 600; font-size: 14px; line-height: 1.4; }
.team-bio { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ------------------------------------------------------------- news page */

.news-page { background: var(--cream); }
.news-article {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; max-width: 880px; margin-inline: auto;
}
.news-article-img { max-height: 460px; overflow: hidden; }
.news-article-img img { width: 100%; object-fit: cover; }
.news-article-body { padding: 44px 52px 52px; }
.news-article-body h1 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 18px; }
.news-article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.news-article-date { color: var(--muted); font-weight: 600; font-size: 15px; }
.news-article-body .content { font-size: 17.5px; color: var(--ink-2); margin-top: 10px; white-space: pre-line; }

/* ------------------------------------------------------------- contact */

.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }

.contact-cards { display: grid; gap: 20px; }
.contact-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
}
.contact-icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.contact-card:nth-child(2) .contact-icon { background: var(--ink); }
.contact-card:nth-child(3) .contact-icon { background: var(--gold); color: var(--ink); }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 15.5px; }
.contact-card a:hover { color: var(--red); }

.contact-form {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 44px 46px;
}
.contact-form h3 { font-size: 24px; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: rgba(255,255,255,.85); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.07);
  color: #fff; font-family: inherit; font-size: 15.5px;
  transition: border-color .18s ease, background .18s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red); background: rgba(255,255,255,0.11);
}
.form-note { font-size: 14px; }
.alert { border-radius: 12px; padding: 15px 18px; margin-bottom: 20px; font-weight: 600; font-size: 15px; }
.alert-success { background: #E8F8EE; color: #156038; border: 1px solid #A9E5C1; }
.alert-error { background: var(--red-soft); color: var(--red-dark); border: 1px solid #F5B4AA; }
.contact-form .alert-success { background: rgba(61, 211, 122, .14); color: #7FE5A8; border-color: rgba(61, 211, 122, .35); }
.contact-form .alert-error { background: rgba(234, 25, 2, .16); color: #FF9C8C; border-color: rgba(234, 25, 2, .4); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 60px; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ------------------------------------------------------------- partners */

.partners { background: var(--cream); }

.partner-marquee {
  position: relative; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.partner-track {
  display: flex; width: max-content;
  animation: partner-run var(--partner-speed, 40s) linear infinite;
}
.partner-marquee:hover .partner-track,
.partner-track:focus-within { animation-play-state: paused; }
/* Spacing lives on the slide (not flex gap) so the -50% loop is exactly seamless. */
.partner-slide { flex: 0 0 auto; margin-inline-end: 26px; }

@keyframes partner-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rtl .partner-track { animation-name: partner-run-rtl; }
@keyframes partner-run-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

.partner-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 40px 28px; width: 300px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  text-align: center;
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--red); }
.partner-logo {
  height: 110px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 12px; padding: 6px 10px;
}
.partner-logo img { max-height: 100px; max-width: 220px; object-fit: contain; }
.partner-noimg {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.partner-name { font-family: var(--font-display); font-weight: 650; font-size: 19px; color: var(--ink); }
.partner-visit {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-weight: 700; font-size: 14px;
}
.partner-card:hover .partner-visit svg { transform: translate(2px, -2px); }
.partner-visit svg { transition: transform .2s ease; }

/* Without motion the marquee becomes a plain scrollable row. */
@media (prefers-reduced-motion: reduce) {
  .partner-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .partner-track { animation: none; }
}

@media (max-width: 620px) {
  .partner-card { width: 260px; padding: 28px 26px 24px; }
  .partner-slide { margin-inline-end: 18px; }
}

/* ------------------------------------------------------------- outreaches */

.outreach-section { background: var(--cream); }
.outreach-list { display: grid; gap: 40px; }

.outreach-card {
  display: grid; grid-template-columns: 340px 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.outreach-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.outreach-card.flipped { grid-template-columns: 1fr 340px; }
.outreach-card.flipped .outreach-panel { order: 2; }

.outreach-panel {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 6px; padding: 44px 38px; color: #fff; position: relative; overflow: hidden;
}
.outreach-panel::after {
  content: "♫"; position: absolute; inset-inline-end: -14px; bottom: -30px;
  font-size: 150px; opacity: .12; pointer-events: none;
}
.op-red  { background: var(--red); }
.op-ink  { background: var(--ink); }
.op-gold { background: var(--gold); color: var(--ink); }

.outreach-icon { font-size: 40px; margin-bottom: 8px; }
.outreach-count {
  font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1;
}
.outreach-count sup { font-size: .5em; opacity: .8; }
.outreach-count-label {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85;
}
.outreach-lead {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 22px; font-size: 14.5px;
  background: rgba(255,255,255,0.16); padding: 9px 16px; border-radius: 999px;
}
.op-gold .outreach-lead { background: rgba(22,18,14,0.12); }

.outreach-content { padding: 44px 46px; }
.outreach-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--red-soft); color: var(--red);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.outreach-content h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.outreach-content > p { color: var(--ink-2); font-size: 16.5px; margin-bottom: 22px; }

.outreach-facts { display: grid; gap: 10px; }
.outreach-facts li {
  position: relative; padding-inline-start: 30px;
  color: var(--muted); font-size: 15.5px; font-weight: 500;
}
.outreach-facts li::before {
  content: "♪"; position: absolute; inset-inline-start: 0; top: 0;
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--gold-soft); color: #9A6A00;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

@media (max-width: 900px) {
  .outreach-card, .outreach-card.flipped { grid-template-columns: 1fr; }
  .outreach-card.flipped .outreach-panel { order: 0; }
  .outreach-panel { padding: 34px 30px; }
  .outreach-content { padding: 30px 26px 36px; }
}

/* ------------------------------------------------------------- CTA band */

.cta-band { background: var(--red); color: #fff; position: relative; overflow: hidden; padding: 72px 0; }
.cta-notes {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 130px; letter-spacing: 40px; opacity: .07; pointer-events: none; white-space: nowrap;
}
.cta-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.cta-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.cta-text { font-size: 18px; color: rgba(255,255,255,0.9); max-width: 560px; }

/* ------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: rgba(255,255,255,0.78); }
.piano-strip { display: flex; height: 34px; }
.piano-strip span { flex: 1; background: #fff; border-inline-end: 1px solid #D8D2C8; }
.piano-strip .pk-black { background: var(--ink); border-color: var(--ink); flex: .7; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 44px;
  padding: 68px 0 52px;
}
.footer-col h3 {
  color: #fff; font-size: 17px; margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
}
.footer-col h3::after { content: "♪"; color: var(--red); font-size: 14px; }
.footer-logo { margin-bottom: 18px; }
.footer-logo img { height: 40px; width: auto; }
.footer-brand p { font-size: 15px; margin-bottom: 14px; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--gold); }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-address a { transition: color .15s ease; font-size: 15.5px; }
.footer-links a:hover, .footer-address a:hover { color: var(--red); }
.footer-links a::before { content: "♩ "; color: var(--red); font-size: 12px; }
.footer-address p { margin-bottom: 12px; font-size: 15px; font-style: normal; }
.social-row { display: flex; gap: 12px; margin-bottom: 22px; }
.social-row a {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--red); transform: translateY(-3px); color: #fff; }
.footer-admin { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-admin:hover { color: var(--red); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer-made { color: var(--gold); }

/* ------------------------------------------------------------- reveal animation */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

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

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid .video-card:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
  .nav-link { padding: 10px 10px; font-size: 14.5px; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand-logo img { height: 38px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); inset-inline: 0; bottom: 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 28px 6vw; gap: 4px;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; z-index: 99;
  }
  .rtl .main-nav { transform: translateX(-100%); }
  .main-nav.open { transform: translateX(0); }
  .nav-link { font-size: 19px; padding: 15px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link.active::after { display: none; }
  .nav-cta { margin: 18px 0 0; justify-content: center; }
  .story-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media { position: static; grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .aims-grid { grid-template-columns: 1fr; }
  .story-media .frame img { height: 420px; }
  .hero-title-wrap { min-height: 240px; }
  section { padding: 72px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-card { padding: 24px 20px; }
  .programs-grid, .team-grid, .video-grid { grid-template-columns: 1fr; }
  .video-grid .video-card:first-child { grid-column: auto; }
  .gallery-masonry { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .news-article-body { padding: 30px 24px 36px; }
  .contact-form { padding: 30px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding: 90px 0 170px; }
  .hero-actions .btn { width: 100%; }
  .hero-scroll { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .about-media { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { width: 42px; height: 42px; }
}
