/* ==========================================================================
   Mangalore Group of Institutions
   Palette follows mangalorecollegeofnursing.com (navy + sky blue)
   ========================================================================== */
:root {
    --navy: #192f59;
    --navy-900: #0f1d3a;
    --navy-950: #0b1630;
    --blue: #27b8e5;
    --blue-600: #0596d4;
    --blue-50: #eaf7fd;
    --text: #334155;
    --muted: #64748b;
    --bg-alt: #f5f8fc;
    --border: #e2e8f0;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 29, 58, .06), 0 2px 8px rgba(15, 29, 58, .05);
    --shadow: 0 10px 30px -12px rgba(15, 29, 58, .18);
    --shadow-lg: 0 24px 50px -20px rgba(15, 29, 58, .35);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --topbar-h: 38px;
    --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; color: var(--text); line-height: 1.7; background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
h3, .h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: .9em; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--blue-600); margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.125rem; max-width: 620px; }
.link { font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--blue-600); display: inline-flex; align-items: center; gap: .4rem; transition: gap .3s var(--ease), color .2s; }
.link:hover { gap: .7rem; }

/* Buttons */
.btn { --bg: var(--blue); --fg: #fff; --bd: var(--blue);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em; height: 50px; padding: 0 28px;
    font-family: var(--font-head); font-size: .95rem; font-weight: 700; letter-spacing: .01em; line-height: 1; white-space: nowrap;
    background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: var(--radius-sm);
    position: relative; overflow: hidden; isolation: isolate; cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s, border-color .3s; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(5, 150, 212, .6); color: #fff; border-color: var(--navy); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost { --bg: transparent; --bd: rgba(255, 255, 255, .7); backdrop-filter: blur(4px); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--navy); border-color: #fff; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .4); }
.btn--light { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--light::before { background: var(--blue); }
.btn--light:hover { border-color: var(--blue); }
.btn--sm { height: 42px; padding: 0 20px; font-size: .9rem; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

/* Top bar & header */
.topbar { background: var(--navy-950); color: #a8b6cc; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--topbar-h); flex-wrap: wrap; }
.topbar a { color: #fff; margin-left: 1.4rem; font-weight: 500; }
.topbar a:hover { color: var(--blue); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(15, 29, 58, .25); border-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s var(--ease); }
.header.is-scrolled .header__inner { height: 66px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--navy); }
.brand__mark { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), #2a4a85); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(25, 47, 89, .6); transition: transform .4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__logo { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 6px 14px -6px rgba(90, 30, 20, .55); transition: transform .5s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.06); }
.header.is-scrolled .brand__logo { width: 46px; height: 46px; }
.footer__logo { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1.1rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.brand__text small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-family: var(--font-head); color: var(--navy); font-weight: 600; font-size: .95rem; position: relative; padding: .4rem 0; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover, .nav a.active { color: var(--blue-600); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle, .nav-burger { display: none; }

/* Hero slider */
.slider { position: relative; height: calc(100vh - var(--topbar-h) - var(--header-h)); height: calc(100svh - var(--topbar-h) - var(--header-h)); min-height: 560px; max-height: 920px; overflow: hidden; background: var(--navy-950); color: #fff; }
.slider--college { height: calc(86vh - var(--topbar-h) - var(--header-h)); height: calc(86svh - var(--topbar-h) - var(--header-h)); min-height: 520px; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.slide__bg { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.14); transition: transform 8s linear; }
.slide.is-active .slide__bg { transform: scale(1); }
.slide::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(11, 22, 48, .94) 0%, rgba(15, 29, 58, .78) 42%, rgba(15, 29, 58, .2) 100%); }
.slide::after { content: ''; position: absolute; inset: auto 0 0 0; height: 35%; z-index: 1; background: linear-gradient(to top, rgba(11, 22, 48, .7), transparent); }
/* Auto margins centre the text vertically, but if it is taller than the slide it
   overflows downwards instead of sliding up under the header. */
.slide__content { position: relative; z-index: 2; padding-bottom: 40px; margin-top: auto; margin-bottom: auto; }
.slide__content > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > :nth-child(1) { transition-delay: .25s; }
.slide.is-active .slide__content > :nth-child(2) { transition-delay: .4s; }
.slide.is-active .slide__content > :nth-child(3) { transition-delay: .55s; }
.slide.is-active .slide__content > :nth-child(4) { transition-delay: .7s; }
.slide.is-active .slide__content > :nth-child(5) { transition-delay: .85s; }
.slide h1, .slide h2 { color: #fff; max-width: 780px; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
.slide h1 em, .slide h2 em { font-style: normal; background: linear-gradient(90deg, var(--blue), #7dd8f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide .eyebrow { color: var(--blue); }
.slide .lead { color: #d5deec; }
.slide__logo { width: 92px; height: 92px; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); margin-bottom: 1.2rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

.slider__ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 36px; }
.slider__ui .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.slider__dots { display: flex; gap: 10px; flex: 1; max-width: 520px; }
.slider__dot { flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.slider__dot::before, .slider__dot span { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.slider__dot span { background: var(--blue); transform: scaleX(0); transform-origin: left; }
.slider__dot.is-done span { transform: scaleX(1); }
.slider__dot.is-active span { animation: slider-progress var(--slide-ms, 6500ms) linear forwards; }
.slider.is-paused .slider__dot.is-active span { animation-play-state: paused; }
@keyframes slider-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider__nav { display: flex; align-items: center; gap: 12px; }
.slider__count { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: #c5d0e3; min-width: 64px; text-align: center; letter-spacing: .05em; }
.slider__count b { color: #fff; font-size: 1.1rem; }
.slider__arrow { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.slider__arrow:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
.slider__arrow .icon { width: 20px; height: 20px; }
.slider__scroll { position: absolute; z-index: 3; left: 50%; bottom: 100px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; display: none; }
.slider__scroll::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-hint 1.8s var(--ease) infinite; }
@keyframes scroll-hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-height: 940px) and (min-width: 961px) { .slider:not(.slider--college) .slider__scroll { display: block; } }

/* Stats band */
.stats { position: relative; z-index: 4; background: linear-gradient(100deg, var(--blue-600), var(--blue)); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .2); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: .9rem; opacity: .92; }

/* Page head (inner pages) */
.page-head { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, rgba(39, 184, 229, .35), transparent 45%), linear-gradient(120deg, var(--navy-950), var(--navy)); color: #fff; padding: 80px 0 64px; }
.page-head::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); mask-image: linear-gradient(to left, #000, transparent 70%); }
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.page-head .eyebrow { color: var(--blue); }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 3rem; max-width: 680px; }
.section__head h2 { margin-bottom: 0; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.split--top { align-items: start; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.img-frame { position: relative; isolation: isolate; }
.img-frame::before { content: ''; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--blue); border-radius: var(--radius); z-index: -1; opacity: .5; }
.subhead { margin: 3.5rem 0 1.4rem; font-size: 1.35rem; }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--1 { grid-template-columns: minmax(0, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .9s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.card__body .link { margin-top: auto; padding-top: .6rem; }
.card__meta { font-size: .85rem; color: var(--navy); font-weight: 500; background: var(--bg-alt); padding: .6em .9em; border-radius: 8px; line-height: 1.6; }
.card--college { display: flex; flex-direction: column; color: inherit; }
.card--college .card__media { overflow: hidden; aspect-ratio: 16 / 10; }
.card--college .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card--college:hover .card__media img { transform: scale(1.07); }
.card--college p { font-size: .95rem; }
.card__logo { width: 64px; height: 64px; margin: -58px 0 .9rem; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); position: relative; }
.card--feature { padding: 30px 26px; position: relative; }
.card--feature::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card--feature:hover::after { transform: scaleX(1); }
.card--feature h3 { margin-bottom: .4em; }
.card--feature p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.feature__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 1.1rem; flex-shrink: 0; transition: background .35s, color .35s, transform .45s var(--ease); }
.feature__icon .icon { width: 26px; height: 26px; }
.card--feature:hover .feature__icon, .contact-item:hover .feature__icon { background: var(--blue); color: #fff; transform: rotate(-8deg) scale(1.05); }
.card--list { padding: 32px; }
.card--list:hover { transform: none; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.checklist li:last-child { border: 0; }
.checklist .icon { color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: .2em; stroke-width: 3; }
.card--course { display: flex; flex-direction: column; }
.card--course > img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.card--course:hover > img { transform: scale(1.04); }
.card--course .card__body { position: relative; background: #fff; }
.card--course .card__body > p { color: var(--muted); font-size: .92rem; }
.card--course dl { margin: 0; }
.card--course dt { font-family: var(--font-head); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-600); font-weight: 700; margin-top: .4rem; }
.card--course dd { margin: 0 0 .8rem; font-size: .92rem; }
.cards--1 .card--course { flex-direction: row; }
.cards--1 .card--course > img { width: 44%; aspect-ratio: auto; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem !important; }
.tags span { font-size: .75rem; font-weight: 500; background: var(--bg-alt); color: var(--navy); padding: .25em .75em; border-radius: 999px; border: 1px solid var(--border); }
.card--year { padding: 26px; position: relative; }
.card--year::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--blue)); }
.card--year h4 { font-size: 1.2rem; font-weight: 800; }
.card--year ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.card--year li { margin-bottom: .3rem; }
.card--year li::marker { color: var(--blue); }

/* Vision / mission */
.vm { display: flex; flex-direction: column; gap: 1.8rem; }
.vm__item { border-left: 3px solid var(--blue); padding-left: 1.4rem; }
.vm__item h3 { font-size: 1.3rem; margin-bottom: .35em; }
.vm__item p { margin: 0; }

/* Brochure */
.brochure { width: 100%; height: 85vh; min-height: 520px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.brochure-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brochure-pages a { display: block; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease); }
.brochure-pages a:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.brochure-pages img { width: 100%; }

/* Gallery */
.grid-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-gallery a, .grid-gallery figure { display: block; margin: 0; position: relative; overflow: hidden; border-radius: 12px; }
.grid-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .8s var(--ease); }
.grid-gallery a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 29, 58, .55), transparent 60%); opacity: 0; transition: opacity .4s; }
.grid-gallery a:hover img, .grid-gallery figure:hover img { transform: scale(1.08); }
.grid-gallery a:hover::after { opacity: 1; }
.grid-gallery--wide { grid-template-columns: repeat(2, 1fr); }
.grid-gallery--wide img { aspect-ratio: 16 / 9; }
.grid-gallery figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 1; background: rgba(15, 29, 58, .85); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .8rem; padding: .3em .9em; border-radius: 6px; }
.grid-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 3.5rem; }
.grid-videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #000; box-shadow: var(--shadow); }

/* CTA — Apply for Admission */
.cta { position: relative; overflow: hidden; background: linear-gradient(115deg, var(--navy-950) 0%, var(--navy) 55%, #03648d 100%); color: #cfdcf0; padding: 88px 0; }
.cta::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(39, 184, 229, .45), transparent 65%); animation: float 9s ease-in-out infinite; }
.cta::after { content: ''; position: absolute; width: 300px; height: 300px; left: -100px; bottom: -160px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .04); }
.cta__inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .35em; }
.cta p { margin: 0; max-width: 620px; font-size: 1.05rem; }
.cta a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 30px); } }

/* Contact */
.contact-list { display: flex; flex-direction: column; gap: 1.8rem; }
.contact-item { display: flex; gap: 1.1rem; }
.contact-item h3 { margin-bottom: .2em; }
.contact-item p { margin: 0; }
.map { width: 100%; height: 460px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Footer */
.footer { background: var(--navy-950); color: #9fb0c8; padding-top: 72px; font-size: .9rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1em; }
.footer a { color: #9fb0c8; }
.footer a:hover { color: var(--blue); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 48px; }
.footer__email { margin: 0 0 .2rem; font-size: .84rem; overflow-wrap: anywhere; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: .82rem; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(5, 150, 212, .7); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease), background .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy); }

/* Scroll reveal (only when JS is running).
   Uses animations (fill: backwards) so hover transitions on cards keep working. */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible { animation: reveal-up .9s var(--ease) var(--reveal-delay, 0s) backwards; }
.js [data-reveal="zoom"].is-visible { animation-name: reveal-zoom; }
.js [data-reveal="flip"].is-visible { animation-name: reveal-flip; animation-duration: 1.1s; }
@keyframes reveal-up { from { opacity: 0; transform: perspective(1200px) translateY(56px) rotateX(14deg) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes reveal-zoom { from { opacity: 0; transform: perspective(1200px) scale(.92) translateZ(-60px); } to { opacity: 1; transform: none; } }
@keyframes reveal-flip { from { opacity: 0; transform: perspective(1400px) rotateY(-55deg) translateX(-40px); transform-origin: left center; } to { opacity: 1; transform: none; transform-origin: left center; } }

.section__intro { max-width: 420px; margin: 0; color: var(--muted); font-size: 1.02rem; }

/* Choose your path — expanding panels */
.paths { display: flex; gap: 14px; height: 560px; }
.path { position: relative; flex: 1; min-width: 0; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate; cursor: pointer;
    transition: flex 0.75s var(--ease), box-shadow .5s var(--ease); box-shadow: var(--shadow); }
.path.is-open { flex: 3.4; box-shadow: var(--shadow-lg); }
.path__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.path.is-open .path__bg { transform: scale(1); filter: none; }
.path::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 22, 48, .15) 0%, rgba(11, 22, 48, .55) 45%, rgba(11, 22, 48, .95) 100%); transition: background .6s; }
.path:not(.is-open)::after { background: linear-gradient(180deg, rgba(11, 22, 48, .55), rgba(11, 22, 48, .9)); }
.path__num { position: absolute; top: 22px; left: 24px; font-family: var(--font-head); font-weight: 800; font-size: .85rem; letter-spacing: .1em; padding: .35em .8em; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.path__label { position: absolute; left: 50%; bottom: 34px; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; white-space: nowrap;
    writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); transition: opacity .4s; }
.path.is-open .path__label { opacity: 0; pointer-events: none; }
.path__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 34px 32px; max-width: 640px;
    opacity: 0; transform: translateY(24px); transition: opacity .35s, transform .35s; pointer-events: none; }
.path.is-open .path__content { opacity: 1; transform: none; transition: opacity .6s .3s, transform .7s .3s var(--ease); pointer-events: auto; }
.path__logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 3px; margin-bottom: 1rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.path__eyebrow { font-family: var(--font-head); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #8fdcf6; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); margin-bottom: .5rem; }
.path h3 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; margin-bottom: .45em; }
.path__intro { color: #d5deec; font-size: .98rem; margin-bottom: 1.1rem; max-width: 520px; }
.path__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.path__chips li { font-size: .78rem; font-weight: 500; padding: .35em .9em; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.path__cta { display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 22px; border-radius: var(--radius-sm); background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: .92rem; transition: background .3s, color .3s, gap .3s var(--ease); }
.path:hover .path__cta { background: var(--blue); color: #fff; gap: .8rem; }

/* About — bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 18px; }
.bento__tile { position: relative; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--border); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bento__tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento__tile--story { grid-column: span 2; grid-row: span 2; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.bento__tile--story h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.bento__tile--story p:not(.eyebrow) { color: var(--muted); }
.bento__tile--photo { grid-column: span 2; grid-row: span 2; padding: 0; border: 0; }
.bento__tile--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento__tile--photo:hover img { transform: scale(1.06); }
.bento__badge { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; padding: 14px 20px; border-radius: 16px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); color: var(--muted); font-size: .85rem; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3); }
.bento__badge b { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.bento__tile--stat { display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem; color: #fff; border: 0; }
.bento__tile--stat .icon { position: absolute; top: 26px; right: 26px; width: 44px; height: 44px; opacity: .35; }
.bento__tile--stat strong { font-family: var(--font-head); font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.bento__tile--stat > span { font-size: .9rem; opacity: .85; max-width: 240px; }
.bento__tile--navy { background: radial-gradient(circle at 100% 0%, rgba(39, 184, 229, .35), transparent 55%), var(--navy); }
.bento__tile--blue { background: linear-gradient(135deg, var(--blue-600), var(--blue)); }
.bento__tile--leader { grid-column: span 2; display: flex; align-items: center; gap: 22px; }
.bento__avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue-600)); box-shadow: 0 0 0 6px var(--blue-50); }
.bento__quote { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: .4rem; letter-spacing: -.01em; }
.bento__who { margin: 0; font-size: .9rem; color: var(--muted); }
.bento__who b { color: var(--navy); }

/* Learn by doing — dark spotlight cards */
.learn { position: relative; overflow: hidden; padding: 104px 0; color: #b7c4da;
    background: radial-gradient(ellipse at 10% 0%, rgba(39, 184, 229, .18), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(5, 150, 212, .2), transparent 50%), var(--navy-950); }
.learn::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.learn .container { position: relative; }
.learn h2 { color: #fff; }
.learn .eyebrow { color: var(--blue); }
.learn .section__intro { color: #93a3bd; }
.spots { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.spot { --x: 50%; --y: 50%; position: relative; overflow: hidden; isolation: isolate; padding: 28px; border-radius: 20px;
    background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; justify-content: flex-end;
    transition: border-color .4s, transform .5s var(--ease), background .4s; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--x) var(--y), rgba(39, 184, 229, .22), transparent 45%); }
.spot:hover { border-color: rgba(39, 184, 229, .5); transform: translateY(-4px); }
.spot:hover::before { opacity: 1; }
.spot__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: rgba(255, 255, 255, .07); transition: color .4s; }
.spot:hover .spot__num { color: rgba(39, 184, 229, .35); }
.spot__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: auto; color: var(--blue); background: rgba(39, 184, 229, .12); border: 1px solid rgba(39, 184, 229, .25); transition: background .4s, color .4s, transform .5s var(--ease); }
.spot__icon .icon { width: 24px; height: 24px; }
.spot:hover .spot__icon { background: var(--blue); color: #fff; transform: rotate(-8deg); }
.spot h3 { color: #fff; margin: 1.4rem 0 .35rem; font-size: 1.12rem; }
.spot p { margin: 0; font-size: .9rem; line-height: 1.6; color: #93a3bd; }
.spot--feature { grid-column: span 2; grid-row: span 2; padding: 36px; border: 0; }
.spot__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transition: transform 1.2s var(--ease); }
.spot--feature::after { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(11, 22, 48, .1) 20%, rgba(11, 22, 48, .92) 100%); }
.spot--feature:hover .spot__bg { transform: scale(1.06); }
.spot--feature h3 { font-size: 1.7rem; font-weight: 800; }
.spot--feature p { color: #d0dbec; font-size: 1rem; max-width: 440px; }
.spot--feature .spot__num { color: rgba(255, 255, 255, .25); font-size: 3.4rem; }
.spot--feature .spot__icon { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.spot--wide { grid-column: span 2; }

@media (max-width: 960px) {
    .paths { flex-direction: column; height: auto; }
    .path, .path.is-open { flex: none; height: auto; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; }
    .path::after, .path:not(.is-open)::after { background: linear-gradient(180deg, rgba(11, 22, 48, .1) 0%, rgba(11, 22, 48, .6) 45%, rgba(11, 22, 48, .95) 100%); }
    .path__label { display: none; }
    .path__content, .path.is-open .path__content { position: relative; opacity: 1; transform: none; pointer-events: auto; padding: 84px 26px 26px; }
    .path .path__bg { transform: none; filter: none; }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento__tile--story, .bento__tile--photo, .bento__tile--leader { grid-column: span 2; }
    .bento__tile--photo { grid-row: span 1; min-height: 320px; }
    .spots { grid-template-columns: 1fr 1fr; }
    .spot--feature { grid-row: span 1; min-height: 340px; }
}

@media (max-width: 640px) {
    .path, .path.is-open { min-height: 420px; }
    .path h3 { font-size: 1.4rem; }
    .bento { grid-template-columns: 1fr; }
    .bento__tile--story, .bento__tile--photo, .bento__tile--leader { grid-column: auto; }
    .bento__tile--story { padding: 28px; }
    .bento__tile--leader { flex-direction: column; align-items: flex-start; }
    .spots { grid-template-columns: 1fr; }
    .spot--feature, .spot--wide { grid-column: auto; }
    .spot { min-height: 190px; }
    .learn { padding: 72px 0; }
}


/* ==========================================================================
   3D layer — tilt, parallax, scroll-driven scenes
   ========================================================================== */
[data-tilt] { position: relative; will-change: transform; }
.tilt-glare { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 55%); }
[data-tilt].is-tilting .tilt-glare { opacity: 1; }
.js img[data-parallax] { transform: scale(1.18); transition: none; will-change: transform; }

/* Life on campus — 3D photo wall */
.campus { position: relative; padding: 96px 0 0; overflow: hidden; background: #fff; }
.campus__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.wall { --tilt: 0; position: relative; height: 680px; overflow: hidden; perspective: 1500px; }
.wall::before, .wall::after { content: ''; position: absolute; left: 0; right: 0; height: 140px; z-index: 2; pointer-events: none; }
.wall::before { top: 0; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); }
.wall::after { bottom: 0; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.wall__plane { display: flex; align-items: center; gap: 18px; height: 100%; width: min(1320px, calc(100% - 40px)); margin: 0 auto;
    transform-origin: 50% 35%; will-change: transform;
    transform: rotateX(calc(var(--tilt) * 26deg)) rotateZ(calc(var(--tilt) * -10deg)) scale(calc(1 - var(--tilt) * .12)); }
.wall__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.wall__item { position: relative; display: block; margin: 0; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--bg-alt); box-shadow: 0 18px 40px -18px rgba(15, 29, 58, .45); }
.wall__item img, .wall__item video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wall__item:hover img { transform: scale(1.07); }
.wall__item--video { aspect-ratio: 9 / 14; }
.wall__tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-family: var(--font-head); font-size: .75rem; font-weight: 700; color: #fff; background: rgba(15, 29, 58, .55); backdrop-filter: blur(8px); }
.wall__tag i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255, 77, 94, .7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }

/* College — vision / mission tiles */
.bento__tile--vm { grid-column: span 2; padding: 34px; color: #fff; border: 0; }
.bento__tile--vm > .icon { position: absolute; top: 28px; right: 28px; width: 46px; height: 46px; opacity: .3; }
.bento__tile--vm h3 { color: #fff; font-size: 1.5rem; font-weight: 800; }
.bento__tile--vm p { margin: 0; opacity: .9; max-width: 520px; }

/* College — highlights */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-weight: 500; color: var(--navy); font-size: .95rem; line-height: 1.45; transition: border-color .3s, box-shadow .45s var(--ease); }
.perk:hover { border-color: rgba(39, 184, 229, .5); box-shadow: var(--shadow); }
.perk__check { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-600)); box-shadow: 0 6px 14px -6px rgba(5, 150, 212, .8); }
.perk__check .icon { width: 18px; height: 18px; stroke-width: 3; }

/* College — courses */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .45s var(--ease); }
.course:hover { box-shadow: var(--shadow-lg); }
.course__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.course:hover .course__media img { transform: scale(1.07); }
.course__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11, 22, 48, .88)); }
.course__media h3 { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; margin: 0; color: #fff; font-size: 1.2rem; font-weight: 800; }
.course__num { position: absolute; z-index: 1; top: 16px; right: 16px; padding: .3em .75em; border-radius: 999px; font-family: var(--font-head); font-weight: 800; font-size: .8rem; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.course__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.course__summary { color: var(--muted); font-size: .92rem; }
.course__facts { display: grid; gap: 10px; margin-bottom: 1rem; }
.course__facts div { background: var(--bg-alt); border-radius: 12px; padding: 10px 14px; font-size: .86rem; line-height: 1.5; }
.course__facts span, .course__label { display: block; font-family: var(--font-head); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-600); margin-bottom: .2rem; }
.courses--single { grid-template-columns: 1fr; }
.courses--quad { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.courses--quad .course__media h3 { font-size: 1.05rem; }
.course__ask { margin-top: auto; font-size: .88rem; }
.course__seats { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; padding: .35em .85em; border-radius: 999px; background: var(--blue-50); color: var(--navy); font-size: .82rem; align-self: flex-start; }
.course__seats .icon { color: var(--blue-600); width: 16px; height: 16px; }

/* Affiliation certificate */
.approval { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; }
.approval__text > p:not(.eyebrow) { color: var(--muted); }
.approval__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.approval__facts div { padding: 20px 22px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--border); }
.approval__facts dt { font-family: var(--font-head); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-600); }
.approval__facts dd { margin: .2rem 0 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .98rem; line-height: 1.4; }
.approval__seal { display: inline-flex; align-items: center; gap: .45rem; padding: .55em 1.1em; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue-600)); box-shadow: 0 12px 24px -10px rgba(15, 29, 58, .6); }
@media (max-width: 960px) { .approval { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 640px) { .approval__facts { grid-template-columns: 1fr; } }
.courses--single .course { display: grid; grid-template-columns: 1.05fr 1fr; }
.courses--single .course__media { aspect-ratio: auto; min-height: 380px; }
.courses--single .course__media h3 { font-size: 1.8rem; }
.courses--single .course__body { padding: 34px; justify-content: center; }

/* College — curriculum timeline */
.timeline { --draw: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.timeline__line { position: absolute; left: 23px; right: 23px; top: 22px; height: 3px; border-radius: 3px; background: var(--border); }
.timeline__line i { display: block; height: 100%; width: calc(var(--draw) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--blue)); }
.timeline__step { position: relative; padding-top: 70px; }
.timeline__dot { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid var(--border); font-family: var(--font-head); font-weight: 800; color: var(--muted); transition: background .5s, border-color .5s, color .5s, box-shadow .5s, transform .5s var(--ease); }
.timeline__step.is-on .timeline__dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 7px var(--blue-50); transform: scale(1.08); }
.timeline__card { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); height: 100%; }
.timeline__card h4 { font-size: 1.2rem; font-weight: 800; }
.timeline__card ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; }
.timeline__card li { margin-bottom: .3rem; }
.timeline__card li::marker { color: var(--blue); }

/* College — campus showcase */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.showcase__item { margin: 0; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.showcase__item img { width: 100%; height: 100%; object-fit: cover; }
.showcase__item figcaption { position: absolute; z-index: 2; left: 18px; bottom: 18px; padding: .35em 1em; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--navy); background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); }

/* Vision & mission — sticky scroll story */
.vmz { --accent: var(--navy); --accent-2: var(--blue); position: relative; overflow: clip; padding: 110px 0 40px;
    background: radial-gradient(ellipse at 0% 0%, rgba(39, 184, 229, .08), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(25, 47, 89, .06), transparent 50%), #fff;
    transition: background-color .8s; }
.vmz[data-active="mission"] { --accent: var(--blue-600); --accent-2: var(--navy); }
.vmz__bgword { position: absolute; left: 0; top: 50%; width: max-content; pointer-events: none; user-select: none; white-space: nowrap;
    font-family: var(--font-head); font-weight: 800; font-size: clamp(7rem, 17vw, 15rem); line-height: 1; letter-spacing: -.04em; text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 2px rgba(25, 47, 89, .07); transform: translate3d(var(--shift, 0px), -50%, 0); will-change: transform; }
.vmz__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.vmz__sticky { position: sticky; top: calc(var(--header-h) + 60px); }
.vmz__panels { display: grid; margin: .4rem 0 2.2rem; }
.vmz__panel { grid-area: 1 / 1; opacity: 0; transform: translateY(26px) rotateX(-12deg); transform-origin: 50% 100%; filter: blur(6px); pointer-events: none;
    transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s; }
.vmz__panel.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.vmz__tag { display: inline-flex; align-items: center; gap: .5rem; padding: .45em 1.05em; border-radius: 999px; font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--accent); box-shadow: 0 10px 24px -12px var(--accent); transition: background .6s; }
.vmz__tag .icon { width: 16px; height: 16px; }
.vmz__quote { margin: 1.4rem 0 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.03em; color: var(--navy); }
.vmz__mark { color: var(--accent-2); }
.vmz__panel[data-panel="mission"] .vmz__quote { background: linear-gradient(100deg, var(--navy) 10%, var(--blue-600) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vmz__panel[data-panel="mission"] .vmz__mark { -webkit-text-fill-color: var(--blue); }
.vmz__controls { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.vmz__switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); }
.vmz__switch button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: .7em 1.6em; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--muted); transition: color .4s; }
.vmz[data-active="vision"] [data-goto="vision"], .vmz[data-active="mission"] [data-goto="mission"] { color: #fff; }
.vmz__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--accent); box-shadow: 0 8px 18px -8px var(--accent); transition: transform .6s var(--ease), background .6s; }
.vmz[data-active="mission"] .vmz__pill { transform: translateX(100%); }
.vmz__meter { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 180px; }
.vmz__count { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.vmz__count b { color: var(--navy); font-size: 1.15rem; }
.vmz__progress { flex: 1; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.vmz__progress i { display: block; height: 100%; width: calc(var(--progress, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--blue)); }

.vmz__flow { display: grid; gap: 18px; padding: 40px 0 22vh; }
.vmz__group { display: grid; gap: 18px; }
.vmz__group + .vmz__group { margin-top: 12vh; }
.vmz__grouphead { display: none; }
.vmz__point { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; padding: 30px 32px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s; }
.vmz__num { position: absolute; right: 24px; top: 14px; font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(25, 47, 89, .12); transition: -webkit-text-stroke-color .6s; }
.vmz__icon { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--blue-600); background: var(--blue-50); transition: background .6s, color .6s, transform .6s var(--ease), box-shadow .6s; }
.vmz__icon .icon { width: 26px; height: 26px; }
.vmz__point p { margin: 0; padding-right: 54px; font-size: 1.02rem; line-height: 1.7; color: var(--text); }
.js .vmz__point { opacity: .38; transform: scale(.965); }
.js .vmz__point.is-active { opacity: 1; transform: none; box-shadow: var(--shadow-lg); border-color: rgba(39, 184, 229, .45); }
.vmz__point.is-active .vmz__icon { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-600)); transform: rotate(-8deg) scale(1.06); box-shadow: 0 12px 24px -10px rgba(5, 150, 212, .8); }
.vmz__point.is-active .vmz__num { -webkit-text-stroke-color: rgba(39, 184, 229, .55); }
.vmz__point[data-key="mission"].is-active .vmz__icon { background: linear-gradient(135deg, var(--navy), var(--blue-600)); }

/* Philosophy of nursing */
.philosophy__intro { max-width: 980px; margin-bottom: 3rem; }
.philosophy__quote { position: relative; margin: 0; padding-left: 70px; font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.5; color: #fff; letter-spacing: -.01em; }
.philosophy__mark { position: absolute; left: 0; top: -18px; font-size: 6rem; line-height: 1; color: var(--blue); font-weight: 800; }
.philosophy__quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.philosophy__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
.philosophy__card { justify-content: flex-start; }
.philosophy__card .spot__icon { margin-bottom: 0; }
.philosophy__card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; font-size: .92rem; line-height: 1.6; color: #a9b8cf; }
.philosophy__card li::marker { color: var(--blue); }

/* Inner page head with 3D photo stack */
.page-head { padding: 72px 0; }
.page-head__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; }
.page-head__intro { color: #c5d0e3; max-width: 520px; margin: 1rem 0 0; font-size: 1.05rem; }
.page-head__stack { position: relative; height: 250px; perspective: 1000px; }
.page-head__stack img { position: absolute; top: calc(var(--i) * 22px); right: calc(var(--i) * 15%); z-index: calc(3 - var(--i)); width: 58%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 4px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6);
    transform: rotateY(-20deg) rotateZ(calc(4deg - var(--i) * 5deg)) translateZ(calc(var(--i) * -50px)); animation: stack-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -2s); }
@keyframes stack-float { 50% { translate: 0 -14px; } }

/* Gallery page */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 20px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.reel { margin: 0; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #000; border: 6px solid var(--navy-950); box-shadow: var(--shadow-lg); scroll-snap-align: start; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry__item { display: block; margin-bottom: 16px; border-radius: 16px; overflow: hidden; break-inside: avoid; box-shadow: var(--shadow-sm); }
.masonry__item img { width: 100%; transition: transform 1s var(--ease); }
.masonry__item:hover img { transform: scale(1.06); }

/* Contact bento */
.contact-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ctile { position: relative; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .45s var(--ease); }
.ctile:hover { box-shadow: var(--shadow-lg); }
.ctile h3 { margin-bottom: .5em; }
.ctile p { margin: 0 0 .6rem; font-size: .95rem; }
.ctile--primary { grid-column: span 2; color: #cfdcf0; border: 0; background: radial-gradient(circle at 100% 0%, rgba(39, 184, 229, .4), transparent 55%), var(--navy); }
.ctile--primary h3 { color: #fff; }
.ctile--primary .feature__icon { background: rgba(255, 255, 255, .12); color: #fff; }
.ctile__big { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; letter-spacing: -.01em; line-height: 1.35; }
.ctile__big:hover { color: var(--blue); }
.ctile--wide { grid-column: span 2; }
.ctile--map { grid-column: 3 / 5; grid-row: 1 / 5; padding: 0; overflow: hidden; display: flex; }
.ctile--map .map { flex: 1; height: auto; min-height: 460px; border-radius: 0; box-shadow: none; }

@media (max-width: 960px) {
    .wall { height: 560px; }
    .wall__col:nth-child(4) { display: none; }
    .perks, .courses { grid-template-columns: 1fr 1fr; }
    .courses--single .course { grid-template-columns: 1fr; }
    .courses--single .course__media { min-height: 280px; }
    .timeline { grid-template-columns: 1fr 1fr; }
    .timeline__line { display: none; }
    .page-head__inner { grid-template-columns: 1fr; }
    .philosophy__grid { grid-template-columns: 1fr; }
    .vmz { padding: 80px 0; }
    .vmz__grid { grid-template-columns: 1fr; gap: 0; }
    .vmz__sticky { position: static; }
    .vmz__panels, .vmz__controls { display: none; }
    .vmz__flow { padding: 0; }
    .vmz__group + .vmz__group { margin-top: 48px; }
    .vmz__grouphead { display: block; margin-bottom: 6px; }
    .vmz__quote--sm { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-top: 1rem; }
    .js .vmz__point { opacity: 1; transform: none; }
    .vmz__bgword { top: 120px; transform: translate3d(var(--shift, 0px), 0, 0); }
    .philosophy__quote { padding-left: 0; }
    .philosophy__mark { display: none; }
    .page-head__stack { display: none; }
    .contact-bento { grid-template-columns: 1fr 1fr; }
    .ctile--map { grid-column: 1 / -1; grid-row: auto; }
    .ctile--map .map { min-height: 360px; }
}

@media (max-width: 640px) {
    .campus { padding-top: 64px; }
    .wall { height: 480px; }
    .wall__col:nth-child(3) { display: none; }
    .wall__plane, .wall__col { gap: 12px; }
    .perks, .courses, .showcase, .contact-bento { grid-template-columns: 1fr; }
    .ctile--primary, .ctile--wide { grid-column: auto; }
    .timeline { grid-template-columns: 1fr; gap: 18px; }
    .timeline__line { display: block; left: 22px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
    .timeline__line i { width: 100%; height: calc(var(--draw) * 100%); }
    .timeline__step { padding: 0 0 0 66px; }
    .bento__tile--vm { grid-column: auto; }
    .vmz__point { grid-template-columns: 1fr; padding: 24px; }
    .vmz__icon { grid-row: auto; width: 48px; height: 48px; }
    .vmz__point p { padding-right: 0; font-size: .95rem; }
    .vmz__num { font-size: 2.6rem; }
}

/* Responsive */
@media (max-width: 1080px) {
    .nav { gap: 1.4rem; }
    .nav a:not(.btn) { font-size: .9rem; }
}

@media (max-width: 960px) {
    :root { --header-h: 70px; }
    .cards--3, .cards--4, .footer__grid { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; gap: 2.5rem; }
    .grid-gallery { grid-template-columns: repeat(3, 1fr); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .2); }
    .cards--1 .card--course { flex-direction: column; }
    .cards--1 .card--course > img { width: 100%; aspect-ratio: 16 / 9; }
    .brochure-pages { grid-template-columns: repeat(2, 1fr); }
    .img-frame::before { display: none; }

    .nav-burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; border-radius: 10px; }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), background .2s; }
    .nav-burger span { top: 21px; }
    .nav-burger span::before { left: 0; right: 0; top: -7px; }
    .nav-burger span::after { left: 0; right: 0; top: 7px; }
    .nav-toggle:checked + .nav-burger span { background: transparent; }
    .nav-toggle:checked + .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }
    .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.2rem; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .2); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
    .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--border); }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin-top: 1rem; }
    .nav-toggle:checked ~ .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .3s var(--ease); }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .cards--3, .cards--4, .footer__grid, .grid-videos, .grid-gallery--wide, .brochure-pages { grid-template-columns: 1fr; }
    .grid-gallery { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 64px 0; }
    .topbar__inner { justify-content: center; text-align: center; padding: 6px 20px; }
    .topbar__inner > span:first-child { display: none; }
    .topbar a { margin: 0 .7rem; }
    .slider { min-height: 600px; }
    .slider__ui { bottom: 22px; }
    .slider__arrow { width: 42px; height: 42px; }
    .slider__count { display: none; }
    .slide__logo { width: 72px; height: 72px; }
    .slide__content { padding-top: 28px; padding-bottom: 96px; }
    .slide .eyebrow { font-size: .68rem; letter-spacing: .12em; margin-bottom: .6rem; }
    .slide .eyebrow::before { width: 20px; }
    .slide h1, .slide h2 { font-size: clamp(1.7rem, 7.4vw, 2.15rem); margin-bottom: .45em; }
    .slide .lead { font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
    .slide .hero__actions { margin-top: 1.3rem; gap: 10px; }
    .slide .hero__actions .btn { height: 46px; }
    .btn { height: 48px; padding: 0 22px; }
    .hero__actions .btn { flex: 1 1 auto; }
    .stat { padding: 22px 12px; }
    .brochure { height: 70vh; }
}

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