/* NIDO — Direction 2 Modern Editorial
   Locked design: bone background, navy + red, Crimson Pro serif + DM Sans body */

:root {
  --ink: #1f2c4f;          /* deep navy */
  --ink-2: #2a3a6b;
  --red: #c93a3a;          /* italic accent + eyebrow */
  --yellow: #f4c029;       /* hairline accent */
  --gray: #5b6478;         /* secondary text */
  --gray-2: #8a92a3;
  --rule: #e4e1d8;
  --bone: #fdfcf8;
  --bone-2: #f6f3ea;
  --white: #ffffff;

  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, Inter, sans-serif;

  --max: 1280px;
  --pad: 56px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }
/* Bump effective zoom so at 100% browser zoom the site looks tighter, not empty */
body { zoom: 1.08; }
@media (min-width: 1500px) { body { zoom: 1.14; } }
@media (min-width: 1800px) { body { zoom: 1.22; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bone);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--rule);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.brand-text .tag {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 500;
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
  transition: color 0.2s;
}
.nav a:hover { color: var(--red); }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
}
.lang-toggle .sep { color: var(--gray-2); font-weight: 400; }
.lang-toggle .inactive { color: var(--gray-2); font-weight: 400; }
.cta-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.2s;
}
.cta-primary:hover { background: var(--ink-2); transform: translateY(-1px); }

.cta-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.cta-ghost:hover { background: var(--ink); color: var(--white); }

/* ----- Hero ----- */
.hero {
  background: var(--bone);
  padding: 40px 0 80px;
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.hero-left .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 76px;
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 0;
}
.hero-title .accent {
  color: var(--red);
  font-style: italic;
  font-weight: 500;
}
.hero-divider {
  width: 56px;
  height: 3px;
  background: var(--yellow);
  margin: 28px 0;
  border: none;
}
.hero-sub-en, .hero-sub-es {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-body {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.6;
  margin-top: 28px;
  max-width: 440px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}
.hero-photo {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 2px;
}
.hero-caption-wrap {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.hero-caption {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.01em;
}

/* ----- Section base ----- */
.section {
  padding: 110px 0;
}
.section.alt {
  background: var(--bone-2);
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin-bottom: 24px;
  max-width: 720px;
}
.section-title .accent {
  color: var(--red);
  font-style: italic;
}
.section-lead {
  font-size: 19px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 64px;
}

/* ----- Promise (pillars) ----- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 56px;
}
.pillar {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.pillar .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--red);
  font-size: 22px;
  margin-bottom: 14px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.pillar p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* ----- Rooms / Programs ----- */
.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 24px;
}
.room {
  background: var(--bone);
}
.room img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 2px;
}
.room-meta {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  margin-top: 18px;
}
.room-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.room h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.room .ages {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 14px;
  font-style: italic;
}
.room p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

/* ----- Approach split ----- */
.approach-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.approach-split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 2px;
}
.approach-list {
  list-style: none;
  margin-top: 32px;
}
.approach-list li {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  align-items: baseline;
}
.approach-list li:last-child { border-bottom: 1px solid var(--rule); }
.approach-list .n {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--red);
  font-size: 18px;
}
.approach-list h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 6px;
}
.approach-list p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ----- Tuition ----- */
.tuition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 16px;
}
.tuition-card {
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: 40px 32px 36px;
  border-radius: 2px;
  position: relative;
}
.tuition-card.featured {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}
.tuition-card.featured .room-tag,
.tuition-card.featured h3,
.tuition-card.featured .price,
.tuition-card.featured ul li { color: var(--white); }
.tuition-card.featured .price-per,
.tuition-card.featured ul li { color: rgba(255,255,255,0.75); }
.tuition-card.featured .feat-pill {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 2px;
  text-transform: uppercase;
}
.tuition-card .room-tag { margin-bottom: 8px; }
.tuition-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 4px;
}
.tuition-card .ages-line {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 28px;
}
.tuition-card.featured .ages-line { color: rgba(255,255,255,0.7); }
.price {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 52px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-per {
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
  margin-bottom: 28px;
}
.tuition-card ul {
  list-style: none;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.tuition-card.featured ul { border-top-color: rgba(255,255,255,0.15); }
.tuition-card ul li {
  font-size: 14px;
  color: var(--gray);
  padding: 6px 0;
  display: flex;
  gap: 10px;
}
.tuition-card ul li::before {
  content: "—";
  color: var(--red);
}

/* ----- Visit ----- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.visit-info p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 22px;
  line-height: 1.65;
}
.visit-info .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 28px;
}
.visit-info .val {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  font-weight: 500;
}
form.visit-form {
  background: var(--bone);
  border: 1px solid var(--rule);
  padding: 40px;
  border-radius: 2px;
}
form.visit-form h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--ink);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bone);
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

/* ----- Footer ----- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
}
.footer-brand .brand-text .name { color: var(--white); }
.footer-brand .brand-text .tag { color: rgba(255,255,255,0.7); }
.footer-brand p {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 280px;
}
.footer h5 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer ul li {
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.footer ul li a:hover { color: var(--white); }
.footer-base {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 24px var(--pad) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* ----- Reveal animation (only with .js on html) ----- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  :root { --pad: 28px; }
  .hero-grid, .approach-split, .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { height: 380px; }
  .hero-title { font-size: 56px; }
  .hero-sub-en, .hero-sub-es { font-size: 40px; }
  .pillars, .rooms, .tuition-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .section { padding: 72px 0; }
  .section-title { font-size: 38px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 44px; }
  .hero-sub-en, .hero-sub-es { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta a { width: 100%; text-align: center; }
}

/* ============================================
   PLAYFUL HERO REDESIGN (mockup 3 direction)
   ============================================ */

/* Red CTA button override */
.cta-primary {
  background: var(--red) !important;
  color: var(--bone) !important;
  border-color: var(--red) !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,58,58,.25);
}
.cta-ghost {
  background: transparent !important;
  border: 1.5px solid var(--ink) !important;
  color: var(--ink) !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
}

/* Hero playful container */
.hero.playful {
  position: relative;
  overflow: hidden;
  padding: 20px 0 40px;
  background: var(--bone);
}

/* Decorative blobs */
.hero.playful .blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(.5px);
}
.hero.playful .blob-yellow-tl {
  width: 240px; height: 320px;
  background: var(--yellow);
  opacity: .55;
  top: -90px; left: -110px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}
.hero.playful .blob-blue-bl {
  width: 320px; height: 360px;
  background: #cfe0f3;
  opacity: .65;
  bottom: -80px; left: -130px;
  border-radius: 55% 45% 50% 50% / 45% 50% 50% 55%;
}
.hero.playful .blob-yellow-br {
  width: 280px; height: 320px;
  background: var(--yellow);
  opacity: .55;
  bottom: -90px; right: -100px;
  border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
}
.hero.playful .blob-blue-tr {
  width: 200px; height: 240px;
  background: #cfe0f3;
  opacity: .55;
  top: 40px; right: -80px;
  border-radius: 50% 50% 60% 40% / 55% 45% 50% 50%;
}

/* Hero grid above blobs */
.hero.playful .hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Hero text */
.hero.playful .hero-title {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1.0;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 18px;
  letter-spacing: -.015em;
}
.hero.playful .hero-sub-es {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.05;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 20px;
  letter-spacing: -.01em;
}
.hero.playful .hero-sub-es em {
  color: var(--red);
  font-style: italic;
}

/* Hand-drawn underlines */
.underline-yellow,
.underline-red {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.underline-yellow::after,
.underline-red::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.12em;
  height: .22em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.underline-yellow::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 9 C 40 3, 90 12, 198 5' stroke='%23f4c029' stroke-width='5' stroke-linecap='round' fill='none'/></svg>");
}
.underline-red::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 8 C 40 12, 110 3, 198 9' stroke='%23c93a3a' stroke-width='5' stroke-linecap='round' fill='none'/></svg>");
}

.hero.playful .hero-body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 26px;
  max-width: 480px;
}

.hero.playful .hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Tilted photo */
.hero.playful .hero-photo.tilted {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 60px rgba(31,44,79,.18), 0 6px 18px rgba(31,44,79,.10);
  border: 8px solid var(--bone);
  outline: 1px solid var(--rule);
}

/* Stat cards */
.stat-row {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 2px solid;
  background: transparent;
}
.stat-card svg { width: 36px; height: 36px; flex-shrink: 0; }
.stat-text { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Crimson Pro', serif;
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  font-weight: 600;
}
.stat-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--gray);
  margin-top: 4px;
}
.stat-red    { border-color: var(--red);    color: var(--red); }
.stat-yellow { border-color: var(--yellow); color: var(--yellow); }
.stat-blue   { border-color: #2b66c9;       color: #2b66c9; }

/* Mobile */
@media (max-width: 860px) {
  .hero.playful .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }
  .stat-row {
    grid-template-columns: 1fr;
    padding: 0 24px;
    margin-top: 36px;
  }
  .hero.playful .hero-title { font-size: 44px; }
  .hero.playful .hero-sub-es { font-size: 32px; }
}

/* ============================================
   ANIMATIONS — playful motion layer
   ============================================ */

/* Float for blobs */
@keyframes blob-drift-a {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(8px,-12px) rotate(3deg); }
}
@keyframes blob-drift-b {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50%     { transform: translate(-10px,10px) rotate(-4deg); }
}
.hero.playful .blob-yellow-tl { animation: blob-drift-a 11s ease-in-out infinite; }
.hero.playful .blob-blue-bl   { animation: blob-drift-b 13s ease-in-out infinite; }
.hero.playful .blob-yellow-br { animation: blob-drift-b 14s ease-in-out infinite; }
.hero.playful .blob-blue-tr   { animation: blob-drift-a 12s ease-in-out infinite; }

/* Hero entrance */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes photo-in {
  from { opacity: 0; transform: rotate(-4deg) translateY(20px) scale(.96); }
  to   { opacity: 1; transform: rotate(-1.5deg) translateY(0) scale(1); }
}
.hero.playful .hero-title    { animation: fade-up .55s ease-out .05s both; }
.hero.playful .hero-sub-es   { animation: fade-up .55s ease-out .15s both; }
.hero.playful .hero-body     { animation: fade-up .55s ease-out .25s both; }
.hero.playful .hero-cta      { animation: fade-up .55s ease-out .35s both; }
.hero.playful .hero-photo.tilted { animation: photo-in .7s cubic-bezier(.2,.7,.3,1) .15s both; }

/* Stat cards staggered */
@keyframes stat-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-card { animation: stat-in .5s ease-out both; }
.stat-card:nth-child(1) { animation-delay: .4s; }
.stat-card:nth-child(2) { animation-delay: .5s; }
.stat-card:nth-child(3) { animation-delay: .6s; }
.stat-card { transition: transform .25s ease, box-shadow .25s ease; }
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(31,44,79,.08);
}

/* Photo hover */
.hero.playful .hero-photo.tilted {
  transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s ease;
}
.hero.playful .hero-photo.tilted:hover {
  transform: rotate(0deg) scale(1.015);
  box-shadow: 0 30px 70px rgba(31,44,79,.25), 0 8px 20px rgba(31,44,79,.14);
}

/* Stronger reveal-on-scroll: fade + slide */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
html:not(.js) .reveal { opacity: 1; transform: none; }

/* Underline draw-on-reveal */
@keyframes draw-underline {
  from { background-size: 0% 100%; }
  to   { background-size: 100% 100%; }
}
.underline-yellow::after {
  background-size: 0% 100%;
  animation: draw-underline .7s ease-out .6s forwards;
}
.underline-red::after {
  background-size: 0% 100%;
  animation: draw-underline .7s ease-out .85s forwards;
}

/* Button micro-interactions */
.cta-primary, .cta-ghost { transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease !important; }
.cta-primary:active { transform: translateY(0) scale(.98) !important; }
.cta-ghost:hover {
  background: var(--ink) !important;
  color: var(--bone) !important;
}

/* Lang toggle pill (header) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease;
}
.lang-toggle:hover { background: rgba(31,44,79,.05); }
.lang-toggle .en, .lang-toggle .es {
  transition: opacity .2s ease, color .2s ease;
}
.lang-toggle .inactive { opacity: .35; }
.lang-toggle .sep { opacity: .35; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== Programs page: 6-room grid ===== */
.rooms-six {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 980px) { .rooms-six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .rooms-six { grid-template-columns: 1fr; } }
.room-card {
  background: #fff;
  border: 1px solid rgba(31,44,79,0.10);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.room-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(31,44,79,0.08); }
.room-card-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
}
.room-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  margin: 2px 0 4px;
}
.room-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}
.room-card-list li { padding: 2px 0; border-bottom: 1px dashed rgba(31,44,79,0.08); }
.room-card-list li:last-child { border-bottom: 0; }
.room-card-list strong { color: var(--ink); font-weight: 600; min-width: 90px; display: inline-block; }
.room-card p {
  font-size: 14px;
  color: var(--gray, #5a6478);
  line-height: 1.65;
  margin-top: auto;
}

/* ===== Daily schedule table ===== */
.schedule-table {
  margin-top: 36px;
  border: 1px solid rgba(31,44,79,0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.schedule-row {
  display: grid;
  grid-template-columns: 180px 1fr 160px;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(31,44,79,0.07);
  font-size: 15px;
  color: var(--ink);
  align-items: center;
}
.schedule-row:last-child { border-bottom: 0; }
.schedule-row span:first-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.schedule-row span:last-child {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.schedule-head {
  background: var(--ink);
  color: #fff;
}
.schedule-head span,
.schedule-head span:first-child,
.schedule-head span:last-child {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
@media (max-width: 720px) {
  .schedule-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 18px; }
  .schedule-row span:last-child { font-size: 11px; }
}

/* ========================================================== */
/* ===== HOME PAGE — DRAMATIC SCROLL ANIMATIONS V2 ========== */
/* ========================================================== */

/* Hero — staged fade-in on load */
.hero-fade-1, .hero-fade-2, .hero-fade-3, .hero-fade-4, .hero-fade-photo {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-rise .9s cubic-bezier(.2,.7,.3,1) forwards;
}
.hero-fade-1 { animation-delay: .05s; }
.hero-fade-2 { animation-delay: .20s; }
.hero-fade-3 { animation-delay: .35s; }
.hero-fade-4 { animation-delay: .50s; }
.hero-fade-photo { animation: hero-photo-in 1.1s cubic-bezier(.2,.7,.3,1) .25s forwards; transform: translateY(40px) scale(.96) rotate(-2deg); }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-photo-in {
  from { opacity: 0; transform: translateY(40px) scale(.96) rotate(-2deg); }
  to   { opacity: 1; transform: translateY(0) scale(1) rotate(-1.5deg); }
}

/* Animated hero blobs — gentle continuous drift */
.hero.playful .blob {
  animation: blob-float 14s ease-in-out infinite;
  will-change: transform;
}
.hero.playful .blob-yellow-tl { animation-duration: 16s; }
.hero.playful .blob-blue-bl   { animation-duration: 18s; animation-delay: -3s; }
.hero.playful .blob-yellow-br { animation-duration: 20s; animation-delay: -6s; }
.hero.playful .blob-blue-tr   { animation-duration: 17s; animation-delay: -9s; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(18px, -22px) scale(1.04); }
  50%      { transform: translate(-12px, 14px) scale(.97); }
  75%      { transform: translate(22px, 10px) scale(1.02); }
}

/* Reveal — base (overrides earlier .reveal block with stronger movement) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .9s cubic-bezier(.2,.7,.3,1),
    transform .9s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1) rotate(0);
}

/* Variant: slide from left */
.reveal.slide-left  { transform: translateX(-60px) translateY(20px); }
/* Variant: slide from right */
.reveal.slide-right { transform: translateX(60px) translateY(20px); }
/* Variant: slide up (bigger) */
.reveal.slide-up    { transform: translateY(60px); }
/* Variant: scale up */
.reveal.scale-up    { transform: translateY(30px) scale(.92); }

/* Staggered delays */
.reveal.stagger-1 { transition-delay: .05s; }
.reveal.stagger-2 { transition-delay: .18s; }
.reveal.stagger-3 { transition-delay: .31s; }
.reveal.stagger-4 { transition-delay: .44s; }
.reveal.stagger-5 { transition-delay: .57s; }
.reveal.stagger-6 { transition-delay: .70s; }

/* Section eyebrow — extra micro-animation when revealed */
.section-eyebrow.reveal.in {
  animation: eyebrow-slide-in .8s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes eyebrow-slide-in {
  from { letter-spacing: 0.04em; opacity: 0; }
  to   { letter-spacing: 0.16em; opacity: 1; }
}

/* Section titles — subtle scale */
.section-title.reveal {
  transform: translateY(35px) scale(.97);
}
.section-title.reveal.in {
  transform: translateY(0) scale(1);
}

/* Pillar cards — gentle lift on reveal + hover */
.pillar.reveal { transition-duration: 1s; }
.pillar:hover {
  transform: translateY(-6px);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}

/* Room cards — image scale-in */
.room.reveal img {
  transform: scale(1.08);
  transition: transform 1.4s cubic-bezier(.2,.7,.3,1);
}
.room.reveal.in img {
  transform: scale(1);
}
.room { transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease; }
.room:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(31,44,79,0.14); }
.room:hover img { transform: scale(1.04); }

/* Tuition cards — float on hover, dramatic reveal */
.tuition-card.reveal { transition-duration: 1s; }
.tuition-card { transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease; }
.tuition-card:hover { transform: translateY(-10px); box-shadow: 0 28px 60px rgba(31,44,79,0.14); }
.tuition-card.featured { transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease; }
.tuition-card.featured:hover { transform: translateY(-14px) scale(1.02); }

/* Approach list items — lift on hover */
.approach-list li { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.approach-list li:hover { transform: translateX(8px); }

/* Stat cards — lift on hover (already exists) + reveal */
.stat-card.reveal.in {
  animation: stat-pop .7s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes stat-pop {
  0%   { transform: translateY(30px) scale(.85); opacity: 0; }
  60%  { transform: translateY(-4px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Parallax photo — subtle scroll-driven translate */
.parallax-photo {
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}

/* Approach split image — subtle zoom on scroll into view */
.approach-split .reveal.slide-left img {
  transform: scale(1.05);
  transition: transform 1.6s cubic-bezier(.2,.7,.3,1);
}
.approach-split .reveal.slide-left.in img {
  transform: scale(1);
}

/* Section dividers — animated underline on titles with .accent */
.section-title .accent {
  position: relative;
  display: inline-block;
}

/* Smooth fade between sections */
.section { scroll-margin-top: 80px; }

/* Animated counter stat numbers */
.stat-num { display: inline-block; transition: transform .3s ease; }
.stat-card:hover .stat-num { transform: scale(1.08); }

/* Visit form — slide in from right with extra emphasis */
.visit-form.reveal { transform: translateX(40px) translateY(20px); }
.visit-form.reveal.in { transform: translateX(0) translateY(0); }

/* Pillar number — fade-in slightly delayed */
.pillar .num {
  transition: transform .6s cubic-bezier(.2,.7,.3,1), color .3s ease;
}
.pillar.reveal.in .num {
  animation: num-pop .9s cubic-bezier(.2,.7,.3,1) .15s both;
}
@keyframes num-pop {
  0%   { transform: scale(.5) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Approach list .n badge — pop in */
.approach-list .reveal.in .n {
  animation: num-pop .9s cubic-bezier(.2,.7,.3,1) .25s both;
}

/* Reduced motion — disable all */
@media (prefers-reduced-motion: reduce) {
  .hero-fade-1, .hero-fade-2, .hero-fade-3, .hero-fade-4, .hero-fade-photo,
  .hero.playful .blob,
  .section-eyebrow.reveal.in,
  .stat-card.reveal.in,
  .pillar.reveal.in .num,
  .approach-list .reveal.in .n {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal, .reveal.in {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
