/* =========================================================
   Siddhartha Prime School — design tokens
   Palette pulled directly from the crest: deep navy shield,
   gold laurel/stars, sky-blue wreath, cream ribbon.
   ========================================================= */
:root {
  --navy: #0e3960;
  --navy-deep: #082542;
  --navy-soft: #12466f;
  --gold: #f0b429;
  --gold-deep: #c98d0a;
  --sky: #7dd8ea;
  --sky-deep: #3fb6cf;
  --coral: #e2725b;
  --teal: #2f9e8f;
  --cream: #f8edc4;
  --ink: #14202b;
  --ink-soft: #445264;
  --paper: #fbfaf5;
  --white: #ffffff;
  --line: #e4ddc7;

  --font-display: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(14, 57, 96, 0.08);
  --shadow-md: 0 12px 30px rgba(14, 57, 96, 0.14);
  --shadow-lg: 0 24px 60px rgba(8, 37, 66, 0.22);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Mobile safety net — stop any stray wide element (a fixed-width decorative
   shape, an overflowing float, etc.) from creating horizontal scroll on
   phones. This is a belt-and-suspenders rule on top of the per-section
   responsive fixes below. */
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-deep);
  display: inline-block;
}

.eyebrow-lg { font-size: clamp(1.6rem, 3.2vw, 2.6rem); letter-spacing: 0.08em; white-space: nowrap; }
.eyebrow-lg::before { display: none; }

@media (max-width: 600px) {
  .eyebrow-lg { font-size: 1.25rem; white-space: normal; }
}

/* Small gold line–star–line divider shown under centered eyebrow headings */
.eyebrow-divider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 6px 0 20px;
}
.eyebrow-divider span {
  width: 34px; height: 1.5px; background: var(--gold-deep); opacity: 0.55;
}
.eyebrow-divider svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* Home page: bigger, pure-black body copy in the main content sections */
body.home-page .section-head p,
body.home-page .card p,
body.home-page .step p,
body.home-page .section--cream p,
body.home-page .event-card p {
  color: #000;
  font-size: 1.06rem;
  line-height: 1.75;
}

/* Home page: every section title matches the "SIDDHARTHA PRIME SCHOOL"
   welcome-title size, per site-wide title sizing request */
body.home-page h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy-deep); color: #dce8f3; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--cream { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--gold-deep); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-danger { background: #b3352b; color: #fff; }

/* =========================================================
   Home page: header hidden until scroll, hero fills viewport
   ========================================================= */
body.home-page .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
body.home-page .site-header.is-visible {
  transform: translateY(0);
}
body.home-page .navbar { box-shadow: none; }
body.home-page .site-header.is-visible .navbar { box-shadow: 0 1px 0 var(--line); }
body.home-page .hero {
  min-height: 100vh;
}

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 90px;
  z-index: 2;
  display: block;
}

/* Welcome-to-SPS block, sits right below the hero photo */
.welcome-block {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 76px 24px 90px;
  background: #eaf4fc;
}
.welcome-content { max-width: 720px; margin: 0 auto; position: relative; z-index: 5; }
.welcome-content .eyebrow { margin-bottom: 16px; }
.welcome-lede { color: #000; font-size: 1.18rem; line-height: 1.75; margin: 0 auto 34px; max-width: 640px; }
.welcome-title { font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: 30px; text-transform: uppercase; letter-spacing: 0.02em; }
.welcome-tagline {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy-deep);
  margin-bottom: 6px;
}
.welcome-tagline em { font-style: normal; color: var(--gold-deep); }
.welcome-underline { display: block; width: 200px; height: 10px; margin: 0 auto 32px; }
.welcome-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-outline-navy { border: 2px solid var(--navy-deep); color: var(--navy-deep); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-2px); }

/* Decorative blobs behind the welcome content */
.blob { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.blob-a {
  width: 340px; height: 340px; left: -110px; top: 60px;
  background: radial-gradient(circle at 30% 30%, rgba(180,220,250,0.9), rgba(180,220,250,0.15) 70%);
}
.blob-b {
  width: 420px; height: 420px; right: -140px; top: 10px;
  background: radial-gradient(circle at 70% 30%, rgba(180,220,250,0.8), rgba(180,220,250,0.12) 70%);
}

/* Dot grid accent, bottom-left */
.dot-grid {
  position: absolute; left: 34px; bottom: 30px; z-index: 1;
  width: 96px; height: 96px;
  background-image: radial-gradient(rgba(63,111,176,0.35) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.7;
}
@media (max-width: 900px) { .dot-grid { display: none; } }

/* Paper airplane accent, bottom-right */
.paper-plane { position: absolute; right: 40px; bottom: 24px; width: 78px; height: 78px; z-index: 1; opacity: 0.85; }
@media (max-width: 900px) { .paper-plane { display: none; } }

/* Cursive handwriting doodles */
.doodle {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-script); font-weight: 700;
  font-size: 1.55rem; line-height: 1.15; color: #3f6fb0;
}
.doodle span { display: block; }
.doodle-left { top: 42%; left: 40px; flex-direction: column; align-items: flex-start; text-align: left; }
.doodle-right { top: 38%; right: 40px; flex-direction: column; align-items: flex-end; text-align: right; }
.doodle-underline { width: 110px; height: 9px; }
.doodle-right .doodle-underline { width: 140px; }
.doodle-spark { width: 20px; height: 20px; margin-bottom: 2px; }
@media (max-width: 1100px) { .doodle { display: none; } }

/* =========================================================
   Top info bar
   ========================================================= */
.topbar {
  background: var(--navy-deep);
  color: #cfe0ee;
  font-size: 0.9rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.topbar-left span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.topbar-social a:hover { background: var(--gold); color: var(--navy-deep); }
.topbar-social svg { width: 15px; height: 15px; }
.topbar-badge {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
}

/* =========================================================
   Main nav
   ========================================================= */
.navbar {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 var(--line);
  border-radius: 0 0 22px 22px;
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 60px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 10px 15px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-links a:hover, .nav-links a.active { background: var(--navy-deep); color: var(--white); }
.nav-links .btn.nav-apply { margin-left: auto; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-deep); margin: 5px 0; }

/* =========================================================
   Hero (shield-facet signature shape)
   ========================================================= */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/school-building.jpg');
  background-size: cover;
  background-position: center 60%;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,37,66,0.0) 0%, rgba(8,37,66,0.0) 42%, rgba(8,37,66,0.32) 66%, rgba(8,37,66,0.86) 100%);
}
.hero-name-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  background: rgba(9,42,74,0.9);
  color: var(--white);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(1rem, 2.3vw, 1.5rem);
  padding: 20px 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding: 150px 24px 60px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(240,180,41,0.18); border: 1px solid rgba(240,180,41,0.45);
  color: var(--gold);
  padding: 7px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--white); max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { font-size: 1.08rem; color: #d6e4f0; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stat cards below the hero photo — 1:1 image placeholder on top */
.stats-belt { padding: 50px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.stats-row { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.stat-card {
  width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); background: var(--white); }
.stat-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.stat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stat-photo-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold);
  border: 2px dashed rgba(240,180,41,0.5);
  border-radius: 14px;
}
.stat-photo-fallback svg { width: 34px; height: 34px; }
.stat-photo-fallback span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ee; }
.stat-card b { font-family: var(--font-body); font-weight: 900; font-size: 1.7rem; color: var(--navy-deep); display: block; line-height: 1.1; }
.stat-card span { font-size: 0.86rem; color: var(--ink-soft); font-weight: 700; }

/* Decorative laurel motif (signature element reused across sections) */
.laurel-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 34px;
  color: var(--sky-deep);
}
.laurel-divider .line { width: 60px; height: 2px; background: var(--sky-deep); opacity: 0.5; }
.laurel-divider svg { width: 26px; height: 26px; }

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon-badge {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--gold);
}
.card .icon-badge svg { width: 26px; height: 26px; }

/* Our School Highlights cards — 16:9 photo placeholder on top, like feature cards */
.highlight-card { text-align: center; padding: 22px 22px 30px; }
.highlight-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.highlight-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.highlight-photo-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold);
  border: 2px dashed rgba(240,180,41,0.5);
  border-radius: 14px;
}
.highlight-photo-fallback svg { width: 34px; height: 34px; }
.highlight-photo-fallback span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ee; }
.emoji-badge { font-size: 1.6rem; line-height: 1; }

/* Big View More style CTA button */
.btn-xl { padding: 17px 40px; font-size: 1.05rem; }

/* "Our Story Continues..." teaser line */
.story-continues {
  font-family: var(--font-display); font-weight: 900; font-style: normal;
  color: var(--gold-deep); font-size: 1.1rem; margin: 0;
}

/* "...to be continued" teaser line under Chairman's / Principal's messages */
.msg-continued {
  font-family: var(--font-display); font-weight: 900; font-style: normal;
  color: var(--gold-deep); font-size: 1rem; margin: 12px 0 0;
}

/* Feature cards (Why Families Choose SPS) — 1:1 photo placeholder on top, slightly bigger */
.feature-card { padding: 22px 22px 30px; }
.feature-card h3 { font-size: 1.22rem; }
.feature-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-photo-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold);
  border: 2px dashed rgba(240,180,41,0.5);
  border-radius: 14px;
}
.feature-photo-fallback svg { width: 34px; height: 34px; }
.feature-photo-fallback span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ee; }

.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Ribbon badge (echoes the crest's banner) */
.ribbon-badge {
  position: relative;
  display: inline-block;
  background: var(--cream);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 22px;
  border: 1px solid var(--gold-deep);
  border-radius: 3px;
}

/* Numbered process (for admissions steps — genuinely sequential) */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  counter-increment: step;
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-deep); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
}
.step .num::before { content: counter(step); }
.step h4 { margin-bottom: 4px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* Timeline (about-us history) */
.timeline { border-left: 2px solid var(--sky); margin-left: 10px; padding-left: 28px; display: grid; gap: 30px; }
.timeline .item { position: relative; }
.timeline .item::before {
  content: ""; position: absolute; left: -34px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--navy-deep);
}
.timeline .year { font-family: var(--font-display); color: var(--navy); font-weight: 700; }

/* Quote / message block */
.msg-block {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  padding: 34px; display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start;
}
.msg-block .avatar {
  width: 150px; height: 150px; border-radius: 12px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
}
.msg-block .quote-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 0.4; }
.msg-block p { color: #000; font-size: 1.18rem; line-height: 1.85; }
.msg-block h4 { margin: 14px 0 0; font-size: 1.45rem; }
.msg-block span.role { color: var(--ink-soft); font-size: 0.86rem; }

/* Chairman-only message block (About SPS section) — bigger 1:1 photo
   placeholder on the left, message + name on the right. The user drops
   the real photo in at static/images/chairman.jpg; until then the
   dashed 1:1 placeholder shows automatically, same pattern as the
   other photo placeholders on this page. */
.msg-block-wrap { max-width: 900px; margin: 0 auto; }
.msg-block.chairman-only { grid-template-columns: 300px 1fr; gap: 40px; }
.chairman-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.chairman-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chairman-photo-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold);
  border: 2px dashed rgba(240,180,41,0.5);
  border-radius: 14px;
}
.chairman-photo-fallback svg { width: 40px; height: 40px; }
.chairman-photo-fallback span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ee; }
.chairman-name {
  display: block;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-top: 14px;
}
.chairman-only .role-block {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
}

/* Our School History copy (About SPS section) — bigger subheading + paragraph */
.section--cream .grid-2 > div > p:not(.story-continues) {
  color: #000;
  font-size: 1.15rem;
  line-height: 1.85;
}

/* Vision / Mission cards — icon + title centered in the box */
.vision-mission-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vision-mission-card .icon-badge { margin-left: auto; margin-right: auto; }

/* Tables (fee structure, curriculum) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.94rem; }
table th { background: var(--navy-deep); color: var(--white); text-align: left; padding: 14px 18px; font-weight: 600; font-family: var(--font-display); }
table td { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); }
table tr:hover td { background: rgba(240,180,41,0.06); }

/* Tabs (academics / facilities) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); font-weight: 600; font-size: 0.88rem; cursor: pointer; color: var(--ink-soft);
}
.tab-btn.active { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 1; background: var(--line); }
.gallery-grid img, .gallery-grid .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .ph { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.8rem; background: repeating-linear-gradient(135deg, #eee, #eee 10px, #f6f6f2 10px, #f6f6f2 20px); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 10px 12px;
  background: linear-gradient(0deg, rgba(8,37,66,0.85), transparent);
  color: #fff; font-size: 0.78rem; font-weight: 600;
}

/* Home-page gallery preview — same 1:1 boxes, just bigger (2-up instead of 3-up) */
.gallery-grid-square figure {
  border: 2px dashed rgba(240,180,41,0.5);
}
.gallery-grid-square .ph {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Faculty */
.faculty-card { text-align: center; }
.faculty-card .photo {
  width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 14px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
}
.faculty-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card .role { color: var(--gold-deep); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.faculty-card .qual { color: var(--ink-soft); font-size: 0.86rem; margin-top: 4px; }

/* Events / news */
.event-card { display: flex; gap: 18px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.event-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--navy-deep); color: var(--white); border-radius: 10px; padding: 10px 0; }
.event-date .d { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; display: block; }
.event-date .m { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); padding: 36px; }
.form-row { display: grid; gap: 6px; margin-bottom: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 0.86rem; font-weight: 700; color: var(--navy-deep); }
input, select, textarea {
  font-family: var(--font-body); font-size: 0.96rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky-deep); background: var(--white); }
textarea { resize: vertical; min-height: 110px; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 600; }
.alert-success { background: #e4f6ea; color: #1f7a44; border: 1px solid #b7e6c6; }
.alert-error { background: #fdeceb; color: #b3352b; border: 1px solid #f6c6c1; }

/* Info strip (contact page) */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-strip .card { text-align: left; }

/* Map embed */
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: var(--white); border-radius: 20px; padding: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #cfe0ee; margin: 0; }

/* Footer — font sizes bumped up across the board */
footer.site-footer { background: var(--navy-deep); color: #b9cbdc; padding: 64px 0 24px; font-size: 1.08rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 46px; }
.footer-brand .name { font-family: var(--font-display); color: var(--white); font-weight: 700; font-size: 1.15rem; }
.footer-grid ul li { margin-bottom: 12px; font-size: 1.05rem; }
.footer-grid ul li a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.98rem; }
.footer-credit { font-size: 0.85rem; }
.footer-admin-link { display: inline-block; margin-top: 14px; font-size: 0.84rem; opacity: 0.75; text-decoration: underline; }
.footer-admin-link:hover { opacity: 1; color: var(--gold); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero { min-height: 560px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .msg-block { grid-template-columns: 1fr; }
  .msg-block .avatar { width: 100px; height: 100px; }
  .msg-block.chairman-only { grid-template-columns: 1fr; }
  .chairman-photo { max-width: 260px; margin: 0 auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Accent color system — used to give cards varied color pops
   ========================================================= */
.accent-gold .icon-badge { background: var(--gold); color: var(--navy-deep); }
.accent-gold { border-top: 4px solid var(--gold); }
.accent-sky .icon-badge { background: var(--sky-deep); color: var(--white); }
.accent-sky { border-top: 4px solid var(--sky-deep); }
.accent-navy .icon-badge { background: var(--navy-deep); color: var(--gold); }
.accent-navy { border-top: 4px solid var(--navy-deep); }
.accent-coral .icon-badge { background: var(--coral); color: var(--white); }
.accent-coral { border-top: 4px solid var(--coral); }
.accent-teal .icon-badge { background: var(--teal); color: var(--white); }
.accent-teal { border-top: 4px solid var(--teal); }

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =========================================================
   Academics — 3 stage cards
   ========================================================= */
.academic-stage-card { text-align: center; padding-top: 34px; }
.academic-stage-card .icon-badge {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px;
  font-size: 1.9rem;
}
.academic-stage-card:hover .icon-badge { animation: gentleFloat 1.6s ease-in-out infinite; }
.academic-stage-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.stage-range { color: var(--ink-soft); font-weight: 700; margin-bottom: 18px; }

/* "Learn More" — its own pill-button shape, distinct from a plain text link */
.stage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--navy-deep);
  background: var(--cream);
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-deep);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.stage-link:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-2px); }

/* =========================================================
   Photo cards — Facilities & Co-Curricular Activities
   ========================================================= */
.photo-card-grid { grid-template-columns: repeat(4, 1fr); }
.photo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.photo-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.photo-card-image { position: relative; width: 100%; aspect-ratio: 1/1; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); overflow: hidden; }
.photo-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.photo-card:hover .photo-card-image img { transform: scale(1.09); }
.photo-card-fallback {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--gold);
}
.photo-card-fallback svg { width: 32px; height: 32px; }
.photo-card-fallback span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ee; }
.photo-card-label { display: block; text-align: center; padding: 14px 10px; font-weight: 800; color: var(--navy-deep); font-size: 0.96rem; }

/* =========================================================
   Achievements / Highlights — 16:9 photo placeholder on top
   ========================================================= */
.achievement-card { text-align: center; padding: 22px 22px 30px; }
.achievement-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
}
.achievement-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.achievement-photo-fallback {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold);
  border: 2px dashed rgba(240,180,41,0.5);
  border-radius: 14px;
}
.achievement-photo-fallback svg { width: 34px; height: 34px; }
.achievement-photo-fallback span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #cfe0ee; }

/* =========================================================
   Parent Testimonials
   ========================================================= */
.testimonial-card { display: flex; flex-direction: column; }
.testimonial-card .quote-mark { font-family: var(--font-display); font-size: 2.4rem; line-height: 0.5; color: var(--gold); margin-bottom: 10px; }
.testimonial-card p { color: #000; font-size: 0.98rem; line-height: 1.65; flex: 1; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 900; color: var(--white); font-size: 1rem;
}
.accent-gold .testimonial-avatar { background: var(--gold-deep); }
.accent-sky .testimonial-avatar { background: var(--sky-deep); }
.accent-navy .testimonial-avatar { background: var(--navy-deep); }
.accent-coral .testimonial-avatar { background: var(--coral); }
.testimonial-name { display: block; font-weight: 800; color: var(--navy-deep); font-size: 0.92rem; }
.testimonial-class { display: block; font-size: 0.8rem; color: var(--ink-soft); }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; font-weight: 800; color: var(--navy-deep); font-size: 1.02rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--gold-deep); font-weight: 900; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; color: #000; font-size: 0.98rem; line-height: 1.7; }
.faq-item p a { color: var(--gold-deep); font-weight: 700; }

/* =========================================================
   Final CTA band
   ========================================================= */
.final-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  position: relative; overflow: hidden; padding: 90px 0;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(240,180,41,0.14), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(125,216,234,0.14), transparent 45%);
}
.final-cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.final-cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.final-cta p { color: #d6e4f0; font-size: 1.08rem; margin-bottom: 32px; }
.final-cta .hero-actions { justify-content: center; }

@media (max-width: 900px) {
  .photo-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .photo-card-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { text-align: left; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 10px 20px 20px; box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 15px; }
  .nav-links .btn { margin: 8px 0 0; }
  .nav-links .btn.nav-apply { margin-left: 0; margin-top: 8px; }
  .topbar { font-size: 0.78rem; }
  .topbar .container { justify-content: center; text-align: center; padding-top: 10px; padding-bottom: 10px; }
  .topbar-left { justify-content: center; gap: 14px; }
  .topbar-right { justify-content: center; width: 100%; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 36px 0; }
  .hero { min-height: 480px; }
  .hero .container { padding: 50px 20px 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; text-align: center; padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-row { flex-direction: column; align-items: stretch; }
  .stat-card { width: 100%; max-width: 260px; margin: 0 auto; }
  .welcome-block { padding: 56px 18px 64px; }
  .brand img { height: 48px; }
  .navbar .container { gap: 14px; }
}

/* Extra-small phones — tighten typography and spacing a bit further so
   nothing feels cramped on ~360-400px wide screens. */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero-name-bar { font-size: 0.92rem; padding: 14px 14px; }
  .welcome-title { font-size: clamp(1.5rem, 8vw, 2rem); }
  .welcome-lede { font-size: 1rem; }
  .btn { padding: 11px 20px; font-size: 0.86rem; }
  .btn-xl { padding: 13px 22px; font-size: 0.9rem; }
  .card { padding: 22px 18px; }
  .msg-block { padding: 22px; }
  .stat-card { max-width: 100%; }
  table th, table td { padding: 10px 12px; font-size: 0.86rem; }
}

/* =========================================================
   Left "Admissions Are In Progress" vertical tab
   + right-side floating contact icon stack
   + bottom-left "back to top" round button
   (styled after the Aditya Medicare reference layout)
   ========================================================= */
.admissions-tab {
  position: fixed; left: 0; top: 65%; transform: translateY(-50%);
  z-index: 400;
  color: var(--white);
  padding: 14px 9px;
  border-radius: 0 10px 10px 0;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: tabBlink 6s ease-in-out infinite;
}
@keyframes tabBlink {
  0%, 100%   { background: var(--navy-deep); }
  25%        { background: var(--coral); }
  50%        { background: var(--teal); }
  75%        { background: var(--gold-deep); }
}
.admissions-tab .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--white); flex-shrink: 0;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}
.admissions-tab .tab-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Back-to-top round button — fixed bottom-left, hidden until the user
   scrolls down (toggled via .is-visible from the small inline script
   in base.html), smooth-scrolls to the top of the page on click. */
.scroll-top-btn {
  position: fixed;
  left: 20px;
  bottom: 26px;
  z-index: 410;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--navy-deep);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, visibility 0.25s;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.scroll-top-btn:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-3px) scale(1.05); }
.scroll-top-btn svg { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .scroll-top-btn { left: 14px; bottom: 18px; width: 42px; height: 42px; }
  .scroll-top-btn svg { width: 19px; height: 19px; }
}

.social-float {
  position: fixed; right: 0; bottom: 130px;
  z-index: 400;
  display: flex; flex-direction: column; gap: 32px;
}
.social-float-btn {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: var(--shadow-md);
  transition: transform 0.18s ease;
}
.social-float-btn svg { width: 21px; height: 21px; position: relative; z-index: 1; }
.social-float-btn:hover { transform: scale(1.1); }
.social-float-btn.call { background: var(--coral); --ring: var(--coral); }
.social-float-btn.mail { background: var(--navy-deep); --ring: var(--navy-deep); }
.social-float-btn.insta { background: var(--navy-deep); --ring: var(--navy-deep); }
.social-float-btn.loc { background: var(--navy-deep); --ring: var(--navy-deep); }
/* WhatsApp — same round shape as the other floating icons now (was a
   rounded square), sits a little lower in the stack, and gets its own
   brighter ripple so it stays the clearest of the group. */
.social-float-btn.wa {
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; --ring: #25d366;
  margin-top: 6px;
}
.social-float-btn.wa svg { width: 26px; height: 26px; }

/* Concentric ripple rings, staggered per icon — made a touch bigger
   and a bit more opaque so the animation reads more clearly. */
.social-float-btn::before,
.social-float-btn::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 var(--ring, var(--navy-deep));
  opacity: 0.65;
  animation: ripple 2.1s ease-out infinite;
  pointer-events: none;
}
.social-float-btn::after { animation-delay: 0.7s; opacity: 0.45; }
@keyframes ripple {
  0%   { box-shadow: 0 0 0 0 var(--ring, var(--navy-deep)); opacity: 0.6; }
  100% { box-shadow: 0 0 0 20px var(--ring, var(--navy-deep)); opacity: 0; }
}
.social-float-btn:nth-child(1)::before, .social-float-btn:nth-child(1)::after { animation-delay: 0s, 0.7s; }
.social-float-btn:nth-child(2)::before { animation-delay: 0.3s; }
.social-float-btn:nth-child(2)::after { animation-delay: 1s; }
.social-float-btn:nth-child(3)::before { animation-delay: 0.6s; }
.social-float-btn:nth-child(3)::after { animation-delay: 1.3s; }
.social-float-btn:nth-child(4)::before { animation-delay: 0.9s; }
.social-float-btn:nth-child(4)::after { animation-delay: 1.6s; }
.social-float-btn:nth-child(5)::before { animation-delay: 1.2s; }
.social-float-btn:nth-child(5)::after { animation-delay: 1.9s; }

@media (max-width: 760px) {
  .admissions-tab { padding: 10px 7px; top: 68%; }
  .admissions-tab .tab-text { font-size: 0.68rem; }
  .social-float { bottom: 90px; gap: 20px; }
  .social-float-btn { width: 38px; height: 38px; }
  .social-float-btn svg { width: 17px; height: 17px; }
  .social-float-btn.wa { width: 44px; height: 44px; }
  .social-float-btn.wa svg { width: 21px; height: 21px; }
}

/* =========================================================
   Scroll animation toolkit — reveal-on-scroll system
   Driven by animations.js (IntersectionObserver). Elements
   start hidden/offset and transition to their final state
   once animations.js adds .is-visible.
   ========================================================= */
[class*="reveal-"], .reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal-fade { transform: none; }
.reveal-up { transform: translateY(36px); }
.reveal-down { transform: translateY(-36px); }
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-zoom-in { transform: scale(0.85); }
.reveal-zoom-out { transform: scale(1.12); }
.reveal-scale { transform: scale(0.8); }
.reveal-3d {
  transform: perspective(900px) rotateX(18deg) translateY(24px);
  transform-origin: center bottom;
}
.reveal-spin {
  transform: rotate(0deg);
  transition: opacity 0.85s ease, transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-visible.reveal-fade,
.is-visible.reveal-up,
.is-visible.reveal-down,
.is-visible.reveal-left,
.is-visible.reveal-right,
.is-visible.reveal-zoom-in,
.is-visible.reveal-zoom-out,
.is-visible.reveal-scale {
  opacity: 1;
  transform: none;
}
.is-visible.reveal-3d {
  opacity: 1;
  transform: perspective(900px) rotateX(0) translateY(0);
}
.is-visible.reveal-spin {
  opacity: 1;
  transform: rotate(360deg);
}

@media (prefers-reduced-motion: reduce) {
  [class*="reveal-"], .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Text reveal — words animate in one after another, alternating up/down */
.text-reveal .tr-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.text-reveal .tr-word.tr-from-top {
  transform: translateY(-0.6em);
}
.text-reveal.is-visible .tr-word { opacity: 1; transform: translateY(0); }

/* Image reveal — clip-path wipe as the image scrolls into view */
.img-reveal { overflow: hidden; }
.img-reveal img,
.img-reveal svg {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.img-reveal.is-visible img,
.img-reveal.is-visible svg {
  clip-path: inset(0 0 0 0);
}

/* Horizontal scroll row — Achievements & Highlights */
.hscroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 6px 26px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) var(--line);
}
.hscroll-row .hscroll-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.hscroll-row::-webkit-scrollbar { height: 8px; }
.hscroll-row::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 999px; }
.hscroll-row::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
@media (max-width: 700px) {
  .hscroll-row .hscroll-item { flex-basis: 250px; }
}

/* Scroll progress bar — fixed at the very top of the viewport */
#scrollProgressBar {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--sky-deep));
  z-index: 900;
  transition: width 0.1s linear;
}

/* Parallax background layer */
.parallax-bg { will-change: transform; }