/* =========================================================
   Dremora Edu — main stylesheet
   ========================================================= */
:root {
  --cream: #f3efe9;
  --paper: #f7f4ef;
  --ink: #1c1916;
  --ink-soft: #4a4540;
  --muted: #7d766e;
  --maroon: #7a1214;
  --maroon-2: #5c0c0e;
  --gold: #e0a63a;
  --c-yellow: #f8cf47;
  --c-coral: #f68a5b;
  --c-sky: #6fcbee;
  --c-lav: #b99df2;
  --line: #e2d3bd;
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 60px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.eyebrow.light { color: rgba(255, 230, 220, .75); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 7px 0 17px;
  border-radius: 99px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s;
}
.btn .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
  transition: transform .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-maroon { background: var(--maroon); color: #fff; box-shadow: 0 6px 18px -8px rgba(122, 18, 20, .7); }
.btn-maroon .arrow { background: rgba(255, 255, 255, .16); }
.btn-maroon:hover { background: var(--maroon-2); }
.btn-outline { color: var(--maroon); border: 1px solid rgba(122, 18, 20, .45); background: rgba(255, 250, 244, .6); backdrop-filter: blur(6px); }
.btn-outline .arrow { background: rgba(122, 18, 20, .08); }

/* =========================================================
   HEADER + MENU
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center;
  padding: 20px max(var(--gutter), env(safe-area-inset-right)) 20px max(var(--gutter), env(safe-area-inset-left));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; transition: opacity .5s, transform .5s var(--ease); }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; letter-spacing: .1em; line-height: 1.2; }
.brand-text small { font-size: 8.5px; font-weight: 500; letter-spacing: .16em; color: var(--ink-soft); }
.main-nav {
  display: flex; gap: clamp(20px, 3vw, 46px);
  margin-left: clamp(40px, 9vw, 170px);
  font-size: 14px;
  transition: opacity .5s, transform .5s var(--ease);
}
.main-nav a, .portal-link { position: relative; }
.main-nav a::after, .portal-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .portal-link:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.portal-link { font-size: 13px; transition: opacity .5s; }
.header-actions .btn { transition: opacity .5s, transform .4s var(--ease), background .3s; }
.menu-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: background .3s;
}
.menu-toggle i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--ink); }
.menu-toggle:hover { background: rgba(0, 0, 0, .06); }

.site-header.is-compact .brand,
.site-header.is-compact .main-nav,
.site-header.is-compact .portal-link,
.site-header.is-compact .header-actions .btn { opacity: 0; pointer-events: none; transform: translateY(-12px); }
.site-header.is-compact .menu-toggle { background: rgba(247, 244, 239, .8); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

.menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--maroon); color: #f6e7df;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px var(--gutter);
  clip-path: circle(0% at calc(100% - 58px) 38px);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}
.menu.open { clip-path: circle(150% at calc(100% - 58px) 38px); visibility: visible; }
.menu-close { position: absolute; top: 22px; right: var(--gutter); width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 18px; border: 1px solid rgba(255, 255, 255, .3); }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(36px, 6.4vw, 86px); font-weight: 300; line-height: 1.12;
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s, transform .8s var(--ease), color .3s;
}
.menu-links a span { font-size: 13px; letter-spacing: .1em; opacity: .55; }
.menu-links a:hover { color: var(--gold); }
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links a:nth-child(1) { transition-delay: .25s; }
.menu.open .menu-links a:nth-child(2) { transition-delay: .3s; }
.menu.open .menu-links a:nth-child(3) { transition-delay: .35s; }
.menu.open .menu-links a:nth-child(4) { transition-delay: .4s; }
.menu.open .menu-links a:nth-child(5) { transition-delay: .45s; }
.menu.open .menu-links a:nth-child(6) { transition-delay: .5s; }
.menu-foot { position: absolute; bottom: 30px; left: var(--gutter); font-size: 14px; opacity: .7; }

/* =========================================================
   INTRO: HERO + TEAR + 3D JOURNEY
   ========================================================= */
.intro { position: relative; height: 900vh; }
.intro-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #efebe6; }

.hero { position: absolute; inset: 0; overflow: hidden; }
.hero-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #aec4d3 0%, #cfd4d2 24%, #ecdcc6 44%, #f6c896 62%, #f2a66a 80%, #e48d57 100%);
}
.hero-sun {
  position: absolute; width: 70vmax; height: 70vmax; right: -18vmax; top: 22%;
  background: radial-gradient(circle, rgba(255, 238, 200, .95) 0%, rgba(255, 205, 140, .55) 18%, rgba(255, 170, 100, 0) 55%);
  animation: sunPulse 9s ease-in-out infinite alternate;
}
@keyframes sunPulse { to { transform: scale(1.08); opacity: .9; } }
.hero-clouds { position: absolute; inset: 0; }
.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(4px);
  animation: drift linear infinite;
}
.cloud.c1 { width: 520px; height: 150px; top: 18%; left: -10%; animation-duration: 90s; }
.cloud.c2 { width: 380px; height: 110px; top: 34%; left: 30%; opacity: .8; animation-duration: 120s; }
.cloud.c3 { width: 600px; height: 160px; top: 8%; left: 55%; opacity: .7; animation-duration: 140s; }
.cloud.c4 { width: 300px; height: 90px; top: 42%; left: 75%; opacity: .6; animation-duration: 100s; }
@keyframes drift { from { transform: translateX(-8vw); } 50% { transform: translateX(8vw); } to { transform: translateX(-8vw); } }
.hero-campus {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 66%;
  object-fit: cover; object-position: 50% 100%;
  transform-origin: 50% 100%;
}
.hero-content {
  position: absolute; left: 0; right: 0; top: clamp(96px, 15vh, 150px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 16px;
}
.hero-badges { display: flex; gap: 10px; margin-bottom: 14px; }
.badge {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.badge-a { background: conic-gradient(#f2b233 0 25%, #e8553e 0 50%, #2f8fd6 0 75%, #45b36b 0); }
.badge-b { background: #fff; color: #2b6fd6; font-size: 16px; }
.hero-title {
  font-size: clamp(38px, 5.4vw, 80px);
  font-weight: 400; line-height: 1.06; letter-spacing: -.012em;
  color: #1b1714;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-ctas { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255, 255, 255, .9);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(transparent, #fff); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* torn paper reveal */
.tear { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tear.has-shadow { filter: drop-shadow(0 14px 28px rgba(60, 30, 10, .3)); }
.tear-edge, .tear-world { position: absolute; inset: 0; clip-path: polygon(0 0, 0 0, 0 0); }
.tear-edge { background: #fbf9f5; }
.tear-world { background: #efebe6; }
#journey-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.journey-fade { position: absolute; inset: 0; background: var(--paper); opacity: 0; }

/* =========================================================
   ABOUT / STATS
   ========================================================= */
.about { position: relative; z-index: 3; background: var(--paper); padding: 30px var(--gutter) 40px; }
.cloud-edge { position: absolute; left: 0; top: -159px; width: 100%; height: 160px; fill: var(--paper); }
.about .eyebrow { margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); gap: 14px; max-width: 1400px; margin: 0 auto; }
.stat-photo { border-radius: 14px; overflow: hidden; min-height: 230px; }
.stat-photo img { width: 100%; height: 100%; object-fit: cover; }
.stat-card {
  border-radius: 14px; padding: 20px 18px;
  min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .5s var(--ease);
}
.stat-card:hover { transform: translateY(-6px) rotate(-1deg); }
.stat-card .num { font-size: clamp(40px, 4vw, 58px); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.stat-card p { font-size: 13px; line-height: 1.45; color: rgba(28, 25, 22, .78); max-width: 26ch; }
.yellow { background: var(--c-yellow); }
.coral { background: var(--c-coral); }
.sky { background: var(--c-sky); }
.lav { background: var(--c-lav); }

/* =========================================================
   WHAT SETS US APART
   ========================================================= */
.apart { position: relative; background: var(--paper); padding: 130px var(--gutter) 0; text-align: center; overflow: hidden; }
.apart .eyebrow { margin-bottom: 18px; }
.typewriter { font-size: clamp(42px, 6vw, 88px); font-weight: 400; line-height: 1.04; letter-spacing: -.015em; min-height: 2.1em; }
.tw-text { white-space: pre-line; }
.caret {
  display: inline-block; width: 2px; height: .85em; margin-left: 6px;
  background: var(--ink); vertical-align: -.06em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tree { position: relative; max-width: 1040px; height: 580px; margin: 70px auto 0; }
.tree-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tree-svg path { fill: none; stroke: var(--line); stroke-width: 1.3; }
.feature { position: absolute; width: min(330px, 40%); opacity: 0; transform: translateY(24px); transition: opacity .9s, transform .9s var(--ease); }
.feature.in { opacity: 1; transform: none; }
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.feature p { font-size: 13px; line-height: 1.6; color: var(--muted); }
.feature .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--maroon); flex: none; box-shadow: 0 0 0 4px rgba(122, 18, 20, .1); }
.feature.left { text-align: right; }
.feature.left h3 { justify-content: flex-end; }
.feature.right { text-align: left; }
.f1 { right: 56%; top: 0; }
.f2 { left: 56%; top: 34px; }
.f3 { right: 60%; top: 300px; }
.f4 { left: 60%; top: 280px; }

/* ---------- globe transition ---------- */
.disc-section { position: relative; height: 100vh; height: 100svh; background: var(--paper); overflow: hidden; perspective: 1100px; }
.disc-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, #e2d6c5 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 56%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 56%, #000 0%, transparent 62%);
}
.disc-line { position: absolute; left: 50%; top: 0; width: 1.3px; height: 56%; margin-left: -.65px; background: var(--line); transform-origin: 50% 0; }
.disc-wrap {
  --d: min(540px, 70vh, 84vw);
  position: absolute; left: 50%; top: 56%;
  width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  transform-style: preserve-3d;
}
.red-disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; text-align: center; color: #f6e3da;
  background: radial-gradient(circle at 42% 30%, #a0282a 0%, #7a1214 48%, #4f0a0c 100%);
  box-shadow: inset -20px -30px 60px rgba(0, 0, 0, .3), inset 14px 18px 40px rgba(255, 190, 170, .12), 0 50px 90px -40px rgba(92, 12, 14, .7);
}
.disc-globe { position: absolute; inset: 4%; width: 92%; height: 92%; opacity: .2; animation: spin 90s linear infinite; }
.disc-globe * { fill: none; stroke: #ffd9c9; stroke-width: .5; }
.disc-glow { position: absolute; width: 60%; height: 60%; left: 8%; top: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 190, .22), transparent 70%); }
.disc-content { position: relative; padding: 0 14%; }
.disc-content h3 { font-size: clamp(30px, 4.4vw, 58px); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 18px; }
.disc-stat { font-size: 14px; color: rgba(246, 227, 218, .82); }
.disc-stat b { font-weight: 500; font-size: 1.3em; color: var(--gold); }
.orbit { position: absolute; inset: 0; pointer-events: none; animation: spin 60s linear infinite; }
.orbit .chip {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) * -.64)) rotate(calc(var(--a) * -1));
}
.orbit .chip > span {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 500;
  padding: 7px 13px; border-radius: 99px; box-shadow: 0 10px 24px -12px rgba(60, 30, 10, .4);
  animation: spin 60s linear infinite reverse;
}
.orbit .chip i { width: 8px; height: 8px; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.disc-hint { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   SUCCESS STORIES
   ========================================================= */
.success { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--paper); overflow: hidden; display: grid; place-items: center; }
.success-eyebrow { position: absolute; top: 12vh; left: 0; right: 0; }
.success-word {
  font-size: clamp(64px, 12.5vw, 210px); font-weight: 500; letter-spacing: -.04em; line-height: .9;
  text-align: center; color: var(--ink);
}
.success-word span { display: inline-block; }
.cards { position: absolute; inset: 0; pointer-events: none; }
.s-card {
  position: absolute; pointer-events: auto;
  width: clamp(150px, 16vw, 240px); aspect-ratio: 1 / .92;
  border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 40px -18px rgba(40, 20, 10, .35);
  transform: rotate(var(--r, 0deg));
  transition: box-shadow .4s;
}
.s-card:hover { box-shadow: 0 30px 50px -18px rgba(40, 20, 10, .45); z-index: 3; }
.s-card h4 { font-size: clamp(15px, 1.5vw, 22px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.s-card small { font-size: 10px; margin-top: 4px; opacity: .75; }
.s-card .acc { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.s-card em { width: 100%; font-style: normal; font-size: 10px; opacity: .75; margin-bottom: 2px; }
.s-card .uni { background: #fff; border-radius: 4px; padding: 4px 7px; font-family: Georgia, "Times New Roman", serif; font-size: 10.5px; color: #3b1a1a; }
/* cards frame the headline: two above, three below, so the words stay readable */
.s-card { width: clamp(150px, 14vw, 230px); }
.s-card.c1 { --r: -5deg; left: 7%;  top: 15%; }
.s-card.c2 { --r: 4deg;  left: 25%; top: 62%; }
.s-card.c3 { --r: -3deg; left: 43%; top: 12%; }
.s-card.c4 { --r: 5deg;  left: 60%; top: 63%; }
.s-card.c5 { --r: -6deg; left: 78%; top: 18%; }
.success-caption { position: absolute; bottom: 11vh; left: 0; right: 0; text-align: center; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.45; color: var(--ink-soft); padding: 0 16px; }

/* =========================================================
   LIFE AT DREMORA
   ========================================================= */
.life { background: var(--paper); padding: 110px var(--gutter) 140px; }
.life-gallery { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; max-width: 1400px; margin: 0 auto 26px; }
.life-gallery figure { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3.4; }
.life-gallery img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.life-gallery .g1::after {
  content: ""; position: absolute; left: -12%; bottom: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--paper);
}
.life-gallery .g2 { border-radius: 200px 200px 6px 6px; }
.life-title {
  position: relative; width: fit-content; margin: 90px auto 70px;
  font-size: clamp(38px, 5vw, 72px); font-weight: 400; line-height: 1.05; text-align: center; letter-spacing: -.015em;
}
.bell { position: absolute; width: clamp(54px, 6vw, 84px); right: -22%; top: 8%; transform-origin: 50% 12%; animation: swing 2.6s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-14deg); } }
.activities { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 50px); max-width: 1300px; margin: 0 auto; }
.activity .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.activity .thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; transition: transform .5s var(--ease); }
.activity .thumbs img:nth-child(odd) { transform: rotate(-3deg); }
.activity .thumbs img:nth-child(even) { transform: rotate(2deg) translateY(6px); }
.activity:hover .thumbs img { transform: none; }
.doodle { width: 44px; height: 44px; margin-bottom: 8px; }
.activity h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.activity p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* =========================================================
   ADMISSIONS
   ========================================================= */
.admissions {
  position: relative; overflow: hidden;
  background: var(--maroon); color: #f3d9cf; text-align: center;
  padding: 300px 16px 220px;
}
.adm-edge { position: absolute; left: 0; right: 0; top: 0; height: 320px; background: linear-gradient(180deg, var(--paper) 0%, rgba(247, 244, 239, .85) 25%, rgba(247, 244, 239, 0) 100%); }
.noise {
  position: absolute; inset: 0; opacity: .32; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.admissions .eyebrow { position: relative; margin-bottom: 26px; }
.adm-title { position: relative; font-size: clamp(54px, 9vw, 150px); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; color: #f2d9d0; }
.adm-title span { display: block; }
.adm-book { position: relative; width: clamp(70px, 7vw, 110px); margin: 40px auto 0; }
.adm-book path { stroke-dasharray: 400; stroke-dashoffset: 400; }
.adm-book.in path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease); }

/* =========================================================
   NEWS + ARC MARQUEE
   ========================================================= */
.news { position: relative; background: var(--paper); padding-top: 120px; overflow: hidden; }
.news .eyebrow { margin-bottom: 50px; }
.news-pin { overflow: hidden; }
.news-track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; }
.news-card { width: clamp(280px, 34vw, 480px); }
.news-card img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; border-radius: 4px; margin-bottom: 18px; transition: transform .7s var(--ease); }
.news-card:hover img { transform: scale(1.02); }
.news-card .tag { display: inline-block; font-size: 10px; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; background: #ebe4da; color: var(--ink-soft); margin-bottom: 10px; }
.news-card h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.news-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.arc-marquee { display: block; width: 100%; height: clamp(300px, 42vw, 560px); margin-top: 40px; }
.arc-band { fill: none; stroke: var(--maroon); stroke-width: 66; }
.arc-text { font-family: var(--font); font-size: 34px; font-weight: 500; fill: #f6e3da; letter-spacing: .02em; dominant-baseline: middle; }

/* =========================================================
   LET'S GET STARTED
   ========================================================= */
.start { position: relative; background: var(--paper); text-align: center; padding: 140px 16px 170px; }
.start-text { max-width: 900px; margin: 24px auto 36px; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.22; letter-spacing: -.012em; }
.start-text .w { opacity: .14; transition: opacity .2s; }
.start-photo { position: absolute; right: var(--gutter); bottom: 60px; width: clamp(90px, 10vw, 150px); border-radius: 4px; transform: rotate(3deg); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--paper); min-height: 100vh; min-height: 100svh; padding: 96px var(--gutter) calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow: hidden; }
.footer-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.footer-tag { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 18px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.socials a:hover { transform: translateY(-3px); background: var(--maroon-2); }
.socials svg { width: 16px; height: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 10px; padding: 18px 22px; min-width: 190px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .25); font-size: 13px; }
.footer-links a { transition: color .3s, transform .3s; }
.footer-links a:hover { color: var(--maroon); transform: translateX(3px); }
.footer-art { position: relative; flex: 1; display: grid; place-items: center; min-height: 380px; }
.footer-art .floor { position: absolute; left: -10%; width: 120%; bottom: 0; height: 80%; }
.footer-art .book { position: relative; width: min(560px, 86vw); }
.b-page, .b-ink path { stroke-dasharray: 900; stroke-dashoffset: 900; }
.footer-art.in .b-page { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease); }
.footer-art.in .b-ink path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease) .6s; }
.pen { animation: penWrite 3.2s ease-in-out infinite; transform-origin: 400px 110px; }
@keyframes penWrite { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-14px, 8px) rotate(-3deg); } 50% { transform: translate(-28px, 2px) rotate(1deg); } 75% { transform: translate(-12px, 10px) rotate(-2deg); } }
.footer-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); padding-top: 16px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink); }
.to-top .arrow { width: 24px; height: 24px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease); }
.to-top:hover .arrow { transform: translateY(-3px); }

/* =========================================================
   PRELOADER + PROGRESS
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--maroon); color: #f6e7df;
  display: grid; place-items: center;
}
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader img { animation: crestSpin 2.4s var(--ease) infinite; }
@keyframes crestSpin { 0% { transform: rotateY(0); } 60%, 100% { transform: rotateY(360deg); } }
.loader-name { font-size: 13px; letter-spacing: .4em; font-weight: 500; }
.loader-bar { width: 180px; height: 2px; background: rgba(255, 255, 255, .2); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.loader-pct { font-size: 11px; letter-spacing: .2em; opacity: .7; font-variant-numeric: tabular-nums; }
.loader.gone { display: none; }
/* safety net: never let the loader trap the page if scripts fail */
.loader { animation: loaderFailsafe .6s 8s forwards; }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
.scroll-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 55; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--maroon)); transform-origin: 0 50%; transform: scaleX(0); }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; margin-bottom: 16px;
  border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--maroon);
  background: rgba(255, 250, 244, .75); backdrop-filter: blur(8px);
  border: 1px solid rgba(122, 18, 20, .18);
  transition: transform .4s var(--ease), background .3s;
}
.hero-pill:hover { transform: translateY(-2px); background: #fff; }
.hero-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fa34f; box-shadow: 0 0 0 0 rgba(47, 163, 79, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47, 163, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 163, 79, 0); } }

/* shared section heading */
.section-title { font-size: clamp(36px, 4.6vw, 66px); font-weight: 400; line-height: 1.06; letter-spacing: -.015em; text-align: center; margin: 16px auto 0; max-width: 16ch; }
.section-title em { font-style: normal; color: var(--maroon); position: relative; }
.section-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--c-yellow); z-index: -1; border-radius: 4px; }
.section-lead { max-width: 560px; margin: 18px auto 0; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* =========================================================
   PROGRAMMES
   ========================================================= */
.programmes { background: var(--paper); padding: 110px var(--gutter) 40px; }
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1400px; margin: 60px auto 0; }
.prog-card {
  position: relative; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 50px -30px rgba(60, 30, 10, .35);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .5s;
}
.prog-card:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 34px 60px -28px rgba(60, 30, 10, .45); }
.prog-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c); }
.prog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.prog-card:hover .prog-img img { transform: scale(1.06); }
.prog-num { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; background: var(--c); padding: 5px 10px; border-radius: 99px; }
.prog-body { padding: 20px 20px 22px; border-top: 6px solid var(--c); }
.prog-age { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prog-body h3 { font-size: 24px; font-weight: 500; margin: 6px 0 8px; }
.prog-body p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.prog-body ul { list-style: none; margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.prog-body li { font-size: 11.5px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 30%, #fff); }
.prog-link { font-size: 13px; font-weight: 500; color: var(--maroon); display: inline-flex; gap: 6px; }
.prog-link span { transition: transform .4s var(--ease); }
.prog-link:hover span { transform: translateX(5px); }

/* =========================================================
   MOMENTS (photo marquee) + LIGHTBOX
   ========================================================= */
.moments { margin-top: 130px; }
.moments-title { text-align: center; font-size: clamp(26px, 3vw, 40px); font-weight: 400; margin: 14px 0 40px; letter-spacing: -.01em; }
.marquee-row { overflow: hidden; margin: 0 calc(var(--gutter) * -1) 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.marquee-track figure { position: relative; width: clamp(220px, 24vw, 340px); aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: zoom-in; flex: none; }
.marquee-track img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.marquee-track figure:hover img { transform: scale(1.06); }
.marquee-track figcaption {
  position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 500;
  background: rgba(255, 255, 255, .9); padding: 5px 10px; border-radius: 99px;
  transform: translateY(8px); opacity: 0; transition: .4s var(--ease);
}
.marquee-track figure:hover figcaption { transform: none; opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 40px 16px;
  background: rgba(28, 12, 12, .82); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1000px, 100%); transform: scale(.92); transition: transform .5s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { color: #f6e7df; text-align: center; margin-top: 14px; font-size: 15px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; color: #fff; border: 1px solid rgba(255, 255, 255, .35); font-size: 16px; }

/* =========================================================
   ADMISSIONS STEPS
   ========================================================= */
.adm-steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1200px; margin: 90px auto 0; text-align: left; }
.adm-steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 19px; height: 1px; background: rgba(255, 220, 200, .3); }
.adm-steps li { position: relative; padding: 0 6px; }
.adm-steps span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--maroon); border: 1px solid rgba(255, 220, 200, .55); color: var(--gold);
  font-size: 12px; font-weight: 600; margin-bottom: 16px; position: relative;
}
.adm-steps h4 { font-size: 18px; font-weight: 500; color: #fbe9e2; margin-bottom: 6px; }
.adm-steps p { font-size: 13px; line-height: 1.55; color: rgba(255, 225, 214, .7); }
.adm-ctas { position: relative; display: flex; gap: 12px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.btn-light { background: #f6e7df; color: var(--maroon); }
.btn-light .arrow { background: rgba(122, 18, 20, .1); }
.btn-ghost { color: #f6e7df; border: 1px solid rgba(255, 230, 220, .45); }
.btn-ghost .arrow { background: rgba(255, 255, 255, .12); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.voices { background: var(--paper); padding: 130px var(--gutter) 40px; }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1240px; margin: 60px auto 0; }
.voice {
  position: relative; background: #fff; border-radius: 18px; padding: 34px 28px 26px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  box-shadow: 0 24px 50px -32px rgba(60, 30, 10, .35);
  transform-style: preserve-3d;
}
.voice:nth-child(2) { background: var(--maroon); color: #f6e7df; transform: translateY(26px); }
.quote-mark { position: absolute; top: -8px; left: 22px; font-size: 90px; line-height: 1; font-family: Georgia, serif; color: var(--c-yellow); }
.voice blockquote { font-size: 17px; line-height: 1.55; letter-spacing: -.005em; }
.voice figcaption { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.voice figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.voice figcaption b { display: block; font-size: 14.5px; font-weight: 500; }
.voice figcaption span { opacity: .8; }

/* footer contact */
.footer-contact { font-style: normal; display: grid; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 18px 36px; font-size: 13px; line-height: 1.5; margin-left: auto; margin-right: 24px; }
.footer-contact small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-contact a:hover { color: var(--maroon); }

/* reveal helper (only hides when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .adm-steps::before { display: none; }
  .voice-grid { grid-template-columns: 1fr; max-width: 640px; }
  .voice:nth-child(2) { transform: none; }
  .footer-top { flex-wrap: wrap; }
  .footer-contact { margin-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-photo { grid-column: 1 / -1; aspect-ratio: 16 / 8; min-height: 0; }
}
@media (max-width: 760px) {
  .portal-link { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn { height: 32px; font-size: 12px; padding-left: 12px; }
  .brand-text small { display: none; }
  .hero-campus { height: 52%; object-position: 40% 100%; }
  .hero-content { top: 120px; }

  .stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 16px; }
  .stat-card .num { min-width: 3.2ch; font-size: 34px; }

  .tree { height: auto; margin-top: 50px; padding-left: 26px; border-left: 1px solid var(--line); text-align: left; }
  .tree-svg { display: none; }
  .feature, .feature.left, .feature.right { position: relative; inset: auto; width: 100%; text-align: left; margin-bottom: 36px; }
  .feature.left h3 { justify-content: flex-end; flex-direction: row-reverse; }
  .feature .dot { margin-left: -30px; }
  .disc-wrap { --d: 62vw; }
  .orbit .chip > span { font-size: 10.5px; padding: 5px 10px; }
  .disc-content { padding: 0 10%; }
  .disc-content h3 { font-size: 26px; margin: 8px 0 10px; }
  .disc-content .eyebrow { font-size: 10px; letter-spacing: .14em; }
  .disc-stat { font-size: 11px; }

  .success-caption { font-size: 14px; }

  .life-gallery { grid-template-columns: 1fr 1fr; }
  .life-gallery .g1 { grid-column: 1 / -1; }
  .activities { grid-template-columns: 1fr; gap: 50px; }
  .bell { right: -16%; top: auto; bottom: -30%; }

  .admissions { padding: 240px 16px 160px; }
  .prog-grid { grid-template-columns: 1fr; }
  .adm-steps { grid-template-columns: 1fr 1fr; }
  .adm-steps li:last-child { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: 1fr; }
  .moments { margin-top: 90px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom span:nth-child(2) { display: none; }
  .start-photo { display: none; }
}

/* ---------- portrait screens (phones, tablets upright): headline on top, cards below ---------- */
@media (max-aspect-ratio: 1/1) {
  .success { place-items: start center; padding-top: calc(12vh + 30px); }
  .success-eyebrow { top: 9vh; }
  .success-word { font-size: clamp(50px, 14vw, 120px); }
  .s-card { width: min(44vw, 270px); aspect-ratio: auto; min-height: 0; padding: 11px 13px 12px; }
  .s-card .acc { margin-top: 14px; }
  .s-card.c1 { left: 4%;  top: 39%; }
  .s-card.c2 { left: 52%; top: 42%; }
  .s-card.c3 { left: 7%;  top: 55%; }
  .s-card.c4 { left: 51%; top: 58%; }
  .s-card.c5 { left: 27%; top: 70%; }
  .success-caption { bottom: 3vh; }
}
@media (max-aspect-ratio: 1/1) and (max-width: 430px) {
  .s-card small, .s-card em { display: none; }
  .s-card h4 { font-size: 15px; }
  .s-card .acc { margin-top: 10px; }
  .s-card .uni { font-size: 10px; padding: 3px 6px; }
}
@media (max-aspect-ratio: 1/1) and (max-height: 640px) {
  .success-word { font-size: clamp(44px, 13vw, 70px); }
  .s-card.c1 { top: 36%; } .s-card.c2 { top: 39%; } .s-card.c3 { top: 52%; } .s-card.c4 { top: 55%; } .s-card.c5 { top: 67%; }
}
@media (max-aspect-ratio: 1/1) and (min-width: 600px) {
  .s-card.c1 { left: 10%; } .s-card.c2 { left: 52%; } .s-card.c3 { left: 14%; } .s-card.c4 { left: 50%; } .s-card.c5 { left: 32%; }
}

/* ---------- short landscape screens (phones on their side, small laptops) ---------- */
@media (max-height: 560px) and (orientation: landscape) {
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .hero-content { top: 62px; }
  .hero-pill { margin-bottom: 8px; padding: 5px 12px; font-size: 11.5px; }
  .hero-badges { display: none; }
  .hero-title { font-size: clamp(28px, 9vh, 48px); }
  .hero-ctas { margin-top: 14px; }
  .hero-campus { height: 52%; }
  .scroll-cue { display: none; }

  .disc-wrap { --d: min(56vh, 70vw); top: 52%; }
  .disc-line { height: 52%; }
  .disc-content h3 { font-size: clamp(20px, 6vh, 32px); margin: 6px 0 8px; }
  .disc-content .eyebrow { font-size: 10px; }
  .disc-stat { font-size: 11px; }
  .disc-hint { display: none; }

  .success { min-height: 0; }
  .success-eyebrow { top: 5vh; }
  .success-word { font-size: clamp(40px, 17vh, 90px); align-self: start; margin-top: 13vh; }
  .s-card { width: 18vw; aspect-ratio: auto; padding: 9px 11px; }
  .s-card h4 { font-size: 13px; }
  .s-card .acc { margin-top: 8px; }
  .s-card.c1 { left: 2%;  top: 50%; } .s-card.c2 { left: 21%; top: 54%; } .s-card.c3 { left: 41%; top: 49%; }
  .s-card.c4 { left: 60%; top: 55%; } .s-card.c5 { left: 79%; top: 50%; }
  .success-caption { display: none; }

  .menu { justify-content: flex-start; padding-top: 60px; }
  .menu-foot { display: none; }
  .admissions { padding-top: 200px; }
  .footer-art { min-height: 260px; }
}
.menu { overflow-y: auto; }
.menu-links a { font-size: clamp(28px, min(6.4vw, 8.5vh), 86px); }

/* ---------- large monitors ---------- */
@media (min-width: 1800px) {
  :root { --gutter: clamp(60px, 5vw, 120px); }
  .stats, .prog-grid, .life-gallery { max-width: 1760px; }
  .activities, .voice-grid { max-width: 1600px; }
  .tree { max-width: 1240px; }
  .hero-title { font-size: clamp(80px, 4.6vw, 120px); }
  .section-title { font-size: clamp(66px, 3.8vw, 96px); }
  .section-lead, .prog-body p, .activity p, .news-card p, .feature p { font-size: 16px; }
  .prog-body h3, .activity h3 { font-size: 28px; }
  .stat-card p { font-size: 15px; }
  .voice blockquote { font-size: 20px; }
  .news-card { width: clamp(480px, 28vw, 620px); }
  .btn { height: 42px; font-size: 14px; }
  .main-nav, .portal-link { font-size: 16px; }
}

/* ---------- touch screens: bigger tap targets, no hover-only content ---------- */
@media (hover: none) {
  .menu-toggle { width: 44px; height: 44px; }
  .btn { height: 40px; }
  .footer-links { gap: 14px; }
  .marquee-track figcaption { opacity: 1; transform: none; }
  .stat-card:hover { transform: none; }
}

/* ---------- very small phones ---------- */
@media (max-width: 360px) {
  .brand img { width: 36px; height: 36px; }
  .brand-text { font-size: 10.5px; }
  .header-actions .btn { padding-left: 10px; font-size: 11.5px; }
  .hero-title { font-size: 34px; }
}

/* ---------- 3D unavailable fallback ---------- */
.journey-fallback { display: none; }
.no-webgl .journey-fallback {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: calc(80px + 2vh) var(--gutter) 6vh; background: var(--paper); align-content: center;
}
.no-webgl .journey-fallback img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
