/* =========================================================
   SECURITY TRAINING ACADEMY — core stylesheet

   Palette sampled directly from the official Philippine
   Security and Safety Professional logo: deep navy, security
   blue, gold, white, with the red of the ribbon kept as a
   controlled accent and never used for decoration.

   Type: Barlow Condensed (headings) · Barlow (body)
         Cinzel (formal display) · IBM Plex Mono (data)

   Geometry: shield-derived. Square corners, chevron cuts,
   thin rules. No rounded pills, no soft gradients.
   ========================================================= */

:root {
  /* Brand */
  --navy-950: #050c1e;
  --navy-900: #08152f;
  --navy-800: #0d1f43;
  --navy: #12295a;
  --navy-600: #17357a;
  --blue: #1e4ba8;
  --blue-400: #3d78d6;
  --blue-200: #9dc0f2;
  --gold: #e5a912;
  --gold-light: #f5c63a;
  --gold-deep: #b8830c;
  --red: #c41230;
  --red-deep: #96101f;

  /* Neutrals — cool, institutional, never cream */
  --white: #ffffff;
  --paper: #f7f8fb;
  --mist: #eef1f7;
  --mist-200: #e2e7f0;
  --line: #d5dce9;
  --line-strong: #b9c4d8;
  --ink: #0e1526;
  --muted: #55607a;
  --muted-light: #8b94a8;

  /* Type */
  --display: "Cinzel", "Times New Roman", Georgia, serif;
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Space */
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --maxw: 1200px;
  --header-h: 74px;

  /* Depth — tight and low, like printed stock */
  --shadow-sm: 0 1px 2px rgba(8, 21, 47, .06), 0 3px 10px rgba(8, 21, 47, .05);
  --shadow-md: 0 2px 4px rgba(8, 21, 47, .07), 0 10px 28px rgba(8, 21, 47, .09);
  --shadow-lg: 0 4px 8px rgba(8, 21, 47, .08), 0 24px 56px rgba(8, 21, 47, .16);

  --radius: 2px;
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* A class-level display rule would otherwise beat the hidden
   attribute and leave the admin gate on screen catching clicks. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0;
  color: var(--navy-900);
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: var(--white);
  padding: .8rem 1.2rem;
  font-family: var(--mono);
  font-size: .8rem;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.no-scroll { overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Recurring brand devices ---------- */

/* The ribbon in the logo, reduced to a rule.

   Two forms. The plain one has equal segments and is only ever used at
   a small fixed width, where it reads as a ribbon. Stretched across a
   full-width header it would read as five enormous colour blocks, so
   full-width bars use the --bar modifier: a navy rule carrying a short
   ribbon tab at the leading edge. */
.tricolor {
  height: 4px;
  background: linear-gradient(90deg,
    var(--navy) 0 22%,
    var(--blue) 22% 44%,
    var(--white) 44% 56%,
    var(--red) 56% 78%,
    var(--gold) 78% 100%);
}

.tricolor--bar {
  position: relative;
  height: 3px;
  background: var(--navy-900);
}
.tricolor--bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 230px;
  max-width: 55%;
  background: linear-gradient(90deg,
    var(--blue) 0 34%,
    var(--red) 34% 67%,
    var(--gold) 67% 100%);
}

.eyebrow {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  flex: none;
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow--center { justify-content: center; }

/* Shield-derived corner brackets used on cards and panels. */
.bracketed { position: relative; }
.bracketed::before,
.bracketed::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.bracketed::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.bracketed::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .82rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease,
              border-color .16s ease, transform .1s ease;
  text-align: center;
  line-height: 1.2;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-900); }

.btn--navy {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

.btn--outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-900);
}
.btn--ghost:hover { border-color: var(--navy-900); background: var(--mist); }

.btn--onnavy {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: var(--white);
}
.btn--onnavy:hover { background: var(--white); border-color: var(--white); color: var(--navy-900); }

.btn--danger {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn--danger:hover { background: var(--red); color: var(--white); }

.btn--sm { font-size: .85rem; padding: .5rem 1rem; min-height: 40px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--white);
}
.header__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav a {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy-900);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active {
  color: var(--navy-900);
  border-bottom-color: var(--gold);
}

.header__cta { display: flex; align-items: center; gap: .7rem; flex: none; }
.header .nav + .header__cta { margin-left: 1.4rem; }
.header__cta .btn { white-space: nowrap; }

.burger {
  display: none;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--navy-900);
  margin: 3px auto;
}

.admin-who {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 940px) {
  .brand img { height: 34px; }
  .burger { display: grid; order: 3; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--pad) 1.2rem;
    margin: 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }
  .nav a:hover, .nav a.is-active { border-bottom-color: var(--line); color: var(--blue); }
  .header__cta { margin-left: auto; }
  .header__cta .btn--hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 15% 0%, var(--navy-800) 0%, var(--navy-950) 62%);
  color: rgba(255, 255, 255, .84);
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
/* Security hatch: fine diagonal rules, the way a security document
   is engraved. Low contrast so text stays the loudest thing. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(58deg, rgba(229, 169, 18, .075) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(-58deg, rgba(157, 192, 242, .05) 0 1px, transparent 1px 11px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -6%; top: 50%;
  width: min(620px, 55vw); aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(30, 75, 168, .38) 0%, transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: .01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
}
.hero__lead {
  font-size: clamp(1.02rem, 1.7vw, 1.16rem);
  color: rgba(255, 255, 255, .8);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__crest {
  display: grid;
  place-items: center;
  padding: 2rem;
  position: relative;
}
.hero__crest img {
  width: min(300px, 62vw);
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .45));
}
.hero__crest .tricolor {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(230px, 50vw);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__crest { order: -1; padding: 0 0 1.5rem; }
  .hero__crest img { width: min(190px, 46vw); }
  .hero__crest .tricolor { display: none; }
}

/* ---------- Assurance strip ---------- */
.strip {
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .1);
}
.strip__item {
  background: var(--navy-900);
  padding: 1.5rem 1.2rem;
  text-align: center;
}
.strip__item .k {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: .02em;
}
.strip__item .v {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-top: .35rem;
}
@media (max-width: 720px) {
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--paper { background: var(--paper); }
.section--navy {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .8);
  position: relative;
  overflow: hidden;
}
.section--navy::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(58deg, rgba(229, 169, 18, .06) 0 1px, transparent 1px 12px);
  pointer-events: none;
}
.section--navy .wrap { position: relative; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255, 255, 255, .76); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 1rem 0 0;
}
.section--navy .section__head p { color: rgba(255, 255, 255, .74); }

/* ---------- Course cards ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}
@media (max-width: 700px) {
  .courses-grid { grid-template-columns: 1fr; }
}

.course {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.course:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

/* Instead of stock photography, each card carries a shield-derived
   plate in the course's accent colour. Nothing to license, nothing
   to load, and it never looks like a placeholder. */
.course__plate {
  position: relative;
  height: 104px;
  background: var(--navy-900);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: .9rem 1.35rem;
}
.course__plate::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(58deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(-58deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 10px);
}
.course__plate::after {
  content: "";
  position: absolute;
  top: -40px; right: -30px;
  width: 150px; height: 150px;
  background: currentColor;
  opacity: .32;
  clip-path: polygon(50% 0%, 100% 18%, 100% 62%, 50% 100%, 0% 62%, 0% 18%);
}
.course__plate--navy { color: var(--blue); }
.course__plate--blue { color: var(--blue-400); }
/* Mid gold turns olive once knocked back over navy, so this plate uses
   the lighter gold to stay recognisably gold. */
.course__plate--gold { color: var(--gold-light); }
.course__plate--red  { color: var(--red); }

.course__cat {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0;
}

.course__badge {
  position: absolute;
  top: .8rem; right: .9rem;
  z-index: 1;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--white);
  background: rgba(0, 0, 0, .3);
}
.course__badge--soon { border-color: var(--gold); color: var(--gold-light); }

/* A flex column with the price pushed to the bottom, so the price and
   the buttons line up across a row even when the descriptions run to
   different lengths. */
.course__body {
  padding: 1.35rem 1.35rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course__body h3 { margin-bottom: .6rem; color: var(--navy-900); }
.course__desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }

.course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.1rem;
}
.chip {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line);
  padding: .22rem .5rem;
}

.course__price {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: .95rem;
}
.course__price .amount {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--navy-900);
  letter-spacing: .01em;
}
.course__price .note {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.course__actions {
  display: flex;
  gap: .6rem;
  padding: 0 1.35rem 1.35rem;
}
.course__actions .btn { flex: 1; }

/* ---------- Filter bar ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .55rem .9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--muted);
}
.filter:hover { border-color: var(--line-strong); color: var(--navy); }
.filter.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.7rem);
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
}
.section--navy .feature {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .14);
}
.feature__num {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--gold-deep);
  margin-bottom: .8rem;
}
.section--navy .feature__num { color: var(--gold); }
.feature h3 { font-size: 1.22rem; margin-bottom: .6rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.section--navy .feature p { color: rgba(255, 255, 255, .74); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step { background: var(--white); padding: 1.6rem 1.4rem; }
.step__n {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--mist-200);
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Panels, forms ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.panel h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .5rem; }
.panel > .lede { color: var(--muted); font-size: .95rem; margin-bottom: 1.6rem; }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .45rem;
}
.field .hint {
  font-size: .8rem;
  color: var(--muted);
  margin: .35rem 0 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .78rem .9rem;
  min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 75, 168, .14);
  outline: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); }
.field .err {
  display: none;
  font-size: .82rem;
  color: var(--red-deep);
  margin-top: .35rem;
}
.field.has-error .err { display: block; }

/* Honeypot: off-screen, never focusable, invisible to a person. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-status {
  font-size: .92rem;
  margin-top: 1rem;
  padding: .75rem .9rem;
  border-left: 3px solid transparent;
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status.is-ok {
  background: #edf7f0;
  border-left-color: #1d7a45;
  color: #14562f;
}
.form-status.is-err {
  background: #fdeff1;
  border-left-color: var(--red);
  color: var(--red-deep);
}
.form-status.is-info {
  background: var(--mist);
  border-left-color: var(--blue);
  color: var(--navy);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  padding: 1.2rem 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--navy-900);
}
.faq__q::after {
  content: "+";
  font-family: var(--body);
  font-size: 1.5rem;
  color: var(--gold-deep);
  flex: none;
  line-height: 1;
}
.faq__q[aria-expanded="true"]::after { content: "\2212"; }
.faq__a { display: none; padding: 0 0 1.3rem; }
.faq__a.is-open { display: block; }
.faq__a p { color: var(--muted); margin: 0 0 .8rem; max-width: 72ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- Prose lists ---------- */
.ticks li,
.bullets li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6rem;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: .1rem; top: .62em;
  width: 10px; height: 2px;
  background: var(--blue);
}
.section--navy .ticks li,
.section--navy .bullets li { color: rgba(255, 255, 255, .76); }

.numbered { counter-reset: mod; }
.numbered li {
  counter-increment: mod;
  position: relative;
  padding: .75rem 0 .75rem 3rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .96rem;
}
.numbered li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0; top: .8rem;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--gold-deep);
}

/* ---------- Notice ---------- */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: var(--mist);
  padding: 1rem 1.2rem;
  font-size: .92rem;
  color: var(--muted);
}
.notice strong { color: var(--navy-900); }
.notice p:last-child { margin-bottom: 0; }
.notice--warn { border-left-color: var(--gold-deep); background: #fdf6e6; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .66);
  padding-block: clamp(2.5rem, 5vw, 3.6rem) 0;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.4rem;
}
@media (max-width: 780px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer__brand img { height: 78px; width: auto; margin-bottom: 1rem; }
.footer__brand .nm {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
}
.footer__brand .sub {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: .35rem;
}
.footer__brand p { margin: 1rem 0 0; max-width: 42ch; color: rgba(255, 255, 255, .6); }

.footer h4 {
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer li { margin-bottom: .55rem; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: var(--gold-light); }

.footer__base {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(158deg, var(--navy-800) 0%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(2.4rem, 6vw, 4rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(58deg, rgba(229, 169, 18, .07) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(-58deg, rgba(157, 192, 242, .05) 0 1px, transparent 1px 10px);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: .8rem; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 62ch; margin: 0; }

.crumbs {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, .55);
}
.crumbs a { color: var(--gold-light); }
.crumbs span { margin: 0 .5rem; }

/* ---------- Scroll reveal ---------- */
/* Content fades in as it scrolls into view. Three safety nets, because
   content that is invisible is far worse than content that does not
   animate:
     1. this rule only applies where scripting is available
     2. reduced motion switches it off entirely (below)
     3. home.js reveals anything still hidden after a short delay, in
        case the observer never fires */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .course { transition: none; }
}
