:root {
  --navy: #0b1f3a;
  --navy-2: #13294b;
  --red: #b3141c;
  --red-dark: #8a0e14;
  --gold: #c9a24a;
  --cream: #f7f3ec;
  --ink: #1d2433;
  --muted: #5b6475;
  --white: #fff;
  --serif: "Fira Sans", system-ui, sans-serif;
  --sans: "Fira Sans", system-ui, sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html, main, footer { overflow-x: clip; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); font-size: 18px; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }


/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius); transition: background .3s, color .3s, transform .3s, box-shadow .3s; border: 2px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--sm { padding: 10px 18px; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(179,20,28,.6); }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: var(--cream); }
.link { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); transition: letter-spacing .3s; }
.link:hover { letter-spacing: .1em; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.eyebrow--light { color: #f3d9a4; }
.title { font-family: var(--serif); font-weight: 800; color: var(--navy); font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin-bottom: 18px; }
.title--light { color: #fff; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; color: #fff; transition: background .4s, box-shadow .4s, transform .4s; }
.header.is-scrolled { background: rgba(11,31,58,.96); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.header.is-hidden { transform: translateY(-100%); }
.header .container { width: calc(100% - 80px); max-width: 1760px; }
.nav { display: flex; align-items: center; gap: 40px; height: 120px; transition: height .4s; }
.nav__login { font-size: 15px; font-weight: 600; padding: 8px 4px; border-bottom: 2px solid transparent; transition: border-color .3s, color .3s; }
.nav__login:hover { color: var(--gold); border-color: var(--gold); }
.nav__logo img { width: 140px; margin-top: 0; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); transition: width .4s, margin .4s; }
.header.is-scrolled .nav__logo img { width: 100px; margin-top: 0; }
.header.is-scrolled .nav { height: 90px; }
.nav__menu { display: flex; gap: 28px; font-size: 15.5px; font-weight: 600; margin-right: auto; }
.nav__menu a { position: relative; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.nav__menu a:hover::after, .nav__menu a.active::after { transform: scaleX(1); }
.chev { width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.icon-btn:hover { color: var(--gold); }
.burger { display: none; width: 28px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; transition: .3s; }
.burger span:nth-child(1) { top: 0; } .burger span:nth-child(2) { top: 9px; } .burger span:nth-child(3) { top: 18px; }
.burger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: -10% 0 0; }
.hero__bg img { width: 100%; height: 110%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,58,.95) 0%, rgba(11,31,58,.7) 40%, rgba(11,31,58,.1) 75%), linear-gradient(0deg, rgba(11,31,58,.8), transparent 40%); }
.hero__content { position: relative; z-index: 2; padding-top: 200px; padding-bottom: 120px; }
.hero__title { font-family: var(--serif); font-weight: 800; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.05; white-space: nowrap; margin-bottom: 26px; }
.hero__title .line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .line > span { display: inline-block; }
.hero__text { max-width: 560px; font-size: 20px; opacity: .92; margin-bottom: 34px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Pillars ---------- */
.pillars { background: #fff; padding: 70px 0; position: relative; z-index: 2; }
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { text-align: center; padding: 10px 30px; border-right: 1px solid #e7e2d8; }
.pillar:last-child { border-right: 0; }
.pillar__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; transition: transform .5s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.pillar:hover .pillar__icon { transform: translateY(-6px) rotate(-8deg) scale(1.06); }
.pillar__icon img { width: 40px; height: 40px; filter: brightness(0) invert(1); }
.bg-red { background: var(--red); } .bg-navy { background: var(--navy); } .bg-gold { background: var(--gold); }
.pillar h3 { font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.pillar p { font-size: 16px; color: var(--muted); }

/* ---------- Chapters ---------- */
.chapters { position: relative; padding: 110px 0; color: #fff; overflow: hidden; background: var(--navy); }
.chapters__bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,58,.97) 30%, rgba(11,31,58,.75)), url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=2000&q=60") center/cover; }
.chapters__grid { position: relative; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.8fr); gap: 40px; width: calc(100% - 80px); max-width: 1760px; align-items: center; }
.chapters__copy p:not(.eyebrow) { opacity: .88; margin-bottom: 24px; max-width: 440px; }
.chapter-pick { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 16px; margin-bottom: 26px; border-left: 3px solid var(--red); background: rgba(255,255,255,.06); }
.chapter-pick__label { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.chapter-pick strong { font-family: var(--serif); font-weight: 800; font-size: 22px; }
.map__svg { display: block; width: 90%; margin: 0 auto; height: auto; overflow: visible; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.prov { fill: #dce4f0; stroke: var(--navy); stroke-width: 2; cursor: pointer; outline: none; transition: fill .3s; }
.prov:hover, .prov.is-hover, .prov:focus-visible { fill: #fff; }
.prov.is-active, .prov.is-active:hover { fill: var(--red); }
.map__label { pointer-events: none; fill: var(--navy); font-family: var(--sans); }
.map__label .code { font-size: 50px; font-weight: 800; }
.map__label .name { font-size: 24px; font-weight: 600; opacity: .8; }
.map__label.is-active { fill: #fff; }
.map__label--ext { fill: #fff; pointer-events: bounding-box; cursor: pointer; }
.map__label--ext:hover .code { fill: var(--gold); }
.map__label--ext.is-active .code { fill: var(--red); }
.map__label--ext polyline { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.5; }

/* ---------- Mission ---------- */
.mission { padding: 120px 0; background: var(--cream); }
.mission__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.frame { position: relative; border: 3px solid var(--gold); padding: 10px; }
.frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid rgba(201,162,74,.5); z-index: -1; }
.frame { overflow: hidden; }
.frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transform: scale(1.15); }
.mission__copy > p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
.stats { display: flex; gap: 40px; margin-bottom: 32px; }
.stats strong { display: block; font-family: var(--serif); font-weight: 800; font-size: 40px; color: var(--red); line-height: 1; }
.stats span { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- Resources ---------- */
.resources { padding: 110px 0; background: #fbf9f5; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rcard { background: #fff; text-align: center; padding-bottom: 28px; border-radius: var(--radius); box-shadow: 0 14px 30px -18px rgba(11,31,58,.35); transition: transform .4s, box-shadow .4s; }
.rcard:hover { transform: translateY(-8px); box-shadow: 0 26px 40px -20px rgba(11,31,58,.45); }
.rcard__img { height: 150px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.rcard:hover .rcard__img img { transform: scale(1.1); }
.rcard__icon { width: 64px; height: 64px; margin: -32px auto 14px; position: relative; border-radius: 50%; background: var(--navy); border: 4px solid #fff; display: grid; place-items: center; }
.rcard__icon img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.rcard h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; padding: 0 18px; }
.rcard p { font-size: 16px; color: var(--muted); padding: 0 22px; margin-bottom: 16px; }

/* ---------- Involved ---------- */
.involved { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; background: var(--red-dark); overflow: hidden; }
.involved__media { position: relative; overflow: hidden; }
.involved__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.involved__copy { position: relative; display: flex; align-items: center; padding: 60px 8%; color: #fff; background: var(--red-dark); }
.involved__copy::before { content: ""; position: absolute; left: -70px; top: 0; bottom: 0; width: 140px; background: var(--red-dark); border-left: 4px solid var(--gold); transform: skewX(-8deg); }
.involved__inner { position: relative; max-width: 500px; }
.involved__inner p:not(.eyebrow) { opacity: .92; margin-bottom: 30px; }

/* ---------- News ---------- */
.news { padding: 110px 0; background: #fff; }
.news__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ncard { border: 1px solid #ece6da; border-radius: var(--radius); overflow: hidden; transition: transform .4s, box-shadow .4s; background: #fff; }
.ncard:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(11,31,58,.4); }
.ncard__img { height: 200px; overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.ncard:hover .ncard__img img { transform: scale(1.08); }
.ncard__body { padding: 24px; }
.ncard time { font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; }
.ncard h3 { font-size: 21px; color: var(--navy); margin: 6px 0 10px; line-height: 1.3; }
.ncard p { font-size: 16.5px; color: var(--muted); margin-bottom: 18px; }

/* ---------- Partners ---------- */
.partners { padding: 90px 0; background: var(--cream); }
.partners__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.partners__grid p:not(.eyebrow) { color: var(--muted); }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.logos span { text-align: center; font-weight: 800; font-size: 24px; color: #6b7280; letter-spacing: .02em; filter: grayscale(1); opacity: .75; transition: opacity .3s, color .3s, transform .3s; }
.logos span:hover { opacity: 1; color: var(--navy); transform: scale(1.06); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #c9d2e3; padding-top: 70px; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__brand { display: flex; gap: 22px; align-items: center; }
.footer__brand img { width: 220px; }
.footer__brand h4 { font-family: var(--serif); font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 6px; }
.footer h5 { color: var(--gold); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer__grid > div:not(.footer__brand) a { display: block; padding: 3px 0; transition: color .3s, transform .3s; }
.footer__grid a:hover { color: #fff; transform: translateX(4px); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); font-size: 11px; font-weight: 700; text-transform: uppercase; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--red); border-color: var(--red); transform: none; }
.footer__bottom { background: #071629; padding: 18px 0; font-size: 14px; }
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.motto { letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__menu { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; gap: 22px; padding: 120px 36px; background: var(--navy); font-size: 16px; transform: translateX(100%); transition: transform .5s cubic-bezier(.7,0,.3,1); }
  .nav__menu.open { transform: none; }
  .burger { display: block; z-index: 2; }
  .nav__actions .btn, .nav__login { display: none; }
  .header .container { width: calc(100% - 40px); }
  .chapters__grid { width: calc(100% - 40px); }
  .pillars__grid, .cards4 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .pillar:nth-child(2) { border-right: 0; }
  .chapters__grid, .mission__grid, .partners__grid { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .nav__logo img { width: 110px; }
  .hero__title { white-space: normal; font-size: 40px; }
  .hero__content { padding-top: 150px; padding-bottom: 90px; }
  .pillars__grid, .cards4, .cards3 { grid-template-columns: 1fr; }
  .pillar { border-right: 0; }
  .map__label .name { display: none; }
  .involved { grid-template-columns: 1fr; }
  .involved__media { height: 280px; }
  .involved__copy::before { display: none; }
  .news__head { flex-direction: column; align-items: flex-start; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .stats { gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Coming soon popup ---------- */
.soon { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(7,22,41,.75); backdrop-filter: blur(6px); visibility: hidden; opacity: 0; }
.soon__box { position: relative; width: min(440px, 100%); padding: 44px 36px 36px; text-align: center; background: var(--navy); color: #fff; border-top: 5px solid var(--red); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.soon__box img { width: 200px; margin: 0 auto 18px; }
.soon__box h3 { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.soon__box p { color: #c9d2e3; margin-bottom: 26px; }
.soon__close { position: absolute; top: 12px; right: 14px; font-size: 28px; line-height: 1; color: var(--muted); }
.soon__close:hover { color: var(--red); }

/* ---------- Hero (FRACanada) ---------- */
.hero { text-align: center; }
.hero__overlay { background: linear-gradient(0deg, rgba(7,16,30,.95) 0%, rgba(7,16,30,.55) 45%, rgba(7,16,30,.25) 100%); }
.hero__content { padding-top: 260px; padding-bottom: 70px; }
.hero__title { font-size: clamp(48px, 9vw, 150px); font-weight: 900; letter-spacing: -.01em; line-height: .9; margin-bottom: 14px; white-space: nowrap; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.c-blue { color: #1f6bff; } .c-red { color: #e3121b; } .c-white { color: #fff; }
.hero__org { font-size: clamp(14px, 2vw, 30px); font-weight: 600; letter-spacing: .35em; text-transform: uppercase; margin-bottom: 8px; }
.hero__rule { display: flex; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto 14px; }
.hero__rule span { flex: 1; height: 3px; background: #e3121b; }
.hero__rule svg { width: 30px; height: 30px; fill: #e3121b; }
.hero__pillars { font-size: clamp(14px, 1.6vw, 24px); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.hero__tag { font-size: clamp(12px, 1vw, 15px); letter-spacing: .25em; text-transform: uppercase; opacity: .85; margin-bottom: 40px; }
.hero__feats { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); max-width: 1500px; margin: 0 auto 36px; }
.hero__feat { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 14px; border-right: 1px solid rgba(255,255,255,.3); font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.hero__feat:last-child { border-right: 0; }
.hero__feat img { width: 48px; height: 48px; filter: brightness(0) invert(1); transition: transform .4s; }
.hero__feat:hover img { transform: translateY(-4px) scale(1.08); }
.hero .hero__btns { justify-content: center; }
@media (max-width: 1024px) { .hero__feats { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } .hero__feat:nth-child(3) { border-right: 0; } .hero__content { padding-top: 340px; } }
@media (max-width: 680px) { .hero__feats { grid-template-columns: repeat(2, 1fr); } .hero__feat { border-right: 0; font-size: 13px; } .hero__title { white-space: normal; } .hero__org, .hero__pillars { letter-spacing: .15em; } }
@media (max-width: 1360px) and (min-width: 1025px) {
  .nav { gap: 24px; }
  .nav__menu { gap: 18px; font-size: 14.5px; }
  .nav__login { display: none; }
}
.hero__logo { display: inline-block; margin: 0 auto 28px; padding: 22px 34px; background: rgba(255,255,255,.92); border-radius: 10px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.hero__logo img { width: min(420px, 70vw); height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__content { padding-top: 340px; }

/* ---------- Mobile menu ---------- */
.nav__mobile-only, .nav__backdrop { display: none; }
@media (max-width: 1024px) {
  .nav { height: 80px; gap: 16px; }
  .header.is-scrolled .nav { height: 70px; }
  .nav__menu { top: 0; right: 0; left: auto; bottom: auto; height: 100vh; height: 100dvh; overflow-y: auto; gap: 0; padding: 100px 28px 40px; z-index: 1; box-shadow: -20px 0 40px rgba(0,0,0,.4); }
  .nav__menu a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 17px; justify-content: space-between; }
  .nav__menu a::after { display: none; }
  .nav__menu .nav__mobile-only { display: flex; }
  .nav__menu .btn.nav__mobile-only { justify-content: center; margin-top: 24px; border-bottom: 0; padding: 16px; }
  .nav__backdrop { display: block; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(7,16,30,.6); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .nav__backdrop.open { opacity: 1; visibility: visible; }
  .burger { position: relative; z-index: 2; }
  .header.menu-open { background: var(--navy); transform: none !important; backdrop-filter: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 680px) {
  .hero__content { padding-top: 120px; padding-bottom: 60px; }
  .hero__logo { padding: 14px 18px; }
  .hero__tag { letter-spacing: .12em; }
  .hero .hero__btns .btn { width: 100%; justify-content: center; }
  .chapters, .mission, .resources, .news { padding: 70px 0; }
  .chapters__grid { gap: 30px; }
  .map__svg { width: 100%; }
  .map__label .code { font-size: 56px; }
  .frame::before { display: none; }
  .involved__copy { padding: 50px 20px; }
  .partners { padding: 60px 0; }
  .logos span { font-size: 19px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
  .soon__box { padding: 36px 22px 28px; }
}
/* Equal-height news and resource cards, links pinned to the bottom */
.ncard, .rcard { display: flex; flex-direction: column; }
.ncard__body { flex: 1; display: flex; flex-direction: column; }
.ncard__body .link, .rcard .link { margin-top: auto; }
@media (max-width: 1024px) { .nav__actions { margin-left: auto; } .hero__content { padding-top: 220px; } }
@media (max-width: 680px) { .hero__content { padding-top: 180px; } }
@media (min-width: 1025px) {
  .nav__menu .nav__mobile-only { display: none; }
  .nav__menu { margin: 0 auto; }
}
/* Hero logo mark */
.hero__mark { margin: 0 auto 26px; }
.hero__mark img { width: min(540px, 82vw); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.hero__content { padding-top: 150px; }
@media (max-width: 1024px) { .hero__content { padding-top: 130px; } }
@media (max-width: 680px) { .hero__content { padding-top: 110px; } .hero__mark { margin-bottom: 18px; } }
.hero__mark { margin-bottom: 44px; }
.hero__mark img { width: min(780px, 90vw); }

/* Police light-bar letters: pairs rotate blue -> red -> white, offset so all three colours show at once */
.hero__mark-svg { display: block; width: min(780px, 90vw); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.hero__mark-svg .pl { animation: lightBar 2.4s steps(1, end) infinite; }
.hero__mark-svg .pl-b { animation-delay: -0.8s; }
.hero__mark-svg .pl-c { animation-delay: -1.6s; }
@keyframes lightBar {
  0%, 10%, 20%  { fill: #1f5bff; filter: drop-shadow(0 0 14px #1f5bff); }
  5%, 15%       { fill: #dfe8ff; filter: drop-shadow(0 0 24px #6f95ff); }
  33.3%, 43%, 53% { fill: #ff1a1a; filter: drop-shadow(0 0 14px #ff1a1a); }
  38%, 48%      { fill: #ffe1e1; filter: drop-shadow(0 0 24px #ff5c5c); }
  66.6%, 76%, 86% { fill: #ffffff; filter: drop-shadow(0 0 14px rgba(255,255,255,.9)); }
  71%, 81%      { fill: #c9d6ff; filter: drop-shadow(0 0 6px rgba(255,255,255,.5)); }
}

/* Light-bar wash over the hero: blue left, red right, white centre, each flashing in turn */
.hero__lights { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; overflow: hidden; }
.beam { position: absolute; top: -20%; width: 70%; height: 110%; opacity: 0; animation: beam 2.4s steps(1, end) infinite; }
.beam--blue { left: -15%; background: radial-gradient(ellipse at 45% 35%, rgba(40,100,255,.75) 0%, rgba(40,100,255,.25) 35%, transparent 65%); }
.beam--red { right: -15%; background: radial-gradient(ellipse at 55% 35%, rgba(255,30,30,.75) 0%, rgba(255,30,30,.25) 35%, transparent 65%); animation-delay: -1.6s; }
.beam--white { left: 15%; background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.4) 0%, rgba(255,255,255,.1) 35%, transparent 60%); animation-delay: -0.8s; }
@keyframes beam { 0%, 10% { opacity: .9; } 5%, 15% { opacity: .25; } 20% { opacity: .6; } 26%, 100% { opacity: 0; } }
.hero__mark { position: relative; }
.hero__mark::before { content: ""; position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%; filter: blur(40px); background: linear-gradient(90deg, rgba(40,100,255,.4), rgba(255,255,255,.15), rgba(255,30,30,.4)); animation: markGlow 0.8s steps(1, end) infinite; }
@keyframes markGlow { 0% { opacity: 1; } 30% { opacity: .4; } 60% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .hero__lights, .hero__mark::before { display: none; }
  .hero__mark-svg .pl { animation: none; }
  .hero__mark-svg .pl-a { fill: #1f5bff; } .hero__mark-svg .pl-b { fill: #ff1a1a; } .hero__mark-svg .pl-c { fill: #fff; }
}
