:root {
  --ink: #111827;
  --muted: #64748b;
  --paper: #fffaf0;
  --gold: #f7c948;
  --orange: #ff6b35;
  --pink: #e83f8f;
  --blue: #1a237e;
  --cyan: #06b6d4;
  --green: #16a34a;
  --violet: #7c3aed;
  --navy: #0f172a;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(247, 201, 72, 0.24), transparent 28rem),
    radial-gradient(circle at 86% 24%, rgba(232, 63, 143, 0.15), transparent 28rem),
    linear-gradient(135deg, #fff7ed 0%, #eff6ff 45%, #fdf2f8 100%);
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(247, 201, 72, 0.24), transparent 20rem),
    radial-gradient(circle at 80% 30%, rgba(6, 182, 212, 0.18), transparent 24rem),
    radial-gradient(circle at 50% 80%, rgba(232, 63, 143, 0.18), transparent 22rem);
  filter: blur(4px);
  animation: auroraShift 14s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 1%, 0) scale(1.04);
  }
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), #fff4bf);
  font-weight: 900;
  box-shadow: inset 0 -6px 16px rgba(17, 24, 39, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #334155;
  font-weight: 800;
  transition: 0.2s ease;
}

.site-nav a:hover {
  color: var(--white);
  background: var(--navy);
}

.site-nav a.active {
  color: var(--navy);
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: var(--navy);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: clamp(2rem, 4vw, 4rem) 0 3rem;
}

.page-shell {
  min-height: calc(100vh - 130px);
  will-change: transform, opacity, filter;
  animation: pageEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.slide-from-right .page-shell {
  animation: slideFromRight 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.slide-from-left .page-shell {
  animation: slideFromLeft 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.slide-exit-left .page-shell {
  animation: slideExitLeft 0.28s cubic-bezier(0.7, 0, 0.84, 0) both;
}

body.slide-exit-right .page-shell {
  animation: slideExitRight 0.28s cubic-bezier(0.7, 0, 0.84, 0) both;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(80px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-80px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes slideExitLeft {
  to {
    opacity: 0;
    transform: translateX(-58px) scale(0.985);
    filter: blur(7px);
  }
}

@keyframes slideExitRight {
  to {
    opacity: 0;
    transform: translateX(58px) scale(0.985);
    filter: blur(7px);
  }
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.page-title {
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

h1 span {
  color: var(--pink);
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1.28rem;
}

.hero-text,
.section-heading p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: #334155;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 14px 30px rgba(232, 63, 143, 0.28);
}

.btn-whatsapp {
  color: var(--white);
  background: #16a34a;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.2);
}

.btn-secondary {
  color: var(--navy);
  border-color: rgba(16, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.btn-dark {
  color: var(--white);
  background: var(--navy);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 760px;
  margin-top: 2rem;
}

.quick-stats div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
}

.quick-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 34px;
  background: conic-gradient(from 130deg, var(--gold), var(--cyan), var(--pink), var(--orange), var(--gold));
}

.logo-showcase {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 1.2rem;
  margin-left: auto;
  padding: 2rem;
  border: 8px solid var(--white);
  border-radius: 28px;
  background:
    radial-gradient(circle at 35% 25%, rgba(247, 201, 72, 0.55), transparent 12rem),
    linear-gradient(135deg, var(--navy), #1d4ed8 58%, #581c87);
  box-shadow: var(--shadow);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.logo-showcase img {
  width: min(78%, 280px);
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  animation: logoFloat 4s ease-in-out infinite alternate;
}

.logo-showcase::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22), transparent 65%);
  transform: translateX(-42%) rotate(12deg);
  animation: sheen 5s ease-in-out infinite;
}

@keyframes logoFloat {
  to {
    transform: translateY(-8px);
  }
}

@keyframes sheen {
  50% {
    transform: translateX(42%) rotate(12deg);
  }
}

.logo-showcase strong,
.logo-showcase span {
  display: block;
}

.logo-showcase strong {
  color: var(--gold);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.logo-showcase span {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.notice-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.2rem;
  width: 100%;
  padding: 1rem;
  color: var(--white);
  background: linear-gradient(90deg, var(--navy), #1d4ed8, var(--pink), var(--orange));
  font-weight: 900;
  text-align: center;
}

.home-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2.5rem;
}

.mosaic-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.mosaic-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.55), rgba(232, 63, 143, 0.3));
}

.mosaic-card span {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.mosaic-card h2 {
  margin-top: 1.2rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.mosaic-card p {
  color: var(--muted);
  line-height: 1.65;
}

.notice-strip span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
}

.notice-strip a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.program-tabs {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.tab-button {
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  color: #475569;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.tab-button.is-active {
  color: var(--white);
  background: var(--blue);
}

.course-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.3fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 5% 15%, rgba(247, 201, 72, 0.32), transparent 18rem),
    linear-gradient(135deg, var(--navy), #1d4ed8 62%, #581c87);
  box-shadow: var(--shadow);
}

.course-panel h3 {
  margin-top: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.course-panel p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.subject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.subject-chips span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
}

.course-fee {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  min-height: 220px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.course-fee span {
  font-weight: 900;
  text-transform: uppercase;
}

.course-fee strong {
  color: var(--gold);
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  line-height: 1;
}

.subject-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0 1rem;
}

.search-box {
  display: grid;
  min-width: min(360px, 100%);
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.search-box input,
.admission-form input,
.admission-form select,
.admission-form textarea,
.fee-panel select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

.search-box input:focus,
.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus,
.fee-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.course-grid,
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.course-card,
.faculty-card,
.admission-form {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.course-card {
  min-height: 220px;
  padding: 1.3rem;
  transition: 0.2s ease;
}

.course-card.is-hidden {
  display: none;
}

.course-card:hover,
.faculty-card:hover {
  transform: translateY(-4px);
}

.course-card p,
.faculty-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  font-weight: 900;
}

.accent-blue .card-icon { background: var(--blue); }
.accent-green .card-icon { background: var(--green); }
.accent-pink .card-icon { background: var(--pink); }
.accent-orange .card-icon { background: var(--orange); }
.accent-cyan .card-icon { background: var(--cyan); }
.accent-violet .card-icon { background: var(--violet); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.45fr);
  gap: 1rem;
  align-items: stretch;
}

.program-panel,
.fee-panel,
.contact-card {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.program-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--white);
  background:
    radial-gradient(circle at 18% 12%, rgba(247, 201, 72, 0.28), transparent 16rem),
    radial-gradient(circle at 80% 70%, rgba(232, 63, 143, 0.24), transparent 18rem),
    linear-gradient(135deg, rgba(16, 23, 42, 0.98), rgba(37, 99, 235, 0.9));
}

.program-panel h2 {
  color: var(--white);
}

.program-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.accordion {
  display: grid;
  width: 100%;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  text-align: left;
  cursor: pointer;
}

.accordion span {
  font-weight: 900;
}

.accordion small {
  display: none;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  line-height: 1.55;
}

.accordion.is-open small {
  display: block;
}

.fee-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: linear-gradient(160deg, var(--gold), #fff5c4 45%, #ffffff 100%);
}

.fee-panel > span,
.fee-panel label span {
  color: #7c2d12;
  font-weight: 900;
  text-transform: uppercase;
}

.fee-panel strong {
  display: block;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 1;
}

.fee-panel p {
  color: #374151;
  line-height: 1.6;
}

.faculty-card {
  padding: 1.25rem;
  transition: 0.2s ease;
}

.faculty-card span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--pink));
  font-weight: 900;
}

.faculty-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 22%;
}

.faculty-card small {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.admission-form {
  display: grid;
  gap: 1rem;
  max-width: 920px;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admission-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.checkbox-grid input {
  width: auto;
}

.form-submit {
  width: fit-content;
  margin-top: 0.4rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(247, 201, 72, 0.42), transparent 18rem),
    linear-gradient(135deg, var(--navy), #172554 52%, #581c87);
}

.contact-card h2,
.contact-card h1,
.contact-card .eyebrow {
  color: var(--white);
}

.contact-card p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #16a34a;
  box-shadow: 0 16px 34px rgba(22, 163, 74, 0.32);
  font-weight: 900;
}

.page-arrows {
  position: fixed;
  top: 50%;
  right: 16px;
  left: 16px;
  z-index: 24;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.arrow {
  display: inline-flex;
  min-width: 54px;
  min-height: 54px;
  align-items: center;
  gap: 0.55rem;
  max-width: 170px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(29, 78, 216, 0.7));
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.22);
  font-weight: 900;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  transition: transform 0.22s ease, background 0.22s ease, max-width 0.22s ease, box-shadow 0.22s ease;
}

.arrow.prev {
  padding: 0.45rem 1rem 0.45rem 0.48rem;
}

.arrow.next {
  padding: 0.45rem 0.48rem 0.45rem 1rem;
}

.arrow-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
}

.arrow-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.arrow:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 20px 42px rgba(232, 63, 143, 0.28);
}

.arrow.is-pressed {
  transform: scale(0.94);
}

.arrow.disabled {
  opacity: 0.22;
  pointer-events: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: #475569;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .hero,
  .split-section,
  .course-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .quick-stats,
  .course-grid,
  .faculty-grid,
  .home-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subject-tools,
  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }

  .brand small {
    white-space: normal;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    margin-top: 28px;
    padding-top: 1rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .program-tabs {
    display: grid;
    width: 100%;
    border-radius: 18px;
  }

  .quick-stats,
  .course-grid,
  .faculty-grid,
  .home-mosaic,
  .form-row,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .page-arrows {
    top: auto;
    right: 12px;
    bottom: 84px;
    left: 12px;
    transform: none;
  }

  .arrow {
    min-width: 50px;
    min-height: 50px;
    max-width: 58px;
    padding: 0.35rem;
  }

  .arrow.prev,
  .arrow.next {
    justify-content: center;
    padding: 0.35rem;
  }

  .arrow-label {
    display: none;
  }

  .arrow-icon {
    width: 40px;
    height: 40px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn,
  .form-submit {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 70px;
  }
}
