/* 🧒 Kid-friendly note: More theme crayons for this page. */
:root {
  --glass: rgba(5, 10, 20, 0.65);
  --glow: rgba(50, 245, 200, 0.25);
  --ink-strong: #f7fbff;
}

/* 🔖 Kid-friendly note: Eyebrow labels are tiny shouty titles. */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: var(--accent2);
  margin-bottom: 1rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

/* ✏️ Kid-friendly note: This is the cute underline for eyebrows. */
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent2);
  opacity: 0.6;
}

/* 🖼️ Kid-friendly note: Hero visuals live in this frame. */
.hero-visual {
  min-height: 320px;
  display: grid;
}

/* 🎥 Kid-friendly note: Videos stretch nicely without squishing. */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.1);
}

/* 🌌 Kid-friendly note: A glow overlay to soften video edges. */
.hero-visual .video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(50, 245, 200, 0.25), transparent 60%),
              linear-gradient(140deg, rgba(0, 5, 15, 0.1), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

/* 🧪 Kid-friendly note: Helper for the grade snapshot grid. */
.grade-snapshot {
  align-items: stretch;
}

/* 🧾 Kid-friendly note: Glassy card for grades. */
.grade-card {
  background: linear-gradient(135deg, rgba(50, 245, 200, 0.12), rgba(4, 6, 17, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 2.5rem;
  box-shadow: 0 40px 60px rgba(2, 5, 15, 0.65);
}

/* 🎨 Kid-friendly note: Art frame for grade images. */
.grade-art {
  position: relative;
  padding: 1.5rem;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

/* 🪩 Kid-friendly note: The image gets a soft shadow. */
.grade-art img {
  width: min(360px, 70vw);
  filter: drop-shadow(0 18px 45px rgba(4, 0, 20, 0.65));
}

/* 🏷️ Kid-friendly note: Floating badge for labels. */
.floating-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--ink-strong);
  background: rgba(4, 6, 17, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* 🧱 Kid-friendly note: Wall layout for behavior cards. */
.media-wall {
  display: grid;
  gap: 2.5rem;
}

/* 📐 Kid-friendly note: Two columns for copy + cards. */
.media-wall__grid {
  width: 100%;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
}

/* 🧭 Kid-friendly note: Keep the intro text neat. */
.media-wall__grid > header {
  text-align: left;
  max-width: 540px;
  margin: 0;
}

/* 🧩 Kid-friendly note: Grid for the media cards. */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

/* 🪟 Kid-friendly note: Each card is a shiny window. */
.media-card {
  background: rgba(6, 10, 22, 0.85);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 1rem;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

/* 📸 Kid-friendly note: Pictures and videos stay crisp. */
.media-card img,
.media-card video {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
  object-fit: cover;
}

/* 🎬 Kid-friendly note: Video gets a dark safety net. */
.media-card video {
  background: #000;
}

/* 🔠 Kid-friendly note: Card titles look like labels. */
.media-card h3 {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* 🖼️ Kid-friendly note: Wrapper for the institutional video section. */
.video-frame {
  margin: 5rem auto 0;
  width: min(1100px, 94vw);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

/* 🧑‍🏫 Kid-friendly note: Split layout for copy and video. */
.hallway-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 2.5rem;
}

/* 🎥 Kid-friendly note: Video container with a neat border. */
.hallway-visual {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 45px rgba(3, 5, 15, 0.65);
}

/* 🎞️ Kid-friendly note: Video fills the frame. */
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 📝 Kid-friendly note: Padding for the copy block. */
.frame-copy {
  padding: 2.5rem 3rem 3rem;
  z-index: 2;
}

/* 📱 Kid-friendly note: Stack columns when screens shrink. */
@media (max-width: 900px) {
  .media-wall__grid,
  .hallway-grid {
    grid-template-columns: 1fr;
  }
}

/* 🌀 Kid-friendly note: Tilt effect base styling. */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

/* 💫 Kid-friendly note: Lift the card when it tilts. */
[data-tilt].is-tilting {
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.65);
}

/* 📲 Kid-friendly note: Mobile padding cleanup. */
@media (max-width: 720px) {
  .grade-card,
  .grade-art {
    padding: 2rem 1.5rem;
  }

  .media-card {
    min-height: auto;
  }
}
