/* ==========================================================================
   Daughters of Mary — Nirmala Province, Venniyoor
   Design system: navy/royal blue + white (from the DM logo), wheat-gold accent
   ========================================================================== */

:root {
  --navy-950: #041231;
  --navy-900: #071d47;
  --navy: #0b2c6b;
  --blue: #1a4fa3;
  --sky: #4f8fdb;
  --mist: #eef3fa;
  --mist-2: #f6f9fd;
  --gold: #c39a45;
  --gold-600: #a8822f;
  --gold-soft: #efe2bf;
  --ink: #152038;
  --text: #3c475e;
  --muted: #6b7690;
  --line: #dde4ef;
  --white: #ffffff;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(7, 29, 71, .06);
  --shadow: 0 14px 40px -12px rgba(7, 29, 71, .18);
  --shadow-lg: 0 30px 70px -20px rgba(7, 29, 71, .30);
  --container: 1240px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
::selection { background: var(--gold-soft); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--mist { background: var(--mist-2); }
.section--navy { background: var(--navy-900); color: #c9d4ea; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.text-center { text-align: center; }
.lead { font-size: 1.14rem; color: var(--text); }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- Headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.text-center .eyebrow::after { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head.text-center { text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #aebbd6; }
.section--navy .eyebrow { color: var(--gold); }

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 6px 0 22px; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans); font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -10px rgba(195, 154, 69, .8); }
.btn--gold:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy-900); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #b9c6e0; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar a { color: #d7e0f2; }
.topbar a:hover { color: var(--gold); }
.topbar__info { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 14px; height: 14px; color: var(--gold); }
.topbar__motto { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; color: var(--gold-soft); letter-spacing: .02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(7, 29, 71, .22); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; transition: min-height .3s; }
.site-header.is-scrolled .container { min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy-900); flex-shrink: 0; }
.brand img { width: 62px; height: 62px; object-fit: contain; transition: width .3s, height .3s; }
.site-header.is-scrolled .brand img { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 700; color: var(--navy-900); letter-spacing: .01em; }
.brand__sub { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); margin-top: 4px; }
.brand:hover { color: var(--navy-900); }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  font-size: .86rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink);
  border-radius: 8px;
  position: relative;
}
.nav__link svg { width: 12px; height: 12px; transition: transform .3s; opacity: .6; }
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__item:hover > .nav__link, .nav__link.active { color: var(--blue); }
.nav__item:hover > .nav__link::after, .nav__link.active::after { transform: scaleX(1); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  list-style: none; margin: 0; padding: 12px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .28s var(--ease);
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav__item:hover > .dropdown, .nav__item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.dropdown a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); transition: background .25s; flex-shrink: 0; }
.dropdown a:hover { background: var(--mist); color: var(--blue); }
.dropdown a:hover::before { background: var(--gold); }
.nav__cta { margin-left: 14px; padding: 12px 22px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; position: relative; transition: all .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: calc(100vh - 42px - var(--header-h)); min-height: 560px; max-height: 900px; overflow: hidden; background: var(--navy-950); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.12); }
.slide.is-active .slide__bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 49, .88) 0%, rgba(4, 18, 49, .6) 42%, rgba(4, 18, 49, .12) 75%),
    linear-gradient(0deg, rgba(4, 18, 49, .55) 0%, transparent 35%);
}
.slide__content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.slide__inner { max-width: 660px; color: #fff; padding-bottom: 40px; }
.slide__inner > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.is-active .slide__inner > * { opacity: 1; transform: none; }
.slide.is-active .slide__inner > *:nth-child(2) { transition-delay: .15s; }
.slide.is-active .slide__inner > *:nth-child(3) { transition-delay: .3s; }
.slide.is-active .slide__inner > *:nth-child(4) { transition-delay: .45s; }
.slide__eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.slide__eyebrow::before { content: ""; width: 40px; height: 1.5px; background: var(--gold); }
.slide h1, .slide h2 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.8rem); font-weight: 600; margin-bottom: 20px; }
.slide h1 em, .slide h2 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.slide p { font-size: clamp(1rem, 1.3vw, 1.15rem); color: #d4ddef; max-width: 540px; margin-bottom: 34px; }
.slide__btns { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 38px; }
.hero__controls .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero__dots { display: flex; gap: 10px; align-items: center; }
.hero__dot { width: 44px; height: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; border-radius: 3px; position: relative; overflow: hidden; }
.hero__dot span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span { animation: dotfill var(--slide-ms, 6500ms) linear forwards; }
.hero.is-paused .hero__dot.is-active span { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero__counter { font-family: var(--font-serif); color: #fff; font-size: 1.1rem; letter-spacing: .1em; margin-left: 12px; }
.hero__counter b { color: var(--gold); font-size: 1.6rem; font-weight: 600; }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; display: grid; place-items: center; transition: all .3s; backdrop-filter: blur(6px); }
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero__arrow svg { width: 20px; height: 20px; }

/* ---------- Pillars (Mission / Vision / Charism strip) ---------- */
.pillars { position: relative; z-index: 6; margin-top: -1px; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-50%); margin-bottom: -60px; }
.pillar { padding: 36px 34px; display: flex; gap: 20px; align-items: flex-start; border-right: 1px solid var(--line); transition: background .3s; }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--mist-2); }
.pillar__icon { flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; transition: all .3s; }
.pillar:hover .pillar__icon { background: var(--navy); color: var(--gold-soft); }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.5rem; margin-bottom: 6px; }
.pillar p { font-size: .94rem; margin: 0; color: var(--muted); line-height: 1.65; }

/* ---------- About / welcome ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.collage { position: relative; padding: 0 0 70px 0; }
.collage__main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.3; }
.collage__main img { width: 100%; height: 100%; object-fit: cover; }
.collage__sub { position: absolute; right: -24px; bottom: 0; width: 48%; border-radius: var(--radius); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 1; }
.collage__sub img { width: 100%; height: 100%; object-fit: cover; }
.collage__badge {
  position: absolute; left: -22px; bottom: 30px;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
}
.collage__badge b { font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: var(--gold); font-weight: 600; }
.collage__badge span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; line-height: 1.4; }
.signature { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.signature img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--gold-soft); }
.signature strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy-900); }
.signature span { font-size: .85rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.5; }
.checklist li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a4fa3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.checklist--single { grid-template-columns: 1fr; }

/* ---------- Stats ---------- */
.stats { background: var(--navy-900); position: relative; overflow: hidden; color: #fff; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/photos/provincial-house/20191208-173424.jpg") center / cover;
  opacity: .12; mix-blend-mode: luminosity;
}
.stats::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(79, 143, 219, .35), transparent 50%), radial-gradient(circle at 90% 100%, rgba(195, 154, 69, .22), transparent 45%); }
.stats .container { position: relative; z-index: 1; }
.stats__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.stat { text-align: center; padding: 18px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(255, 255, 255, .14); }
.stat__icon { width: 50px; height: 50px; margin: 0 auto 14px; color: var(--gold); }
.stat__num { font-family: var(--font-serif); font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 600; line-height: 1; color: #fff; }
.stat__label { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #aebbd6; margin-top: 10px; }

/* ---------- Founders ---------- */
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 1000px; margin: 0 auto; }
.founder { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 44% 1fr; transition: transform .4s var(--ease), box-shadow .4s; }
.founder:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.founder__img { background: var(--mist); position: relative; overflow: hidden; }
.founder__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.founder:hover .founder__img img { transform: scale(1.05); }
.founder__body { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.founder__role { font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 8px; }
.founder h3 { font-size: 1.65rem; margin-bottom: 6px; }
.founder__dates { font-family: var(--font-serif); font-style: italic; color: var(--muted); margin-bottom: 14px; font-size: 1.05rem; }
.founder p { font-size: .93rem; color: var(--text); margin-bottom: 18px; }

/* ---------- Ministries (logo cards) ---------- */
.ministries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ministry {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 38px 32px 32px; border: 1px solid var(--line);
  transition: all .4s var(--ease); overflow: hidden; display: flex; flex-direction: column;
}
.ministry::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ministry:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ministry:hover::before { transform: scaleX(1); }
.ministry__logo { width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px -8px rgba(7, 29, 71, .25); display: grid; place-items: center; overflow: hidden; margin-bottom: 24px; border: 3px solid var(--mist); }
.ministry__logo img { width: 86%; height: 86%; object-fit: contain; }
.ministry h3 { font-size: 1.6rem; margin-bottom: 10px; }
.ministry p { font-size: .95rem; color: var(--muted); flex: 1; }
.ministry__num { position: absolute; right: 26px; top: 22px; font-family: var(--font-serif); font-size: 3.4rem; font-weight: 700; color: var(--mist); line-height: 1; }

/* ---------- Departments (poster cards) ---------- */
.depts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.dept { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; cursor: zoom-in; position: relative; }
.dept:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.dept img { width: 100%; aspect-ratio: 636 / 900; object-fit: cover; }

/* ---------- Inspirations ---------- */
.inspirations { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px 28px; }
.inspiration { text-align: center; }
.inspiration__img { width: 190px; height: 190px; margin: 0 auto 20px; border-radius: 50%; padding: 7px; background: conic-gradient(from 180deg, var(--gold), var(--gold-soft), var(--gold), var(--gold-soft), var(--gold)); position: relative; transition: transform .5s var(--ease); }
.inspiration:hover .inspiration__img { transform: translateY(-6px); }
.inspiration__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 5px solid #fff; }
.inspiration h4 { font-size: 1.35rem; margin-bottom: 2px; }
.inspiration span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.section--navy .inspiration__img img { border-color: var(--navy-900); }
.section--navy .inspiration span { color: var(--gold); }

/* ---------- Team ---------- */
.leader-feature { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.leader-feature__img { position: relative; }
.leader-feature__img img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.leader-feature__img::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: var(--radius-lg); }
.leader-feature blockquote { margin: 0 0 24px; font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.4; color: var(--navy-900); font-style: italic; position: relative; padding-left: 28px; border-left: 3px solid var(--gold); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: all .35s var(--ease); }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__img { aspect-ratio: 4 / 4.6; overflow: hidden; background: var(--mist); }
.member__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.member:hover .member__img img { transform: scale(1.05); }
.member__body { padding: 16px 12px 18px; }
.member h4 { font-size: 1.18rem; margin-bottom: 4px; }
.member span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); line-height: 1.5; }
.member--lead { border-color: var(--gold-soft); }
.member--lead .member__body { background: var(--navy); }
.member--lead h4 { color: #fff; }
.member--lead span { color: var(--gold-soft); }

/* Former administrations timeline */
.terms { display: grid; gap: 22px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.term summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 22px 28px; }
.term summary::-webkit-details-marker { display: none; }
.term__years { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: var(--navy); min-width: 150px; }
.term__lead { display: flex; align-items: center; gap: 14px; }
.term__lead img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold-soft); }
.term__lead strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; color: var(--navy-900); line-height: 1.2; }
.term__lead small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.term__toggle { width: 40px; height: 40px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--navy); transition: transform .3s, background .3s; }
.term__toggle svg { width: 16px; height: 16px; }
.term[open] .term__toggle { transform: rotate(180deg); background: var(--gold); color: #fff; }
.term[open] summary { border-bottom: 1px solid var(--line); background: var(--mist-2); }
.term__body { padding: 28px; }
.term__body .team { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.term__body .member h4 { font-size: 1.05rem; }
.term__body .member span { font-size: .68rem; }

/* ---------- Timeline (formation) ---------- */
.timeline { position: relative; max-width: 1040px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold-soft), var(--gold), var(--gold-soft)); transform: translateX(-50%); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 56px; align-items: center; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item__dot { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; border: 5px solid #fff; box-shadow: 0 0 0 2px var(--gold); z-index: 1; }
.tl-card { background: #fff; border-radius: var(--radius-lg); padding: 32px 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tl-card h3 { font-size: 1.8rem; margin-bottom: 4px; }
.tl-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--mist); color: var(--blue); padding: 6px 12px; border-radius: 999px; }
.tag--gold { background: #faf3e2; color: var(--gold-600); }
.tl-card p { font-size: .95rem; margin-bottom: .8em; }
.tl-card p:last-child { margin-bottom: 0; }
.tl-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 11; }
.tl-img img { width: 100%; height: 100%; object-fit: cover; }
.tl-item:nth-child(even) .tl-card { order: 2; }
.tl-item:nth-child(even) .tl-img { order: 1; }

/* Formation steps (home teaser) */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 7%; right: 7%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); }
.step { text-align: center; position: relative; }
.step__num { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); color: var(--navy); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; position: relative; transition: all .3s; }
.step:hover .step__num { background: var(--navy); color: var(--gold-soft); border-color: var(--navy); }
.step h4 { font-size: 1.15rem; margin-bottom: 2px; }
.step span { font-size: .78rem; color: var(--muted); }

/* ---------- Mission map / foreign ---------- */
.globe-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.place { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 3.6; box-shadow: var(--shadow); display: block; color: #fff; }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 18, 49, .92) 0%, rgba(4, 18, 49, .25) 50%, transparent 75%); }
.place:hover img { transform: scale(1.07); }
.place__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; z-index: 1; }
.place__flag { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.place h3 { color: #fff; font-size: 1.7rem; margin-bottom: 6px; }
.place p { color: #cdd7ea; font-size: .9rem; margin: 0; line-height: 1.55; }

/* ---------- Generic cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: all .4s var(--ease); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__img { aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--mist); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__badge { position: absolute; left: 16px; top: 16px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.card__badge--gold { background: var(--gold); color: #fff; }
.card__body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.card__body p { font-size: .93rem; color: var(--muted); }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: 10px; }
.card__meta svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature { display: flex; gap: 16px; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: all .3s; }
.feature:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); }
.feature__icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--blue); display: grid; place-items: center; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h4 { font-size: 1.15rem; margin-bottom: 4px; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.6; }

.quote-band { background: linear-gradient(120deg, var(--navy-900), var(--blue)); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px); text-align: center; position: relative; overflow: hidden; }
.quote-band::before { content: "\201C"; position: absolute; top: -40px; left: 30px; font-family: var(--font-serif); font-size: 16rem; color: rgba(255, 255, 255, .07); line-height: 1; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.3rem); font-style: italic; line-height: 1.35; position: relative; }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 20px; border-radius: 999px; font-family: var(--font-sans); font-size: .82rem; font-weight: 700; letter-spacing: .05em; cursor: pointer; transition: all .25s; }
.filter:hover { border-color: var(--gold); color: var(--gold-600); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.masonry { columns: 4 260px; column-gap: 18px; }
.masonry a { display: block; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; break-inside: avoid; position: relative; background: var(--mist); }
.masonry a img { width: 100%; transition: transform .7s var(--ease); }
.masonry a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 18, 49, .7), transparent 60%); opacity: 0; transition: opacity .35s; }
.masonry a:hover img { transform: scale(1.05); }
.masonry a:hover::after { opacity: 1; }
.masonry a span { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: .85rem; z-index: 1; opacity: 0; transform: translateY(8px); transition: all .35s; }
.masonry a:hover span { opacity: 1; transform: none; }
.masonry a.is-hidden { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery-grid a { border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.07); }
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid a:nth-child(4) { grid-row: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(3, 12, 33, .95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .3s; padding: 60px 70px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cdd7ea; font-size: .9rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.lightbox button:hover { background: var(--gold); border-color: var(--gold); }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); color: #fff; overflow: hidden; background: var(--navy-900); }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .38; transform: scale(1.05); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 18, 49, .95) 0%, rgba(4, 18, 49, .55) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin-bottom: 14px; }
.page-hero p { color: #c9d4ea; max-width: 640px; font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .5; }

/* ---------- Prose ---------- */
.prose { max-width: 820px; }
.prose p { font-size: 1.04rem; }
.prose h2 { margin-top: 1.2em; }
.prose h3 { margin-top: 1.4em; }
.dropcap::first-letter { float: left; font-family: var(--font-serif); font-size: 5.2rem; line-height: .82; padding: 8px 12px 0 0; color: var(--gold); font-weight: 600; }
.aside-card { background: var(--mist-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: sticky; top: 110px; }
.aside-card h4 { font-size: 1.4rem; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.facts li:last-child { border-bottom: 0; }
.facts b { color: var(--navy-900); text-align: right; }
.layout-aside { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.chip svg { width: 14px; height: 14px; color: var(--gold); }
.chip--abroad { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip--abroad svg { color: var(--gold-soft); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 820px; }
.table th { background: var(--navy); color: #fff; text-align: left; padding: 16px 18px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; position: sticky; top: 0; cursor: pointer; white-space: nowrap; user-select: none; }
.table th[data-sort]::after { content: " \2195"; opacity: .45; }
.table th.asc::after { content: " \2191"; opacity: 1; color: var(--gold-soft); }
.table th.desc::after { content: " \2193"; opacity: 1; color: var(--gold-soft); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:nth-child(even) { background: var(--mist-2); }
.table tbody tr:hover { background: #fdf8ec; }
.table td strong { color: var(--navy-900); font-weight: 700; }
.table td small { display: block; color: var(--muted); font-size: .8rem; }
.table-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.search { position: relative; flex: 1; max-width: 420px; min-width: 240px; }
.search input, .select { width: 100%; padding: 14px 18px 14px 46px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-size: .95rem; background: #fff; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.select { padding-left: 18px; width: auto; min-width: 200px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2c6b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 16px no-repeat; padding-right: 44px; }
.search input:focus, .select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195, 154, 69, .15); }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.count-pill { font-size: .85rem; color: var(--muted); }
.count-pill b { color: var(--navy); }

/* Memorial (Heavenly Blossoms) */
.memorials { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; }
.memorial { text-align: center; }
.memorial__frame { position: relative; border-radius: 12px; overflow: hidden; background: #fff; padding: 10px; box-shadow: var(--shadow); border: 1px solid var(--gold-soft); transition: transform .4s var(--ease), box-shadow .4s; cursor: zoom-in; }
.memorial__frame img { width: 100%; aspect-ratio: 3 / 4.2; object-fit: cover; border-radius: 6px; }
.memorial:hover .memorial__frame { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.memorial h4 { margin: 18px 0 2px; font-size: 1.3rem; }
.memorial span { font-size: .82rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.memorial span svg { width: 14px; height: 14px; color: var(--gold); }
.candle { width: 44px; height: 44px; margin: 0 auto; color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 18px; }
.contact-card__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 1.2rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .95rem; }
.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); 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-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .96rem; color: var(--ink); background: var(--mist-2); transition: all .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(195, 154, 69, .14); }
.field textarea { min-height: 150px; resize: vertical; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; filter: saturate(.85); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 80px); color: #fff; background: var(--navy-900); display: grid; grid-template-columns: 1fr auto; gap: clamp(30px, 6vw, 70px); align-items: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("../img/formation/photo-2024-04-06-15-33-29.jpg") center 30% / cover; opacity: .25; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-900) 30%, rgba(7, 29, 71, .5)); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #c9d4ea; margin: 0; max-width: 620px; }
.cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fadc9; font-size: .93rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; background: url("../img/brand/logo.png") center / contain no-repeat; opacity: .04; }
.footer-top { padding: 80px 0 50px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; position: relative; }
.site-footer h5 { font-family: var(--font-sans); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; position: relative; padding-bottom: 14px; }
.site-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c6e0; }
.site-footer a:hover { color: var(--gold); }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.footer-brand img { width: 64px; height: 64px; }
.footer-brand strong { font-family: var(--font-serif); color: #fff; font-size: 1.5rem; display: block; line-height: 1.1; }
.footer-brand span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); display: grid; place-items: center; color: #fff; transition: all .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 24px 0; font-size: .84rem; position: relative; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.footer-credit { color: #8090b0; font-size: .8rem; }
.footer-credit a { color: #b9c6e0; font-weight: 600; }
.footer-credit a:hover { color: var(--gold); }
@media (max-width: 720px) { .footer-bottom .container { justify-content: center; text-align: center; } }
.footer-motto { font-family: var(--font-serif); font-style: italic; color: var(--gold-soft); font-size: 1.05rem; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(195, 154, 69, .8); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .35s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .nav__link { padding: 12px 10px; font-size: .82rem; }
  .nav__cta { display: none; }
  .depts { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .stat:nth-child(4)::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  .topbar__motto { display: none; }
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter on .site-header creates a containing block for fixed-position
     descendants (Safari/Chrome), which trapped the fixed .nav panel inside the
     header's own box instead of the viewport. Drop it here so the slide-in menu
     is positioned against the real viewport. */
  .site-header { backdrop-filter: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 200;
    background: #fff; flex-direction: column; align-items: stretch; padding: 90px 22px 30px; overflow-y: auto;
    transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: -20px 0 60px rgba(7, 29, 71, .2);
  }
  body.nav-open .nav { transform: none; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(4, 18, 49, .55); opacity: 0; visibility: hidden; transition: all .35s; }
  /* .nav lives inside .site-header, which is its own stacking context (position + z-index).
     Its z-index:200 only ranks *within* that context, so .nav-backdrop (z-index:150, a sibling
     of .site-header itself) was painted — and hit-tested — above the whole header, swallowing
     every tap on the open menu. Promote the header's own z-index above the backdrop while open. */
  body.nav-open .site-header { z-index: 250; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .nav-toggle { position: relative; z-index: 210; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: 16px 6px; font-size: 1rem; justify-content: space-between; }
  .nav__link::after { display: none; }
  .nav__item:hover > .nav__link svg { transform: none; }
  .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 8px; min-width: 0; display: none; background: transparent; }
  .nav__item.is-open > .dropdown { display: block; }
  .nav__cta { display: inline-flex; margin: 24px 0 0; justify-content: center; }
  .pillars__grid { grid-template-columns: 1fr; transform: none; margin: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .pillars { padding: 0 0 20px; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .split, .layout-aside, .contact-grid, .leader-feature { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .leader-feature__img { max-width: 360px; }
  .aside-card { position: static; }
  .founders { grid-template-columns: 1fr; }
  .ministries { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .steps::before { display: none; }
  .timeline::before { left: 29px; }
  .tl-item { grid-template-columns: 1fr; gap: 18px; padding-left: 80px; }
  .tl-item__dot { left: 29px; top: 32px; }
  .tl-item:nth-child(even) .tl-card, .tl-item:nth-child(even) .tl-img { order: 0; }
  .cta { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .topbar { display: none; }
  .brand img { width: 50px; height: 50px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: .6rem; letter-spacing: .14em; }
  .hero { height: calc(100svh - var(--header-h)); min-height: 540px; }
  .slide::after { background: linear-gradient(0deg, rgba(4, 18, 49, .95) 0%, rgba(4, 18, 49, .55) 55%, rgba(4, 18, 49, .3) 100%); }
  .slide__content { align-items: flex-end; }
  .slide__inner { padding-bottom: 110px; }
  .slide p { margin-bottom: 26px; }
  .hero__arrow { width: 44px; height: 44px; }
  .hero__dot { width: 26px; }
  .hero__counter { display: none; }
  .btn { padding: 13px 22px; font-size: .8rem; }
  .collage { padding-bottom: 50px; }
  .collage__sub { right: 0; width: 44%; border-width: 5px; }
  .collage__badge { left: 0; bottom: 0; padding: 14px 16px; }
  .collage__badge b { font-size: 2.2rem; }
  .checklist { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat::before { display: none; }
  .founder { grid-template-columns: 1fr; }
  .founder__img { aspect-ratio: 4 / 3.4; }
  .ministries { grid-template-columns: 1fr; }
  .depts { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .inspirations { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .inspiration__img { width: 140px; height: 140px; }
  .inspiration h4 { font-size: 1.1rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .term summary { grid-template-columns: 1fr auto; gap: 12px; padding: 18px; }
  .term__years { grid-column: 1 / -1; font-size: 1.4rem; min-width: 0; }
  .term__body { padding: 18px; }
  .term__body .team { grid-template-columns: repeat(2, 1fr); }
  .tl-item { padding-left: 0; }
  .timeline::before, .tl-item__dot { display: none; }
  .tl-card { padding: 24px 22px; }
  .masonry { columns: 2 140px; column-gap: 10px; }
  .masonry a { margin-bottom: 10px; }
  .gallery-grid { grid-auto-rows: 140px; gap: 10px; }
  .form__row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; }
  .memorials { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .memorial h4 { font-size: 1.05rem; }
  .lightbox { padding: 60px 10px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .lightbox__caption { bottom: 74px; }
  .table-tools .select { width: 100%; }
  .leader-feature__img::before { inset: 14px -10px -10px 14px; }
}

/* Home: six-member provincial team row */
.team--6 { grid-template-columns: repeat(6, 1fr); gap: 20px; }
.team--6 .member h4 { font-size: 1.08rem; }
.team--6 .member span { font-size: .68rem; }
@media (max-width: 1080px) { .team--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team--6 { grid-template-columns: repeat(2, 1fr); } }
.leader-feature--rev { grid-template-columns: 1fr 340px; }
@media (max-width: 1080px) { .leader-feature--rev { grid-template-columns: 1fr; } }
a.memorial__frame, a.card__img { display: block; }
.term__body .team { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 1200px) { .term__body .team { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .term__body .team { grid-template-columns: repeat(2, 1fr); } }
.tag { white-space: nowrap; }
.tag svg { width: 13px; height: 13px; flex-shrink: 0; }

/* CTA band: normally sits flush under the section above (no extra top gap),
   but when it directly follows a dark navy section, restore full spacing
   so the two dark blocks don't collide (e.g. founders.html Guiding Lights → CTA). */
.cta-section { padding-top: 0; }
.section--navy + .cta-section { padding-top: clamp(72px, 9vw, 120px); }

/* ---------- Hero: Mother Mary slide ---------- */
.slide--mary .slide__bg { filter: saturate(1.1); }
.slide--mary::after {
  background:
    radial-gradient(ellipse 38% 60% at 74% 50%, rgba(239, 226, 191, .28), transparent 70%),
    linear-gradient(90deg, rgba(4, 18, 49, .94) 0%, rgba(4, 18, 49, .82) 45%, rgba(7, 29, 71, .6) 100%);
}
.slide__split { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; height: 100%; }
.slide__ref { display: block; margin-top: 10px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); font-style: normal; }
.slide--mary .slide__inner p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.5; color: #e3e9f5; }
.slide__portrait { display: flex; justify-content: center; align-items: center; opacity: 0; transform: translateY(30px) scale(.96); transition: opacity 1.2s var(--ease) .25s, transform 1.2s var(--ease) .25s; }
.slide.is-active .slide__portrait { opacity: 1; transform: none; }
.slide__portrait-frame {
  position: relative; height: min(66vh, 560px); aspect-ratio: 750 / 872;
  padding: 9px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gold), var(--gold-soft), var(--gold-600), var(--gold-soft), var(--gold));
  box-shadow: 0 0 0 1px rgba(239, 226, 191, .25), 0 0 90px 10px rgba(239, 226, 191, .22), 0 40px 80px -20px rgba(0, 0, 0, .6);
  animation: maryfloat 7s ease-in-out infinite;
}
.slide__portrait-frame::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(239, 226, 191, .35); }
.slide__portrait-frame::after { content: ""; position: absolute; inset: -34px; border-radius: 50%; border: 1px dashed rgba(239, 226, 191, .18); }
.slide__portrait-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--navy-900); }
@keyframes maryfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 720px) {
  .slide__split { grid-template-columns: 1fr; gap: 18px; align-content: end; padding-bottom: 100px; }
  .slide--mary .slide__inner { padding-bottom: 0; }
  .slide__portrait { order: -1; }
  .slide__portrait-frame { height: min(30vh, 250px); padding: 6px; }
  .slide__portrait-frame::before { inset: -10px; }
  .slide__portrait-frame::after { inset: -20px; }
  .slide--mary::after { background: radial-gradient(ellipse 60% 35% at 50% 28%, rgba(239, 226, 191, .25), transparent 70%), linear-gradient(0deg, rgba(4, 18, 49, .96) 0%, rgba(4, 18, 49, .8) 60%, rgba(4, 18, 49, .7) 100%); }
  .slide--mary .slide__inner p { font-size: 1.05rem; margin-bottom: 20px; }
}
@media (min-width: 721px) {
  .slide__split { padding-bottom: 110px; padding-top: 20px; }
  .slide__portrait-frame { height: min(56vh, 500px); }
}

/* ---------- Hero manual controls: side arrows + clickable dots ---------- */
.hero__arrow--prev, .hero__arrow--next { position: absolute; z-index: 6; top: 50%; transform: translateY(-50%); }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }
.hero__arrow { width: 56px; height: 56px; }
.hero__arrow:hover { transform: translateY(-50%) scale(1.06); }
.hero__dot { height: 24px; background: none; }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(255, 255, 255, .35); transition: background .25s; }
.hero__dot:hover::before { background: rgba(255, 255, 255, .7); }
.hero__dot span { inset: auto 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
@media (min-width: 1081px) {
  .hero__controls { bottom: 140px; }
  .hero__arrow--prev, .hero__arrow--next { top: calc(50% - 50px); }
}
@media (max-width: 720px) {
  .hero__arrow--prev, .hero__arrow--next { top: auto; bottom: 26px; transform: none; width: 44px; height: 44px; }
  .hero__arrow:hover { transform: none; }
  .hero__arrow--prev { left: auto; right: 70px; }
  .hero__arrow--next { right: 16px; }
  .hero__controls { bottom: 36px; }
}

/* ---------- Hero: centred dots, content kept clear of controls ---------- */
.hero__controls .container { justify-content: center; position: relative; }
.hero__counter { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); margin: 0; }
.slide h1, .slide h2 { font-size: clamp(2.3rem, min(5.2vw, 7.2vh), 4.8rem); }
@media (min-width: 1081px) {
  .hero { min-height: 640px; }
  .slide__content { padding-bottom: 180px; }
  .slide__inner { padding-bottom: 0; }
  .slide__split { padding-bottom: 0; padding-top: 0; }
  .slide__portrait-frame { height: min(48vh, 460px); }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .slide__content { padding-bottom: 90px; }
  .slide__inner { padding-bottom: 0; }
}
@media (max-width: 720px) {
  .hero__arrow--prev { right: auto; left: 16px; }
  .hero__controls { bottom: 36px; }
}

/* ---------- Communities (convent cards with details) ---------- */
.convent-intro { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.convent__place { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 6px; }
.convent .card__body h3 { margin-bottom: 10px; }
.convent .card__body p { color: var(--text); font-size: .93rem; margin-bottom: 14px; }
.convent .card__meta { align-items: flex-start; border-top: 1px dashed var(--line); padding-top: 14px; line-height: 1.55; font-size: .8rem; }
.convent .card__meta svg { margin-top: 2px; }

/* Foreign mission: USA photo mosaic */
.usa-photos { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; gap: 12px; }
.usa-photos a { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.usa-photos a:first-child { grid-column: span 2; grid-row: span 2; }
.usa-photos img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .7s var(--ease); }
.usa-photos a:hover img { transform: scale(1.06); }
@media (max-width: 720px) { .usa-photos { grid-auto-rows: 120px; gap: 8px; } }
