/* ==========================================================
   CFI Model School, Amoni – Bhopal
   Theme: saffron & gold (from the crest) + forest green
   All assets (fonts, images, icons) are self-hosted.
   ========================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/playfair-display-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-deva.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --saffron: #F07A1A;
  --saffron-deep: #D2600A;
  --saffron-soft: #FFF1E3;
  --gold: #C9A04A;
  --gold-soft: #F6ECD2;
  --forest: #14352A;
  --forest-2: #1D4A3A;
  --forest-dark: #0E271F;
  --leaf: #5F9A3A;
  --sky: #EDF5EC;
  --cream: #FBF7F0;
  --paper: #FFFFFF;
  --ink: #1C1D1A;
  --muted: #5B5D56;
  --line: #E8E1D4;

  --ff-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 22px 50px -24px rgba(20, 53, 42, .45);
  --shadow-sm: 0 10px 26px -14px rgba(20, 53, 42, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
::selection { background: var(--saffron); color: #fff; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.loader__ring, .stage-mandala, .ribbon svg, .eyebrow svg, .stats__mandala, .vm__mandala, .admission__mandala { fill: none; stroke: currentColor; stroke-width: 1.3; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(76px, 10vw, 124px) 0; position: relative; }
.deva { font-family: var(--ff-body); font-weight: 600; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--saffron-deep); margin-bottom: 14px;
}
.eyebrow svg { width: 20px; height: 20px; animation: spin 10s linear infinite; }
.eyebrow--light { color: var(--gold); }

.title {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(1.95rem, 4vw, 3rem);
  letter-spacing: -.01em; margin-bottom: 20px; color: var(--forest);
}
.title em, .hero__title em { font-style: normal; color: var(--saffron); }
.title--light { color: #fff; }
.title--light em { color: var(--gold); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-head .eyebrow { justify-content: center; }
.section-head__sub { color: var(--muted); font-size: 1.02rem; }
.section-head__sub--light { color: rgba(255, 255, 255, .78); }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: none; text-align: left; }
.section-head--row .section-head__sub { max-width: 380px; margin: 0 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: rgba(255, 255, 255, .3); transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-3px); }
.btn svg.i { font-size: 1.15em; transition: transform .35s var(--ease); }
.btn:hover svg.i { transform: translateX(3px); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--saffron { background: var(--saffron); color: #fff; box-shadow: 0 12px 26px -12px rgba(240, 122, 26, .9); }
.btn--saffron:hover { background: var(--saffron-deep); }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--saffron); }
.btn--outline { border-color: var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: #fff; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { background: var(--gold); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); animation: ripple .7s ease-out forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Loader & progress ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s ease, visibility .6s ease;
  animation: loaderOut .5s ease 4s forwards; /* safety net if scripts are blocked */
}
.is-loaded .loader { opacity: 0; visibility: hidden; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.loader__core { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); animation: spin 6s linear infinite; }
.loader__core img { width: 84px; height: 84px; border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
.loader__text { font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem; color: var(--forest); margin: 0; }
.loader__text span { color: var(--saffron); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--saffron); transform-origin: left; transform: scaleX(0); z-index: 120; }

/* ---------- Shared keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatyR { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Top bar ---------- */
.topbar { background: var(--forest); color: #d9e3dc; font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar__motto { margin: 0; }
.topbar__motto .deva { color: var(--gold); }
.topbar__links { display: flex; align-items: center; gap: 20px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__links a:hover { color: #fff; }
.topbar__pill { background: var(--saffron); color: #fff; padding: 3px 14px 3px 10px; border-radius: 999px; font-weight: 600; }
.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: ping 1.6s ease-out infinite; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
/* blur lives on a pseudo-element so the fixed mobile menu is positioned against the viewport */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s; }
.header.is-scrolled .header__inner { height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__emblem { width: 54px; height: 54px; border-radius: 50%; transition: transform .8s var(--ease); }
.brand:hover .brand__emblem { transform: rotate(360deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--ff-head); font-size: 1.4rem; color: var(--saffron-deep); font-weight: 700; }
.brand__text small { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--forest); font-weight: 600; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; padding: 8px 13px; font-weight: 500; font-size: .92rem; color: var(--forest); transition: color .25s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--saffron); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-current { color: var(--saffron-deep); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: 12px; }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--forest); padding: 14px 12px; flex-direction: column; justify-content: space-between; position: relative; z-index: 2; }
.burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO – clean photos, sky scene, rolling hills
   ========================================================== */
.hero { position: relative; background: var(--sky); padding: 56px 0 190px; overflow: hidden; isolation: isolate; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; position: relative; z-index: 2; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  font-size: .8rem; font-weight: 600; color: var(--forest); box-shadow: var(--shadow-sm);
}
.chip svg.i { color: var(--leaf); font-size: 1.1em; }
.hero__title {
  font-family: var(--ff-head); font-weight: 700; color: var(--forest);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.12; letter-spacing: -.015em; margin-bottom: 22px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 520px; color: var(--muted); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--forest); }
.hero__trust span { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--saffron); font-size: 18px; box-shadow: var(--shadow-sm); }

/* entrance animation (only when scripts run) */
.js .hero__title .line > span { transform: translateY(110%); }
.js .anim-up { opacity: 0; transform: translateY(26px); }
.js .anim-zoom { opacity: 0; transform: scale(.9); }
.is-loaded .hero__title .line > span { animation: lineUp 1s var(--ease) forwards; }
.is-loaded .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.is-loaded .hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.is-loaded .anim-up { animation: fadeUp .9s var(--ease) forwards; }
.is-loaded .hero__text > .anim-up:nth-child(1) { animation-delay: 0s; }
.is-loaded .hero__text > .anim-up:nth-child(3) { animation-delay: .45s; }
.is-loaded .hero__text > .anim-up:nth-child(4) { animation-delay: .6s; }
.is-loaded .hero__text > .anim-up:nth-child(5) { animation-delay: .75s; }
.is-loaded .anim-zoom { animation: zoomIn 1.2s var(--ease) .2s forwards; }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes zoomIn { to { opacity: 1; transform: none; } }

/* sky */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sun { position: absolute; top: 46px; left: 44%; width: 74px; height: 74px; border-radius: 50%; background: #F9D77E; animation: pulse 5s ease-in-out infinite; }
.sun span { position: absolute; inset: -16px; border-radius: 50%; border: 3px dashed #F4C04E; animation: spin 24s linear infinite; }
.cloud { position: absolute; width: 170px; height: auto; opacity: .95; animation: drift 70s linear infinite; }
.cloud--1 { top: 14px; left: -200px; }
.cloud--2 { top: 6px; left: -200px; width: 110px; animation-duration: 95s; animation-delay: -40s; }
.cloud--3 { top: 40px; left: -200px; width: 150px; animation-duration: 120s; animation-delay: -80s; opacity: .8; }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }
.flock { position: absolute; top: 110px; left: -120px; display: flex; gap: 14px; animation: fly 32s linear infinite; }
.bird { width: 30px; height: 12px; fill: none; stroke: var(--forest); stroke-width: 2.6; stroke-linecap: round; animation: flap .5s ease-in-out infinite alternate; }
.bird--2 { width: 22px; margin-top: 16px; animation-delay: .2s; }
.bird--3 { width: 18px; margin-top: -6px; animation-delay: .35s; }
@keyframes flap { to { transform: scaleY(.25); } }
@keyframes fly {
  0% { transform: translate(0, 0); }
  50% { transform: translate(55vw, -30px); }
  100% { transform: translate(calc(100vw + 240px), 10px); }
}
.twinkle { position: absolute; width: 18px; height: 18px; fill: var(--gold); animation: twinkle 2.6s ease-in-out infinite; }
.twinkle--1 { top: 18%; left: 5%; }
.twinkle--2 { top: 62%; left: 47%; width: 14px; height: 14px; animation-delay: .8s; }
.twinkle--3 { top: 12%; right: 4%; width: 22px; height: 22px; animation-delay: 1.4s; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

/* stage & slider */
.hero__stage { position: relative; padding: 30px 20px 40px; }
.stage-mandala { position: absolute; left: 50%; top: 46%; width: 118%; aspect-ratio: 1; height: auto; translate: -50% -50%; color: var(--gold); opacity: .55; animation: spin 70s linear infinite; z-index: 0; }
.stage-mandala--rev { width: 92%; color: var(--saffron); opacity: .3; animation-duration: 45s; animation-direction: reverse; }
.frame {
  position: relative; z-index: 1; width: 86%; margin: 0 auto; aspect-ratio: 1 / 1.06;
  border-radius: 240px 34px 240px 34px; overflow: hidden;
  border: 10px solid #fff; background: #fff; box-shadow: var(--shadow);
}
.frame__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.frame__slide.is-active { opacity: 1; animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }

.badge-spin { position: absolute; z-index: 3; top: 4%; left: 0; width: 124px; height: 124px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; box-shadow: var(--shadow); }
.badge-spin__ring { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); animation: spin 18s linear infinite; }
.badge-spin__ring text { fill: var(--gold-soft); font-size: 9.6px; font-weight: 600; letter-spacing: 1.6px; font-family: var(--ff-body); }
.badge-spin img { width: 58px; height: 58px; border-radius: 50%; animation: pulse 3s ease-in-out infinite; }

.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow); }
.float-card strong { display: block; font-size: .92rem; color: var(--forest); line-height: 1.3; }
.float-card small { font-size: .76rem; color: var(--muted); }
.float-card__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf); color: #fff; font-size: 20px; }
.float-card__ico--gold { background: var(--saffron); }
.float-card--a { left: -4%; bottom: 16%; animation: floaty 5s ease-in-out infinite; }
.float-card--b { right: -2%; top: 10%; animation: floatyR 6s ease-in-out 1s infinite; }
.bubble { position: absolute; z-index: 3; right: 4%; bottom: 8%; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; box-shadow: var(--shadow); animation: floaty 4.5s ease-in-out .5s infinite; }

.slider-ui { position: absolute; z-index: 4; left: 50%; bottom: 0; translate: -50% 0; display: flex; align-items: center; gap: 10px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.slider-ui__btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--forest); color: #fff; display: grid; place-items: center; font-size: 18px; transition: background .3s, transform .3s; }
.slider-ui__btn:hover { background: var(--saffron); transform: scale(1.08); }
.slider-ui__dots { display: flex; gap: 6px; padding: 0 4px; }
.slider-ui__dots button { position: relative; width: 26px; height: 5px; padding: 0; border: 0; border-radius: 5px; background: var(--line); overflow: hidden; transition: width .4s var(--ease); }
.slider-ui__dots button.is-active { width: 44px; }
.slider-ui__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--saffron); transform-origin: left; animation: fillbar 6s linear forwards; }
.slider-ui.is-paused .slider-ui__dots button.is-active::after { animation-play-state: paused; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* hills */
.hills { position: absolute; left: 0; right: 0; bottom: -1px; height: 150px; z-index: 1; pointer-events: none; overflow: hidden; }
.hills__layer { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; animation: marquee 60s linear infinite; }
.hills__layer--1 { fill: #C4DDA8; }
.hills__layer--2 { fill: #8DBF6A; animation-duration: 42s; animation-direction: reverse; height: 86%; }
.hills__layer--3 { fill: var(--forest-2); animation-duration: 30s; height: 62%; }

/* ---------- Ribbon ---------- */
.ribbon { background: var(--forest-2); color: #fff; overflow: hidden; padding: 14px 0 18px; border-bottom: 5px solid var(--saffron); }
.ribbon__track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--ff-head); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.ribbon svg { width: 24px; height: 24px; color: var(--gold); animation: spin 8s linear infinite; flex: none; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal--left { transform: translateX(-40px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__media { position: relative; padding: 0 60px 70px 0; }
.about__img { margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.06); }
.about__img--main { aspect-ratio: 4 / 4.4; border-radius: 200px 200px var(--radius) var(--radius); }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border: 8px solid var(--cream); border-radius: var(--radius); animation: floaty 6s ease-in-out infinite; }
.about__years { position: absolute; left: -18px; top: 40px; background: var(--saffron); color: #fff; border-radius: 18px; padding: 16px 20px; display: grid; gap: 0; box-shadow: var(--shadow); animation: floatyR 5s ease-in-out infinite; }
.about__years svg.i { font-size: 26px; margin-bottom: 4px; }
.about__years strong { font-family: var(--ff-head); font-size: 1.4rem; line-height: 1.2; }
.about__years span { font-size: .8rem; opacity: .9; }
.about__sparkle { position: absolute; right: 30px; top: 10px; width: 34px; height: 34px; fill: var(--gold); animation: twinkle 3s ease-in-out infinite; }
.about__text > p { color: var(--muted); }
.about__text strong { color: var(--forest); }
.about__points { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.about__points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--forest); font-size: .93rem; line-height: 1.5; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--saffron-soft); position: relative; margin-top: 1px; }
.tick::after { content: ""; position: absolute; left: 7.5px; top: 4.5px; width: 5px; height: 9px; border: solid var(--saffron-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Stats ---------- */
.stats { background: var(--forest); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.stats__mandala { position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; margin-top: -210px; color: var(--gold); opacity: .14; animation: spin 80s linear infinite; }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 6px 20px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .14); }
.stat__ico { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--gold); font-size: 26px; animation: floaty 4s ease-in-out infinite; }
.stat:nth-child(2) .stat__ico { animation-delay: .5s; }
.stat:nth-child(3) .stat__ico { animation-delay: 1s; }
.stat:nth-child(4) .stat__ico { animation-delay: 1.5s; }
.stat__num { font-family: var(--ff-head); font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 700; color: #fff; margin: 0; line-height: 1.1; }
.stat__num small { font-size: .7em; color: var(--gold); }
.stat__label { margin: 6px 0 0; color: rgba(255, 255, 255, .75); font-size: .92rem; }

/* ---------- Pillars ---------- */
.pillars { background: var(--paper); padding-bottom: 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1000px; }
.pillar {
  position: relative; padding: 36px 32px 34px; border-radius: var(--radius); overflow: hidden;
  background: var(--cream); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .45s var(--ease), background .45s, border-color .45s, opacity .9s var(--ease);
}
.pillar::before { /* shine */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 40%;
  background: rgba(255, 255, 255, .12); transform: skewX(-20deg); transition: left .9s var(--ease); pointer-events: none;
}
.pillar:hover { background: var(--forest); border-color: var(--forest); box-shadow: var(--shadow); }
.pillar:hover::before { left: 140%; }
.pillar__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--saffron); color: #fff; font-size: 30px; margin-bottom: 22px;
  box-shadow: 0 12px 24px -12px rgba(240, 122, 26, .9);
  animation: floaty 4s ease-in-out infinite;
  transition: background .4s;
}
.pillar:nth-child(2) .pillar__icon { animation-delay: .4s; }
.pillar:nth-child(3) .pillar__icon { animation-delay: .8s; }
.pillar:nth-child(4) .pillar__icon { animation-delay: 1.2s; }
.pillar:nth-child(5) .pillar__icon { animation-delay: 1.6s; }
.pillar:nth-child(6) .pillar__icon { animation-delay: 2s; }
.pillar:hover .pillar__icon { background: var(--gold); }
.pillar h3 { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; color: var(--forest); transition: color .4s; }
.pillar p { margin: 0; color: var(--muted); font-size: .94rem; transition: color .4s; }
.pillar:hover h3 { color: #fff; }
.pillar:hover p { color: rgba(255, 255, 255, .8); }
.pillar__num { position: absolute; top: 20px; right: 26px; font-family: var(--ff-head); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--line); transition: -webkit-text-stroke-color .4s; }
.pillar:hover .pillar__num { -webkit-text-stroke-color: rgba(255, 255, 255, .3); }

/* road + bus */
.road { position: relative; height: 130px; margin-top: 70px; overflow: hidden; }
.road__strip { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: #3C3D38; overflow: hidden; }
.road__strip::after { content: ""; position: absolute; left: 0; top: 13px; width: 200%; border-top: 4px dashed rgba(255, 255, 255, .8); animation: marquee 6s linear infinite; }
.road__bus { position: absolute; bottom: 18px; left: 0; width: 170px; animation: drive 16s linear infinite; }
.road__bus svg { width: 100%; height: auto; display: block; animation: bounce .5s ease-in-out infinite alternate; }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .7s linear infinite; }
@keyframes drive { from { transform: translateX(-200px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes bounce { to { transform: translateY(-3px); } }

/* ---------- Vision & Mission ---------- */
.vm { position: relative; padding: clamp(84px, 11vw, 136px) 0; background: var(--forest); color: #fff; overflow: hidden; isolation: isolate; }
.vm__mandala { position: absolute; left: -180px; bottom: -180px; width: 520px; height: 520px; color: var(--gold); opacity: .13; animation: spin 90s linear infinite; z-index: -1; }
.vm__mandala--sm { left: auto; bottom: auto; right: -60px; top: -60px; width: 240px; height: 240px; animation-direction: reverse; animation-duration: 50s; }
.vm__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.vm__motto { font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--gold); margin: 24px 0 2px; line-height: 1.4; }
.vm__motto-en { font-family: var(--ff-head); color: rgba(255, 255, 255, .72); font-size: 1.1rem; }
.vm__cards { display: grid; gap: 22px; }
.vm__card { display: flex; gap: 22px; align-items: flex-start; background: var(--forest-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 30px 32px; transition: transform .45s var(--ease), border-color .4s; }
.vm__card:hover { transform: translateX(-10px); border-color: var(--gold); }
.vm__ico { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron); font-size: 26px; transition: transform .6s var(--ease); }
.vm__ico--gold { background: var(--gold); color: var(--forest); }
.vm__card:hover .vm__ico { transform: rotate(360deg); }
.vm__card h3 { font-family: var(--ff-head); font-size: 1.45rem; margin-bottom: 8px; }
.vm__card p { margin: 0; color: rgba(255, 255, 255, .82); }
.vm__card strong { color: #fff; }

/* ---------- Values flip cards ---------- */
.flips { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.flip { flex: 0 1 calc(25% - 17px); min-width: 220px; height: 270px; padding: 0; border: 0; background: none; perspective: 1100px; text-align: center; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
@media (hover: hover) { .flip:hover .flip__inner { transform: rotateY(180deg); } }
.flip__face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 22px; border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__front { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flip__back { background: var(--saffron); color: #fff; transform: rotateY(180deg); }
.flip__n { position: absolute; top: 16px; left: 20px; font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.flip__ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-soft); color: var(--saffron-deep); font-size: 34px; }
.flip:hover .flip__ico { animation: pulse 1.2s ease-in-out infinite; }
.flip__name { font-family: var(--ff-head); font-size: 1.3rem; font-weight: 700; color: var(--forest); line-height: 1.25; }
.flip__back .flip__name { color: #fff; }
.flip__hint { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.flip__text { font-size: .95rem; line-height: 1.6; color: rgba(255, 255, 255, .95); }

/* ---------- Nature band ---------- */
.nature { position: relative; padding: 380px 0 70px; overflow: hidden; isolation: isolate; }
.nature__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.nature__media img { width: 100%; height: 125%; object-fit: cover; will-change: transform; }
.leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.leaves svg { position: absolute; top: -40px; width: 22px; height: 22px; fill: #8DBF6A; animation: fall 12s linear infinite; }
.leaves svg:nth-child(1) { left: 6%; animation-delay: 0s; }
.leaves svg:nth-child(2) { left: 18%; animation-delay: -3s; animation-duration: 14s; fill: var(--gold); }
.leaves svg:nth-child(3) { left: 32%; animation-delay: -7s; width: 16px; }
.leaves svg:nth-child(4) { left: 47%; animation-delay: -1s; animation-duration: 16s; fill: var(--saffron); }
.leaves svg:nth-child(5) { left: 60%; animation-delay: -9s; width: 26px; }
.leaves svg:nth-child(6) { left: 72%; animation-delay: -5s; animation-duration: 13s; fill: var(--gold); }
.leaves svg:nth-child(7) { left: 84%; animation-delay: -11s; width: 18px; }
.leaves svg:nth-child(8) { left: 94%; animation-delay: -2s; animation-duration: 15s; fill: #6FA64A; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  25% { transform: translate(30px, 180px) rotate(90deg); }
  50% { transform: translate(-20px, 360px) rotate(200deg); }
  75% { transform: translate(34px, 540px) rotate(300deg); }
  100% { transform: translate(0, 720px) rotate(400deg); opacity: .8; }
}
.nature__card { max-width: 580px; background: var(--paper); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow); border-left: 6px solid var(--saffron); }
.nature__card p:last-child { color: var(--muted); margin: 0; }

/* ---------- Campus bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 18px; }
.bento__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.bento__item--xl { grid-column: span 2; grid-row: span 2; }
.bento__item--tall { grid-row: span 2; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__item:hover img { transform: scale(1.08); }
.bento__item figcaption {
  position: absolute; left: 16px; bottom: 16px; right: auto;
  background: #fff; padding: 8px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: background .35s, transform .45s var(--ease);
}
.bento__item figcaption strong { font-size: .92rem; font-weight: 600; color: var(--forest); transition: color .35s; }
.bento__item:hover figcaption { background: var(--saffron); transform: translateY(-4px); }
.bento__item:hover figcaption strong { color: #fff; }
.bento__item--xl figcaption { border-radius: 16px; padding: 14px 22px; }
.bento__item--xl figcaption strong { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 700; }
.bento__item--xl figcaption span { font-size: .85rem; color: var(--muted); transition: color .35s; }
.bento__item--xl:hover figcaption span { color: #fff; }

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -20px 0 40px; }
.filter { padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); color: var(--forest); font-weight: 500; font-size: .92rem; transition: all .3s var(--ease); }
.filter:hover { border-color: var(--saffron); color: var(--saffron-deep); transform: translateY(-2px); }
.filter.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.masonry { columns: 4 240px; column-gap: 16px; }
.g-item { display: block; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; position: relative; break-inside: avoid; cursor: zoom-in; }
.js .g-item { opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .g-item.is-in { opacity: 1; transform: none; }
.g-item img { width: 100%; transition: transform .9s var(--ease); }
.g-item::after {
  content: "+"; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: grid; place-items: center; border-radius: 50%; background: var(--saffron); color: #fff;
  font-size: 2rem; font-weight: 300; line-height: 1; transform: scale(0) rotate(-90deg); transition: transform .45s var(--ease);
}
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after { transform: scale(1) rotate(0); }
.g-item.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(8, 20, 15, .95); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; padding: 60px 20px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(1200px, 100%); max-height: 80vh; border-radius: 12px; transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); margin: 0; font-size: .92rem; padding: 0 20px; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: background .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--saffron); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }

/* ---------- Admission ---------- */
.admission { background: var(--forest-2); color: #fff; overflow: hidden; isolation: isolate; padding-top: clamp(110px, 12vw, 150px); }
.admission__mandala { position: absolute; right: -150px; top: 50%; width: 460px; height: 460px; margin-top: -230px; color: var(--gold); opacity: .12; animation: spin 70s linear infinite; z-index: -1; }
.bunting { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 10px; }
.bunting::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 2px solid rgba(255, 255, 255, .5); }
.bunting span { position: relative; top: 10px; width: 30px; height: 38px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--saffron); transform-origin: top center; animation: swing 2.8s ease-in-out infinite; }
.bunting span:nth-child(3n+2) { background: #fff; animation-delay: .4s; }
.bunting span:nth-child(3n) { background: #3E9A45; animation-delay: .8s; }
.bunting span:nth-child(even) { animation-direction: reverse; }
@keyframes swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }

.timeline { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; text-align: center; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 29px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.timeline::after { background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .3s; }
.timeline.is-drawn::after { transform: scaleX(1); }
.timeline li { position: relative; z-index: 1; padding: 0 8px; }
.timeline__dot { position: relative; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--forest); font-family: var(--ff-head); font-weight: 700; font-size: 1.4rem; box-shadow: 0 0 0 8px var(--forest-2); }
.timeline__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ping 2.4s ease-out infinite; }
.timeline li:nth-child(2) .timeline__dot::after { animation-delay: .6s; }
.timeline li:nth-child(3) .timeline__dot::after { animation-delay: 1.2s; }
.timeline li:nth-child(4) .timeline__dot::after { animation-delay: 1.8s; }
.timeline strong { display: block; font-family: var(--ff-head); font-size: 1.25rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .92rem; line-height: 1.55; }
.admission__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 5vw, 70px); align-items: center; }
.contact__lead { color: var(--muted); }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.c-card { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.c-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); border-color: var(--saffron); }
.c-card__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--saffron-soft); color: var(--saffron-deep); font-size: 22px; transition: background .3s, color .3s, transform .5s var(--ease); }
.c-card:hover .c-card__icon { background: var(--saffron); color: #fff; transform: rotate(-10deg) scale(1.08); }
.c-card h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-deep); margin-bottom: 6px; font-weight: 600; }
.c-card p { margin: 0; font-size: .92rem; color: var(--forest); line-height: 1.6; }
.c-card a[href^="mailto"] { font-size: .92rem; }
.c-card--wide { grid-column: 1 / -1; align-items: center; }
.c-card__lines span { display: block; }
.c-card { align-items: center; }
.c-card a:hover { color: var(--saffron-deep); }

.locate { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow); border: 8px solid var(--paper); }
.locate > img { width: 100%; height: 100%; object-fit: cover; }
.locate__pin { position: absolute; left: 54%; top: 44%; width: 56px; height: 56px; margin: -56px 0 0 -28px; display: grid; place-items: center; color: #fff; font-size: 30px; animation: pinBounce 1.8s ease-in-out infinite; }
.locate__pin svg.i { position: relative; z-index: 1; width: 44px; height: 44px; fill: var(--saffron); stroke: #fff; stroke-width: 1.4; }
.locate__ping { position: absolute; left: 50%; bottom: -8px; width: 30px; height: 12px; margin-left: -15px; border-radius: 50%; background: rgba(240, 122, 26, .55); animation: ping 1.8s ease-out infinite; }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.locate__label { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.locate__label img { width: 46px; height: 46px; border-radius: 50%; }
.locate__label strong { display: block; font-family: var(--ff-head); color: var(--forest); font-size: 1.1rem; line-height: 1.3; }
.locate__label span { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--forest-dark); color: rgba(255, 255, 255, .72); position: relative; padding-top: 80px; margin-top: 60px; }
.footer__hills { position: absolute; left: 0; top: 1px; width: 100%; height: 70px; transform: translateY(-100%); fill: var(--forest-dark); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__logo { width: 260px; height: auto; background: #fff; padding: 12px 16px; border-radius: 14px; margin-bottom: 22px; }
.footer__brand p { font-size: .92rem; max-width: 380px; }
.footer__motto { color: var(--gold); font-size: 1.3rem; margin-top: 8px; }
.footer h3 { font-family: var(--ff-head); color: #fff; font-size: 1.2rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.footer ul a { display: inline-block; transition: color .25s, transform .3s var(--ease); }
.footer ul a:hover { color: var(--saffron); transform: translateX(6px); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; word-break: break-word; }
.footer__contact svg.i { color: var(--gold); font-size: 18px; margin-top: 4px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .84rem; }
.footer__bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--saffron); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; stroke-linecap: round; }
.to-top:hover .to-top__ring { stroke: #fff; }


/* ==========================================================
   Extra motion
   ========================================================== */

/* phone icons ring every few seconds */
@keyframes ring {
  0%, 30%, 100% { transform: rotate(0); }
  3% { transform: rotate(-18deg); } 6% { transform: rotate(18deg); }
  9% { transform: rotate(-14deg); } 12% { transform: rotate(14deg); }
  15% { transform: rotate(-8deg); } 18% { transform: rotate(8deg); } 21% { transform: rotate(0); }
}
.topbar__phone svg.i, .c-card__icon--ring svg.i, .call-fab > svg.i { animation: ring 3s ease-in-out infinite; }
.topbar__phone { font-weight: 600; }

/* floating call button */
.call-fab {
  position: fixed; left: 22px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 0; height: 58px; padding: 0 17px;
  border-radius: 999px; background: var(--saffron); color: #fff; box-shadow: 0 14px 30px -12px rgba(240, 122, 26, .9);
  transition: gap .4s var(--ease), background .3s;
}
.call-fab > svg.i { position: relative; z-index: 1; font-size: 24px; }
.call-fab__label { position: relative; z-index: 1; max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: .95rem; transition: max-width .45s var(--ease); }
.call-fab:hover { gap: 10px; background: var(--saffron-deep); }
.call-fab:hover .call-fab__label { max-width: 120px; }
.call-fab__wave { position: absolute; inset: 0; border-radius: 999px; background: var(--saffron); animation: ping 2s ease-out infinite; }
.call-fab__wave--2 { animation-delay: 1s; }

/* highlighted words draw a soft marker underline as they appear */
.title em, .hero__title em {
  background-image: linear-gradient(var(--gold-soft), var(--gold-soft));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 26%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s var(--ease) .35s;
}
.title--light em { background-image: linear-gradient(rgba(201, 160, 74, .28), rgba(201, 160, 74, .28)); }
.js .title em, .js .hero__title em { background-size: 0 26%; }
.js .is-in em, .js .reveal.is-in em { background-size: 100% 26%; }
.js.is-loaded .hero__title em { background-size: 100% 26%; transition-delay: 1.1s; }

/* curtain reveal on the About photos */
.js .about__img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease) .15s, transform 1.2s var(--ease); }
.js .about__img--small img { transition-delay: .55s, 0s; }
.js .about__media.is-in .about__img img { clip-path: inset(0 0 0 0); }

/* confetti burst when the admission section appears */
.confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.confetti__bit { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: confettiFall 4s cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes confettiFall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx, 0), 110vh) rotate(var(--rot, 720deg)); opacity: .9; }
}
.admission .container { position: relative; z-index: 1; }

/* ---------- 404 page ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; background: var(--sky); padding: 40px 20px; text-align: center; }
.notfound__box { max-width: 560px; }
.notfound__emblem { margin: 0 auto 24px; border-radius: 50%; animation: floaty 4s ease-in-out infinite; }
.notfound__text { color: var(--muted); margin-bottom: 28px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav a:not(.btn) { padding: 8px 9px; font-size: .88rem; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .flip { flex-basis: calc(33.333% - 15px); }
}

@media (max-width: 940px) {
  :root { --header-h: 72px; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; width: min(340px, 86vw); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 100px 26px 30px;
    background: var(--cream); box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .3);
    transform: translateX(105%); transition: transform .5s var(--ease); z-index: -1; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { font-size: 1.05rem; padding: 13px 16px; border-radius: 12px; }
  .nav a:not(.btn)::after { display: none; }
  .nav a.is-current { background: var(--saffron-soft); }
  .nav__cta { margin: 16px 0 0; }
  .header.menu-open::before { background: var(--cream); }

  .hero { padding: 40px 0 170px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__stage { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .sun { left: auto; right: 8%; }

  .about__grid, .vm__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 540px; margin-inline: auto; width: 100%; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 0; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
  .locate { max-width: 560px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 3; }
  .nature { padding-top: 300px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 32px); }
  .topbar__motto { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__links { font-size: .78rem; }
  .topbar__links a:not(.topbar__pill):not(.topbar__phone) { display: none; }
  .topbar__links { gap: 10px; font-size: .74rem; }
  .topbar__pill { padding: 3px 10px 3px 8px; }
  .brand__emblem { width: 46px; height: 46px; }
  .brand__text strong { font-size: 1.15rem; }
  .brand__text small { font-size: .62rem; }
  .chip { font-size: .72rem; padding: 6px 12px; }
  .chip__extra { display: none; }
  .hero__actions .btn { width: 100%; }
  .hero__stage { padding: 20px 6px 40px; }
  .frame { width: 88%; border-width: 7px; border-radius: 150px 24px 150px 24px; }
  .badge-spin { width: 92px; height: 92px; left: -4px; }
  .badge-spin img { width: 42px; height: 42px; }
  .badge-spin__ring text { font-size: 9px; }
  .float-card { padding: 8px 12px 8px 8px; gap: 8px; }
  .float-card__ico { width: 34px; height: 34px; font-size: 16px; }
  .float-card strong { font-size: .8rem; }
  .float-card small { font-size: .68rem; }
  .float-card--a { left: -2%; }
  .float-card--b { right: -2%; top: 6%; }
  .bubble { width: 70px; height: 70px; border-width: 4px; }
  .hills { height: 110px; }
  .ribbon__track { font-size: 1.1rem; }
  .about__media { padding: 0 30px 50px 0; }
  .about__years { left: -6px; padding: 12px 14px; }
  .about__years strong { font-size: 1.15rem; }
  .about__points { grid-template-columns: 1fr; }
  .pillars__grid { grid-template-columns: 1fr; }
  .flip { flex-basis: 100%; height: 230px; }
  .nature { padding-top: 230px; }
  .nature__card { padding: 28px 24px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bento__item--xl, .bento__item--tall { grid-column: auto; grid-row: auto; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  .timeline { grid-template-columns: 1fr; }
  .admission__cta .btn { width: 100%; }
  .bunting span { width: 22px; height: 28px; }
  .contact__cards { grid-template-columns: 1fr; }
  .c-card--wide { grid-column: auto; }
  .vm__card { padding: 24px 22px; flex-direction: column; gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .road__bus { width: 130px; }
  .call-fab { left: 16px; bottom: 16px; height: 52px; padding: 0 14px; }
  .to-top { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .g-item, .js .anim-up, .js .anim-zoom { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
}
