/* Glory School: public site styles. Brand palette lives in :root so it can be changed in one place. */
:root {
  /* Defaults = logo colours. The Super Admin can change them in Admin > Appearance; the site prints the
     chosen values in a <style id="theme-vars"> block after this file, which overrides these. */
  --brand-navy: #121A2C;
  --brand-navy-deep: #0C121F;
  --brand-gold: #E5B84B;
  --brand-warm-gold: #CBA243;
  --brand-white: #FFFFFF;
  --brand-light-gray: #F3F4F6;
  --brand-text: #121A2C;
  --brand-muted: #6D7280;
  --brand-line: #DCDEE2;
  --on-navy: #E7E8EA;
  --navy-shadow: rgba(18,26,44,.16);
  --navy-tint: #EBECEE;
  --radius: 8px;
  --ease: cubic-bezier(.22,.8,.24,1);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Ethiopic", "Nyala", Arial, sans-serif;
  --font-head: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif Ethiopic", "Nyala", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--brand-text); background: var(--brand-white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-navy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--brand-navy); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3, .h3 { font-size: 1.25rem; }
.h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
.center { text-align: center; }
.muted { color: var(--brand-muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.2rem; max-width: 42rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: .5rem; top: -4rem; background: var(--brand-gold); color: var(--brand-navy); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { top: .5rem; }
.icon { vertical-align: -3px; flex: none; }

/* Top bar and header */
.topbar { background: var(--brand-navy); color: var(--brand-white); font-size: .9rem; }
.topbar a { color: var(--brand-white); }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.site-header { background: var(--brand-white); border-bottom: 3px solid var(--brand-gold); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.brand img { height: 56px; width: auto; }
.brand-text { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--brand-navy); }
.brand { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav li a { display: block; padding: .5rem .65rem; text-decoration: none; font-weight: 600; font-size: .98rem; border-bottom: 3px solid transparent; }
.site-nav li a:hover { border-bottom-color: var(--brand-warm-gold); }
.site-nav li a.active { border-bottom-color: var(--brand-gold); }
.nav-toggle { display: none; background: none; border: 2px solid var(--brand-navy); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--brand-navy); position: relative; margin: auto; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 6px; left: 0; }

/* Buttons */
.btn { display: inline-block; padding: .75rem 1.35rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; text-align: center; }
.btn-gold { background: var(--brand-gold); color: var(--brand-navy); border-color: var(--brand-gold); }
.btn-gold:hover { background: var(--brand-warm-gold); border-color: var(--brand-warm-gold); color: var(--brand-navy); }
.btn-navy { background: var(--brand-navy); color: var(--brand-white); border-color: var(--brand-navy); }
.btn-navy:hover { background: var(--brand-navy-deep); color: var(--brand-white); }
.btn-outline { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.btn-outline:hover { background: var(--brand-navy); color: var(--brand-white); }
.btn-light { background: transparent; color: var(--brand-white); border-color: rgba(255,255,255,.7); }
.btn-light:hover { background: var(--brand-white); color: var(--brand-navy); }
.btn-sm { padding: .45rem .9rem; font-size: .95rem; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.center-row { justify-content: center; }
.link-more { font-weight: 700; }

/* Hero */
.hero { background: var(--brand-navy); color: var(--brand-white); border-bottom: 6px solid var(--brand-gold); }
.hero h1 { color: var(--brand-white); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0; }
.hero-inner.no-image { grid-template-columns: 1fr; padding: 4.5rem 0; }
.hero-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 4px solid var(--brand-gold); }
.page-banner { background: var(--brand-navy); color: var(--brand-white); padding: 2.75rem 0; border-bottom: 4px solid var(--brand-gold); }
.page-banner h1 { color: var(--brand-white); margin-bottom: .3em; }
.page-banner .lead { margin: 0; color: var(--on-navy); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-gray { background: var(--brand-light-gray); }
.section-head { margin-bottom: 1.75rem; }
.section-head p { color: var(--brand-muted); margin: 0; }
.section-head.split { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head.split h2 { margin: 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.panel { background: var(--brand-white); border: 1px solid var(--brand-line); border-top: 4px solid var(--brand-gold); border-radius: var(--radius); padding: 1.5rem; }
.section-gray .panel { background: var(--brand-white); }
.panel-navy { background: var(--brand-navy); color: var(--brand-white); border-color: var(--brand-navy); border-top-color: var(--brand-gold); }
.panel-navy h2, .panel-navy .h3 { color: var(--brand-white); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 .75rem; }
.stats div { border-left: 4px solid var(--brand-gold); padding: .25rem 0 .25rem 1rem; }
.stats dt { color: var(--brand-muted); font-size: .95rem; }
.stats dd { margin: 0; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--brand-navy); }

/* Cards */
.card { background: var(--brand-white); border: 1px solid var(--brand-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--brand-light-gray); }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body .link-more, .card-body .btn { margin-top: auto; align-self: flex-start; }
.meta { font-size: .9rem; color: var(--brand-muted); margin-bottom: .5rem; }
.tag { display: inline-block; background: var(--brand-light-gray); border: 1px solid var(--brand-line); color: var(--brand-navy); padding: .05rem .55rem; border-radius: 99px; font-size: .85rem; font-weight: 600; }
.section-gray .tag { background: var(--brand-white); }
.facts, .plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.facts li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .35rem; font-size: .98rem; }
.facts-line { font-size: .95rem; display: flex; gap: .5rem; margin-bottom: .4rem; }
.plain li { margin-bottom: .4rem; }
.badge { display: inline-block; padding: .1rem .6rem; border-radius: 99px; font-size: .85rem; font-weight: 700; }
.badge-open { background: #E3F4E8; color: #14532D; }
.badge-closed { background: #ECEFF3; color: #3B4A5C; }
.is-closed { opacity: .85; }
.feature { padding: 1.25rem; border-left: 4px solid var(--brand-gold); background: var(--brand-light-gray); border-radius: 0 var(--radius) var(--radius) 0; }
.feature-icon { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-navy); color: var(--brand-gold); align-items: center; justify-content: center; margin-bottom: .75rem; }
.feature-icon .icon { width: 20px; height: 20px; }

/* Motto and CTA */
.motto-band { background: var(--brand-gold); color: var(--brand-navy); padding: 3.5rem 0; text-align: center; }
.motto-band blockquote { margin: 0 auto; max-width: 52rem; }
.motto-band p { font-family: var(--font-head); font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.3; font-weight: 700; margin: 0; }
.cta { background: var(--brand-navy); color: var(--brand-white); }
.cta h2 { color: var(--brand-white); }
.cta .lead { margin-inline: auto; color: var(--on-navy); }
.cta .btn-row { justify-content: center; }

/* Content pages */
.prose-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2rem; }
.prose-block { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--brand-line); }
.prose-block:last-child { border-bottom: 0; }
.prose-block h2 { margin-top: 0; }
.side img { border-radius: var(--radius); margin-bottom: 1rem; width: 100%; }
.program-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; padding: 1.5rem 0; }
.program-row.reverse .program-media { order: 2; }
.program-row.no-media { grid-template-columns: 1fr; }
.program-row:not(:has(.program-media)) { grid-template-columns: 1fr; } /* separate rule: older phones that do not know :has() must still read the line above */
.program-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-img { margin: 1.5rem 0; }
.article-img img { border-radius: var(--radius); width: 100%; }
.share { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.share-list { display: flex; gap: .75rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

/* Forms */
.form .field { margin-bottom: 1.1rem; }
label { font-weight: 600; display: block; margin-bottom: .3rem; }
.req { font-weight: 400; color: var(--brand-muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=url], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; padding: .65rem .8rem; font: inherit; color: var(--brand-text); background: var(--brand-white); border: 1.5px solid #8794A5; border-radius: var(--radius);
}
textarea { resize: vertical; }
.has-error input, .has-error textarea { border-color: #B42318; }
.error { color: #B42318; font-size: .95rem; margin: .3rem 0 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: .85rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; }
.flash-success { background: #E3F4E8; border-color: #8CCB9E; color: #14532D; }
.flash-error { background: #FDECEA; border-color: #F1A9A0; color: #7A1C14; }
.flash-info { background: #EAF1FB; border-color: #A9C3E8; color: #1D3557; }
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-bar input[type=search] { flex: 1 1 14rem; width: auto; }
.filter-bar select { width: auto; flex: 0 1 12rem; }
.map { width: 100%; height: 300px; border: 0; border-radius: var(--radius); margin-top: 1rem; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pg { padding: .45rem .8rem; border: 1px solid var(--brand-line); border-radius: var(--radius); text-decoration: none; font-weight: 600; background: var(--brand-white); }
.pg.current { background: var(--brand-navy); color: var(--brand-white); border-color: var(--brand-navy); }
.pg.disabled { color: var(--brand-muted); background: transparent; border-color: transparent; }

/* Footer */
.site-footer { background: var(--brand-navy); color: var(--on-navy); padding-top: 3rem; border-top: 6px solid var(--brand-gold); }
.site-footer a { color: var(--brand-white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; }
.footer-h { color: var(--brand-gold); font-size: 1.1rem; font-family: var(--font-body); }
.footer-name { font-family: var(--font-head); font-size: 1.6rem; color: var(--brand-white); margin: 0 0 .5rem; }
.footer-logo { display: inline-block; background: var(--brand-white); padding: .5rem .8rem; border-radius: var(--radius); margin-bottom: 1rem; }
.footer-logo img { height: 48px; width: auto; }
.footer-list, .social-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .45rem; }
.social-list { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.2); margin-top: 2rem; padding: 1.1rem 0; font-size: .92rem; }

/* Responsive */
@media (max-width: 62rem) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* The menu has nine links, so it folds into the menu button earlier than the page layout does. */
@media (max-width: 68rem) {
  .nav-toggle { display: block; flex: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--brand-white); border-bottom: 3px solid var(--brand-gold); flex-direction: column; align-items: stretch; padding: 1rem; box-shadow: 0 10px 20px var(--navy-shadow); max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { padding: .8rem .5rem; border-bottom: 1px solid var(--brand-line); min-height: 44px; }
  .site-header { position: sticky; }
  /* If scripts are blocked the menu button cannot work, so the links are simply listed under the logo. */
  html.no-js .nav-toggle { display: none; }
  html.no-js .site-nav { display: flex; position: static; box-shadow: none; max-height: none; padding: 0 0 .5rem; }
  html.no-js .header-inner { flex-wrap: wrap; }
}
@media (max-width: 56rem) {
  .hero-inner, .intro-grid, .two-col, .prose-layout, .program-row { grid-template-columns: 1fr; }
  .program-row.reverse .program-media { order: 0; }
  .topbar-loc { display: none; }
}
@media (max-width: 40rem) {
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .btn-row .btn { flex: 1 1 100%; }
  body { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .site-header, .site-footer, .btn-row, .share, .curtain, .scroll-bar { display: none !important; } }

/* ===================================================================
   Motion. Everything below is an enhancement: the content is always in
   the page, and animation only runs when boot.js has added html.anim.
   =================================================================== */

/* Page-to-page transition (about one second in total): gold then navy sheets sweep over the page,
   showing the school logo and motto, then lift away on the next page. */
.curtain { display: none; }
html.anim .curtain { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; pointer-events: none; overflow: hidden; }
.curtain i { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; will-change: transform; -webkit-transform: translateY(-101%); transform: translateY(-101%); }
.curtain i:nth-child(1) { background: var(--brand-gold); }
.curtain i:nth-child(2) { background: var(--brand-navy); }
.curtain .mark { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; text-align: center; max-width: 34rem; opacity: 0; }
.curtain .mark-logo { height: 84px; width: auto; max-width: 70vw; background: var(--brand-white); padding: .55rem .9rem; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.curtain .mark b { font-family: var(--font-head); font-size: clamp(1.6rem, 6vw, 2.6rem); color: var(--brand-gold); }
.curtain .mark em { font-family: var(--font-head); font-size: clamp(.95rem, 3.4vw, 1.25rem); line-height: 1.45; color: var(--brand-white); border-top: 2px solid var(--brand-gold); padding-top: .8rem; }
@media (max-width: 40rem) { .curtain .mark-logo { height: 64px; } }
/* arriving: the sheets start covering the screen, then lift (about 0.6 s) */
html.anim:not(.leaving) .curtain i { -webkit-transform: translateY(0); transform: translateY(0); animation: sheet-up .45s var(--ease) forwards; }
html.anim:not(.leaving) .curtain i:nth-child(2) { animation-delay: .1s; }
html.anim:not(.leaving) .curtain i:nth-child(1) { animation-delay: .17s; }
html.anim:not(.leaving) .curtain .mark { animation: mark-hold .26s ease forwards; }
/* leaving: gold drops first, navy follows (about 0.4 s) */
html.anim.leaving .curtain i { animation: sheet-down .3s var(--ease) forwards; }
html.anim.leaving .curtain i:nth-child(2) { animation-delay: .07s; }
html.anim.leaving .curtain .mark { animation: mark-in .22s ease .15s forwards; }
@keyframes sheet-up { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes sheet-down { from { transform: translateY(-101%); } to { transform: translateY(0); } }
@keyframes mark-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mark-hold { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }

/* Thin gold progress line at the top while reading */
.scroll-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--brand-gold); transform: scaleX(0); transform-origin: 0 50%; z-index: 90; pointer-events: none; }

/* Header settles into a compact bar once you scroll */
.site-header { transition: box-shadow .3s ease; }
.brand img { transition: height .3s var(--ease); }
.site-header.is-stuck { box-shadow: 0 6px 18px var(--navy-shadow); }
.site-header.is-stuck .brand img { height: 44px; }

/* Menu links: gold line grows from the left */
.site-nav li a { position: relative; border-bottom-color: transparent !important; }
.site-nav li a::after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: 2px; height: 3px; background: var(--brand-gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.site-nav li a:hover::after, .site-nav li a.active::after, .site-nav li a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 68rem) { .site-nav li a::after { display: none; } .site-nav li a.active { border-bottom-color: var(--brand-gold) !important; } }

/* Hero: slow drifting light behind the headline, text rises in after the sheets lift */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -30%; left: -10%; width: 70%; height: 160%; background: radial-gradient(closest-side, rgba(229,184,75,.16), rgba(229,184,75,0)); pointer-events: none; }
html.anim .hero::before { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(35%,10%,0); } }
.hero-inner { position: relative; }
html.anim .hero-text > *, html.anim .page-banner .container > * { animation: rise .8s var(--ease) both; animation-delay: calc(.32s + var(--i, 0) * .08s); }
html.anim .hero-media img { animation: pop .8s var(--ease) .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) rotate(-1deg); } to { opacity: 1; transform: none; } }

/* Scroll reveal. main.js adds .reveal only to blocks that are below the fold. */
html.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.anim .reveal.is-in { opacity: 1; transform: none; }

/* Hover lift only on devices that really hover (not phones) */
@media (hover: hover) {
  .card { transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease; }
  .card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px var(--navy-shadow); border-color: var(--brand-gold); }
  .card-img { overflow: hidden; }
  .card-img img { transition: transform .8s var(--ease); }
  .card:hover .card-img img { transform: scale(1.06); }
  .feature { transition: transform .3s var(--ease), background .3s ease; }
  .feature:hover { transform: translateX(6px); background: var(--navy-tint); }
}
.btn { position: relative; overflow: hidden; transition: background .25s ease, color .25s ease, transform .2s ease, border-color .25s ease; }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: rgba(255,255,255,.35); transform: skewX(-20deg); transition: left .6s ease; } .btn:hover::after { left: 130%; } }
.motto-band p { transition: letter-spacing 1.2s ease; }
.stats dd { font-variant-numeric: tabular-nums; }

/* Mobile menu opens with a soft slide */
@media (max-width: 68rem) {
  html.anim .site-nav.open { animation: menu-in .3s var(--ease); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
}

/* ===== Home page video ===== */
.news-video { position: relative; isolation: isolate; overflow: hidden; color: var(--brand-white); padding: 3.5rem 0; border-bottom: 6px solid var(--brand-gold);
  background-color: var(--brand-navy);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.14), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 92% 100%, rgba(229,184,75,.22), rgba(229,184,75,0) 46%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.11) 1px, rgba(255,255,255,0) 1.6px),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, rgba(255,255,255,0) 1px, rgba(255,255,255,0) 16px),
    linear-gradient(165deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%);
  background-size: auto, auto, 22px 22px, auto, auto; }
@supports (background: color-mix(in srgb, red, blue)) {
  .news-video { background-image:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand-white) 14%, transparent), transparent 42%),
    radial-gradient(circle at 92% 100%, color-mix(in srgb, var(--brand-gold) 24%, transparent), transparent 46%),
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand-gold) 22%, transparent) 1px, transparent 1.6px),
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--brand-gold) 9%, transparent) 0, color-mix(in srgb, var(--brand-gold) 9%, transparent) 1px, transparent 1px, transparent 16px),
    linear-gradient(165deg, var(--brand-navy) 0%, var(--brand-navy-deep) 100%); }
}
/* fine film grain over everything for a printed, tactile feel */
.news-video::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; opacity: .09; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* a large gold ring and a soft glow frame the player */
.news-video::after { content: ""; position: absolute; z-index: -1; width: 30rem; height: 30rem; right: -9rem; top: -11rem; border-radius: 50%; border: 2px solid var(--brand-gold); opacity: .22; box-shadow: inset 0 0 0 28px rgba(255,255,255,.03), 0 0 0 28px rgba(255,255,255,.03); pointer-events: none; }
html.anim .news-video::after { animation: ring-spin 40s linear infinite; }
@keyframes ring-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.news-video .container { position: relative; }
.news-video h2 { color: var(--brand-white); }
.news-video .section-head p { color: var(--on-navy); }
.video-frame { position: relative; width: 100%; max-width: 62rem; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 4px solid var(--brand-gold); box-shadow: 0 20px 40px rgba(0,0,0,.4), 0 0 0 10px rgba(255,255,255,.06), 0 0 60px rgba(229,184,75,.28); }
.video-frame iframe, .video-fallback { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-fallback { display: flex; align-items: center; justify-content: center; text-align: center; background-color: var(--brand-navy-deep); background-size: cover; background-position: center; color: var(--brand-white); text-decoration: none; }
.video-fallback span { background: var(--brand-gold); color: var(--brand-navy); padding: .85rem 1.4rem; border-radius: 99px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.video-note { text-align: center; margin: 1rem 0 0; font-size: .95rem; color: var(--on-navy); }
.video-note a { color: var(--brand-gold); }

/* ===== Gallery ===== */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.album-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-navy); color: var(--brand-white); text-decoration: none; }
.album-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s ease; }
.album-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, var(--brand-navy-deep), rgba(0,0,0,0) 62%); }
.album-card .album-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem; z-index: 1; border-left: 5px solid var(--brand-gold); margin: 0 0 1.1rem; }
.album-card h2, .album-card h3 { color: var(--brand-white); margin: 0 0 .15em; font-size: 1.3rem; }
.album-card p { margin: 0; font-size: .92rem; color: var(--on-navy); }
@media (hover: hover) { .album-card:hover img { transform: scale(1.08); } }
.album-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.album-chips a { display: inline-block; padding: .4rem .9rem; border: 1.5px solid var(--brand-navy); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .25s ease, color .25s ease; }
.album-chips a:hover, .album-chips a.active { background: var(--brand-navy); color: var(--brand-white); }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.photo-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1 / 1; background: var(--brand-light-gray); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
@media (hover: hover) { .photo-grid a:hover img { transform: scale(1.1); } }
.photo-grid figcaption { display: none; }
@media (max-width: 62rem) { .album-grid { grid-template-columns: repeat(2, 1fr); } .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 40rem) { .album-grid { grid-template-columns: 1fr; } .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }

/* Lightbox */
.lb { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; background: rgba(8,12,22,.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 3rem 1rem 4.5rem; touch-action: pan-y; }
.lb.open { display: flex; animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 4.5rem; text-align: center; color: #fff; font-size: .98rem; min-height: 4rem; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb button:hover, .lb button:focus-visible { background: var(--brand-gold); color: var(--brand-navy); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .5rem; top: 50%; margin-top: -24px; }
.lb-next { right: .5rem; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; top: 1.1rem; left: 1rem; color: #fff; font-size: .95rem; }
.hero-text > :nth-child(2), .page-banner .container > :nth-child(2) { --i: 1; }
.hero-text > :nth-child(3) { --i: 2; }
.hero-text > :nth-child(4) { --i: 3; }

/* Footer social buttons */
.social-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.social-list a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--brand-gold); color: var(--brand-gold); transition: background .25s ease, color .25s ease, transform .25s var(--ease); }
.social-list a:hover, .social-list a:focus-visible { background: var(--brand-gold); color: var(--brand-navy); transform: translateY(-3px); }
.social-list .icon { display: block; }
