/* ==========================================================================
   Restore Britain · Local branch demo theme
   Palette and type taken from the public restorebritain.org.uk site:
   party navy #061D3F (official), royal blue #2A4EEF / #1032CF, ink #141414, greys #F4F4F4 / #D6D6D6.
   Brand fonts: TT Tricks Bold (headings) and TT Tricks (body). TT Tricks is a commercial
   TypeType font: add licensed files to assets/fonts/ and they are picked up automatically.
   Everything (headings, body, buttons, forms) uses TT Tricks; until the files are added it falls back to Montserrat.
   ========================================================================== */

@font-face { font-family: "TT Tricks"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("TT Tricks Regular"), local("TTTricks-Regular"), url("../fonts/TTTricks-Regular.woff2") format("woff2"); }
@font-face { font-family: "TT Tricks"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("TT Tricks Bold"), local("TTTricks-Bold"), url("../fonts/TTTricks-Bold.woff2") format("woff2"); }

:root {
  --navy: #061D3F;
  --navy-900: #031329;
  --navy-700: #0B2B57;
  --blue: #2A4EEF;
  --blue-600: #1032CF;
  --blue-100: #E7ECFE;
  --ink: #141414;
  --muted: #5B6472;
  --grey-50: #FAFAFA;
  --grey-100: #F4F4F4;
  --grey-300: #D6D6D6;
  --white: #FFFFFF;
  --danger: #C62828;
  --success: #12805C;

  --font-head: "TT Tricks", "Montserrat", system-ui, sans-serif;
  --font-body: "TT Tricks", "Montserrat", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(5 30 64 / .06), 0 2px 8px rgb(5 30 64 / .06);
  --shadow: 0 10px 30px -10px rgb(5 30 64 / .25);
  --shadow-lg: 0 30px 60px -20px rgb(5 30 64 / .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 66px;
  --container: 1140px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: .95rem; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 820px); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.icon { flex-shrink: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .6rem;
  font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #A9BBFF; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .68rem 1.2rem; border: 1.5px solid transparent; border-radius: 8px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .86rem; letter-spacing: .01em; text-decoration: none;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .25) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--pill { border-radius: 999px; }
.btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn--navy { --bg: var(--navy); }
.btn--navy:hover { --bg: var(--navy-700); }
.btn--blue { --bg: var(--blue); }
.btn--blue:hover { --bg: var(--blue-600); }
.btn--white { --bg: #fff; --fg: var(--navy); }
.btn--outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: #fff; }
.btn--ghost-light { --bg: rgb(255 255 255 / .06); --fg: #fff; border-color: rgb(255 255 255 / .35); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { --bg: rgb(255 255 255 / .14); border-color: #fff; }
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn--white.is-loading::before, .btn--outline.is-loading::before { border-color: rgb(5 30 64 / .2); border-top-color: var(--navy); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 700; color: var(--blue-600); text-decoration: none; }
.link-arrow .icon { transition: transform .35s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Demo bar & scroll progress ---------- */
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .35rem 1rem;
  background: var(--ink); color: #E5E7EB; font-size: .76rem; text-align: center;
}
.demo-bar__pill { background: #F5B301; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .12em; padding: .2rem .55rem; border-radius: 999px; }
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue), #7C93FF);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgb(255 255 255 / .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .4s, border-color .4s, transform .45s var(--ease);
}
.site-header.is-scrolled { border-color: rgb(5 30 64 / .08); box-shadow: 0 8px 30px -18px rgb(5 30 64 / .35); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand__logo { height: 40px; width: auto; transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.03); }
.brand__branch { padding-left: .75rem; border-left: 1px solid var(--grey-300); font-family: var(--font-head); font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--muted); max-width: 8.5rem; }
.brand--light .brand__logo { height: 46px; }
.brand--light .brand__branch { color: rgb(255 255 255 / .75); border-color: rgb(255 255 255 / .25); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; position: relative; }
.nav__link {
  position: relative; display: block; padding: .45rem .7rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--ink); text-decoration: none;
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--navy); }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--grey-300); background: #fff; cursor: pointer; }
.menu-toggle__bars { display: grid; gap: 5px; width: 20px; margin: auto; }
.menu-toggle__bars i { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.menu-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; padding: 2rem 1.5rem;
  background: var(--navy); color: #fff; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 0); transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 0); }
.mobile-menu ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.mobile-menu li { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 60ms + 150ms); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgb(255 255 255 / .12);
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}
.mobile-menu li a[aria-current="page"] { color: #A9BBFF; }

/* ---------- Latest news ticker (homepage, between nav and hero) ---------- */
.ticker { background: var(--navy-900); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .08); position: relative; z-index: 2; }
.ticker__inner { display: flex; align-items: center; gap: 1.25rem; height: 42px; }
.ticker__label { display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .02em; color: #fff; }
.ticker__label .icon { color: #A9BBFF; }
.ticker__viewport {
  position: relative; flex: 1; min-width: 0; overflow: hidden; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; align-items: center; width: max-content; height: 100%; margin: 0; padding: 0; list-style: none; animation: ticker var(--dur, 60s) linear infinite; }
.ticker__viewport:hover .ticker__track, .ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track li { display: flex; align-items: center; white-space: nowrap; }
.ticker__track li::before { content: ""; width: 7px; height: 7px; margin: 0 1.1rem; border-radius: 50%; background: #7C93FF; box-shadow: 0 0 0 3px rgb(124 147 255 / .22); flex-shrink: 0; }
.ticker__track a { color: rgb(255 255 255 / .88); text-decoration: none; font-size: .86rem; transition: color .2s; }
.ticker__track a:hover, .ticker__track a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ticker__loading { color: rgb(255 255 255 / .5); font-size: .86rem; }
.ticker__all { display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; color: #A9BBFF; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .78rem; }
.ticker__all:hover { color: #fff; }
.ticker__all .icon { transition: transform .3s var(--ease); }
.ticker__all:hover .icon { transform: translateX(3px); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 620px) {
  .ticker__all { display: none; }
  .ticker__label { font-size: .74rem; }
  .ticker__inner { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, #0D3474 0%, var(--navy) 45%, var(--navy-900) 100%);
  display: flex; align-items: center; padding: 3rem 0 5rem;
  /* Full screen height under the demo bar, header and news ticker */
  min-height: calc(100vh - var(--header-h) - 72px); min-height: calc(100svh - var(--header-h) - 72px);
}
.hero__bg, .page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--1 { width: 520px; height: 520px; background: var(--blue); top: -160px; right: -120px; animation: float1 18s var(--ease-in-out) infinite alternate; }
.blob--2 { width: 380px; height: 380px; background: #1B3FA8; bottom: -160px; left: -80px; animation: float2 22s var(--ease-in-out) infinite alternate; }
.blob--3 { width: 240px; height: 240px; background: #6F86FF; top: 40%; left: 45%; opacity: .25; animation: float1 26s var(--ease-in-out) infinite alternate-reverse; }
.hero__grid {
  position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  animation: gridpan 40s linear infinite;
}
.hero__media { position: absolute; inset: -4% 0; background: center 35% / cover no-repeat; transform: scale(1.06); animation: kenburns 24s ease-out both; will-change: transform; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(3 19 41 / .9) 0%, rgb(6 29 63 / .72) 40%, rgb(6 29 63 / .3) 75%, rgb(6 29 63 / .2) 100%), linear-gradient(0deg, rgb(3 19 41 / .6), transparent 45%); }
@media (max-width: 720px) { .hero__shade { background: rgb(6 29 63 / .72); } }
.hero__ph-tag { position: absolute; right: 1rem; bottom: 1rem; padding: .25rem .6rem; border-radius: 999px; background: rgb(0 0 0 / .45); color: rgb(255 255 255 / .8); font-size: .7rem; letter-spacing: .04em; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.04); } }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 40rem); gap: 3rem; align-items: center; }
.hero__eyebrow .dot, .pulse { width: 8px; height: 8px; border-radius: 50%; background: #5CE1A6; box-shadow: 0 0 0 0 rgb(92 225 166 / .7); animation: pulse 2s infinite; }
.hero__eyebrow::before { display: none; }
.hero__title { color: #fff; margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero__title .line { display: block; }
.hero__title .line:last-child { background: linear-gradient(90deg, #fff 0%, #A9BBFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero__lead { font-size: 1.05rem; max-width: 34rem; color: rgb(255 255 255 / .82); margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.glass {
  background: linear-gradient(145deg, rgb(255 255 255 / .14), rgb(255 255 255 / .04));
  border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .2);
}
.hero__card { border-radius: var(--radius-lg); padding: 1.4rem; animation: bob 7s ease-in-out infinite; }
.hero__card-label { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A9BBFF; }
.hero__card h3 { color: #fff; font-size: 1.15rem; margin: .4rem 0 .75rem; }
.hero__card .meta-list { color: rgb(255 255 255 / .8); }
.hero__card .date-badge { margin-bottom: 1rem; }
.hero__card .btn { margin-top: 1rem; }
.hero__card .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin-top: 1rem; }
.countdown div { text-align: center; padding: .45rem .2rem; border-radius: 8px; background: rgb(255 255 255 / .08); }
.countdown strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: #fff; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .65); }

.scroll-cue { position: absolute; left: 50%; bottom: 2rem; width: 28px; height: 46px; border: 2px solid rgb(255 255 255 / .45); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s var(--ease) infinite; }

/* Split-line text reveal (JS wraps words) */
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .word > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--w) * 70ms + 100ms); }
[data-split].is-split .word > span { transform: none; }
.hero__title .line:last-child .word > span { background: inherit; -webkit-background-clip: text; background-clip: text; }

.hero__lead, .hero__actions, .hero__eyebrow, .hero__card, .page-hero__lead, .page-hero .eyebrow, .breadcrumb, .page-hero__meta { animation: rise 1s var(--ease) both; }
.hero__eyebrow { animation-delay: .05s; }
.hero__lead, .page-hero__lead { animation-delay: .45s; }
.hero__actions, .page-hero__meta { animation-delay: .6s; }
.hero__card { animation: rise 1.1s .75s var(--ease) both, bob 7s 2s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--blue); color: #fff; padding: .6rem 0; border-block: 1px solid rgb(255 255 255 / .15); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__dot { opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 5.5vw, 4.5rem) 0; position: relative; }
.section--tight { padding-top: 0; }
.section--grey { background: var(--grey-100); }
.section-head { max-width: 42rem; margin-bottom: 1.75rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1rem; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-head--row h2 { margin: 0; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Stats ---------- */
.stats { padding: 2.25rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: .5rem 1.25rem; border-left: 2px solid var(--blue); }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; color: var(--navy); margin-bottom: .35rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat__label { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.1rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 1.35rem; border: 1px solid rgb(5 30 64 / .07);
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  transform-style: preserve-3d;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: rgb(42 78 239 / .25); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; font-size: .94rem; }
.card__icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; margin-bottom: .9rem;
  background: var(--blue-100); color: var(--blue-600); transition: background .4s, color .4s, transform .6s var(--ease);
}
.card:hover .card__icon { background: var(--navy); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card__num { position: absolute; top: 1.1rem; right: 1.25rem; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--grey-300); transition: color .3s; }
.card:hover .card__num { color: var(--blue); }
.card--priority::before {
  content: ""; position: absolute; left: 1.35rem; right: 1.35rem; bottom: 0; height: 2px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.card--priority:hover::before { transform: scaleX(1); }
.card--value { background: transparent; box-shadow: none; border: 0; border-top: 2px solid var(--navy); border-radius: 0; padding: 1rem 0 0; }
.card--value .card__num { position: static; display: block; margin-bottom: .5rem; color: var(--blue); }
.card--value:hover { box-shadow: none; }
.card--way { display: flex; flex-direction: column; }
.card--way .link-arrow { margin-top: auto; padding-top: 1rem; font-size: .9rem; }
.card--person { text-align: center; }
.avatar {
  width: 68px; height: 68px; margin: 0 auto .9rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 0 0 5px var(--blue-100); transition: box-shadow .4s, transform .6s var(--ease);
}
.card--person:hover .avatar { box-shadow: 0 0 0 8px var(--blue-100); transform: scale(1.04); }
.card--person__contact { margin-top: .75rem; font-size: .85rem; }
.card--person__role { color: var(--blue-600) !important; font-family: var(--font-head); font-weight: 600; font-size: .8rem; margin-bottom: .5rem !important; }

/* News cards */
.card--news { padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.card__media::after { content: ""; position: absolute; inset: 0; background: inherit; transition: transform .9s var(--ease); }
.card--news:hover .card__media::after { transform: scale(1.08); }
.card__media .badge { position: absolute; left: 1rem; top: 1rem; z-index: 1; }
.card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.02rem; transition: color .3s; }
.card--news:hover h3 { color: var(--blue-600); }
.card__meta { font-size: .8rem !important; color: var(--muted); margin-bottom: .35rem !important; }
.card__more { margin-top: auto; padding-top: .9rem; font-size: .88rem; }
.badge { display: inline-block; padding: .22rem .6rem; border-radius: 999px; background: #fff; color: var(--navy); font-family: var(--font-head); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow-sm); }

/* Placeholder cover "images" (CSS art, swap for real photos) */
.theme-navy { background: radial-gradient(circle at 80% 20%, #2A4EEF 0 14%, transparent 15%), radial-gradient(circle at 15% 110%, #1B3FA8 0 35%, transparent 36%), linear-gradient(135deg, #061D3F, #0A2B5A); }
.theme-blue { background: repeating-linear-gradient(-45deg, rgb(255 255 255 / .08) 0 14px, transparent 14px 28px), linear-gradient(135deg, #2A4EEF, #1032CF); }
.theme-ink  { background: radial-gradient(circle at 70% 60%, rgb(42 78 239 / .6) 0 22%, transparent 23%), radial-gradient(circle at 30% 30%, rgb(255 255 255 / .08) 0 30%, transparent 31%), linear-gradient(160deg, #141414, #061D3F); }

/* Event cards (grid) */
.card--event { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; cursor: pointer; }
.card--event h3 { font-size: 1.02rem; margin: 0; }
.date-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 54px; border-radius: 10px;
  background: var(--navy); color: #fff; font-family: var(--font-head); line-height: 1; flex-shrink: 0;
}
.date-badge strong { font-size: 1.2rem; font-weight: 700; }
.date-badge span { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; color: #A9BBFF; }
.card--event .card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.type-chip { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-family: var(--font-head); font-size: .68rem; font-weight: 600; letter-spacing: .03em; }
.meta-list { display: grid; gap: .25rem; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .86rem; }
.meta-list li { display: flex; gap: .5rem; align-items: center; }
.capacity { margin-top: auto; }
.capacity__bar { height: 6px; border-radius: 6px; background: var(--grey-100); overflow: hidden; }
.capacity__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--navy)); transition: width 1.4s var(--ease) .2s; }
.capacity__label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .4rem; font-weight: 700; }

/* Event list rows */
.event-list { display: grid; gap: .7rem; }
.event-row {
  display: flex; align-items: center; gap: 1.1rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: #fff;
  border: 1px solid rgb(5 30 64 / .08); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; width: 100%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.event-row:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: rgb(42 78 239 / .3); }
.event-row__main { flex: 1; min-width: 0; }
.event-row__main h3 { font-size: 1.02rem; margin: .25rem 0 .2rem; }
.event-row__main .meta-list { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.event-row__cta { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--grey-300); color: var(--navy); transition: background .3s, color .3s, transform .5s var(--ease); }
.event-row:hover .event-row__cta { background: var(--navy); color: #fff; transform: rotate(-45deg); }
.event-row.is-past { opacity: .78; }
.event-row.is-past .date-badge { background: var(--grey-300); color: var(--ink); }
.event-row.is-past .date-badge span { color: var(--muted); }

/* Card enter animation for AJAX-loaded items */
.ajax-in { animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }

/* Skeletons */
.skeleton-card { pointer-events: none; display: grid; gap: .9rem; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, rgb(5 30 64 / .06) 25%, rgb(5 30 64 / .12) 37%, rgb(5 30 64 / .06) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.glass .skeleton { background-image: linear-gradient(90deg, rgb(255 255 255 / .08) 25%, rgb(255 255 255 / .18) 37%, rgb(255 255 255 / .08) 63%); }
.skeleton--block { height: 120px; border-radius: 12px; }
.skeleton--title { height: 22px; width: 75%; margin-top: .5rem; }
.skeleton--line { height: 14px; width: 100%; }
.skeleton--line.short { width: 55%; }
.skeleton--date { width: 50px; height: 54px; border-radius: 10px; flex-shrink: 0; }
.event-row.skeleton-card { display: flex; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); border: 2px dashed var(--grey-300); border-radius: var(--radius); }
.empty-state strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.2rem; margin-bottom: .25rem; }

/* ---------- Toolbar, chips, segmented, search ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--grey-300); background: #fff; cursor: pointer;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--navy); transform: translateY(-2px); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.segmented { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--grey-100); }
.segmented button { position: relative; z-index: 1; border: 0; background: none; padding: .42rem 1rem; border-radius: 999px; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--muted); transition: color .3s; }
.segmented button[aria-selected="true"] { color: #fff; }
.segmented__thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--navy); transition: transform .5s var(--ease), width .5s var(--ease); }
.search { margin-left: auto; flex: 0 1 280px; display: flex; align-items: center; gap: .5rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--grey-300); background: #fff; color: var(--muted); transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(42 78 239 / .12); }
.search input { border: 0; outline: 0; padding: .5rem 0; font-size: .9rem; min-width: 200px; background: none; }
.result-count { color: var(--muted); font-size: .9rem; font-weight: 700; min-height: 1.5em; }
.load-more { display: flex; justify-content: center; margin-top: 2rem; }

/* Featured news */
.featured-slot:empty { display: none; }
.featured {
  display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.25rem;
  background: var(--navy); color: #fff; text-decoration: none; box-shadow: var(--shadow-lg);
}
.featured__media { min-height: 240px; position: relative; overflow: hidden; }
.featured__media::after { content: ""; position: absolute; inset: 0; background: inherit; transition: transform 1.2s var(--ease); }
.featured:hover .featured__media::after { transform: scale(1.06); }
.featured__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; justify-content: center; }
.featured__body h2 { color: #fff; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.featured__body p { color: rgb(255 255 255 / .78); }
.featured .link-arrow { color: #A9BBFF; margin-top: .5rem; }

/* ---------- Quote band ---------- */
.quote-band { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 4.5rem) 0; color: #fff; background: var(--navy); }
.quote-band__bg { position: absolute; inset: -20% 0; background: radial-gradient(circle at 20% 30%, rgb(42 78 239 / .55), transparent 40%), radial-gradient(circle at 85% 70%, rgb(42 78 239 / .35), transparent 35%); will-change: transform; }
.quote-band__inner { position: relative; max-width: 760px; text-align: center; }
.quote-band__icon { display: inline-grid; color: #A9BBFF; margin-bottom: .75rem; }
.quote-band__icon .icon { width: 32px; height: 32px; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; letter-spacing: -.01em; }
.quote-band footer { display: flex; flex-direction: column; gap: .1rem; margin-top: 1.1rem; font-size: .92rem; }
.quote-band footer span { color: rgb(255 255 255 / .65); font-size: .9rem; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(120deg, var(--blue-600), var(--navy) 70%);
}
.cta-panel__shapes span { position: absolute; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); }
.cta-panel__shapes span:nth-child(1) { width: 420px; height: 420px; right: -120px; top: -180px; animation: spin 60s linear infinite; border-style: dashed; }
.cta-panel__shapes span:nth-child(2) { width: 260px; height: 260px; right: 60px; bottom: -160px; background: rgb(255 255 255 / .05); }
.cta-panel__copy { position: relative; max-width: 32rem; }
.cta-panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgb(255 255 255 / .8); margin: 0; }
.cta-panel__actions { position: relative; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2.25rem, 4.5vw, 3.25rem); color: #fff; background: linear-gradient(135deg, var(--navy-900), var(--navy) 55%, #0D3474); }
.page-hero .blob--1 { width: 420px; height: 420px; top: -200px; right: -60px; }
.page-hero .blob--2 { width: 300px; height: 300px; bottom: -200px; left: 30%; }
.page-hero__inner { position: relative; max-width: 900px; margin-left: max(1.25rem, calc((100% - var(--container)) / 2)); }
.page-hero__title { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: .6rem; }
.page-hero__lead { font-size: 1.02rem; color: rgb(255 255 255 / .8); max-width: 38rem; margin: 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: rgb(255 255 255 / .8); margin-top: 1rem; font-size: .86rem; }
.page-hero__meta span { display: inline-flex; gap: .45rem; align-items: center; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8rem; margin-bottom: 1rem; color: rgb(255 255 255 / .6); }
.breadcrumb a { color: rgb(255 255 255 / .85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }


/* ---------- Split layout & placeholders ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.split--form { align-items: start; }
.split__copy p { color: var(--muted); }
.split__copy .btn { margin-top: 1rem; }
.split__visual { position: relative; }
.photo-placeholder, .map-placeholder {
  position: relative; display: grid; place-content: center; text-align: center; gap: .25rem; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3; color: rgb(255 255 255 / .9); overflow: hidden;
  background: radial-gradient(circle at 75% 25%, rgb(42 78 239 / .9) 0 18%, transparent 19%), repeating-linear-gradient(45deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 16px), linear-gradient(135deg, var(--navy), var(--navy-700));
}
.photo-placeholder span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.photo-placeholder small { opacity: .7; }
.floating-stat { position: absolute; left: -1rem; bottom: -1rem; padding: .85rem 1.1rem; border-radius: var(--radius); display: grid; animation: bob 6s ease-in-out infinite; }
.glass-light { background: rgb(255 255 255 / .9); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .6); }
.floating-stat strong { font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); line-height: 1; }
.floating-stat span { color: var(--muted); font-weight: 700; font-size: .88rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: center; font-weight: 700; }
.ticks .icon { color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--grey-300); }
.timeline::after { content: ""; position: absolute; left: 9px; top: 6px; width: 2px; height: calc(var(--progress, 0) * (100% - 12px)); background: linear-gradient(var(--blue), var(--navy)); transition: height .2s linear; }
.timeline__item { position: relative; padding-bottom: 1.5rem; }
.timeline__item::before { content: ""; position: absolute; left: calc(-2.5rem + 2px); top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); z-index: 1; transition: transform .5s var(--ease), background .3s; }
.timeline__item.is-visible::before { background: var(--blue); transform: scale(1.15); }
.timeline__date { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.timeline__card { margin-top: .35rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--grey-100); }
.timeline__card h3 { margin-bottom: .35rem; }
.timeline__card p { margin: 0; color: var(--muted); }

/* ---------- Accordion ---------- */
.accordion { display: grid; gap: .75rem; }
.accordion__item { border-radius: var(--radius); background: var(--grey-100); overflow: hidden; transition: background .3s, box-shadow .3s; }
.accordion__item.is-open { background: #fff; box-shadow: var(--shadow); }
.accordion h3 { margin: 0; font-size: .98rem; }
.accordion button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.accordion__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; flex-shrink: 0; transition: transform .5s var(--ease), background .3s, color .3s; }
.is-open .accordion__icon { transform: rotate(135deg); background: var(--navy); color: #fff; }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 1.1rem 1rem; font-size: .94rem; margin: 0; color: var(--muted); }
.is-open .accordion__panel { grid-template-rows: 1fr; }

/* ---------- Article ---------- */
.article__cover { aspect-ratio: 21 / 7; border-radius: var(--radius-lg); margin: -3.5rem 0 1.75rem; position: relative; box-shadow: var(--shadow-lg); display: flex; align-items: end; padding: 1.5rem; }
.article__cover span { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.article__lead { font-size: 1.12rem; line-height: 1.55; color: var(--navy); font-weight: 700; }
.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--blue); background: var(--blue-100); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy); line-height: 1.4; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--grey-300); }
.share > span { font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { font-size: 1.3rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; font-size: .94rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-100); color: var(--blue-600); flex-shrink: 0; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--navy); }
.info-list span, .info-list a { color: var(--muted); }
.contact-info__lead { color: var(--muted); margin-bottom: 1.25rem; }
.contact-info__sub { font-size: .95rem; margin: .5rem 0 .75rem; }
.social-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.social-list a { display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: var(--radius); border: 1px solid var(--grey-300); background: #fff; color: var(--navy); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .88rem; transition: border-color .25s, transform .35s var(--ease), box-shadow .3s; }
.social-list a:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.social-list__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; flex-shrink: 0; }
.social-list__icon svg { width: 16px; height: 16px; }
.map-placeholder { aspect-ratio: 16 / 10; }
.map-placeholder__pin { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto .75rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; color: var(--navy); animation: drop 2.4s var(--ease) infinite; }
.map-placeholder__pin .icon { transform: rotate(45deg); }

.form-card { background: #fff; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid rgb(5 30 64 / .06); }
.form-card h2 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { position: relative; margin-bottom: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.25rem .9rem .45rem; border-radius: 8px; font-size: .95rem; border: 1.5px solid var(--grey-300); background: var(--grey-50);
  transition: border-color .25s, box-shadow .25s, background .25s; appearance: none; resize: vertical;
}
.field textarea { min-height: 110px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23061D3F' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(42 78 239 / .12); }
.field label { position: absolute; left: .9rem; top: .85rem; font-size: .95rem; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .3s var(--ease), color .3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-.6rem) scale(.78); color: var(--blue-600); font-weight: 700; }
.field__hint { position: absolute; right: .9rem; bottom: .6rem; margin: 0; font-size: .75rem; color: var(--muted); }
.field__error { margin: .35rem 0 0; font-size: .85rem; font-weight: 700; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); animation: shake .45s; }
.field.is-valid input, .field.is-valid textarea { border-color: var(--success); }
.hp { position: absolute; left: -9999px; }

.check { display: flex; gap: .75rem; align-items: flex-start; margin: .5rem 0 1.5rem; font-size: .93rem; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check__box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--grey-300); flex-shrink: 0; margin-top: 2px; color: transparent; transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.08); }
.check input:focus-visible + .check__box { outline: 3px solid var(--blue); outline-offset: 2px; }
.check.has-error .check__box { border-color: var(--danger); animation: shake .45s; }

.form-status { margin: 1rem 0 0; font-weight: 700; min-height: 1.5em; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }
.form-success { text-align: center; padding: 2rem 0; animation: rise .8s var(--ease) both; }
.form-success__tick { width: 84px; height: 84px; margin: 0 auto 1.5rem; }
.form-success__tick circle { stroke: var(--success); stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw .8s var(--ease) forwards; }
.form-success__tick path { stroke: var(--success); stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .6s var(--ease) forwards; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--muted); }

/* Multi-step volunteer form */
.form-steps__nav { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.75rem; }
.form-steps__nav li { flex: 1; padding-top: .75rem; border-top: 4px solid var(--grey-300); font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--muted); transition: border-color .4s, color .4s; }
.form-steps__nav li.is-active { border-color: var(--blue); color: var(--navy); }
.form-step { border: 0; padding: 0; margin: 0; display: none; }
.form-step.is-active { display: block; animation: stepIn .55s var(--ease) both; }
.form-step legend { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin-bottom: .9rem; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.role input { position: absolute; opacity: 0; }
.role span { display: block; padding: .6rem .8rem; border-radius: 8px; border: 1.5px solid var(--grey-300); cursor: pointer; font-weight: 700; font-size: .86rem; transition: all .3s var(--ease); }
.role span:hover { border-color: var(--navy); }
.role input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(1.02); }
.role input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-step__actions { display: flex; gap: 1rem; }
.form-step__actions .btn:last-child { flex: 1; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--navy); color: #fff; padding: clamp(2.25rem, 4.5vw, 3.25rem) 0; position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: var(--blue); filter: blur(120px); opacity: .35; right: -150px; top: -250px; }
.newsletter__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.newsletter h2 { color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: .4rem; }
.newsletter p { color: rgb(255 255 255 / .75); margin: 0; font-size: .94rem; }
.input-pill { display: flex; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .2); transition: border-color .3s, box-shadow .3s; }
.input-pill:focus-within { border-color: #A9BBFF; box-shadow: 0 0 0 4px rgb(169 187 255 / .15); }
.input-pill input { flex: 1; min-width: 0; padding: 0 1.25rem; background: none; border: 0; outline: 0; color: #fff; }
.input-pill input::placeholder { color: rgb(255 255 255 / .5); }
.newsletter .form-status.is-error { color: #FFB4B4; }
.newsletter .form-status.is-success { color: #7DF0BF; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgb(255 255 255 / .72); padding: 3rem 0 1.5rem; font-size: .9rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
.site-footer h3 { color: #fff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer__brand p { margin: 1rem 0; max-width: 22rem; }
.site-footer a { color: rgb(255 255 255 / .8); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-links, .footer-contact, .social { list-style: none; margin: 0; padding: 0; }
.footer-links { display: grid; gap: .35rem; }
.footer-links a { display: inline-block; transition: transform .3s var(--ease), color .2s; }
.footer-links a:hover { transform: translateX(4px); }
.footer-contact { display: grid; gap: .9rem; }
.footer-contact li { display: flex; gap: .75rem; align-items: flex-start; }
.footer-contact .icon { color: #A9BBFF; margin-top: 3px; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.75rem; font-size: .83rem; color: rgb(255 255 255 / .5); }
.site-footer__base p { margin: 0; }

/* ---------- Floating bits: to-top, toasts, modal ---------- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--navy); color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .5s var(--ease), background .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }

.toast-stack { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; display: grid; gap: .5rem; transform: translateX(-50%); width: min(92vw, 420px); }
.toast { display: flex; gap: .75rem; align-items: center; padding: .9rem 1.1rem; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-weight: 700; font-size: .93rem; animation: toastIn .5s var(--ease) both; }
.toast.is-leaving { animation: toastOut .4s var(--ease) both; }
.toast .icon { color: #7DF0BF; }
.toast--error .icon { color: #FFB4B4; }

.modal { width: min(94vw, 640px); max-height: 90vh; padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal::backdrop { background: rgb(3 20 43 / .6); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .5s var(--ease) both; }
.modal[open]::backdrop { animation: fadeIn .4s both; }
.modal.is-closing { animation: modalOut .3s var(--ease) both; }
.modal__panel { position: relative; max-height: 90vh; overflow-y: auto; }
.modal__close { position: absolute; right: 1rem; top: 1rem; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(255 255 255 / .16); color: #fff; transition: background .3s, transform .4s var(--ease); }
.modal__close:hover { background: rgb(255 255 255 / .3); transform: rotate(90deg); }
.modal__head { padding: 1.5rem 1.5rem 1.4rem; background: linear-gradient(135deg, var(--navy), var(--blue-600)); color: #fff; display: flex; gap: 1.25rem; align-items: center; }
.modal__head .date-badge { background: #fff; color: var(--navy); }
.modal__head .date-badge span { color: var(--blue-600); }
.modal__head h2 { color: #fff; font-size: 1.25rem; margin: .4rem 0 0; }
.modal__head .type-chip { background: rgb(255 255 255 / .15); color: #fff; }
.modal__content { padding: 1.5rem; }
.modal__content .meta-list { margin-bottom: 1.5rem; }
.modal__content .prose { font-size: 1.02rem; color: var(--ink); }
.modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Keyframes ---------- */
@keyframes float1 { to { transform: translate(-80px, 60px) scale(1.15); } }
@keyframes float2 { to { transform: translate(90px, -50px) scale(1.1); } }
@keyframes gridpan { to { background-position: 56px 56px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(92 225 166 / .7); } 70% { box-shadow: 0 0 0 10px rgb(92 225 166 / 0); } 100% { box-shadow: 0 0 0 0 rgb(92 225 166 / 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes drop { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(6px, -6px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .site-header__inner { gap: 1.25rem; }
}
@media (max-width: 960px) {
  .brand__branch, .site-header__actions .btn { display: none; }
}
/* Hamburger menu only on phones; desktop and tablet keep the horizontal nav. */
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header__actions { margin-left: auto; }
  .brand__branch { display: block; }
}
@media (max-width: 900px) {
  .hero__inner, .split, .contact-grid, .newsletter__inner, .featured { grid-template-columns: 1fr; }
  .hero { padding-top: 4rem; }
  .hero__card { max-width: 460px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .featured__media { min-height: 220px; }
  .search { margin-left: 0; width: 100%; }
  .search input { min-width: 0; flex: 1; }
  .floating-stat { left: 1rem; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .cards--3, .cards--4, .field-row, .role-grid, .site-footer__grid { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .event-row { flex-wrap: wrap; gap: 1rem; }
  .event-row__cta { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .stat { padding: 1rem 1rem 1rem 1.1rem; }
  .stats__grid { gap: 1.25rem .5rem; }
  .demo-bar { font-size: .75rem; }
  .brand__branch { display: none !important; }
  .brand__logo { height: 34px; }
  .article__cover { margin-top: -4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-split] .word > span { transform: none; }
}

/* ------------------------------------------------------------------
   Forms built in the dashboard
   ------------------------------------------------------------------ */
.rbform { position: relative; margin: 2rem 0; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid #E3E8F2; box-shadow: var(--shadow); overflow: hidden; font-size: 1rem; }
.rbform::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--navy), var(--blue) 55%, #E5262B); }
.rbform.is-done { animation: rise .6s var(--ease) both; }
.rbform--closed { text-align: center; color: var(--muted); box-shadow: none; background: var(--grey-50); }
.rbform--closed::before { background: var(--grey-300); }
.rbform__grid { display: flex; flex-wrap: wrap; gap: 1.1rem 1rem; }
.rbform__heading { flex: 1 1 100%; margin: .75rem 0 -.25rem; font-size: 1.2rem; color: var(--navy); }
.rbform__heading:first-child { margin-top: 0; }
.rbform__text { flex: 1 1 100%; margin: 0; color: var(--muted); }
.rbf { flex: 1 1 100%; min-width: 0; display: grid; gap: .4rem; align-content: start; }
.rbf--half { flex: 1 1 calc(50% - .5rem); min-width: 220px; }
.rbf__label { display: block; font-weight: 700; font-size: .92rem; color: var(--navy); padding: 0; }
.rbf__req { color: #E5262B; margin-left: .2rem; }
.rbf__opt { margin-left: .4rem; font-weight: 500; font-size: .75rem; color: var(--muted); }
.rbf__help { margin: 0; font-size: .82rem; color: var(--muted); }
.rbf__error { margin: 0; font-size: .84rem; font-weight: 700; color: var(--danger); }
.rbf__error:empty { display: none; }
.rbf input[type=text], .rbf input[type=email], .rbf input[type=tel], .rbf input[type=number], .rbf input[type=date], .rbf select, .rbf textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid #DCE2EC; border-radius: var(--radius); background: var(--grey-50); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.rbf textarea { min-height: 130px; resize: vertical; }
.rbf input:hover, .rbf select:hover, .rbf textarea:hover { border-color: #C3CCDC; }
.rbf input:focus, .rbf select:focus, .rbf textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgb(42 78 239 / .12); }
.rbf ::placeholder { color: #9AA3B2; }
.rbf__select { position: relative; }
.rbf__select::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.rbf.has-error input, .rbf.has-error select, .rbf.has-error textarea, .rbf.has-error .rbf__drop, .rbf.has-error .rbf__choice span, .rbf.has-error .rbf__box { border-color: var(--danger); }
.rbf.has-error { animation: shake .45s; }

.rbf__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.rbf__set legend { margin-bottom: .55rem; }
.rbf__choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.rbf__choice { position: relative; cursor: pointer; }
.rbf__choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rbf__choice span { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem .6rem .8rem; border: 1.5px solid #DCE2EC; border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; color: var(--navy); transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.rbf__choice span::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border: 2px solid #AAB3C3; border-radius: 6px; background: #fff center / 12px no-repeat; transition: border-color .2s, background-color .2s; }
.rbf__choice--radio span::before { border-radius: 50%; }
.rbf__choice:hover span { border-color: #B9C6F5; transform: translateY(-1px); }
.rbf__choice input:checked + span { border-color: var(--blue); background: var(--blue-100); color: var(--blue-600); box-shadow: 0 4px 14px -6px rgb(42 78 239 / .5); }
.rbf__choice--checkbox input:checked + span::before { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.rbf__choice--radio input:checked + span::before { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 4px, #fff 5px); }
.rbf__choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.rbf__consent { position: relative; display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius); background: var(--grey-50); cursor: pointer; font-size: .94rem; }
.rbf__consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rbf__box { width: 22px; height: 22px; flex-shrink: 0; border: 2px solid #AAB3C3; border-radius: 7px; background: #fff center / 14px no-repeat; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.rbf__consent input:checked + .rbf__box { border-color: var(--blue); background-color: var(--blue); transform: scale(1.06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }
.rbf__consent input:focus-visible + .rbf__box { outline: 2px solid var(--blue); outline-offset: 2px; }

.rbf__drop { position: relative; display: grid; gap: .75rem; padding: 1.4rem; border: 2px dashed #C3CDF3; border-radius: var(--radius-lg); background: linear-gradient(180deg, #FAFBFF, #F1F4FF); text-align: center; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.rbf__drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.rbf__drop.has-files input[type=file] { height: 120px; }
.rbf__drop:hover, .rbf__drop:focus-within { border-color: var(--blue); }
.rbf__drop.is-over { border-color: var(--blue); background: var(--blue-100); transform: scale(1.01); }
.rbf__dropui { display: grid; justify-items: center; gap: .3rem; pointer-events: none; }
.rbf__dropicon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 10px 24px -10px rgb(42 78 239 / .7); transition: transform .3s var(--ease); }
.rbf__drop.is-over .rbf__dropicon { transform: translateY(-4px) scale(1.05); }
.rbf__dropui strong { color: var(--navy); font-size: .98rem; }
.rbf__dropui u { color: var(--blue); text-underline-offset: 3px; }
.rbf__dropui small { color: var(--muted); font-size: .8rem; }
.rbf__files { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; text-align: left; position: relative; z-index: 2; }
.rbf__files:empty { display: none; }
.rbf__file { display: flex; align-items: center; gap: .7rem; padding: .45rem .5rem; border-radius: 12px; background: #fff; border: 1px solid #E3E8F2; box-shadow: var(--shadow-sm); animation: rise .35s calc(var(--i, 0) * 40ms) var(--ease) both; }
.rbf__file img, .rbf__fileicon { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.rbf__fileicon { display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); font-size: .66rem; font-weight: 800; letter-spacing: .04em; }
.rbf__filename { flex: 1; min-width: 0; display: grid; font-size: .88rem; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbf__filename small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.rbf__remove { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--grey-100); color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.rbf__remove:hover { background: #FDECEC; color: var(--danger); }

.rbform__alert { margin: 1rem 0 0; font-weight: 700; color: var(--danger); }
.rbform__alert:empty { display: none; }
.rbform__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.rbform__submit { min-width: 180px; justify-content: center; }
.rbform__progress { flex: 1; min-width: 160px; height: 8px; border-radius: 8px; background: var(--grey-100); overflow: hidden; }
.rbform__progress[hidden] { display: none; }
.rbform__progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #7C93FF); transition: width .2s; }
.rbform .form-success { padding: 1.5rem 0 .5rem; }
.prose .rbform p { margin: 0; }
.prose .rbform h3 { margin-top: 0; }
.modal .rbform { margin: 1.5rem 0 0; box-shadow: none; }
@media (max-width: 560px) { .rbf--half { flex-basis: 100%; } .rbform__submit { width: 100%; } }

/* Multi-page forms */
.rbform__steps { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; gap: .5rem; counter-reset: none; overflow-x: auto; scrollbar-width: none; }
.rbform__steps li { display: flex; align-items: center; gap: .5rem; flex: 1 1 0; min-width: 0; font-size: .82rem; font-weight: 700; color: var(--muted); transition: color .3s; }
.rbform__steps li + li::before { content: ""; flex: 0 0 18px; height: 2px; background: var(--grey-300); border-radius: 2px; transition: background .3s; }
.rbform__stepno { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--grey-300); background: #fff; font-size: .8rem; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.rbform__steplabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbform__steps li.is-active { color: var(--navy); }
.rbform__steps li.is-active .rbform__stepno { border-color: var(--blue); background: var(--blue); color: #fff; transform: scale(1.08); box-shadow: 0 6px 16px -6px rgb(42 78 239 / .7); }
.rbform__steps li.is-done { color: var(--navy); }
.rbform__steps li.is-done .rbform__stepno { border-color: var(--navy); background: var(--navy); color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.rbform__steps li.is-done + li::before, .rbform__steps li.is-done + li.is-active::before { background: var(--navy); }
.rbform__bar { height: 4px; border-radius: 4px; background: var(--grey-100); margin-bottom: 1.4rem; overflow: hidden; }
.rbform__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--blue)); transition: width .5s var(--ease); }
.rbform__steptitle { flex: 1 1 100%; margin: 0 0 .1rem; font-size: 1.2rem; color: var(--navy); display: grid; gap: .1rem; }
.rbform__steptitle small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.rbform__back, .rbform__next { display: none; }
.rbform__back { background: var(--grey-100); color: var(--navy); }
.rbform__back:hover { background: var(--grey-300); }
.rbform__back svg { margin-right: .1rem; }
.js .rbform--steps .rbform__next { display: inline-flex; min-width: 160px; justify-content: center; }
.js .rbform--steps:not(.on-first) .rbform__back { display: inline-flex; }
.js .rbform--steps.on-last .rbform__next { display: none; }
.js .rbform--steps:not(.on-last) .rbform__submit { display: none; }
.js .rbform--steps .rbform__step:not(.is-active) { display: none; }
.js .rbform--steps .rbform__step.is-active { animation: stepIn .45s var(--ease); }
.rbform__step + .rbform__step { margin-top: 1.5rem; }
.js .rbform--steps .rbform__step + .rbform__step { margin-top: 0; }
.no-js .rbform__steps, .no-js .rbform__bar { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .rbform__steplabel { display: none; } .rbform__steps li.is-active .rbform__steplabel { display: inline; } .rbform__next, .rbform__back { flex: 1; } }
