:root {
  --purple: #5c2e99;
  --purple-deep: #4b227f;
  --purple-soft: #7a4bb8;
  --gold: #f5c400;
  --gold-deep: #e0b000;
  --ink: #2f2f2f;
  --muted: #6a6a6a;
  --line: #ece8f4;
  --cream: #fffdf8;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(92, 46, 153, 0.08);
  --radius: 22px;
  --max: 1120px;
  --font: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--purple);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 80;
}
.skip:focus { left: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.dev-bar {
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.dev-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.dev-bar a, .dev-bar button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.nav a {
  font-size: 11px;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a4a4a;
  padding: 6px 0;
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 99px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--purple);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* Logo */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo-img img {
  display: block;
  width: auto;
  height: 64px;
  object-fit: contain;
}
.header .logo-img img { height: 56px; }
.logo-badge .logo-img img { height: 88px; }
@media (max-width: 720px) {
  .header .logo-img img { height: 48px; }
  .logo-badge .logo-img img { height: 72px; }
}

.logo-badge {
  width: auto;
  height: auto;
  border: none;
  border-radius: 20px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.site-footer .logo-badge .logo-img img {
  height: 92px;
  filter: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-deep); }
.nav a.btn,
.nav a.btn-purple {
  color: #fff !important;
  background: var(--purple);
  border: 2px solid var(--purple);
  letter-spacing: 0.04em;
  padding: 10px 18px;
}
.nav a.btn-purple:hover,
.nav a.btn-purple:focus-visible {
  color: #fff !important;
  background: var(--purple-deep);
  border-color: var(--purple-deep);
}
.nav a.btn-purple[aria-current="page"]::after { display: none; }

.btn-gold { background: var(--gold); color: #2a2a2a; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline {
  background: #fff;
  color: var(--purple);
  border-color: #d9d3e6;
}
.btn-outline:hover { border-color: var(--purple); }
.btn-lg { padding: 14px 26px; font-size: 14px; }

/* Hero */
.hero {
  position: relative;
  padding: 18px 0 96px;
  overflow: visible;
  background: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 12px;
  min-height: 430px;
}
.hero-copy {
  position: relative;
  z-index: 3;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 800;
}
.hero-copy .line { display: block; color: var(--purple); }
.hero-copy .together { display: block; color: var(--gold); }
.hero-copy p {
  margin: 0 0 26px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 3;
}
.hero-visual {
  position: relative;
  z-index: 0;
  min-height: 460px;
  overflow: hidden;
}
.hero-visual img {
  position: absolute;
  inset: 0 0 40px auto;
  width: min(100%, 620px);
  height: 100%;
  object-fit: cover;
  object-position: 70% 20%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 100%);
}

/* Feature band */
.feature-band {
  position: relative;
  z-index: 1;
  background: var(--purple);
  color: #fff;
  margin-top: -1px;
  padding: 72px 0 56px;
}
.feature-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -70px;
  height: 90px;
  background: var(--purple);
  clip-path: ellipse(75% 100% at 70% 100%);
}
.feature-band .wave-gold {
  position: absolute;
  left: 0;
  right: 0;
  top: -78px;
  height: 90px;
  pointer-events: none;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.feature {
  text-align: center;
  padding: 8px 10px;
}
.feature-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.feature p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.86);
  line-height: 1.45;
}

/* Programs */
.programs {
  padding: 72px 0 40px;
  background: #fff;
}
.section-title {
  text-align: center;
  color: var(--purple);
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-title::before,
.section-title::after {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 99px;
  background: var(--gold);
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.program-card {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 28px 16px 24px;
  text-align: center;
  min-height: 240px;
}
.program-card:hover { transform: translateY(-3px); transition: transform 0.2s ease; }
.program-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: #fff;
}
.program-icon.purple { background: var(--purple); }
.program-icon.gold { background: var(--gold); color: #fff; }
.program-card h3 {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.program-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* Partner */
.partner {
  padding: 56px 0 24px;
  background: var(--cream);
}
.partner-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.partner h2 {
  color: var(--purple);
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 16px;
  text-transform: uppercase;
  max-width: 12ch;
}
.partner p {
  color: var(--muted);
  font-weight: 600;
  max-width: 36ch;
  margin: 0 0 22px;
}
.blob-wrap {
  position: relative;
  min-height: 320px;
}
.blob-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50% 46% 48% 52% / 48% 52% 46% 54%;
}
.blob-wrap::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 6%;
  width: 42%;
  height: 38%;
  border-top: 6px solid var(--purple);
  border-right: 6px solid #c9b3ea;
  border-radius: 0 80% 0 0;
  pointer-events: none;
}

/* CTA */
.cta {
  position: relative;
  padding: 64px 0 80px;
  text-align: center;
  background: var(--cream);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/cta-pattern.svg");
  background-size: 420px;
  opacity: 0.55;
  pointer-events: none;
}
.cta h2 {
  position: relative;
  color: var(--purple);
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.cta p {
  position: relative;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 22px;
}
.cta .btn { position: relative; }

/* Footer */
.site-footer {
  background: var(--purple);
  color: #fff;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.1fr 0.9fr 1fr;
  gap: 24px;
  align-items: start;
}
.footer-col h3 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-col a, .footer-col p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: 14px;
}
.footer-col a:hover { color: var(--gold); }
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.socials { display: flex; gap: 12px; margin-top: 4px; }
.socials a, .socials span {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.socials a:hover { background: rgba(255,255,255,.12); }
.socials .soon { opacity: 0.7; cursor: default; }
.footer-fun {
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 18px 0 0;
}
.footer-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

/* Interior pages */
.page-hero {
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  padding: 48px 0 36px;
  text-align: center;
}
.page-hero h1 {
  color: var(--purple);
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 12px;
}
.page-hero p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--muted);
  font-weight: 600;
  font-size: 18px;
}
.page-section { padding: 48px 0; }
.page-section.alt { background: var(--cream); }
.prose {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 17px;
  font-weight: 600;
  color: #444;
}
.prose h2 { color: var(--purple); margin: 0 0 12px; }
.prose p { margin: 0 0 16px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.info-card, .story-card, .step-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.story-card q {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
}
.story-card cite {
  display: block;
  font-style: normal;
  color: var(--purple);
  font-weight: 800;
}
.story-card .role { color: var(--muted); font-size: 14px; font-weight: 600; }

.program-detail {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 18px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

/* Forms */
.form-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; color: var(--purple); font-size: 14px; }
.field input, .field select, .field textarea {
  border: 1.5px solid #e4def0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(92, 46, 153, 0.18);
  border-color: var(--purple);
}
.checks { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 700; color: #444; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-ok {
  background: #e8f8ef;
  color: #0f6b3a;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}
.form-error {
  background: #fdecee;
  color: #a11;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}
.wrap.narrow { max-width: 720px; }
.form-note { color: var(--muted); font-size: 13px; font-weight: 600; margin: 8px 0 0; }
.alert {
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.alert-ok { background: #eefbf1; color: #176c32; }
.alert-err { background: #fdecec; color: #9b1c1c; }
.notice {
  background: #fff8de;
  border: 1px solid #f0e0a0;
  color: #6a5408;
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 700;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 220px;
  background: #f4eefc;
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 240px; object-fit: cover; }
.gallery-ph {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--purple);
  font-weight: 800;
}
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(40,20,70,.75));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.partner-logo {
  background: #fff;
  border-radius: 18px;
  min-height: 110px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
  font-weight: 800;
  color: var(--purple);
}
.partner-logo img { max-height: 56px; }

.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
  font-weight: 700;
}

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 16, 55, 0.62);
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-card {
  background: #fff;
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  padding: 28px;
  position: relative;
}
.modal-card h2 { color: var(--purple); margin: 0 0 10px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: #f3eef9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
}
.video-frame {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #1b1230;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { color: var(--purple); font-size: 64px; margin: 0; }

@media (max-width: 980px) {
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 36px; }
  .hero-grid, .partner-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
  .hero-visual img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 320px;
    -webkit-mask-image: none;
    mask-image: none;
    border-radius: 24px 24px 80px 24px;
  }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-row { position: relative; }
  .feature-grid, .program-grid, .form-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-badge { width: 96px; height: 96px; }
  .program-detail { grid-template-columns: 1fr; }
}
