/* ============================================================
   The Noble Mission School — Design System
   Brand colours derived from the official logo:
   Navy #07294E · Orange #E97B21 · Light orange #EA984B · Ivory #F8F8F7
   ============================================================ */
:root {
  --navy: #07294E;
  --navy-800: #0B3563;
  --navy-900: #051C36;
  --navy-950: #03122A;
  --orange: #E97B21;
  --orange-300: #EA984B;
  --orange-100: #FBE7D6;
  --ivory: #F8F8F7;
  --cream: #F3EFE8;
  --sand: #E8E1D4;
  --gold: #C9A96A;
  --ink: #16202C;
  --ink-70: #4A5563;
  --ink-40: #8B94A0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(7,41,78,.06), 0 4px 12px rgba(7,41,78,.06);
  --shadow-md: 0 8px 30px rgba(7,41,78,.12);
  --shadow-lg: 0 24px 60px rgba(7,41,78,.18);
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-xl: 40px;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--ivory);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-70); max-width: 62ch; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grain { position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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"); }

/* ---------- Eyebrow / buttons ---------- */
.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--orange); margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--orange); }
.eyebrow.light { color: var(--orange-300); }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.light h2, .section-head.light .lead { color: #fff; }
.section-head.light .lead { color: rgba(255,255,255,.8); }
.section-head { margin-bottom: 3rem; }

.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; transition: transform .35s var(--ease-out), box-shadow .35s, background .3s, color .3s; will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(7,41,78,.25); }
.btn-primary:hover { background: var(--navy-800); }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(233,123,33,.3); }
.btn-accent:hover { background: #d66d16; }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .7rem 1.25rem; font-size: .88rem; }
.btn-lg { padding: 1.15rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.site-header.scrolled, .site-header.solid { background: rgba(248,248,247,.86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(7,41,78,.08), 0 8px 30px rgba(7,41,78,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(7,41,78,.15); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.22rem; color: var(--navy); }
.brand-sub { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-70); }
.site-header.on-dark:not(.scrolled) .brand-name { color: #fff; }
.site-header.on-dark:not(.scrolled) .brand-sub { color: rgba(255,255,255,.7); }
.nav-links { display: flex; list-style: none; gap: .25rem; margin: 0; padding: 0; }
.nav-links a { padding: .55rem .85rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--navy); position: relative; transition: background .3s; }
.nav-links a:hover, .nav-links a.active { background: rgba(7,41,78,.07); }
.site-header.on-dark:not(.scrolled) .nav-links a { color: #fff; }
.site-header.on-dark:not(.scrolled) .nav-links a:hover, .site-header.on-dark:not(.scrolled) .nav-links a.active { background: rgba(255,255,255,.14); }
.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; flex-direction: column; justify-content: center; gap: 6px; align-items: center; border-radius: 50%; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform .3s, opacity .3s; display: block; }
.site-header.on-dark:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.site-header.menu-open .nav-toggle span { background: var(--navy); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ivory); overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 99; animation: menuIn .3s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1025px) { .mobile-menu { display: none !important; } }
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { padding: 1.25rem 1.5rem calc(6rem + env(safe-area-inset-bottom)); max-width: 560px; margin-inline: auto; }
.mobile-menu-brand { text-align: center; margin-bottom: 1rem; }
.mobile-menu-brand img { margin-inline: auto; }
.mobile-menu-motto { font-family: var(--font-serif); font-style: italic; color: var(--ink-70); font-size: 1.1rem; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.mobile-menu li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--sand); font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); }
.mobile-menu-contact { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; color: var(--ink-70); font-weight: 600; }
.mobile-menu-contact i { color: var(--orange); width: 20px; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  #nav-enquire { display: none; }
  :root { --header-h: 64px; }
  .brand { gap: .6rem; min-width: 0; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name { font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-sub { font-size: .58rem; letter-spacing: .1em; }
  .site-header { background: rgba(248,248,247,.9); backdrop-filter: blur(14px); }
  .site-header.on-dark:not(.scrolled) .brand-name, .site-header.on-dark:not(.scrolled) .nav-toggle span { color: var(--navy); background: var(--navy); }
}

/* ---------- Hero (see slider block at end) ---------- */

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 5vw, 4.5rem) 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-white { background: #fff; }
.pattern-soft { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%2307294E' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M40 4l10.4 25.6L76 40 50.4 50.4 40 76 29.6 50.4 4 40l25.6-10.4z'/%3E%3C/g%3E%3C/svg%3E"); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.intro-media { position: relative; }
.intro-media .frame-main { border-radius: var(--r-xl) var(--r-sm) var(--r-xl) var(--r-sm); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.intro-media .frame-main img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .frame-small { position: absolute; right: -1.5rem; bottom: -2rem; width: 46%; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--ivory); aspect-ratio: 1; }
.intro-media .frame-small img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .estd { position: absolute; left: -1.25rem; top: 2rem; background: var(--orange); color: #fff; border-radius: 50%; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; font-family: var(--font-serif); box-shadow: var(--shadow-md); }
.intro-media .estd strong { font-size: 1.9rem; display: block; line-height: 1; }
.intro-media .estd span { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 700; }
.intro-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .9rem; }
.intro-points li { display: flex; gap: .85rem; align-items: flex-start; color: var(--ink-70); }
.intro-points i { color: var(--orange); margin-top: .3rem; }
.intro-points strong { color: var(--navy); }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 3.5rem; } .intro-media { margin: 0 1.5rem 2rem 1rem; } }

/* Stages (educational journey) */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: stage; }
.stage { background: #fff; border-radius: var(--r-md); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s; border-top: 3px solid var(--sand); }
.stage:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-top-color: var(--orange); }
.stage::before { counter-increment: stage; content: counter(stage, decimal-leading-zero); font-family: var(--font-serif); font-size: 3.2rem; color: var(--navy); opacity: .08; position: absolute; right: 1rem; top: .25rem; line-height: 1; }
.stage h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.stage .classes { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: .75rem; }
.stage p { color: var(--ink-70); font-size: .93rem; margin: 0; }
@media (max-width: 1100px) { .stages { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .stages { grid-template-columns: 1fr; } }
.note { font-size: .85rem; color: var(--ink-40); margin-top: 1.5rem; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value { padding: 2rem; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background .4s, transform .4s var(--ease-out); position: relative; overflow: hidden; }
.value:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.value .glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-content: center; background: linear-gradient(135deg, var(--orange), var(--orange-300)); color: #fff; font-size: 1.2rem; margin-bottom: 1.25rem; }
.value h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.value p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* Feature cards */
.features-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature .feature-img { aspect-ratio: 4/3; overflow: hidden; }
.feature .feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.feature:hover .feature-img img { transform: scale(1.05); }
.feature-body { padding: 1.75rem; }
.feature-body h3 { margin-bottom: .5rem; }
.feature-body p { color: var(--ink-70); margin: 0; }
@media (max-width: 900px) { .features-3 { grid-template-columns: 1fr; } }

/* Feature list (school features) */
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.fl-item { background: #fff; border-radius: var(--r-md); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .75rem; transition: transform .4s var(--ease-out); }
.fl-item:hover { transform: translateY(-4px); }
.fl-item i { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-100); color: var(--orange); display: grid; place-content: center; font-size: 1.1rem; }
.fl-item h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 800; margin: 0; }
.fl-item p { color: var(--ink-70); font-size: .9rem; margin: 0; }
@media (max-width: 1000px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* Mosaic — real school life */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: .9rem; }
.mosaic a { position: relative; overflow: hidden; border-radius: var(--r-md); display: block; background: var(--sand); }
.mosaic a img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic a .cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem; background: linear-gradient(180deg, transparent, rgba(5,28,54,.85)); color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.mosaic a:hover .cap, .mosaic a:focus-visible .cap { opacity: 1; transform: none; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
@media (max-width: 900px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (hover: none) { .mosaic a .cap { opacity: 1; transform: none; } }

/* Campus cards */
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.campus-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .45s var(--ease-out), box-shadow .45s; }
.campus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.campus-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-900); }
.campus-card-media img { width: 100%; height: 100%; object-fit: cover; }
.campus-badge { position: absolute; left: 1.25rem; top: 1.25rem; background: var(--orange); color: #fff; padding: .4rem .9rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.campus-card-body { padding: 1.75rem 1.75rem 2rem; }
.campus-card-body h3 { font-size: 1.5rem; }
.campus-address, .campus-phone, .campus-rating { color: var(--ink-70); margin: .35rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.campus-address i, .campus-phone i, .campus-rating i { color: var(--orange); margin-top: .3rem; }
.campus-rating i { color: var(--gold); }
.media-placeholder { display: grid; place-content: center; height: 100%; color: rgba(255,255,255,.6); font-size: .9rem; }
@media (max-width: 800px) { .campus-grid { grid-template-columns: 1fr; } }

/* Video / story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.story-video { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 9/16; max-width: 400px; margin-inline: auto; width: 100%; position: relative; }
.story-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.story-video .video-poster { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; cursor: pointer; background: var(--navy-900); }
.story-video .video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.story-video .video-poster .play { position: relative; width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.4); display: grid; place-content: center; font-size: 1.5rem; margin: 0 auto .75rem; transition: transform .4s; }
.story-video .video-poster:hover .play { transform: scale(1.08); }
.story-video .video-poster span { position: relative; font-size: .85rem; font-weight: 600; }
.quote { font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.75rem); font-style: italic; color: var(--navy); border-left: 3px solid var(--orange); padding-left: 1.25rem; margin: 1.5rem 0; }
.quote cite { display: block; font-style: normal; font-family: var(--font-sans); font-size: .85rem; color: var(--ink-40); margin-top: .5rem; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

/* Events */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.event-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .45s var(--ease-out), box-shadow .45s; }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.event-card .ev-img { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); position: relative; }
.event-card .ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.event-card:hover .ev-img img { transform: scale(1.05); }
.ev-cat { position: absolute; left: 1rem; top: 1rem; background: rgba(255,255,255,.92); color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; }
.ev-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ev-date { font-size: .8rem; color: var(--orange); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ev-body h3 { font-size: 1.35rem; margin: 0; }
.ev-body p { color: var(--ink-70); font-size: .93rem; margin: 0; flex: 1; }
.ev-link { font-weight: 700; color: var(--navy); display: inline-flex; gap: .5rem; align-items: center; margin-top: .5rem; }
.ev-link i { transition: transform .3s; } .ev-link:hover i { transform: translateX(4px); }
@media (max-width: 1000px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .events-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; }
.cta-band .cta-bg { position: absolute; inset: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); }
.cta-band .cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,28,54,.95), rgba(5,28,54,.6)); }
.cta-inner { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.cta-inner h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
.cta-inner p { color: rgba(255,255,255,.8); }
.cta-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(10px); border-radius: var(--r-lg); padding: 2rem; }
.cta-card h3 { color: #fff; font-size: 1.4rem; }
.cta-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; color: rgba(255,255,255,.85); }
.cta-card li i { color: var(--orange-300); width: 22px; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; }
.ig-grid a { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); position: relative; display: block; background: var(--sand); }
.ig-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.ig-grid a:hover img { transform: scale(1.08); }
.ig-grid a::after { content: '\f16d'; font-family: 'Font Awesome 6 Brands'; position: absolute; inset: 0; display: grid; place-content: center; color: #fff; font-size: 1.6rem; background: rgba(7,41,78,.5); opacity: 0; transition: opacity .35s; }
.ig-grid a:hover::after, .ig-grid a:focus-visible::after { opacity: 1; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.ig-embed-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.ig-embed-row iframe { width: 100%; min-height: 560px; border: 0; border-radius: var(--r-md); background: #fff; }
@media (max-width: 900px) { .ig-embed-row { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy-900); color: #fff; padding: calc(var(--header-h) + 4.5rem) 0 4.5rem; overflow: hidden; isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.85); transform: scale(1.03); }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,28,54,.55), rgba(5,28,54,.92)); }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lead { color: rgba(255,255,255,.8); }
.crumbs ol { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; font-size: .8rem; color: rgba(255,255,255,.6); flex-wrap: wrap; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }
.crumbs a:hover { color: #fff; }

/* Prose */
.prose { max-width: 70ch; color: var(--ink-70); font-size: 1.05rem; }
.prose h2, .prose h3 { color: var(--navy); margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .75rem; }
.placeholder { border: 1.5px dashed var(--sand); background: rgba(255,255,255,.6); border-radius: var(--r-md); padding: 1.5rem; color: var(--ink-40); font-size: .93rem; display: flex; gap: .75rem; align-items: flex-start; }
.placeholder i { color: var(--gold); margin-top: .2rem; }
.sticky-img { position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.sticky-img img { width: 100%; height: auto; }

/* Process timeline */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.process li { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--sand); position: relative; }
.process li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-serif); font-size: 2.2rem; color: var(--orange); font-weight: 600; line-height: 1; }
.process h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.process p { color: var(--ink-70); margin: 0; }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: var(--orange-100); color: var(--orange); border-radius: 6px; padding: .2rem .55rem; font-weight: 800; margin-left: .5rem; vertical-align: middle; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: .85rem; color: var(--navy); margin-bottom: .4rem; }
input, select, textarea { width: 100%; padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid var(--sand); background: #fff; font: inherit; color: var(--ink); transition: border-color .3s, box-shadow .3s; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(233,123,33,.15); outline: none; }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--ink-40); }
.form-status { margin-top: 1rem; padding: 1rem 1.25rem; border-radius: 12px; display: none; font-weight: 600; }
.form-status.ok { display: block; background: #E8F5EC; color: #1E6B3A; }
.form-status.err { display: block; background: #FDECEC; color: #9B2C2C; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.contact-card .map { aspect-ratio: 16/9; background: var(--sand); }
.contact-card .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-card-body { padding: 1.75rem; }
.contact-card-body h3 { font-size: 1.5rem; }
.contact-card-body dl { display: grid; grid-template-columns: 24px 1fr; gap: .5rem .85rem; margin: 1rem 0 0; }
.contact-card-body dt { color: var(--orange); }
.contact-card-body dd { margin: 0; color: var(--ink-70); }
.hours { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; margin: 0; }
.hours > div { display: flex !important; justify-content: space-between; gap: 1rem; padding-bottom: .3rem; border-bottom: 1px dashed var(--sand); }
.hours > div:last-child { border-bottom: 0; }
.hours dt { color: var(--ink-70); font-weight: 600; flex: none; min-width: 5.5rem; } .hours dd { margin: 0; color: var(--ink); text-align: right; white-space: nowrap; }
.hours .closed dd { color: var(--ink-40); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { border: 1.5px solid var(--sand); background: #fff; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; font-size: .85rem; color: var(--navy); transition: all .3s; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.masonry { columns: 4 260px; column-gap: 1rem; }
.masonry figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--r-md); overflow: hidden; background: var(--sand); position: relative; transition: opacity .4s, transform .4s var(--ease-out); }
.masonry figure.hide { display: none; }
.masonry figure a { display: block; }
.masonry figure img { width: 100%; height: auto; transition: transform .8s var(--ease-out); }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(180deg, transparent, rgba(5,28,54,.85)); color: #fff; font-size: .85rem; opacity: 0; transition: opacity .4s; }
.masonry figure:hover figcaption, .masonry figure:focus-within figcaption { opacity: 1; }
.masonry .src { position: absolute; top: .75rem; right: .75rem; background: rgba(255,255,255,.9); color: var(--navy); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 6px; }
.masonry .poster-tag { position: absolute; top: .75rem; left: .75rem; background: rgba(7,41,78,.85); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 6px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(3,18,42,.94); display: grid; place-items: center; padding: 3rem; animation: fadeIn .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; font-size: .95rem; max-width: 70ch; }
.lightbox figcaption a { color: var(--orange-300); text-decoration: underline; font-size: .82rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); width: 48px; height: 48px; border-radius: 50%; display: grid; place-content: center; font-size: 1.1rem; transition: background .3s; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 1.25rem; right: 1.25rem; font-size: 1.8rem !important; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 1rem; } .lb-prev, .lb-next { display: none; } .lightbox img { max-height: 70vh; } }
@keyframes fadeIn { from { opacity: 0; } }

/* Notices */
.notice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.notice { background: #fff; border-radius: var(--r-md); padding: 1.5rem; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 80px 1fr; gap: 1.25rem; align-items: start; border-left: 4px solid var(--sand); }
.notice.pinned { border-left-color: var(--orange); }
.notice-date { text-align: center; font-family: var(--font-serif); color: var(--navy); }
.notice-date strong { display: block; font-size: 2rem; line-height: 1; }
.notice-date span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-sans); color: var(--ink-40); font-weight: 700; }
.notice h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.notice p { color: var(--ink-70); margin: 0 0 .5rem; font-size: .95rem; }
.notice a.more { font-weight: 700; color: var(--orange); font-size: .9rem; }

/* FAQ */
.faq details { background: #fff; border-radius: var(--r-md); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm); margin-bottom: .75rem; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--orange); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-70); margin: 1rem 0 0; }

/* Testimonial */
.testimonial { background: #fff; border-radius: var(--r-lg); padding: 2.5rem; box-shadow: var(--shadow-sm); position: relative; }
.testimonial::before { content: '\201C'; font-family: var(--font-serif); font-size: 6rem; color: var(--orange-100); position: absolute; left: 1.5rem; top: -.5rem; line-height: 1; }
.testimonial blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.45rem; font-style: italic; color: var(--navy); position: relative; }
.testimonial footer { margin-top: 1.25rem; color: var(--ink-70); font-size: .9rem; }
.testimonial footer a { color: var(--orange); text-decoration: underline; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--navy); display: block; line-height: 1; }
.stat span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70); font-weight: 700; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); }
.reveal-img.in { clip-path: inset(0 0 0 0); }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; } .stagger.in > *:nth-child(3) { transition-delay: .16s; } .stagger.in > *:nth-child(4) { transition-delay: .24s; }
.stagger.in > *:nth-child(5) { transition-delay: .32s; } .stagger.in > *:nth-child(6) { transition-delay: .4s; } .stagger.in > *:nth-child(7) { transition-delay: .48s; } .stagger.in > *:nth-child(8) { transition-delay: .56s; }
.split .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split .word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.split.in .word > span { transform: none; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.intro-loader { position: fixed; inset: 0; z-index: 2000; background: var(--navy); display: grid; place-content: center; animation: loaderOut .7s var(--ease) 1.2s forwards; }
.intro-loader img { width: 120px; height: 120px; border-radius: 50%; background: #fff; padding: 6px; animation: loaderLogo 1.2s var(--ease-out); }
@keyframes loaderLogo { from { transform: scale(.7); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.cursor-dot { position: fixed; z-index: 2001; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); pointer-events: none; transform: translate(-50%, -50%); mix-blend-mode: difference; transition: width .3s, height .3s, opacity .3s; opacity: 0; }
.cursor-dot.on { opacity: 1; } .cursor-dot.hover { width: 44px; height: 44px; background: #fff; }
@media (hover: none), (max-width: 1024px) { .cursor-dot { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > *, .split .word > span, .hero-inner > * { opacity: 1 !important; transform: none !important; }
  .reveal-img { clip-path: none !important; }
  .intro-loader { display: none !important; }
  .hero-media img { transform: none !important; }
}


/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 960px; color: #fff; overflow: hidden; background: var(--navy-900); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s; display: flex; align-items: flex-end; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; transform: scale(1.08); transition: transform 9s linear; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(5,28,54,.55) 0%, rgba(5,28,54,.15) 35%, rgba(5,28,54,.55) 65%, rgba(3,18,42,.96) 100%),
  linear-gradient(90deg, rgba(5,28,54,.55) 0%, rgba(5,28,54,.1) 60%); }
.hero-pattern { position: absolute; inset: 0; z-index: 1; opacity: .1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fff' stroke-width='.8'%3E%3Cpath d='M60 0l17.6 42.4L120 60 77.6 77.6 60 120 42.4 77.6 0 60l42.4-17.6z'/%3E%3C/g%3E%3C/svg%3E"); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); }
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 8.5rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .95rem .4rem .5rem; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); font-size: .78rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 1.25rem; border: 1px solid rgba(255,255,255,.18); max-width: 100%; }
.hero-kicker .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-300); box-shadow: 0 0 0 4px rgba(233,123,33,.3); animation: pulse 2.4s infinite; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.02; max-width: 13ch; margin: 0 0 .9rem; text-shadow: 0 8px 40px rgba(0,0,0,.35); }
.hero-title em { font-style: italic; color: var(--orange-300); }
.hero-text { color: rgba(255,255,255,.82); max-width: 50ch; font-size: clamp(.98rem, 1.2vw, 1.12rem); margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero-slide .hero-inner > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.hero-slide.is-active .hero-inner > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-inner > :nth-child(1) { transition-delay: .25s; } .hero-slide.is-active .hero-inner > :nth-child(2) { transition-delay: .4s; }
.hero-slide.is-active .hero-inner > :nth-child(3) { transition-delay: .55s; } .hero-slide.is-active .hero-inner > :nth-child(4) { transition-delay: .7s; }
.hero-controls { position: absolute; left: 50%; transform: translateX(-50%); bottom: 5.6rem; z-index: 3; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-dots { display: flex; gap: .5rem; }
.hero-dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; cursor: pointer; position: relative; }
.hero-dots button span { position: absolute; inset: 0; background: var(--orange-300); transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active span { animation: heroProgress var(--hero-dur, 7s) linear forwards; }
.hero.is-paused .hero-dots button.is-active span { animation-play-state: paused; }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(8px); cursor: pointer; transition: background .3s, transform .3s; }
.hero-arrows button:hover { background: var(--orange); border-color: var(--orange); transform: scale(1.05); }
.hero-strip { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero-strip div { display: flex; flex-direction: column; }
.hero-strip strong { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: #fff; line-height: 1.1; }
.hero-strip span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: .15rem; }
@media (max-width: 900px) {
  .hero { height: auto; min-height: 88svh; max-height: none; }
  .hero-slide { position: absolute; }
  .hero-slides { position: relative; min-height: 88svh; }
  .hero-inner { padding-top: calc(var(--header-h) + 1.25rem); padding-bottom: 6.25rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 88svh; }
  .hero-kicker { font-size: .7rem; padding: .35rem .8rem .35rem .45rem; margin-bottom: .9rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.9rem); max-width: 12ch; }
  .hero-text { font-size: .95rem; max-width: 34ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-ctas { margin-top: 1.1rem; gap: .5rem; }
  .hero-ctas .btn { padding: .8rem 1.2rem; font-size: .9rem; }
  .hero-controls { bottom: 4.4rem; }
  .hero-arrows { display: none; }
  .hero-dots button { width: 26px; height: 3px; }
  .hero-strip { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: .7rem 1.25rem .8rem; border-top: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, transparent, rgba(3,18,42,.6)); }
  .hero-strip strong { font-size: .95rem; }
  .hero-strip span { font-size: .55rem; letter-spacing: .08em; }
  .hero-strip div:nth-child(4) { display: none; }
  .hero-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) { .hero-title { font-size: 1.9rem; } }

/* ============================================================
   REAL SCHOOL LIFE — editorial grid
   ============================================================ */
.life-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.life-head .section-head { margin-bottom: 0; }
.life-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.life-tags span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--sand); font-size: .8rem; font-weight: 700; color: var(--navy); }
.life-tags i { color: var(--orange); }
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 1rem; margin-top: 1rem; }
.life-item { position: relative; display: block; overflow: hidden; border-radius: var(--r-md); background: var(--sand); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s; }
.life-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.life-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.life-item:hover img { transform: scale(1.05); }
.life-feature { grid-column: span 2; grid-row: span 2; }
.life-tall { grid-row: span 2; }
.life-wide { grid-column: span 2; }
.life-cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; background: linear-gradient(180deg, transparent, rgba(5,28,54,.88)); color: #fff; display: flex; flex-direction: column; gap: .1rem; }
.life-cap em { font-style: normal; font-weight: 700; font-size: .9rem; }
.life-cap small { font-size: .74rem; color: rgba(255,255,255,.75); display: none; }
.life-feature .life-cap em { font-family: var(--font-serif); font-size: 1.35rem; }
.life-feature .life-cap small { display: block; }
.life-zoom { position: absolute; top: .75rem; right: .75rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy); display: grid; place-content: center; font-size: .8rem; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; }
.life-item:hover .life-zoom, .life-item:focus-visible .life-zoom { opacity: 1; transform: none; }
.life-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 900px) {
  .life-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: .6rem; }
  .life-feature { grid-column: span 2; grid-row: span 2; }
  .life-tall { grid-row: span 2; }
  .life-wide { grid-column: span 2; grid-row: span 1; }
  .life-cap { padding: 1.6rem .75rem .6rem; } .life-cap em { font-size: .78rem; } .life-feature .life-cap em { font-size: 1.1rem; }
  .life-zoom { opacity: 1; transform: none; width: 28px; height: 28px; }
  .life-tags { margin-bottom: 1.25rem; } .life-tags span { font-size: .72rem; padding: .35rem .7rem; }
  .life-foot { flex-direction: column; align-items: stretch; text-align: center; } .life-foot .btn { justify-content: center; }
}

/* ============================================================
   FOOTER — compact
   ============================================================ */
.site-footer { position: relative; background: var(--navy-950); color: rgba(255,255,255,.8); padding: 3.25rem 0 2rem; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fff' stroke-width='.8'%3E%3Cpath d='M60 0l17.6 42.4L120 60 77.6 77.6 60 120 42.4 77.6 0 60l42.4-17.6z'/%3E%3Cpath d='M60 20l11.8 28.2L100 60 71.8 71.8 60 100 48.2 71.8 20 60l28.2-11.8z'/%3E%3C/g%3E%3C/svg%3E"); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.3fr .8fr 1.3fr; gap: 2.5rem; }
.footer-brand-row { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.footer-name { color: #fff; font-size: 1.45rem; margin: 0 0 .1rem; }
.footer-tagline { font-family: var(--font-serif); font-style: italic; color: var(--orange-300); font-size: 1.02rem; margin: 0; }
.footer-motto { font-size: .82rem; color: rgba(255,255,255,.6); margin: 1rem 0 0; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; transition: background .3s, transform .3s; }
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.site-footer h3 { color: #fff; font-family: var(--font-sans); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; margin-bottom: .9rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 1.5rem; }
.footer-links li { margin-bottom: .4rem; font-size: .9rem; }
.footer-links a:hover { color: var(--orange-300); }
.footer-campus { font-style: normal; font-size: .86rem; line-height: 1.55; display: flex; flex-direction: column; gap: .15rem; padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-campus:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-campus strong { color: #fff; }
.footer-campus span { color: rgba(255,255,255,.7); }
.footer-campus-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .25rem; }
.footer-campus i { color: var(--orange-300); width: 16px; }
.footer-dir { display: inline-flex; gap: .4rem; align-items: center; color: var(--orange-300); font-weight: 700; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: rgba(255,255,255,.55); }
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: #fff; }
.footer-credit a { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.3); transition: background .3s; }
.footer-credit a i { color: #25D366; }
.footer-credit a:hover { background: rgba(37,211,102,.28); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-campuses { grid-column: span 2; } }
@media (max-width: 768px) {
  .site-footer { padding: 2.25rem 0 calc(1rem + 74px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand-row img { width: 52px; height: 52px; }
  .footer-name { font-size: 1.2rem; } .footer-tagline { font-size: .92rem; } .footer-motto { font-size: .76rem; margin-top: .6rem; }
  .footer-links ul { columns: 2; } .footer-links li { font-size: .84rem; margin-bottom: .3rem; }
  .footer-campuses { grid-column: auto; }
  .footer-campus { font-size: .8rem; padding: .6rem 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .5rem; margin-top: 1.25rem; font-size: .74rem; }
}

/* ============================================================
   MOBILE TAB BAR
   ============================================================ */
.mobile-bar { display: none; position: fixed; inset: auto 0 0 0; z-index: 90; background: rgba(255,255,255,.94); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--sand); padding: .35rem .35rem calc(.35rem + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); gap: 0; box-shadow: 0 -8px 30px rgba(7,41,78,.08); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .22rem; padding: .45rem .15rem .3rem; font-size: .64rem; font-weight: 700; color: var(--ink-70); border-radius: 12px; position: relative; min-height: 54px; -webkit-tap-highlight-color: transparent; }
.mobile-bar a i { font-size: 1.15rem; color: var(--ink-40); transition: color .25s, transform .25s; }
.mobile-bar a.is-active { color: var(--navy); }
.mobile-bar a.is-active i { color: var(--orange); transform: translateY(-1px); }
.mobile-bar a.is-active::after { content: ''; position: absolute; top: 2px; width: 18px; height: 3px; border-radius: 3px; background: var(--orange); }
.mobile-bar .mobile-bar-cta { color: var(--navy); }
.mobile-bar .mobile-bar-cta .cta-ring { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-content: center; background: linear-gradient(145deg, var(--orange), #d96a12); color: #fff; box-shadow: 0 8px 22px rgba(233,123,33,.45), 0 0 0 5px var(--ivory); transition: transform .25s; }
.mobile-bar .mobile-bar-cta .cta-ring i { color: #fff; font-size: 1.3rem; }
.mobile-bar .mobile-bar-cta.is-active .cta-ring { transform: scale(1.06); box-shadow: 0 8px 22px rgba(233,123,33,.6), 0 0 0 5px var(--ivory), 0 0 0 8px rgba(233,123,33,.25); }
.mobile-bar .mobile-bar-cta.is-active::after { display: none; }
.mobile-bar .mobile-bar-cta span:last-child { color: var(--orange); font-weight: 800; }
@media (max-width: 768px) { .mobile-bar { display: grid; } body { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-media img, .hero-slide, .hero-slide .hero-inner > * { transition: none !important; transform: none !important; } .hero-dots button.is-active span { animation: none; transform: scaleX(1); } }

/* ---------- Photo strip & framed photo ---------- */
.mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; } .mb-2 { margin-bottom: 1.5rem; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.photo-strip-item { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-out), box-shadow .45s; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.photo-strip-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo-strip-item:hover img { transform: scale(1.05); }
.photo-strip-item span { position: absolute; inset: auto 0 0 0; padding: 1.8rem .8rem .65rem; font-size: .76rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, transparent, rgba(5,28,54,.85)); }
.photo-strip.on-dark .photo-strip-item { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .photo-strip-item span { font-size: .68rem; padding: 1.4rem .6rem .5rem; } }
.photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.photo img { width: 100%; height: auto; display: block; }
.photo-short img { aspect-ratio: 4/3; object-fit: cover; }
.photo figcaption { padding: .8rem 1rem; font-size: .8rem; color: var(--ink-70); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.photo figcaption i { color: var(--orange); }
.photo figcaption a { color: var(--navy); font-weight: 700; margin-left: auto; }
.two-col > .photo { align-self: start; }
@media (max-width: 900px) { .two-col > .photo { order: -1; } }

html.no-scroll, html.no-scroll body { overflow: hidden; height: 100%; }

/* ---------- Stacked media beside text ---------- */
.about-media { position: relative; padding: 0 1.5rem 2.25rem 0; }
.about-media-main { position: relative; z-index: 1; }
.about-media-small { position: absolute; right: 0; bottom: 0; width: 42%; z-index: 2; border: 6px solid var(--ivory); border-radius: var(--r-md); box-shadow: var(--shadow-lg); display: block; }
.bg-cream .about-media-small { border-color: var(--cream); }
.about-media-small img { aspect-ratio: 1; object-fit: cover; }
.about-media-small figcaption { display: none; }
.about-media-main figcaption { padding-right: 46%; }
@media (max-width: 900px) { .about-media { padding: 0 1rem 1.75rem 0; margin-bottom: .5rem; } .about-media-main figcaption { padding-right: 1rem; } .two-col > .about-media { order: -1; } }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-whatsapp i { font-size: 1.2em; }

/* ---- About-media height cap (portrait sources) ---- */
.about-media-main img { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 900px) { .about-media-main img { aspect-ratio: 4 / 3; max-height: 380px; } }
.two-col:has(.about-media) { align-items: center; }

/* ---- Overflow hardening ---- */
.two-col > * { min-width: 0; }
.contact-card-body dl.hours { display: flex; grid-template-columns: none; margin-top: .4rem; }
.contact-card-body dl.hours dt { color: var(--ink-70); }
.hours dd { white-space: normal; }
.btn-row { flex-wrap: wrap; }
.contact-card-body dd { overflow-wrap: anywhere; }
