/* ============================================================
   Inspire the Young — Design Tokens
   Obsidian (dark navy/black) + Fireberry (deep pink/magenta),
   on a warm off-white ground — adjust here if brand guide differs.
   ============================================================ */
:root {
  --ink: #122231;
  --ink-2: #2B313B;
  --accent: #A83D73;
  --accent-dark: #8A325E;
  --accent-light: #DDB2C8;
  --warm-white: #FBF5EE;
  --warm-white-2: #F3E6DC;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-w: 92px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding-left: var(--nav-w);
}

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 var(--space-2);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(138,50,94,.6); }
.btn--wide { width: 100%; justify-content: center; }
.btn__icon { width: 16px; height: 16px; }

/* ============================================================
   Side Navigation (desktop)
   ============================================================ */
.side-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--nav-w);
  background: var(--white);
  border-right: 1px solid rgba(18,34,49,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  padding: var(--space-3) 0;
}
.side-nav__brand { display: block; width: 44px; margin-bottom: var(--space-4); border-radius: 8px; overflow: hidden; }
.side-nav__brand img { width: 44px; height: 44px; object-fit: contain; background: var(--white); border-radius: 8px; }
.side-nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  min-height: 0;
  align-items: center;
  justify-content: space-evenly;
  overflow-y: auto;
  scrollbar-width: none;
}
.side-nav__list::-webkit-scrollbar { display: none; }
.side-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(18,34,49,.5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 6px;
  min-height: 44px;
  position: relative;
  transition: color .3s var(--ease);
}
.side-nav__link::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  width: 2px; height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height .3s var(--ease);
  border-radius: 2px;
}
.side-nav__link:hover { color: var(--ink); }
.side-nav__link.is-active { color: var(--accent-dark); }
.side-nav__link.is-active::before { height: 28px; }

.side-nav__progress {
  width: 2px;
  height: 100px;
  background: rgba(18,34,49,.1);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.side-nav__progress span {
  display: block;
  width: 100%;
  background: var(--accent);
  height: 0%;
  transition: height .15s linear;
}

/* ============================================================
   Mobile top bar + menu
   ============================================================ */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid rgba(18,34,49,.08);
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3);
  z-index: 200;
}
.mobile-bar__brand img { width: 36px; height: 36px; object-fit: contain; background: var(--white); border-radius: 6px; }
.mobile-bar__toggle {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: transparent; border: none; cursor: pointer;
}
.mobile-bar__toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.mobile-bar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-bar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-bar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--white);
  z-index: 199;
  padding: var(--space-4) var(--space-3);
}
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-menu__list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(18,34,49,.12);
  min-height: 44px;
}
.mobile-menu__list a.is-active { color: var(--accent-dark); }

/* ============================================================
   Sections — shared
   ============================================================ */
.section {
  min-height: 100vh;
  padding: var(--space-6) var(--space-5);
  display: flex;
  align-items: center;
  position: relative;
}
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: var(--space-2); }
.section-subtitle { max-width: 60ch; color: var(--ink-2); font-size: 17px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: var(--space-6) var(--space-5);
  color: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.55) contrast(1.05);
}
.hero__img--1 { clip-path: polygon(0 0, 60% 0, 45% 100%, 0 100%); opacity: .55; }
.hero__img--2 { clip-path: polygon(60% 0, 100% 0, 100% 100%, 45% 100%); opacity: .45; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(251,245,238,.93) 0%, rgba(251,245,238,.87) 42%, rgba(243,230,220,.9) 100%);
}
.hero__grain {
  position: absolute; inset: 0;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(18,34,49,.9) 1px, transparent 1px);
  background-size: 3px 3px;
}
.hero__content { position: relative; z-index: 1; max-width: 760px; }
.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.hero__title em { color: var(--ink); font-style: italic; }
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-2);
  margin: 0 0 var(--space-3);
}
.hero__lede { max-width: 62ch; font-size: 17px; color: rgba(18,34,49,.85); margin-bottom: var(--space-4); }
.hero__lede strong { color: var(--ink); font-weight: 700; }

.scroll-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.scroll-hint__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.scroll-cue {
  position: relative;
  width: 26px; height: 42px;
  border: 2px solid rgba(18,34,49,.35);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollCue 1.8s infinite var(--ease);
}
@keyframes scrollCue {
  0% { transform: translate(-50%,0); opacity: 1; }
  70% { opacity: 0; }
  100% { transform: translate(-50%,14px); opacity: 0; }
}

/* ============================================================
   Programs (tabbed: Buena Onda / IThinkBig)
   ============================================================ */
.programs { background: var(--warm-white); flex-direction: column; }
.programs__inner { width: 100%; max-width: 1100px; margin: 0 auto; }
.programs__head { text-align: center; margin-bottom: var(--space-5); }
.programs__tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  max-width: 520px;
  margin: var(--space-3) auto 0;
  border-bottom: 1px solid rgba(18,34,49,.12);
}
.programs__tab {
  background: none;
  border: none;
  padding: 0 2px 14px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  position: relative;
}
.programs__tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.programs__tab:hover { color: var(--ink); }
.programs__tab.is-active { color: var(--accent-dark); }
.programs__tab.is-active::after { transform: scaleX(1); }

.programs__panels { margin-top: var(--space-6); }
.programs__panel { display: none; }
.programs__panel.is-active {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.programs__media { flex: 1 1 46%; position: relative; }
.programs__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(18,34,49,.5);
}
.programs__content { flex: 1 1 46%; }
.programs__panel-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: var(--space-2); }
.programs__text { max-width: 56ch; font-size: 17px; color: var(--ink); margin-bottom: var(--space-3); }
.programs__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: 6px;
}
.stat { flex: 1 1 100px; min-width: 90px; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
}
.stat__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 4px;
}
.programs__note {
  font-size: 12.5px;
  font-style: italic;
  color: rgba(18,34,49,.45);
  margin: 0 0 var(--space-3);
}

@media (min-width: 860px) {
  .programs__panel.is-active { flex-direction: row; gap: var(--space-6); }
}

/* ============================================================
   About / Founder
   ============================================================ */
.about {
  background: var(--warm-white-2);
  color: var(--ink);
  gap: var(--space-6);
  flex-wrap: wrap;
}
.about__portrait {
  flex: 1 1 40%;
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__portrait-dots {
  position: absolute;
  top: -24px; left: -24px;
  width: 70%;
  height: 70%;
  background-image: radial-gradient(var(--accent) 2.5px, transparent 2.5px);
  background-size: 18px 18px;
  opacity: .3;
  z-index: 0;
  border-radius: var(--radius);
}
.about__portrait-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.55);
}
.about__content { flex: 1 1 50%; }
.about__title {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-3);
}
.about__title-sub {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.about__text { max-width: 58ch; }
.placeholder-copy { color: rgba(18,34,49,.85); font-size: 16.5px; }
.placeholder-copy em { color: var(--ink); font-style: italic; }

@media (min-width: 860px) {
  .about { flex-direction: row; }
}

/* ============================================================
   Team
   ============================================================ */
.team { flex-direction: column; align-items: stretch; gap: var(--space-5); background: var(--warm-white); }
.team__intro { max-width: 60ch; }
.team__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.team__group-head h3 { font-size: 22px; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.carousel-btn:hover { background: var(--ink); color: var(--white); }

.carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.carousel__track {
  display: flex;
  gap: var(--space-3);
}
.team-card {
  scroll-snap-align: start;
  flex: 0 0 200px;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
  box-shadow: 0 16px 32px -22px rgba(18,34,49,.35);
}
.team-card__avatar {
  width: 76px; height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.team-card__avatar--photo {
  object-fit: cover;
  background: var(--warm-white-2);
}
.team-card h4 { font-size: 16px; margin-bottom: 2px; }
.team-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--warm-white-2); }
.contact__inner { max-width: 640px; width: 100%; }
.contact-form { margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 10px;
  border: 1.5px solid #E3D6CC;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-error { color: #B3402A; font-size: 13px; min-height: 16px; }
.field.has-error input, .field.has-error textarea { border-color: #B3402A; }
.form-status { font-weight: 600; color: var(--ink); min-height: 20px; }
.form-status[data-state="error"] { color: #B3402A; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--warm-white);
  color: rgba(18,34,49,.75);
  border-top: 1px solid rgba(18,34,49,.08);
  text-align: center;
  padding: var(--space-5) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.footer__logo { width: 48px; height: 48px; object-fit: contain; background: var(--white); border-radius: 10px; padding: 4px; }
.footer__links { display: flex; gap: 10px; align-items: center; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-dark); font-weight: 600; }

/* ============================================================
   Responsive — collapse side nav under 900px
   ============================================================ */
@media (max-width: 900px) {
  body { padding-left: 0; padding-top: 64px; }
  .side-nav { display: none; }
  .mobile-bar { display: flex; }
  .section { padding: var(--space-5) var(--space-3); }
  .programs__media img { aspect-ratio: 4/3; }
  .programs__tabs { gap: var(--space-3); max-width: none; justify-content: flex-start; }
}
