/* =========================================================
   MHS MCJROTC Color Guard - site styles
   Colors are set once here. Change a value and it changes
   everywhere on the site.
   ========================================================= */
:root {
  --blues: #0E1A31;        /* dress blue coat */
  --blues-2: #1A2D57;      /* dress blue trousers */
  --blues-3: #24407A;
  --scarlet: #B3122B;      /* Marine Corps scarlet */
  --scarlet-dk: #8E0E22;
  --gold: #E2B33F;         /* Marine Corps gold */
  --gold-lt: #F3D27A;
  --paper: #F2F3F6;
  --white: #FFFFFF;
  --ink: #141A2B;
  --muted: #4B556B;
  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.75,.2,1);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.6rem; text-transform: uppercase; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.measure { max-width: 62ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--blues); padding: 10px 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Piping: the scarlet trim with a gold edge ---------- */
.piping { height: 6px; background: linear-gradient(var(--gold) 0 2px, var(--scarlet) 2px 100%); }
.piping.thin { height: 4px; background: linear-gradient(var(--gold) 0 1px, var(--scarlet) 1px 100%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.6em;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 3px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-scarlet { background: var(--scarlet); color: var(--white); border-color: var(--scarlet); box-shadow: inset 0 -3px 0 var(--scarlet-dk); }
.btn-scarlet:hover { background: var(--scarlet-dk); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: var(--white); color: var(--blues); }
.btn-gold { background: var(--gold); color: var(--blues); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-lt); }
.btn .dot { width: .55em; height: .55em; border-radius: 50%; background: var(--gold); box-shadow: inset -2px -2px 0 rgba(0,0,0,.25); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.solid { background: rgba(14,26,49,.97); box-shadow: 0 2px 0 var(--scarlet), 0 3px 0 var(--gold); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand small { display: block; font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .02em; text-transform: none; color: var(--gold-lt); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-weight: 600; font-size: .98rem; text-decoration: none; padding: 8px 12px; border-radius: 3px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .55em 1.1em; font-size: 1.05rem; margin-left: 8px; }
.nav .btn::after { display: none; }
.menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,.6); color: var(--white); border-radius: 3px; padding: 8px 12px; font: 700 .95rem var(--body); cursor: pointer; }
@media (max-width: 820px) {
  .brand span { font-size: 1.25rem; white-space: nowrap; }
  .brand small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--blues); padding: 10px 18px 22px; box-shadow: 0 2px 0 var(--scarlet), 0 3px 0 var(--gold); transform: translateY(-120%); transition: transform .3s var(--ease); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 6px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--blues); }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform: scale(1.12); animation: kenburns 22s var(--ease) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,26,49,.6) 0%, rgba(14,26,49,0) 28%, rgba(14,26,49,.15) 55%, rgba(14,26,49,.95) 100%),
              linear-gradient(90deg, rgba(14,26,49,.75) 0%, rgba(14,26,49,.25) 45%, rgba(14,26,49,0) 70%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 9vh, 110px); padding-top: 140px; }
.hero h1 { font-size: clamp(3.2rem, 8.4vw, 7.4rem); text-transform: uppercase; letter-spacing: .005em; line-height: .9; max-width: 11ch; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; }
.hero .sub { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 40ch; margin: 22px 0 30px; color: #E8ECF5; }
.hero .rule { width: min(420px, 70%); height: 6px; margin-bottom: 26px; background: linear-gradient(var(--gold) 0 2px, var(--scarlet) 2px 100%); transform-origin: left; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; z-index: 2; right: clamp(18px, 4vw, 40px); bottom: 34px; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* load sequence */
.js .hero .rule { transform: scaleX(0); animation: draw .9s var(--ease) .3s forwards; }
.js .hero h1 .line span { transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.js .hero h1 .line:nth-child(1) span { animation-delay: .45s; }
.js .hero h1 .line:nth-child(2) span { animation-delay: .6s; }
.js .hero h1 .line:nth-child(3) span { animation-delay: .75s; }
.js .hero .sub, .js .hero .actions { opacity: 0; animation: fadeup .8s var(--ease) forwards; }
.js .hero .sub { animation-delay: 1.05s; }
.js .hero .actions { animation-delay: 1.2s; }

@keyframes kenburns { to { transform: scale(1); } }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--white); background: var(--blues); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.08); animation: kenburns 18s var(--ease) forwards; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,49,.95) 0%, rgba(14,26,49,.55) 60%, rgba(14,26,49,.3) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 170px; padding-bottom: 70px; }
.page-hero h1 { font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; line-height: .92; }
.page-hero p { max-width: 50ch; margin: 16px 0 0; font-size: 1.15rem; color: #E1E6F0; }
.js .page-hero h1, .js .page-hero p { opacity: 0; animation: fadeup .8s var(--ease) .2s forwards; }
.js .page-hero p { animation-delay: .35s; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section.paper { background: var(--paper); }
.section.blues { background: var(--blues); color: var(--white); }
.lede { font-size: 1.2rem; color: var(--muted); }

/* Who we are */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split h2 { margin-bottom: 22px; }
.framed { position: relative; }
.framed img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.framed::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--scarlet); box-shadow: inset 0 0 0 1px var(--gold); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .framed { max-width: 460px; margin-right: 14px; } .framed::before { inset: 12px -12px -12px 12px; } }

/* ---------- Values: the big moment ---------- */
.values { position: relative; overflow: hidden; text-align: center; color: var(--white);
  background: radial-gradient(ellipse at 50% 30%, var(--blues-3) 0%, var(--blues-2) 35%, var(--blues) 75%); padding: clamp(70px, 10vw, 120px) 0 clamp(60px, 8vw, 100px); }
.values::before { content: ""; position: absolute; inset: 0; opacity: .07;
  background: repeating-linear-gradient(135deg, var(--gold) 0 1px, transparent 1px 22px); }
.crest-wrap { position: relative; width: clamp(180px, 26vw, 270px); margin: 0 auto 26px; }
.crest-wrap img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 0 1px var(--gold-lt)) drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
.crest-glow { position: absolute; z-index: 1; left: 50%; top: 52%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(226,179,63,.5) 0%, rgba(226,179,63,.14) 40%, transparent 68%); }
.crest-ring { position: absolute; z-index: 1; left: 50%; top: 52%; width: 118%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(226,179,63,.55); }
.values .label { font-weight: 600; color: var(--gold-lt); margin-bottom: 18px; font-size: 1.05rem; }
.words { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(10px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.words li { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 7.5vw, 6rem); line-height: 1; position: relative; padding-bottom: 14px; }
.words li::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 5px; background: linear-gradient(var(--gold) 0 2px, var(--scarlet) 2px 100%); }
.words li .shine { position: absolute; inset: 0 0 14px; background: linear-gradient(100deg, transparent 30%, rgba(255,240,200,.9) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none; }
.motto { margin-top: 30px; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.js .values .crest-wrap img { opacity: 0; transform: translateY(70px) scale(.6); }
.js .values .crest-glow { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
.js .values .crest-ring { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.js .values .label, .js .values .motto { opacity: 0; }
.js .values .words li { opacity: 0; transform: scale(1.8); filter: blur(6px); }
.js .values .words li::after { transform: scaleX(0); }
.js .values.go .crest-wrap img { animation: crestUp 1.1s var(--ease) forwards; }
.js .values.go .crest-glow { animation: glow 1.4s var(--ease) .3s forwards; }
.js .values.go .crest-ring { animation: ring 1.6s var(--ease) .5s forwards; }
.js .values.go .label { animation: fadeup .7s var(--ease) .9s forwards; }
.js .values.go .words li { animation: stamp .55s cubic-bezier(.3,1.4,.5,1) forwards; }
.js .values.go .words li:nth-child(1) { animation-delay: 1.15s; }
.js .values.go .words li:nth-child(2) { animation-delay: 1.5s; }
.js .values.go .words li:nth-child(3) { animation-delay: 1.85s; }
.js .values.go .words li::after { transition: transform .6s var(--ease); transform: scaleX(1); }
.js .values.go .words li:nth-child(1)::after { transition-delay: 1.5s; }
.js .values.go .words li:nth-child(2)::after { transition-delay: 1.85s; }
.js .values.go .words li:nth-child(3)::after { transition-delay: 2.2s; }
.js .values.go .words li .shine { animation: shine 1.4s ease-in-out 2.6s forwards; }
.js .values.go .motto { animation: fadeup .8s var(--ease) 2.5s forwards; }
@keyframes crestUp { 0% { opacity: 0; transform: translateY(70px) scale(.6); } 70% { opacity: 1; transform: translateY(-8px) scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes glow { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes ring { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 40% { opacity: 1; } 100% { opacity: .35; transform: translate(-50%, -50%) scale(1.05); } }
@keyframes stamp { to { opacity: 1; transform: none; filter: none; } }
@keyframes shine { to { background-position: -50% 0; } }

/* ---------- Where you'll see us ---------- */
.where-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.where-head p { margin: 0; max-width: 44ch; color: var(--muted); }
.where { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 4px solid var(--blues); margin: 0; padding: 0; list-style: none; }
.where li { padding: 28px 24px 30px; border-right: 1px solid #D6DAE3; position: relative; }
.where li:last-child { border-right: 0; }
.where li::before { content: ""; position: absolute; left: 0; top: -4px; height: 4px; width: 100%; background: var(--scarlet); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.where li.in::before { transform: scaleX(1); }
.where svg { width: 48px; height: 48px; stroke: var(--blues-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.where svg .g { stroke: var(--gold); }
.where h3 { color: var(--blues); margin-bottom: 8px; }
.where p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .where { grid-template-columns: 1fr 1fr; } .where li:nth-child(2) { border-right: 0; } .where li:nth-child(-n+2) { border-bottom: 1px solid #D6DAE3; } }
@media (max-width: 520px) { .where { grid-template-columns: 1fr; } .where li { border-right: 0; border-bottom: 1px solid #D6DAE3; } }

/* ---------- Photo strip (home) ---------- */
.strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 10px; }
.strip a { position: relative; overflow: hidden; display: block; background: var(--blues); }
.strip a:first-child { grid-row: span 2; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.strip a:hover img { transform: scale(1.06); }
.strip-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; } .strip a:first-child { grid-column: span 2; grid-row: auto; } }

/* ---------- CTA band ---------- */
.cta { position: relative; background: var(--scarlet); color: var(--white); overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(135deg, #000 0 2px, transparent 2px 16px); }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.cta p { font-size: 1.15rem; margin: 18px 0 0; max-width: 46ch; }
.cta .go { justify-self: end; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } .cta .go { justify-self: start; } }

/* ---------- About page ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: rgba(226,179,63,.35); }
.steps li { position: relative; }
.steps .mark { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--blues); border: 2px solid var(--gold); color: var(--gold); font-family: var(--display); font-weight: 800; font-size: 1.4rem; position: relative; z-index: 1; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--blues); }
.steps h3 { color: var(--white); margin-bottom: 6px; }
.steps p { color: #C9D1E3; font-size: 1rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.js .steps li { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .steps.in li { opacity: 1; transform: none; }
.js .steps.in li:nth-child(2) { transition-delay: .15s; }
.js .steps.in li:nth-child(3) { transition-delay: .3s; }
.js .steps.in li:nth-child(4) { transition-delay: .45s; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.instructors { list-style: none; padding: 0; margin: 22px 0 0; }
.instructors li { padding: 18px 0 18px 20px; border-left: 4px solid var(--scarlet); background: var(--white); margin-bottom: 12px; padding-right: 18px; box-shadow: 0 1px 0 #DCE0E8; }
.instructors strong { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 800; text-transform: uppercase; color: var(--blues); line-height: 1.1; }
.instructors span { color: var(--muted); font-size: .98rem; }

/* ---------- Photos page ---------- */
.gallery { columns: 3 300px; column-gap: 12px; }
.gallery button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--blues); cursor: zoom-in; overflow: hidden; break-inside: avoid; border-radius: 2px; }
.gallery img { width: 100%; transition: transform .7s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,14,28,.96); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 60px 0; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: opacity .25s, transform .35s var(--ease); }
.lightbox img.swap { opacity: 0; transform: scale(.97); }
.lightbox .count { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: #C9D1E3; font-size: .95rem; }
.lb-btn { background: none; border: 0; color: var(--white); cursor: pointer; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; }
.lb-btn:hover { background: rgba(255,255,255,.1); }
.lb-btn svg { width: 32px; height: 32px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.lb-close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 1fr; } .lb-prev, .lb-next { position: absolute; bottom: 8px; } .lb-prev { left: 12px; } .lb-next { right: 12px; } }

/* ---------- Request page ---------- */
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 4px solid var(--blues); }
.next-steps li { padding: 24px 24px 26px 0; }
.next-steps li + li { padding-left: 24px; border-left: 1px solid #D6DAE3; }
.next-steps b { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 900; color: var(--scarlet); line-height: 1; margin-bottom: 8px; }
.next-steps h3 { color: var(--blues); margin-bottom: 6px; font-size: 1.4rem; }
.next-steps p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .next-steps { grid-template-columns: 1fr; } .next-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid #D6DAE3; } }
.form-shell { background: var(--white); border-top: 6px solid var(--scarlet); box-shadow: 0 1px 0 #DCE0E8, 0 20px 50px rgba(14,26,49,.12); }
.form-shell iframe { display: block; width: 100%; height: 1250px; border: 0; }
.form-help { margin-top: 18px; color: var(--muted); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blues); color: #C9D1E3; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.site-footer img { width: 72px; }
.site-footer strong { color: var(--white); font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; display: block; }
.site-footer p { margin: 0; font-size: .95rem; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; font-weight: 600; color: var(--white); }
.site-footer nav a:hover { color: var(--gold-lt); }
.site-footer .motto-sm { color: var(--gold); font-family: var(--display); letter-spacing: .25em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Gentle reveal for a few blocks ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .sub, .js .hero .actions, .js .page-hero h1, .js .page-hero p,
  .js .values .crest-wrap img, .js .values .label, .js .values .motto, .js .values .words li,
  .js .steps li { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .hero h1 .line span, .js .hero .rule, .js .values .words li::after { transform: none !important; }
  .js .values .crest-glow, .js .values .crest-ring { opacity: .6 !important; transform: translate(-50%,-50%) !important; }
  .hero-img img, .page-hero img { transform: none !important; }
}

/* =========================================================
   Round 2 additions
   ========================================================= */

/* Scroll progress: scarlet bar with gold edge across the very top */
.progress { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--scarlet), var(--gold)); pointer-events: none; }

/* Parallax photo layers */
.parallax { will-change: transform; }
.hero-img.parallax { inset: -6% 0; }

/* The face of our program */
.face { position: relative; overflow: hidden; color: var(--white); background: var(--blues); }
.face-bg { position: absolute; inset: -12% 0; }
.face-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: .55; }
.face::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,26,49,.97) 0%, rgba(14,26,49,.85) 45%, rgba(14,26,49,.35) 100%); }
.face-inner { position: relative; z-index: 1; padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(80px, 12vw, 150px); }
.face-kicker { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .14em; color: var(--gold); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 14px; }
.face-kicker::before { content: ""; width: 44px; height: 4px; background: linear-gradient(var(--gold) 0 1px, var(--scarlet) 1px 100%); }
.face-title { font-size: clamp(2.8rem, 7vw, 5.6rem); text-transform: uppercase; line-height: .92; max-width: 14ch; margin-bottom: 26px; }
.face-text { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 50ch; color: #DCE3F0; margin-bottom: 44px; }
.face-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 980px;
  border-top: 1px solid rgba(226,179,63,.35); }
.face-facts li { padding: 24px 26px 6px 0; position: relative; }
.face-facts li + li { padding-left: 26px; border-left: 1px solid rgba(226,179,63,.25); }
.face-facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 6px; }
.face-facts span:last-child { color: #C9D1E3; font-size: 1rem; }
.star { display: block; width: 22px; height: 22px; background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@media (max-width: 760px) { .face-facts { grid-template-columns: 1fr; } .face-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(226,179,63,.2); } }
.js .face-facts li.reveal:nth-child(2) { transition-delay: .15s; }
.js .face-facts li.reveal:nth-child(3) { transition-delay: .3s; }
.js .face-title.reveal { transition-delay: .1s; }
.js .face-text.reveal { transition-delay: .2s; }

/* Second crest ring for a pulse */
.crest-ring.r2 { width: 140%; border-color: rgba(179,18,43,.5); }
.js .values .crest-ring.r2 { opacity: 0; }
.js .values.go .crest-ring.r2 { animation: ring 2s var(--ease) .8s forwards, pulse 4s ease-in-out 3s infinite; }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1.05); opacity: .35; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .12; } }

/* Uniforms */
.uniforms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.uni { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--blues); }
.uni img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.uni:hover img { transform: scale(1.05); }
.uni::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(14,26,49,.92) 100%); }
.uni figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 26px 28px; color: var(--white); }
.uni figcaption::before { content: ""; display: block; width: 60px; height: 6px; margin-bottom: 14px; background: linear-gradient(var(--gold) 0 2px, var(--scarlet) 2px 100%); transition: width .6s var(--ease); }
.uni:hover figcaption::before { width: 120px; }
.uni strong { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.2rem); text-transform: uppercase; line-height: 1; }
.uni span { color: #D3DAE8; }
.uni:nth-child(2) img { object-position: 30% 50%; }
.js .uni.reveal:nth-child(2) { transition-delay: .15s; }
@media (max-width: 640px) { .uniforms { grid-template-columns: 1fr; } }

/* Filmstrip */
.film-sec { background: var(--blues); color: var(--white); padding: clamp(60px, 9vw, 100px) 0 clamp(60px, 9vw, 100px); overflow: hidden; }
.film-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.film { position: relative; }
.film::before, .film::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 8vw; pointer-events: none; }
.film::before { left: 0; background: linear-gradient(90deg, var(--blues), transparent); }
.film::after { right: 0; background: linear-gradient(-90deg, var(--blues), transparent); }
.film-track { display: flex; gap: 14px; width: max-content; animation: film 60s linear infinite; }
.film:hover .film-track { animation-play-state: paused; }
.film-track a { display: block; height: clamp(220px, 28vw, 340px); flex: none; overflow: hidden; border-top: 4px solid var(--scarlet); }
.film-track img { height: 100%; width: auto; filter: saturate(.9); transition: filter .4s, transform .8s var(--ease); }
.film-track a:hover img { filter: saturate(1.1); transform: scale(1.04); }
@keyframes film { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .film-track { animation: none !important; } .film { overflow-x: auto; } }
