@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --navy: #0B1F3A;
  --navy-2: #12294D;
  --sky: #3D8FCB;
  --sky-light: #7FBCE8;
  --sky-tint: #EAF3FA;
  --grey: #5B6472;
  --grey-light: #8993A1;
  --paper: #F4F6F8;
  --paper-2: #ECEFF2;
  --line: #DCE1E7;
  --ink: #10151F;
  --white: #FFFFFF;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
}

/* =========================================================
   MUNTA ROYAL COLLEGE — FULL SCREEN INTRO ANIMATION
========================================================= */

/* =========================================================
   PAGE LOCK
   Prevents scrolling while the intro is playing
========================================================= */

html.mrc-intro-active,
body.mrc-intro-active {
  overflow: hidden !important;
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
}

/* =========================================================
   MAIN INTRO
========================================================= */

.mrc-intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;

  background:
    radial-gradient(circle at 50% 45%, rgba(61, 143, 203, 0.22), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(127, 188, 232, 0.06), transparent 65%),
    linear-gradient(135deg, var(--navy), var(--navy-2));

  color: var(--white);
  opacity: 1;
  visibility: visible;
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1), visibility 1s ease;
}

/* =========================================================
   INTRO EXIT
========================================================= */

.mrc-intro.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================================
   SUBTLE LIGHT GLOW
========================================================= */

.mrc-intro::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  background: radial-gradient(circle at center, rgba(61, 143, 203, 0.12), transparent 28%);
  animation: mrcAmbientGlow 5s ease-in-out infinite;
}

/* =========================================================
   TOP / BOTTOM VIGNETTE
========================================================= */

.mrc-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .18), transparent 22%, transparent 78%, rgba(0, 0, 0, .25));
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.mrc-animation-content {
  position: relative;
  z-index: 20;
  width: min(92vw, 1000px);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* =========================================================
   EMBLEM
========================================================= */

.mrc-emblem {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: mrcEmblemAppear 1.2s cubic-bezier(.16, 1, .3, 1) .15s forwards;
}

.emblem-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(127, 188, 232, .75);
  transform: rotate(45deg);
  box-shadow: 0 0 30px rgba(61, 143, 203, .25), inset 0 0 25px rgba(61, 143, 203, .08);
  animation: mrcRingPulse 4s ease-in-out 1.4s infinite;
}

.emblem-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 3px;
}

.emblem-inner span {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  opacity: 0;
  transform: scale(.4);
  animation: mrcLetterAppear .55s cubic-bezier(.16, 1, .3, 1) forwards;
}

.emblem-inner span:nth-child(1) { animation-delay: .55s; }
.emblem-inner span:nth-child(2) { animation-delay: .7s; }
.emblem-inner span:nth-child(3) { animation-delay: .85s; }

.emblem-star {
  position: absolute;
  top: -13px;
  right: -14px;
  z-index: 5;
  color: var(--sky-light);
  font-size: 18px;
  opacity: 0;
  transform: scale(.2) rotate(-90deg);
  animation: mrcStarAppear .7s cubic-bezier(.16, 1, .3, 1) 1s forwards;
}

/* =========================================================
   SMALL TITLE
========================================================= */

.mrc-small-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 25px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .62);
  opacity: 0;
  transform: translateY(15px);
  animation: mrcSmallTitleAppear .8s ease 1.05s forwards;
}

.mrc-small-title span {
  width: 55px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(127, 188, 232, .7));
}

.mrc-small-title span:last-child {
  background: linear-gradient(to left, transparent, rgba(127, 188, 232, .7));
}

/* =========================================================
   SCHOOL TITLE
========================================================= */

.mrc-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(50px, 9vw, 105px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.045em;
}

.mrc-title .word {
  display: block;
  opacity: 0;
  transform: translateY(40px) scale(.97);
  animation: mrcWordAppear 1s cubic-bezier(.16, 1, .3, 1) forwards;
}

.mrc-title .word:nth-child(1) { animation-delay: 1.15s; }
.mrc-title .word:nth-child(2) { color: white; animation-delay: 1.3s; }
.mrc-title .word:nth-child(3) { animation-delay: 1.45s; }

/* =========================================================
   TAGLINE
========================================================= */

.mrc-tagline {
  margin: 30px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .62);
  opacity: 0;
  transform: translateY(15px);
  animation: mrcTaglineAppear .8s ease 1.8s forwards;
}

.mrc-tagline i { color: var(--sky-light); font-style: normal; }

/* =========================================================
   UNDERLINE
========================================================= */

.mrc-line {
  position: relative;
  width: 190px;
  height: 1px;
  margin-top: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}

.mrc-line span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sky-light);
  box-shadow: 0 0 12px rgba(127, 188, 232, .8);
  animation: mrcLineExpand 1.2s cubic-bezier(.16, 1, .3, 1) 1.8s forwards;
}

/* =========================================================
   ORBIT RINGS
========================================================= */

.mrc-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(127, 188, 232, .07);
  transform-origin: center;
  z-index: 8;
}

.orbit-1 {
  width: 500px; height: 500px;
  margin-left: -250px; margin-top: -250px;
  animation: mrcOrbitClockwise 18s linear infinite;
}

.orbit-2 {
  width: 750px; height: 750px;
  margin-left: -375px; margin-top: -375px;
  border-color: rgba(61, 143, 203, .06);
  animation: mrcOrbitReverse 25s linear infinite;
}

.orbit-3 {
  width: 1000px; height: 1000px;
  margin-left: -500px; margin-top: -500px;
  border-color: rgba(127, 188, 232, .045);
  animation: mrcOrbitClockwise 35s linear infinite;
}

/* =========================================================
   PARTICLES
========================================================= */

.mrc-particles {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.mrc-particles span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--sky-light);
  opacity: .3;
  animation: mrcParticleFloat 5s ease-in-out infinite;
}

.mrc-particles span:nth-child(1)  { left: 8%;  top: 18%; animation-delay: 0s; }
.mrc-particles span:nth-child(2)  { left: 18%; top: 72%; animation-delay: .8s; }
.mrc-particles span:nth-child(3)  { left: 28%; top: 13%; animation-delay: 1.4s; }
.mrc-particles span:nth-child(4)  { left: 39%; top: 83%; animation-delay: 2s; }
.mrc-particles span:nth-child(5)  { left: 52%; top: 10%; animation-delay: .4s; }
.mrc-particles span:nth-child(6)  { left: 67%; top: 21%; animation-delay: 1.8s; }
.mrc-particles span:nth-child(7)  { left: 83%; top: 34%; animation-delay: 2.5s; }
.mrc-particles span:nth-child(8)  { left: 91%; top: 68%; animation-delay: 1s; }
.mrc-particles span:nth-child(9)  { left: 14%; top: 45%; animation-delay: 3s; }
.mrc-particles span:nth-child(10) { left: 30%; top: 91%; animation-delay: 1.2s; }
.mrc-particles span:nth-child(11) { left: 73%; top: 87%; animation-delay: 2.2s; }
.mrc-particles span:nth-child(12) { left: 87%; top: 13%; animation-delay: .6s; }

/* =========================================================
   DISCOVER MRC
========================================================= */

.mrc-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 30;
  transform: translateX(-50%) translateY(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .27em;
  color: rgba(255, 255, 255, .42);
  opacity: 0;
  animation: mrcScrollAppear .8s ease 2.2s forwards;
}

.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--sky-light), transparent);
  animation: mrcArrowMove 1.5s ease-in-out infinite;
}

/* =========================================================
   MRC BIG FADED BLUE LOGO
========================================================= */

.mrc-orbit-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78vw;
  height: 78vw;
  max-width: 850px;
  max-height: 850px;
  border-radius: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  filter:
    grayscale(1)
    sepia(1)
    hue-rotate(165deg)
    saturate(6)
    brightness(.7)
    contrast(.75)
    drop-shadow(0 0 60px rgba(61,143,203,.5));
  mix-blend-mode: screen;
  animation: mrcLogoReveal 2s ease-out 0.4s forwards;
}

@keyframes mrcLogoReveal {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  to   { opacity: 0.30; transform: translate(-50%, -50%) scale(1); }
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes mrcAmbientGlow {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.12); opacity: 1; }
}

@keyframes mrcEmblemAppear {
  0%   { opacity: 0; transform: rotate(135deg) scale(.3); }
  100% { opacity: 1; transform: rotate(45deg) scale(1); }
}

@keyframes mrcRingPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(61, 143, 203, .2); }
  50%      { box-shadow: 0 0 45px rgba(61, 143, 203, .4); }
}

@keyframes mrcLetterAppear {
  0%   { opacity: 0; transform: scale(.4); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes mrcStarAppear {
  0%   { opacity: 0; transform: scale(.2) rotate(-90deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes mrcSmallTitleAppear {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mrcWordAppear {
  from { opacity: 0; transform: translateY(40px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mrcTaglineAppear {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mrcLineExpand {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes mrcOrbitClockwise {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes mrcOrbitReverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

@keyframes mrcParticleFloat {
  0%, 100% { opacity: .15; transform: translateY(0) scale(1); }
  50%      { opacity: .7;  transform: translateY(-20px) scale(1.6); }
}

@keyframes mrcScrollAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes mrcArrowMove {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(8px); }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .mrc-animation-content { width: 94vw; padding: 20px; }
  .mrc-emblem { width: 82px; height: 82px; margin-bottom: 30px; }
  .emblem-inner span { font-size: 17px; }
  .emblem-star { top: -10px; right: -10px; font-size: 14px; }
  .mrc-small-title { gap: 8px; font-size: 8px; letter-spacing: .18em; }
  .mrc-small-title span { width: 25px; }
  .mrc-title { font-size: clamp(45px, 14vw, 72px); line-height: .86; }
  .mrc-tagline { gap: 8px; font-size: 8px; letter-spacing: .12em; }
  .mrc-line { width: 140px; margin-top: 25px; }
  .mrc-scroll { bottom: 20px; font-size: 7px; letter-spacing: .2em; }
  .scroll-arrow { height: 24px; }
  .orbit-1 { width: 350px; height: 350px; margin-left: -175px; margin-top: -175px; }
  .orbit-2 { width: 550px; height: 550px; margin-left: -275px; margin-top: -275px; }
  .orbit-3 { width: 750px; height: 750px; margin-left: -375px; margin-top: -375px; }
}

/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-height: 650px) {
  .mrc-emblem { width: 70px; height: 70px; margin-bottom: 22px; }
  .mrc-small-title { margin-bottom: 17px; }
  .mrc-tagline { margin-top: 20px; }
  .mrc-line { margin-top: 20px; }
  .mrc-scroll { bottom: 12px; }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .mrc-intro *,
  .mrc-intro::before {
    animation: none !important;
    transition: none !important;
  }
  .mrc-orbit-logo { opacity: 0.30; transform: translate(-50%, -50%) scale(1); }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

::selection{ background: var(--sky-light); color: var(--navy); }

:focus-visible{
  outline: 2.5px solid var(--sky);
  outline-offset: 2px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4{
  font-family: var(--serif);
  color: var(--navy);
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

p{ margin: 0 0 1em; color: var(--grey); max-width: 62ch; }

.eyebrow-plain{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--sky);
  letter-spacing: 0.01em;
}

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--sky);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img{
  height: 52px;
  width: 52px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 3px;
}
.brand-text{ color: var(--white); }
.brand-text .name{
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
}
.brand-text .motto{
  font-size: 11.5px;
  color: var(--sky-light);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

nav.main-nav{
  display: flex;
  align-items: center;
  gap: 2px;
}
nav.main-nav a{
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:hover{ background: rgba(255,255,255,0.08); color: var(--white); }
nav.main-nav a.active{ color: var(--white); font-weight: 600; }
nav.main-nav a.cta-link{
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  margin-left: 8px;
}
nav.main-nav a.cta-link:hover{ background: var(--sky-light); }

.nav-toggle{
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg{ width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary{ background: var(--sky); color: var(--navy); }
.btn-primary:hover{ background: var(--sky-light); }
.btn-outline{ background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-navy{ background: var(--navy); color: var(--white); }
.btn-navy:hover{ background: var(--navy-2); }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover{ border-color: var(--sky); color: var(--sky); }

/* ---------- Hero (home) ---------- */
.hero{
  position: relative;
  background: var(--navy);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-photo{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.34;
}
.hero-photo::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--navy) 30%, rgba(11,31,58,0.55) 65%, rgba(11,31,58,0.25) 100%);
}
.hero-content{
  position: relative;
  z-index: 1;
  padding: 80px 0 96px;
  max-width: 660px;
}
.hero-content .eyebrow-plain{ color: var(--sky-light); }
.hero-content h1{
  color: var(--white);
  font-size: clamp(34px, 5vw, 54px);
  margin: 14px 0 20px;
}
.hero-content .lede{
  color: rgba(255,255,255,0.82);
  font-size: 17.5px;
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-motto{
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: var(--sky-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  letter-spacing: 0.01em;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  background: var(--navy);
  padding: 56px 0 44px;
  border-bottom: 3px solid var(--sky);
}
.page-hero .eyebrow-plain{ color: var(--sky-light); }
.page-hero h1{ color: var(--white); font-size: clamp(30px, 4vw, 42px); margin-top: 10px; }
.page-hero p{ color: rgba(255,255,255,0.75); margin-top: 12px; font-size: 16px; }
.crumb{
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.crumb a:hover{ color: var(--sky-light); }

/* ---------- Sections ---------- */
section{ padding: 76px 0; }
section.tight{ padding: 52px 0; }
.section-head{ max-width: 620px; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(26px, 3.2vw, 34px); }
.section-head p{ margin-top: 12px; font-size: 16px; }
.on-navy{ background: var(--navy); }
.on-navy h2, .on-navy h3, .on-navy h4{ color: var(--white); }
.on-navy p{ color: rgba(255,255,255,0.72); }
.on-navy .eyebrow-plain{ color: var(--sky-light); }
.on-tint{ background: var(--sky-tint); }
.on-paper-2{ background: var(--paper-2); }

/* ---------- Stat strip ---------- */
.stat-strip{
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-strip .wrap{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-cell{
  padding: 30px 24px;
  border-left: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.stat-cell:first-child{ border-left: none; }
.stat-cell .num{
  font-family: var(--serif);
  color: var(--sky-light);
  font-size: 32px;
  font-weight: 600;
}
.stat-cell .lbl{
  color: rgba(255,255,255,0.68);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ---------- Cards / grids ---------- */
.grid{ display: grid; gap: 28px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

.pillar{
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sky);
  padding: 30px 26px;
}
.pillar h3{ font-size: 19px; margin-bottom: 10px; }
.pillar p{ font-size: 14.5px; margin-bottom: 0; }

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img{ width: 100%; height: 100%; object-fit: cover; }
.split-text .eyebrow-plain{ display: block; margin-bottom: 10px; }
.split-text h2{ font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }

.frame{
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--white);
}
.frame img{ width: 100%; }

/* photo strip / gallery */
.photo-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-strip figure{ margin: 0; overflow: hidden; background: var(--navy); }
.photo-strip img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-strip a:hover img{ transform: scale(1.05); }
.photo-strip figcaption{
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--white);
  background: var(--navy);
}

/* ---------- Program / list table ---------- */
.program-list{ border-top: 1px solid var(--line); }
.program-row{
  display: grid;
  grid-template-columns: 90px 1fr 160px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.program-row .tag{
  font-family: var(--serif);
  font-style: italic;
  color: var(--sky);
  font-size: 15px;
}
.program-row h4{ font-size: 17px; margin-bottom: 4px; }
.program-row p{ margin: 0; font-size: 14px; }
.program-row .years{ color: var(--grey-light); font-size: 13.5px; text-align: right; }

/* ---------- Steps (admissions — genuine sequence) ---------- */
.steps{ counter-reset: step; }
.step{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step:first-child{ padding-top: 0; }
.step .step-num{
  counter-increment: step;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--sky);
  border: 1.5px solid var(--sky);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step .step-num::before{ content: counter(step); }
.step h4{ font-size: 17.5px; margin-bottom: 6px; }
.step p{ margin: 0; font-size: 14.5px; }

/* ---------- Quote / motto block ---------- */
.motto-block{
  text-align: center;
  padding: 64px 0;
}
.motto-block .crest{
  width: 74px; margin: 0 auto 22px;
}
.motto-block blockquote{
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
  margin: 0;
}
.motto-block cite{
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 13.5px;
  color: var(--grey-light);
}

/* ---------- Info / contact cards ---------- */
.info-card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
}
.info-card h4{
  font-size: 12.5px;
  text-transform: none;
  color: var(--sky);
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 10px;
}
.info-card .val{ font-size: 16px; color: var(--ink); font-weight: 500; }
.info-card .val + .val{ margin-top: 4px; }

.map-frame{
  border: 1px solid var(--line);
  filter: grayscale(0.15);
}

/* ---------- Form ---------- */
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea{
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--sky);
  outline: none;
}
.field textarea{ resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */
footer.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 58px 0 26px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand{ display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img{ height: 46px; width: 46px; background: var(--white); border-radius: 50%; padding: 3px; }
.footer-brand .name{ font-family: var(--serif); color: var(--white); font-size: 17px; }
.footer-brand p{ color: rgba(255,255,255,0.6); font-size: 13.5px; margin-top: 8px; }
.footer-col h5{
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 16px;
}
.footer-col a, .footer-col p{
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-col a:hover{ color: var(--sky-light); }
.footer-bottom{
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Utility ---------- */
.center{ text-align: center; }
.mt-0{ margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  nav.main-nav{
    position: fixed;
    top: 78px; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 49;
  }
  nav.main-nav.open{ transform: translateX(0); }
  nav.main-nav a{ padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; }
  nav.main-nav a.cta-link{ margin: 14px 0 0; text-align: center; }
  .nav-toggle{ display: inline-flex; }

  .split{ grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-text{ order: 2; }
  .grid-3, .grid-4{ grid-template-columns: 1fr 1fr; }
  .stat-strip .wrap{ grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(3){ border-left: none; }
  .stat-cell{ border-top: 1px solid rgba(255,255,255,0.12); }
  .stat-cell:first-child, .stat-cell:nth-child(2){ border-top: none; }
  .photo-strip{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .program-row{ grid-template-columns: 1fr; gap: 6px; }
  .program-row .years{ text-align: left; }
  .form-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; }
  .photo-strip{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .hero-content{ padding: 56px 0 64px; }
  section{ padding: 56px 0; }
}

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

/* ---------- Loading screen ---------- */
#mrc-loader{
  position: fixed;
  inset: 0;
  z-index: 999;
  background:
    radial-gradient(circle at 50% 40%, rgba(61,143,203,0.25), transparent 55%),
    linear-gradient(150deg, var(--navy), var(--navy-2));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#mrc-loader.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner{
  text-align: center;
  position: relative;
}
.loader-crest{
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--white);
  padding: 6px;
  margin: 0 auto 26px;
  box-shadow: 0 0 0 1px rgba(127,188,232,.4), 0 0 40px rgba(61,143,203,.45);
  animation: mrc-pulse 1.6s cubic-bezier(.45,0,.55,1) infinite;
}
.loader-crest img{ width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.loader-crest::before{
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(127,188,232,.5);
  animation: mrc-ring-spin 3s linear infinite;
}
.loader-crest::after{
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px dashed rgba(127,188,232,.22);
  animation: mrc-ring-spin 7s linear infinite reverse;
}
@keyframes mrc-pulse{
  0%, 100%{ transform: scale(1); box-shadow: 0 0 0 1px rgba(127,188,232,.4), 0 0 40px rgba(61,143,203,.45); }
  50%{ transform: scale(1.07); box-shadow: 0 0 0 1px rgba(127,188,232,.65), 0 0 60px rgba(61,143,203,.7); }
}
@keyframes mrc-ring-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
.loader-bar{
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-bar::after{
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--sky-light));
  box-shadow: 0 0 10px rgba(127,188,232,.7);
  animation: mrc-load-sweep 1.1s ease-in-out infinite;
}
@keyframes mrc-load-sweep{
  0%{ transform: translateX(-100%); }
  100%{ transform: translateX(350%); }
}
.loader-text{
  margin-top: 16px;
  color: rgba(255,255,255,0.7);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce){
  .loader-crest, .loader-crest::before, .loader-crest::after, .loader-bar::after{ animation: none; }
}

/* ---------- Page fade-in ---------- */
body{ opacity: 1; }
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  body{ opacity: 1; }
  .reveal{ opacity: 1; transform: none; transition: none; }
}
/* If JavaScript never runs (disabled, blocked, or fails to load),
   nothing should stay hidden — content must degrade to fully visible. */
.no-js body{ opacity: 1; background: var(--paper); }
.no-js .reveal{ opacity: 1; transform: none; }
.no-js #mrc-loader{ display: none; }
.no-js .mrc-intro{ display: none; }

/* ---------- Site tour / help guide ---------- */
.tour-fab{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(11,31,58,0.35);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.tour-fab:hover{ transform: scale(1.06); background: var(--sky-light); }

.tour-overlay{
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.72);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.tour-overlay.open{ opacity: 1; visibility: visible; }
.tour-card{
  background: var(--white);
  max-width: 420px;
  width: 100%;
  padding: 30px 28px;
  border-radius: 6px;
  border-top: 4px solid var(--sky);
  position: relative;
}
.tour-card h3{ font-size: 19px; margin-bottom: 10px; }
.tour-card p{ font-size: 14.5px; margin-bottom: 6px; }
.tour-card .tour-close{
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--grey-light);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.tour-card .tour-close:hover{ color: var(--navy); }
.tour-steps{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 12px;
}
.tour-dots{ display: flex; gap: 6px; }
.tour-dots span{ width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.tour-dots span.active{ background: var(--sky); }
.tour-nav-btn{
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.tour-nav-btn:hover{ background: var(--navy-2); }
.tour-nav-btn.secondary{ background: transparent; color: var(--grey); padding-left: 4px; }

/* ---------- Video cards (Videos page) ---------- */
.video-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.video-card{
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}
.video-card.wide{ grid-column: span 2; }
.video-wrap{
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-card.portrait .video-wrap{ aspect-ratio: 9/16; max-height: 520px; margin: 0 auto; }
.video-wrap video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Stacked videos (home hero feature) share one frame; only the active one shows */
#mrc-video-1, #mrc-video-2{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#mrc-video-2{ display: none; }

.video-play-btn{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,31,58,0.28);
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0;
  transition: background 0.2s ease;
}
.video-play-btn:hover{ background: rgba(11,31,58,0.42); }
.video-play-btn .play-circle{
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease;
}
.video-play-btn:hover .play-circle{ transform: scale(1.08); }
.video-play-btn svg{ width: 22px; height: 22px; fill: var(--navy); margin-left: 3px; }
.video-play-btn.hidden{ display: none; }

.sound-hint{
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11,31,58,0.85);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sound-hint.show{ opacity: 1; }
.sound-hint svg{ width: 14px; height: 14px; }

.mute-toggle{
  position: absolute;
  bottom: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(11,31,58,0.85);
  border: none;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.mute-toggle svg{ width: 17px; height: 17px; }
.mute-toggle:hover{ background: var(--navy); }

.video-card .video-meta{ padding: 14px 16px; }
.video-card .video-meta h4{ font-size: 15px; color: var(--navy); font-family: var(--sans); font-weight: 700; margin-bottom: 3px; }
.video-card .video-meta p{ font-size: 13px; margin: 0; color: var(--grey); }

@media (max-width: 900px){
  .video-grid{ grid-template-columns: 1fr 1fr; }
  .video-card.wide{ grid-column: span 2; }
}
@media (max-width: 560px){
  .video-grid{ grid-template-columns: 1fr; }
  .video-card.wide{ grid-column: span 1; }
}

/* ---------- Lightbox (gallery) ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6,14,28,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 40px 20px;
}
.lightbox.open{ opacity: 1; visibility: visible; }
.lightbox img{
  max-width: min(92vw, 1100px);
  max-height: 85vh;
  width: auto;
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.1);
}
.lightbox-caption{
  position: absolute;
  bottom: 26px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 13.5px;
}
.lightbox-close, .lightbox-prev, .lightbox-next{
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background: rgba(255,255,255,0.22); }
.lightbox-close{ top: 22px; right: 22px; width: 42px; height: 42px; }
.lightbox-close svg{ width: 18px; height: 18px; }
.lightbox-prev, .lightbox-next{ top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.lightbox-prev{ left: 16px; }
.lightbox-next{ right: 16px; }
.lightbox-prev svg, .lightbox-next svg{ width: 22px; height: 22px; }
@media (max-width: 640px){
  .lightbox-prev, .lightbox-next{ width: 40px; height: 40px; }
}

/* ---------- Security notice badge (footer) ---------- */
.trust-note{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
}
.trust-note svg{ width: 13px; height: 13px; flex-shrink: 0; }

/* honeypot field must stay invisible to humans, reachable to simple bots */
.hp-field{
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* =========================================================
   REELS — fullscreen scroll-snap video feed
   Opened by .reels-fab; renders as a full-viewport overlay
   with one video per screen, TikTok-style vertical scrolling.
========================================================= */

.reels-fab{
  position: fixed;
  right: 22px;
  bottom: 86px; /* sits above the existing .tour-fab */
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px 13px 16px;
  border-radius: 30px;
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid rgba(127,188,232,.5);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(11,31,58,0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.reels-fab svg{ width: 18px; height: 18px; fill: var(--sky-light); flex-shrink: 0; }
.reels-fab:hover{ transform: scale(1.04); background: var(--navy-2); }

.reels-overlay{
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.reels-overlay.open{ opacity: 1; visibility: visible; }

.reels-feed{
  height: 100%;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.reels-feed::-webkit-scrollbar{ display: none; }

.reels-slide{
  position: relative;
  height: 100%;
  height: 100dvh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
.reels-slide video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.reels-slide::after{
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 22%, transparent 78%, rgba(0,0,0,.35) 100%);
}

.reels-close{
  position: fixed;
  top: 18px; right: 18px;
  z-index: 420;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.reels-close:hover{ background: rgba(255,255,255,0.22); }
.reels-close svg{ width: 18px; height: 18px; }

.reels-meta{
  position: absolute;
  left: 20px;
  bottom: 26px;
  z-index: 10;
  max-width: 68%;
  color: var(--white);
}
.reels-meta h4{ color: var(--white); font-size: 16px; margin-bottom: 4px; }
.reels-meta p{ color: rgba(255,255,255,0.75); font-size: 13px; margin: 0; }
.reels-meta .reels-views{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.reels-meta .reels-views svg{ width: 13px; height: 13px; }

.reels-actions{
  position: absolute;
  right: 14px;
  bottom: 26px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.reels-action-btn{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.reels-action-btn:hover{ transform: scale(1.06); }
.reels-action-btn svg{ width: 23px; height: 23px; }
.reels-action-btn .count{
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  margin-top: 4px;
  text-align: center;
}
.reels-action-col{ display: flex; flex-direction: column; align-items: center; }

.reels-like-btn svg{ fill: #FFFFFF; stroke: #FFFFFF; stroke-width: 1.5; }
.reels-like-btn.liked svg{ fill: #E0263F; stroke: #E0263F; }
.reels-like-btn.liked{ transform: scale(1.08); }

/* Share gets its own solid, high-contrast treatment plus a text label,
   so it reads as a distinct action rather than one more faint circle
   in a row of near-identical icon buttons. */
.reels-share-btn{
  background: var(--sky);
  box-shadow: 0 4px 14px rgba(61,143,203,0.55);
}
.reels-share-btn:hover{ background: var(--sky-light); }
.reels-share-btn svg{ fill: none; stroke: var(--navy); stroke-width: 2; }
.reels-action-col .share-label{
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
  text-align: center;
  letter-spacing: 0.02em;
}

.reels-mute-btn{ position: absolute; top: 18px; left: 18px; z-index: 10; }
.reels-mute-btn svg{ fill: currentColor; }

.reels-progress{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.18);
  z-index: 12;
}
.reels-progress span{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--sky-light);
}

/* ---------- Comments panel ---------- */
.reels-comments{
  position: fixed;
  inset: 0;
  z-index: 430;
  display: flex;
  align-items: flex-end;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.reels-comments.open{ opacity: 1; visibility: visible; }
.reels-comments-panel{
  width: 100%;
  max-height: 72vh;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(.16,1,.3,1);
}
.reels-comments.open .reels-comments-panel{ transform: translateY(0); }
.reels-comments-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.reels-comments-head h4{ font-size: 15px; color: var(--navy); }
.reels-comments-close{
  background: none; border: none; color: var(--grey-light);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.reels-comments-list{
  overflow-y: auto;
  flex: 1;
  margin-bottom: 14px;
  min-height: 60px;
}
.reels-comment{
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.reels-comment:last-child{ border-bottom: none; }
.reels-comment .who{ font-size: 13px; font-weight: 700; color: var(--navy); }
.reels-comment .txt{ font-size: 13.5px; color: var(--grey); margin-top: 2px; }
.reels-comments-empty{ font-size: 13.5px; color: var(--grey-light); padding: 12px 0; }

.reels-comment-form{ display: flex; flex-direction: column; gap: 8px; }
.reels-comment-form .row{ display: flex; gap: 8px; }
.reels-comment-form input,
.reels-comment-form textarea{
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.reels-comment-form input:focus,
.reels-comment-form textarea:focus{ border-color: var(--sky); outline: none; }
.reels-comment-form textarea{ resize: none; min-height: 40px; }
.reels-comment-form button{
  align-self: flex-end;
  background: var(--sky);
  color: var(--navy);
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.reels-comment-form button:hover{ background: var(--sky-light); }

@media (min-width: 640px){
  .reels-comments{ align-items: center; justify-content: center; }
  .reels-comments-panel{
    max-width: 420px;
    max-height: 70vh;
    border-radius: 12px;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(.16,1,.3,1), opacity 0.25s ease;
  }
  .reels-comments.open .reels-comments-panel{ transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .reels-fab, .reels-action-btn, .reels-comments-panel{ transition: none !important; }
}
/* ---------- Nav hint pointer (mobile only, disappears once dismissed) ---------- */
.nav-hint{
  display: none;
  position: fixed;
  z-index: 51;
  top: 68px;
  right: 14px;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--sky);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(11,31,58,0.3);
  animation: nav-hint-bounce 1.6s ease-in-out infinite;
}
.nav-hint::before{
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--sky);
}
.nav-hint.show{ display: flex; }

@keyframes nav-hint-bounce{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 901px){
  .nav-hint{ display: none !important; }
}
@media (prefers-reduced-motion: reduce){
  .nav-hint{ animation: none; }
}