/* =========================================================
   Los Angeles International Public School, Begowal
   Main stylesheet
   ========================================================= */

:root {
  --maroon: #7d151a;
  --maroon-deep: #4a0c10;
  --red: #c1222b;
  --gold: #d9a63a;
  --gold-soft: #f1d48a;
  --yellow: #f6d83b;
  --cream: #fbf6ec;
  --cream-2: #f4ead6;
  --ink: #2a1916;
  --muted: #6d5a53;
  --line: #e8dcc6;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(74, 12, 16, .35);
  --shadow-sm: 0 6px 18px -8px rgba(74, 12, 16, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--maroon-deep); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: 100px 0; position: relative; }
.section--white { background: var(--white); }
.section--tint { background: var(--cream-2); }
.section--dark { background: var(--maroon-deep); color: #f5e9e4; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section--dark .eyebrow { color: var(--gold-soft); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); }
.section-title em { font-style: italic; color: var(--red); font-weight: 500; }
.section--dark .section-title em { color: var(--yellow); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.section--dark .lead { color: #e8d4cc; }
.text-center .lead { margin-inline: auto; }
.section-head { margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--yellow); color: var(--maroon-deep); box-shadow: 0 10px 24px -10px rgba(246, 216, 59, .8); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(246, 216, 59, .9); }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(193, 34, 43, .7); }
.btn--red:hover { transform: translateY(-3px); background: var(--maroon); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--maroon-deep); }
.btn--outline { border-color: var(--maroon); color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: var(--white); }

/* ---------- Page loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--maroon-deep);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader img { width: 200px; animation: pulse 1.4s var(--ease) infinite; }
.loader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes pulse { 0%, 100% { transform: scale(.92); opacity: .85; } 50% { transform: scale(1); opacity: 1; } }

/* ---------- Scroll progress ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1001; background: linear-gradient(90deg, var(--yellow), var(--red)); }

/* ---------- Top bar ---------- */
.topbar { background: var(--maroon-deep); color: #f1dcd4; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; flex-wrap: wrap; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--yellow); }
.topbar svg { width: 14px; height: 14px; color: var(--yellow); }
.topbar__motto { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); letter-spacing: .03em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s, border-color .35s, transform .45s var(--ease);
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(74, 12, 16, .45); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 96px; transition: height .35s var(--ease); }
.header.is-scrolled .container { height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: auto; height: 80px; transition: transform .6s var(--ease), height .35s; }
.header.is-scrolled .brand img { width: auto; height: 64px; }
.brand:hover img { transform: scale(1.05); }
.brand__text strong { white-space: nowrap; display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--maroon); line-height: 1.15; font-weight: 700; }
.brand__text small { display: block; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.nav ul { display: flex; align-items: center; gap: 0; }
.nav a {
  display: block; padding: 10px 10px; font-weight: 600; font-size: .88rem; color: var(--ink); white-space: nowrap;
  position: relative; border-radius: 8px; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--red); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 10px; padding: 11px 22px; color: var(--white); }
.nav .btn::after { display: none; }
.nav .btn:hover, .nav .btn.active, .nav .btn.active:hover { color: var(--white); }
.nav .btn.active { background: var(--maroon); }

.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: var(--cream-2); border-radius: 12px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--maroon); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: calc(100vh - 124px); min-height: calc(100svh - 124px); display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero__slides { position: absolute; inset: 0; background: var(--maroon-deep); }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.hero__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(58, 8, 12, .94) 0%, rgba(110, 18, 24, .8) 42%, rgba(110, 18, 24, .2) 100%); pointer-events: none; }
.hero__controls { position: absolute; right: max(20px, calc((100% - var(--container)) / 2)); bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 14px; }
.hero__caption { color: var(--white); font-size: .88rem; font-weight: 600; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 8px 16px; border-radius: 999px; border-left: 3px solid var(--yellow); transition: opacity .4s; white-space: nowrap; }
.hero__caption.is-changing { opacity: 0; }
.hero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .2); color: var(--white); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow:hover { background: var(--yellow); color: var(--maroon-deep); border-color: var(--yellow); }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.hero__dots button.is-active { width: 30px; background: var(--yellow); }
.hero__timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, .15); }
.hero__timer span { display: block; height: 100%; width: 0; background: var(--yellow); }
.hero__timer span.run { animation: timer var(--slide-time, 6s) linear forwards; }
@keyframes timer { to { width: 100%; } }
.hero .container { position: relative; z-index: 2; padding-bottom: 110px !important; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; padding: 80px 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid rgba(246, 216, 59, .45); border-radius: 999px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--gold-soft); background: rgba(0, 0, 0, .15); }
.hero__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(246, 216, 59, .7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(246, 216, 59, .7); } 80%, 100% { box-shadow: 0 0 0 12px rgba(246, 216, 59, 0); } }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 6.2vw, 5rem); margin: 22px 0 18px; font-weight: 600; line-height: 1.04; }
.hero h1 em { color: var(--yellow); font-weight: 400; display: block; }
.hero p { font-size: 1.15rem; color: #f3e1da; max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__line:nth-child(2) > span { animation-delay: .15s; }
@keyframes rise { to { transform: translateY(0); } }
.hero__fade { opacity: 0; transform: translateY(20px); animation: fadeUp 1s var(--ease) forwards; }
.hero__fade.d1 { animation-delay: .35s; } .hero__fade.d2 { animation-delay: .55s; } .hero__fade.d3 { animation-delay: .75s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__badge { justify-self: center; position: relative; width: 420px; max-width: 100%; opacity: 0; animation: fadeUp 1.2s .6s var(--ease) forwards; }
.hero__badge::before { content: ""; position: absolute; inset: 6% 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 248, 220, .55), rgba(255, 248, 220, 0) 70%); filter: blur(10px); }
.hero__badge img { position: relative; width: 100%; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .55)); animation: float 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--yellow); border-radius: 2px; animation: scrollCue 1.8s infinite; }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--yellow); color: var(--maroon-deep); display: flex; align-items: stretch; overflow: hidden; font-weight: 600; font-size: .95rem; }
.ticker__label { flex: none; background: var(--red); color: var(--white); padding: 14px 22px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.ticker__label::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticker__track { display: flex; gap: 60px; white-space: nowrap; padding: 14px 0 14px 40px; animation: marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker__track span::before { content: "✦"; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; padding: 120px 0 100px; color: var(--white); overflow: hidden; text-align: center; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); animation: pagezoom 24s ease-in-out infinite alternate; }
@keyframes pagezoom { from { transform: scale(1.05); } to { transform: scale(1.18) translate(-2%, -1%); } }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(74, 12, 16, .88), rgba(125, 21, 26, .82)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 14px; }
.page-hero h1 em { color: var(--yellow); font-weight: 400; }
.page-hero p { color: #f1dcd4; max-width: 640px; margin: 0 auto 18px; font-size: 1.08rem; }
.breadcrumb { display: inline-flex; gap: 10px; align-items: center; font-size: .85rem; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { color: var(--yellow); }
.page-hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; color: var(--cream); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--wide-left { grid-template-columns: 1.1fr .9fr; }

/* ---------- Image frame ---------- */
.frame { position: relative; }
.frame img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.frame::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.frame__tag { position: absolute; left: -22px; bottom: 34px; background: var(--white); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-width: 280px; animation: float 6s ease-in-out infinite; }
.frame__tag img { width: 52px; height: 52px; border-radius: 50%; box-shadow: none; flex: none; }
.frame__tag strong { display: block; font-family: var(--font-display); color: var(--maroon); font-size: 1.05rem; line-height: 1.2; }
.frame__tag small { color: var(--muted); font-size: .8rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, #fff3c4, var(--yellow)); color: var(--maroon);
  transition: transform .6s var(--ease), background .4s, color .4s;
}
.icon svg { width: 30px; height: 30px; }
.card:hover .icon { transform: scale(1.08); background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--yellow); }
.card__num { position: absolute; right: 24px; top: 18px; font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--cream-2); line-height: 1; transition: color .4s; }
.card:hover .card__num { color: #fbe9a8; }

/* Pillars (mission/vision/motto) */
.pillar { background: var(--white); border-radius: var(--radius); padding: 42px 34px; text-align: center; border: 1px solid var(--line); position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pillar .icon { margin: 0 auto 22px; width: 76px; height: 76px; border-radius: 50%; }
.pillar .icon svg { width: 34px; height: 34px; }
.pillar:hover .icon { background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--yellow); transform: scale(1.06); }
.pillar h3 { font-size: 1.5rem; }
.pillar p { color: var(--muted); font-size: .97rem; }
.pillar blockquote { margin: 18px 0 0; padding-top: 18px; border-top: 1px dashed var(--line); font-family: var(--font-display); font-style: italic; color: var(--red); font-size: 1.1rem; }

/* ---------- Stats ---------- */
.stats { position: relative; margin-top: -70px; z-index: 5; }
.stats__inner { background: var(--white); border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.stat { padding: 36px 26px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--red); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .88rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }

/* ---------- Quote band ---------- */
.quote-band { background: radial-gradient(ellipse at top, var(--maroon) 0%, var(--maroon-deep) 70%); color: var(--white); text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.quote-band::before, .quote-band::after { content: "“"; position: absolute; font-family: var(--font-display); font-size: 22rem; color: rgba(246, 216, 59, .07); line-height: 1; }
.quote-band::before { top: -40px; left: 4%; }
.quote-band::after { content: "”"; bottom: -170px; right: 4%; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.3; font-weight: 400; font-style: italic; }
.quote-band blockquote b { color: var(--yellow); font-weight: 500; }
.quote-band cite { display: block; margin-top: 24px; font-style: normal; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--gold-soft); font-weight: 700; }

/* ---------- Wings ---------- */
.wing { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.wing:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.wing__head { padding: 30px 30px 26px; background: linear-gradient(135deg, var(--maroon), var(--red)); color: var(--white); position: relative; overflow: hidden; }
.wing__head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(246, 216, 59, .18); transition: transform .8s var(--ease); }
.wing:hover .wing__head::after { transform: scale(1.3); }
.wing__head small { letter-spacing: .2em; text-transform: uppercase; font-weight: 700; font-size: .75rem; color: var(--gold-soft); }
.wing__head h3 { color: var(--white); font-size: 1.7rem; margin: 6px 0 0; }
.wing__body { padding: 26px 30px 32px; flex: 1; display: flex; flex-direction: column; }
.wing__body p { color: var(--muted); font-size: .96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--cream-2); color: var(--maroon); font-weight: 700; font-size: .82rem; border: 1px solid var(--line); }

/* ---------- Facility tiles ---------- */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; display: block; color: var(--white); box-shadow: var(--shadow-sm); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(58, 8, 12, .92)); transition: opacity .5s; }
.tile:hover img { transform: scale(1.1); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 1; transform: translateY(30px); transition: transform .6s var(--ease); }
.tile:hover .tile__body { transform: none; }
.tile__body h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 6px; }
.tile__body p { color: #f1dcd4; font-size: .93rem; margin: 0; opacity: 0; transition: opacity .5s .1s; }
.tile:hover .tile__body p { opacity: 1; }
.tile__label { position: absolute; top: 20px; left: 20px; z-index: 1; background: var(--yellow); color: var(--maroon-deep); padding: 5px 14px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Facility rows (facilities page) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.feature-row + .feature-row { margin-top: 110px; }
.feature-row:nth-child(even) .feature-row__media { order: 2; }
.feature-row__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-height: 520px; object-fit: cover; }
.feature-row__media.tall img { max-height: 600px; object-position: center 30%; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d151a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks--two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }

/* ---------- Message (leadership) ---------- */
.message { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.message + .message { margin-top: 110px; }
.message--rev { grid-template-columns: 1fr 380px; }
.message--rev .message__photo { order: 2; }
.message__photo { position: sticky; top: 110px; }
.message__photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.message__photo figcaption { margin-top: 20px; text-align: center; }
.message__photo figcaption strong { display: block; font-family: var(--font-display); color: var(--maroon); font-size: 1.35rem; }
.message__photo figcaption span { color: var(--muted); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.message__text p { color: #4a3a35; font-size: 1.04rem; }
.message__text p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 4.2rem; line-height: .85; padding: 8px 12px 0 0; color: var(--red); font-weight: 600; }
.signoff { margin-top: 28px; padding: 22px 26px; border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--maroon); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.avatar { width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--maroon); background: linear-gradient(135deg, #fff6cf, var(--yellow)); box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold-soft); transition: transform .6s var(--ease); }
.member:hover .avatar { transform: scale(1.08); }
.member--lead .avatar { background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--yellow); }
.member h4 { font-size: 1.08rem; margin-bottom: 4px; }
.member span { display: inline-block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--red); background: #fdeeee; padding: 4px 10px; border-radius: 999px; }

/* ---------- Timeline (history) ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 30px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--red)); }
.timeline__item { position: relative; padding-left: 90px; margin-bottom: 48px; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__dot { position: absolute; left: 8px; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--red); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--maroon); }
.timeline__item h3 { font-size: 1.6rem; font-style: italic; }
.timeline__item p { color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th { background: var(--maroon); color: var(--white); text-align: left; padding: 16px 20px; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 20px; border-bottom: 1px solid var(--line); }
tbody tr { transition: background .25s; }
tbody tr:hover { background: #fff8e1; }
tbody tr:last-child td { border-bottom: 0; }
td.sr { color: var(--muted); font-weight: 700; width: 60px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; letter-spacing: .04em; }
.pill--fa { background: #fff3c4; color: var(--maroon); }
.pill--sa { background: var(--red); color: var(--white); }
tr.is-past td { color: #b4a59f; }
tr.is-past .pill { opacity: .55; }
tr.is-next { background: #fff3c4 !important; }
tr.is-next td:nth-child(2)::after { content: "Up next"; margin-left: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--red); color: var(--white); padding: 3px 9px; border-radius: 999px; vertical-align: middle; }

.term { background: var(--white); border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.term__months { position: absolute; right: 24px; top: 26px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.term h3 { font-size: 1.6rem; }
.term ul li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line); font-weight: 600; }

.num-list { counter-reset: n; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.num-list li { counter-increment: n; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 18px 66px; position: relative; font-weight: 600; transition: transform .4s var(--ease), border-color .3s; }
.num-list li:hover { transform: translateX(6px); border-color: var(--gold); }
.num-list li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: 1.3rem; }

.notes { background: var(--white); border-radius: var(--radius); padding: 30px 34px; border: 1px dashed var(--gold); }
.notes h3 { font-size: 1.35rem; }
.notes ol { margin: 0; padding-left: 20px; color: var(--muted); }
.notes li { margin-bottom: 8px; }

.next-holiday { display: flex; align-items: center; gap: 22px; background: linear-gradient(135deg, var(--maroon), var(--red)); color: var(--white); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 30px; box-shadow: var(--shadow); }
.next-holiday__date { flex: none; width: 82px; height: 82px; border-radius: 16px; background: var(--yellow); color: var(--maroon-deep); display: grid; place-items: center; text-align: center; line-height: 1.05; }
.next-holiday__date b { font-family: var(--font-display); font-size: 2rem; display: block; }
.next-holiday__date small { font-weight: 800; letter-spacing: .12em; font-size: .72rem; text-transform: uppercase; }
.next-holiday small.k { color: var(--gold-soft); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; font-size: .75rem; }
.next-holiday h3 { color: var(--white); margin: 4px 0 0; font-size: 1.5rem; }
.next-holiday p { margin: 4px 0 0; color: #f1dcd4; font-size: .92rem; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--white); border-radius: 999px; border: 1px solid var(--line); margin-bottom: 40px; flex-wrap: wrap; justify-content: center; }
.tabs button { border: 0; background: transparent; padding: 11px 24px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; transition: background .35s var(--ease), color .3s; }
.tabs button.active { background: var(--maroon); color: var(--white); }
.tabs button:not(.active):hover { color: var(--red); }
.tabs button .count { display: inline-block; margin-left: 6px; font-size: .75rem; opacity: .7; }

/* ---------- Gallery (even grid) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery__item { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.gallery__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gallery__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.gallery__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .9s var(--ease); }
.gallery__item:hover .gallery__img img { transform: scale(1.06); }
.gallery__img::after { content: ""; position: absolute; inset: 0; background: rgba(74, 12, 16, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 40px no-repeat; opacity: 0; transition: opacity .35s; }
.gallery__item:hover .gallery__img::after { opacity: 1; }
.gallery__item figcaption { padding: 14px 16px 16px; font-weight: 700; font-size: .93rem; line-height: 1.4; color: var(--maroon-deep); }
.gallery__item figcaption small { display: block; color: var(--red); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.gallery__item.is-hidden { display: none; }
.gallery__item.pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip a { border-radius: 16px; overflow: hidden; aspect-ratio: 1; position: relative; }
.strip a:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip a:hover img { transform: scale(1.08); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(30, 6, 8, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; padding: 40px 80px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; text-align: center; transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.open figure { transform: none; }
.lightbox img { max-height: 80vh; max-width: 100%; width: auto; border-radius: 12px; box-shadow: 0 30px 80px -20px #000; margin: 0 auto; }
.lightbox figcaption { color: #f1dcd4; margin-top: 16px; font-weight: 600; }
.lightbox figcaption span { color: var(--yellow); margin-left: 10px; font-weight: 400; font-size: .9rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: var(--white); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.lightbox button:hover { background: var(--yellow); color: var(--maroon-deep); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; margin-top: -26px; }
.lb-next { right: 18px; top: 50%; margin-top: -26px; }

/* ---------- Philosophy / Founder ---------- */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.founder__img { position: relative; }
.founder__img img { border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 354 / 390; object-fit: cover; border: 8px solid var(--white); }
.founder__img::after { content: "1882 – 1950"; position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); background: var(--maroon); color: var(--yellow); padding: 8px 20px; border-radius: 999px; font-weight: 800; letter-spacing: .14em; font-size: .8rem; white-space: nowrap; }
.big-quote { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; color: var(--red); line-height: 1.4; margin: 26px 0 0; padding-left: 22px; border-left: 3px solid var(--gold); }

/* Aims list */
.aims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aims li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(246, 216, 59, .22); border-radius: 14px; padding: 22px 22px 22px 64px; position: relative; font-weight: 600; transition: background .4s, transform .4s var(--ease); }
.aims li:hover { background: rgba(246, 216, 59, .12); transform: translateY(-4px); }
.aims li svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; color: var(--yellow); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--red), var(--maroon)); border-radius: 28px; padding: 64px; color: var(--white); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(246, 216, 59, .15); animation: spin 30s linear infinite; }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.cta p { color: #f6e1da; margin: 0; max-width: 600px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 36px 30px; text-align: center; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.contact-card .icon { margin: 0 auto 18px; border-radius: 50%; }
.contact-card:hover .icon { background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--yellow); }
.contact-card h3 { font-size: 1.3rem; }
.contact-card a { display: block; color: var(--muted); font-weight: 600; word-break: break-word; }
.contact-card a:hover { color: var(--red); }
.form { background: var(--white); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 7px; color: var(--maroon-deep); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: var(--cream); transition: border-color .3s, box-shadow .3s, background .3s; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(193, 34, 43, .12); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); height: 100%; min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: #2a0709; color: #d9c2bb; padding-top: 90px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--yellow), var(--red)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--yellow); }
.footer__brand img { width: 190px; margin-bottom: 18px; }
.footer__brand p { font-size: .94rem; }
.footer__brand .motto { font-family: var(--font-display); font-style: italic; color: var(--yellow); font-size: 1.15rem; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { transition: color .3s, padding .3s var(--ease); display: inline-block; }
.footer ul a:hover { color: var(--yellow); padding-left: 6px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer ul.footer__contact a, .footer ul.footer__contact a:hover { padding-left: 0; display: inline; }
.footer ul.footer__contact a:hover { color: var(--yellow); }
.footer__contact svg { width: 18px; height: 18px; color: var(--yellow); flex: none; margin-top: 4px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .86rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.powered a { color: var(--yellow); font-weight: 700; transition: color .3s; }
.powered a:hover { color: var(--white); }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--white); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .45s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; transition: stroke-dashoffset .1s; }
.to-top svg.arrow { width: 20px; height: 20px; color: var(--maroon); }
.to-top:hover { background: var(--yellow); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.9); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav a { padding: 10px 8px; font-size: .85rem; }
  .nav a::after { left: 8px; right: 8px; }
  .brand img { height: 70px; }
  .nav .btn { margin-left: 6px; padding: 10px 16px; }
  .brand__text strong { font-size: 1rem; }
}
@media (max-width: 1100px) {
  .nav a { padding: 10px 6px; font-size: .82rem; }
  .brand__text strong { font-size: .92rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--white); padding: 100px 26px 30px; transform: translateX(100%); transition: transform .55s var(--ease); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .3); overflow-y: auto; z-index: -1; }
  .menu-open .nav { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 14px 12px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .btn { margin: 18px 0 0; justify-content: center; border-radius: 999px; border-bottom: 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(30, 6, 8, .5); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; z-index: 999; }
  .menu-open .nav-backdrop { opacity: 1; visibility: visible; }
  .header .container { position: relative; z-index: 1001; }

  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero__badge { display: none; }
  .split, .split--wide-left, .feature-row, .founder, .message, .message--rev { grid-template-columns: 1fr; gap: 44px; }
  .feature-row:nth-child(even) .feature-row__media, .message--rev .message__photo { order: 0; }
  .message__photo { position: static; max-width: 380px; }
  .founder__img { max-width: 340px; }
  .grid-3, .grid-4, .aims, .contact-cards { grid-template-columns: 1fr 1fr; }
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .cta { grid-template-columns: 1fr; padding: 48px 36px; }
  .frame::before { inset: 16px -12px -16px 16px; }
  .frame__tag { left: 12px; }
}
@media (max-width: 640px) {
  .reveal.from-left, .reveal.from-right { transform: translateY(40px); }
  .reveal.from-left.in, .reveal.from-right.in { transform: none; }
  .section { padding: 72px 0; }
  .container { width: calc(100% - 32px); }
  .topbar .topbar__motto, .topbar .hide-sm { display: none; }
  .topbar__info { gap: 16px; }
  .header .container { height: 74px; }
  .brand img { width: auto; height: 58px; }
  .brand__text strong { font-size: .95rem; }
  .brand__text small { font-size: .6rem; letter-spacing: .2em; }
  .hero__shade { background: linear-gradient(180deg, rgba(58, 8, 12, .78) 0%, rgba(90, 14, 20, .88) 60%, rgba(58, 8, 12, .95) 100%); }
  .hero__caption { display: none; }
  .hero__controls { left: 16px; right: 16px; bottom: 24px; justify-content: space-between; }
  .hero__arrow { width: 40px; height: 40px; }
  .hero__kicker { letter-spacing: .1em; font-size: .7rem; }
  .hero .container { padding: 56px 0 90px; }
  .stats { margin-top: 0; padding-bottom: 10px; }
  #welcome { padding-bottom: 48px; }
  .stat { padding: 26px 14px; }
  .grid-2, .grid-3, .grid-4, .aims, .contact-cards, .form-row, .ticks--two { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: 14px; }
  .member { padding: 22px 12px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery__item figcaption { padding: 10px 12px 12px; font-size: .82rem; }
  .gallery__item figcaption small { font-size: .62rem; }
  .tabs { border-radius: 18px; }
  .tabs button { padding: 9px 16px; font-size: .85rem; }
  .page-hero { padding: 90px 0 80px; }
  .form { padding: 28px 22px; }
  .cta { padding: 40px 26px; }
  .lightbox { padding: 20px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; margin: 0; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
  .timeline::before { left: 22px; }
  .timeline__item { padding-left: 70px; }
  .timeline__dot { left: 0; }
  .next-holiday { flex-direction: column; align-items: flex-start; }
  td, th { padding: 12px 14px; }
}


/* =========================================================
   Home page – notice board, achievements, leaders, marquee
   ========================================================= */
.updates-sec { padding-top: 90px; }
.board { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 26px; }
.board__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; display: flex; flex-direction: column; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.board__card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.board__head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.board__head h3 { margin: 0; font-size: 1.3rem; }
.board__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #fff3c4, var(--yellow)); color: var(--maroon); flex: none; }
.board__icon svg { width: 20px; height: 20px; }
.board__link { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 700; font-size: .9rem; }
.board__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.board__link:hover svg { transform: translateX(4px); }

.notice-window { height: 296px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent); }
.notice-list { animation: noticeUp 30s linear infinite; }
.notice-window:hover .notice-list { animation-play-state: paused; }
@keyframes noticeUp { to { transform: translateY(-50%); } }
.notice-list li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.notice-list p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.nd { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--cream-2); border: 1px solid var(--line); display: grid; place-content: center; text-align: center; line-height: 1.05; }
.nd b { font-family: var(--font-display); color: var(--red); font-size: 1.2rem; }
.nd small { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nd--icon { background: var(--maroon); color: var(--yellow); border-color: var(--maroon); font-size: 1.1rem; }

.upcoming li { display: none; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.upcoming li.show { display: flex; animation: pop .5s var(--ease) both; }
.upcoming li.show:last-of-type { border-bottom: 0; }
.upcoming li.is-first .ud { background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--yellow); border-color: transparent; }
.upcoming li.is-first .ud small { color: var(--gold-soft); }
.ud { flex: none; width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--line); background: #fff8dc; display: grid; place-content: center; text-align: center; line-height: 1.05; color: var(--maroon); }
.ud b { font-family: var(--font-display); font-size: 1.25rem; }
.ud small { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ut strong { display: block; font-size: .93rem; line-height: 1.35; color: var(--ink); }
.ut small { color: var(--muted); font-size: .8rem; }
.ut em { font-style: normal; color: var(--red); font-weight: 700; }
.upcoming__empty { color: var(--muted); font-size: .92rem; padding: 14px 0; }

.board__card--term { background: linear-gradient(160deg, var(--maroon-deep), var(--maroon)); border-color: transparent; color: #f3e1da; }
.board__card--term .board__head { border-color: rgba(255, 255, 255, .14); }
.board__card--term h3 { color: var(--white); }
.board__card--term .board__link { color: var(--yellow); }
.term-now__label { margin: 14px 0 4px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold-soft); }
.term-now__exam { font-family: var(--font-display); font-size: 3rem; line-height: 1.05; color: var(--yellow); margin: 0; }
.term-now__desc { font-size: .92rem; margin: 6px 0 22px; }
.term-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.term-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7px; height: 2px; background: rgba(255, 255, 255, .2); }
.term-track li { text-align: center; position: relative; }
.term-track span { display: block; width: 16px; height: 16px; margin: 0 auto 8px; border-radius: 50%; background: var(--maroon-deep); border: 2px solid rgba(255, 255, 255, .4); position: relative; }
.term-track li.done span { background: var(--gold-soft); border-color: var(--gold-soft); }
.term-track li.now span { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 0 0 rgba(246, 216, 59, .7); animation: ping 2s infinite; }
.term-track b { display: block; font-size: .66rem; letter-spacing: .02em; color: var(--white); white-space: nowrap; }
.term-track small { font-size: .62rem; color: #d7b9b2; }
.term-track li.now b { color: var(--yellow); }

/* Achievements */
.achieve__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.achieve__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: stretch; }
.achieve__poster { display: block; aspect-ratio: 1257 / 868; align-self: start; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); background: #fff; }
.achieve__poster img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.achieve__poster:hover img { transform: scale(1.04); }
.achieve__side { display: flex; flex-direction: column; gap: 22px; }
.toppers { background: rgba(255, 255, 255, .06); border: 1px solid rgba(246, 216, 59, .25); border-radius: var(--radius); padding: 26px 28px; }
.toppers h3 { font-size: 1.3rem; margin-bottom: 14px; }
.toppers ol { list-style: none; margin: 0; padding: 0; }
.toppers li { display: grid; grid-template-columns: 54px 1fr auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.toppers li:first-child { border-top: 0; }
.toppers strong { color: var(--white); font-size: 1.05rem; }
.toppers b { font-family: var(--font-display); font-size: 1.9rem; color: var(--yellow); line-height: 1; font-weight: 600; }
.toppers small { color: #d7b9b2; font-size: .8rem; }
.medal { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--maroon-deep); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.medal sup { font-size: .55em; top: -.5em; position: relative; vertical-align: baseline; }
.medal--1 { background: linear-gradient(135deg, #fff1a8, #f2c230); }
.medal--2 { background: linear-gradient(135deg, #ffffff, #c9ccd3); }
.medal--3 { background: linear-gradient(135deg, #f6d1a6, #c98a4b); }
.achieve__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; flex: 1; }
.achieve__card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; display: block; }
.achieve__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.achieve__card:hover img { transform: scale(1.07); }
.achieve__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30, 6, 8, .9)); }
.achieve__card span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: var(--white); font-weight: 700; font-size: .95rem; line-height: 1.35; }
.achieve__card span small { display: block; color: var(--yellow); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }

/* Leaders */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.leader-card { display: grid; grid-template-columns: 230px 1fr; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.leader-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.leader-card__photo { position: relative; overflow: hidden; min-height: 320px; }
.leader-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.leader-card:hover .leader-card__photo img { transform: scale(1.05); }
.leader-card__body { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.leader-card__role { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.leader-card blockquote { margin: 14px 0 18px; font-family: var(--font-display); font-style: italic; font-size: 1.18rem; line-height: 1.45; color: var(--maroon-deep); position: relative; }
.leader-card__name { font-weight: 700; color: var(--ink); margin: 0 0 14px; line-height: 1.3; }
.leader-card__name span { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.leader-card__link { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; color: var(--red); font-weight: 700; font-size: .92rem; }
.leader-card__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.leader-card__link:hover svg { transform: translateX(4px); }

/* Photo marquee */
.life { padding: 100px 0 30px; overflow: hidden; }
.marquee { display: grid; gap: 18px; }
.marquee__row { display: flex; gap: 18px; width: max-content; animation: slideLeft 70s linear infinite; }
.marquee__row--rev { animation-name: slideRight; animation-duration: 80s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes slideLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slideRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee__item { position: relative; width: 320px; height: 220px; border-radius: 16px; overflow: hidden; flex: none; background: var(--cream-2); }
.marquee__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.marquee__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: var(--white); font-weight: 700; font-size: .88rem; background: linear-gradient(transparent, rgba(30, 6, 8, .85)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.marquee__item:hover img { transform: scale(1.08); }
.marquee__item:hover span { opacity: 1; transform: none; }

/* facility tiles: always show the short description */
.tile__body { transform: none; }
.tile__body p { opacity: 1; }

@media (max-width: 1100px) {
  .board { grid-template-columns: 1fr 1fr; }
  .board__card--term { grid-column: span 2; }
  .leader-card { grid-template-columns: 180px 1fr; }
}
@media (max-width: 980px) {
  .achieve__grid, .leaders { grid-template-columns: 1fr; }
  .achieve__poster { max-width: 560px; }
}
@media (max-width: 640px) {
  .board { grid-template-columns: 1fr; }
  .board__card--term { grid-column: auto; }
  .term-now__exam { font-size: 2.4rem; }
  .term-track b { font-size: .58rem; }
  .leader-card { grid-template-columns: 1fr; }
  .leader-card__photo { min-height: 280px; }
  .achieve__pair { grid-template-columns: 1fr 1fr; gap: 12px; }
  .achieve__card { min-height: 170px; }
  .achieve__card span { font-size: .8rem; left: 12px; right: 12px; }
  .toppers { padding: 20px; }
  .toppers li { grid-template-columns: 44px 1fr auto; }
  .toppers li small { display: none; }
  .medal { width: 40px; height: 40px; font-size: .95rem; }
  .marquee__item { width: 230px; height: 160px; }
  .life { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__row, .notice-list { animation: none !important; }
  .marquee { overflow-x: auto; }
}


/* =========================================================
   Mission & Vision page
   ========================================================= */
.mv-intro { padding: 80px 0 70px; }
.mv-intro__quote { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.3; color: var(--maroon-deep); max-width: 860px; margin: 0 auto 36px; font-style: italic; }
.mv-intro__quote em { color: var(--red); }
.mv-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mv-jump a { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; color: var(--maroon); transition: background .3s, color .3s, transform .35s var(--ease), box-shadow .35s; }
.mv-jump a svg { width: 18px; height: 18px; }
.mv-jump a:hover { background: var(--maroon); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
#mission, #vision, #motto, #values { scroll-margin-top: 90px; }

.mv-media { position: relative; }
.mv-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.mv-media::before { content: ""; position: absolute; inset: -18px auto auto -18px; width: 60%; height: 60%; border-radius: var(--radius); background: repeating-linear-gradient(45deg, rgba(217, 166, 58, .25) 0 2px, transparent 2px 12px); z-index: -1; }
.mv-media--right::before { inset: auto -18px -18px auto; }
.mv-media__badge { position: absolute; right: -20px; bottom: -20px; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--yellow); box-shadow: 0 0 0 8px var(--white), var(--shadow); animation: float 6s ease-in-out infinite; }
.mv-media--right .mv-media__badge { right: auto; left: -20px; }
.mv-media__badge svg { width: 38px; height: 38px; }
.section:not(.section--white) .mv-media__badge { box-shadow: 0 0 0 8px var(--cream), var(--shadow); }

.mv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 4px; }
.mv-steps div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: transform .4s var(--ease), border-color .3s; }
.mv-steps div:hover { transform: translateY(-4px); border-color: var(--gold); }
.mv-steps b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--red); line-height: 1; margin-bottom: 6px; }
.mv-steps span { font-weight: 700; font-size: .92rem; color: var(--maroon-deep); }

.mv-motto-text { max-width: 720px; margin: 26px auto 0; color: #f1dcd4; font-size: 1.05rem; }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.value { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 22px; text-align: center; transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s; }
.value:hover { transform: translateY(-8px); box-shadow: var(--shadow); background: var(--white); }
.value .icon { margin: 0 auto 18px; border-radius: 50%; }
.value:hover .icon { background: linear-gradient(135deg, var(--red), var(--maroon)); color: var(--yellow); transform: scale(1.08); }
.value h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.6; }

.mv-commit { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 26px; padding: 50px 56px; box-shadow: var(--shadow-sm); }
.mv-commit img { width: 100%; }
.mv-commit p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 1100px) { .values { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 980px) {
  .mv-commit { grid-template-columns: 1fr; padding: 40px 32px; gap: 30px; }
  .mv-commit img { max-width: 260px; }
  .mv-media--right { order: -1; }
}
@media (max-width: 640px) {
  .values { grid-template-columns: 1fr 1fr; gap: 14px; }
  .value { padding: 24px 14px; }
  .mv-steps { grid-template-columns: 1fr; }
  .mv-media__badge { width: 66px; height: 66px; right: 10px; bottom: -16px; }
  .mv-media--right .mv-media__badge { left: 10px; }
  .mv-media__badge svg { width: 28px; height: 28px; }
  .mv-media::before { display: none; }
  .mv-jump a { padding: 10px 16px; font-size: .85rem; }
  .mv-commit { padding: 32px 22px; }
}

@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 { opacity: 1; transform: none; }
  .hero__line > span, .hero__fade, .hero__badge { transform: none; opacity: 1; }
  .hero__slide.is-active img { animation: none; }
}
