/* Brand colors from the Aeternus mark: blue #1695D3, orange #F2974D, green #71AF41.
   Those three fail WCAG AA as small text on white, so interface text and buttons
   use --blue-ink, a darker step of the same blue. The logo keeps the brand colors. */

:root {
  --blue: #1695d3;
  --blue-ink: #0c5e86;
  --blue-ink-hover: #0a557a;
  --orange: #f2974d;
  --green: #71af41;
  --ink: #102833;
  --body: #243e4c;
  --muted: #3a5160;
  --paper: #ffffff;
  --mist: #f4f8fb;
  --line: #d3e2eb;
  --deep: #0e2a3a;
  --on-deep: #e6f2f8;
  --wrap: 1120px;
  --font: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --header: 4.5rem;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 450;
  color: var(--body);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

p { text-wrap: pretty; }

a { color: var(--blue-ink); text-underline-offset: 0.16em; }
a:visited { color: var(--blue-ink); }
a:hover { color: var(--blue-ink-hover); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--blue-ink);
  outline-offset: 3px;
}

::selection { background: #d4edf8; color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
}
.skip:focus { top: 0.75rem; color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}
@media (min-width: 720px) {
  .wrap { width: min(var(--wrap), calc(100% - 3rem)); }
}

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

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.band-deep .eyebrow { color: #d7eef8; }

section[id] { scroll-margin-top: 5.75rem; }

.lede {
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--body);
}

.section { padding: 4rem 0; }
.band-mist { background: var(--mist); }
.band-deep { background: var(--deep); color: var(--on-deep); }
.band-deep h2 { color: #fff; }
.band-deep .lede,
.band-deep .note { color: var(--on-deep); }
h2 + .lede { margin-top: 1rem; }

@media (min-width: 900px) {
  .section { padding: 5.5rem 0; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0 33.33%, var(--blue) 33.33% 66.66%, var(--orange) 66.66% 100%);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  position: relative;
}

.logo { display: flex; align-items: center; min-width: 0; text-decoration: none; }
.logo img {
  width: min(262px, calc(100vw - 11rem));
  height: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.nav-bars {
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 630;
  font-size: 0.98rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:visited { color: var(--ink); }
.site-nav a:hover { color: var(--blue-ink); }
.nav-apply,
.nav-apply:visited {
  background: var(--blue-ink);
  color: #fff !important;
  border-radius: 8px;
  padding: 0 0.9rem;
}
.nav-apply:hover { background: var(--blue-ink-hover); color: #fff !important; }

@media (max-width: 879px) {
  .header-bar { flex-wrap: wrap; }
  .js .header-bar { flex-wrap: nowrap; }
  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
    padding: 0 0 0.85rem;
    gap: 0.15rem 1rem;
  }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-basis: auto;
    margin: 0;
    padding: 0.4rem 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(16, 40, 51, 0.08);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 0 0.15rem; min-height: 48px; }
  .js .nav-apply { justify-content: center; margin-top: 0.35rem; }
}

.hero { padding: 2.75rem 0 3.25rem; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy { display: grid; gap: 1.15rem; justify-items: start; }
.hero-copy h1 { max-width: 14ch; }
.hero-mark {
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at 50% 46%, #e7f4fa 0%, rgba(255, 255, 255, 0) 68%);
}
.hero-mark img { width: min(240px, 68vw); height: auto; }

@media (min-width: 900px) {
  .hero { padding: 4.75rem 0 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr); gap: 3rem; }
  .hero-mark img { width: min(300px, 100%); }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 680;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary,
.btn-primary:visited { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: var(--blue-ink-hover); color: #fff; }
.btn-secondary,
.btn-secondary:visited { background: transparent; color: var(--blue-ink); border-color: var(--blue-ink); }
.btn-secondary:hover { background: #e7f3f8; color: var(--blue-ink-hover); }
.actions .btn { flex: 1 1 12rem; }
@media (min-width: 640px) {
  .actions .btn { flex: 0 0 auto; }
}

.stack { display: grid; gap: 1rem; }
.stack h2 { max-width: 18ch; }

.steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.steps li {
  background: var(--mist);
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.4rem;
}
.steps li:nth-child(1) { border-top-color: var(--green); }
.steps li:nth-child(2) { border-top-color: var(--blue); }
.steps li:nth-child(3) { border-top-color: var(--orange); }
.band-mist .steps li { background: #fff; }
.step-index {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-ink);
}
.steps h3 { margin-bottom: 0.45rem; }
.steps p { color: var(--body); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.more { margin-top: 1.35rem; font-weight: 630; }

.cand-layout { display: grid; gap: 1.5rem; }
.apply-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 16px;
  padding: 1.35rem 1.3rem 1.45rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.apply-card h3 { font-size: 1.45rem; }
.apply-card .btn { width: 100%; }
.apply-url { font-size: 0.98rem; overflow-wrap: anywhere; font-weight: 650; }
.apply-alt { color: var(--muted); font-size: 0.98rem; }

@media (min-width: 900px) {
  .cand-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
    grid-template-areas:
      "intro card"
      "steps card";
    column-gap: 2.5rem;
    row-gap: 1.75rem;
    align-items: start;
  }
  .cand-intro { grid-area: intro; }
  .cand-layout .steps { grid-area: steps; margin-top: 0; }
  .apply-card { grid-area: card; position: sticky; top: 6.2rem; }
}

.stats {
  display: grid;
  gap: 1.75rem;
  margin: 2.25rem 0 1.5rem;
}
.stat-rule {
  display: block;
  width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.rule-green { background: var(--green); }
.rule-blue { background: var(--blue); }
.rule-orange { background: var(--orange); }
.stat dd {
  font-size: clamp(2.8rem, 6vw, 4.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat dt {
  margin-top: 0.7rem;
  font-size: 1.02rem;
  font-weight: 630;
  color: var(--on-deep);
}
.note { max-width: 42rem; }

@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.18); padding-left: 1.75rem; }
  .stat { padding-right: 1rem; }
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.about-copy { display: grid; gap: 1rem; max-width: 40rem; }
.facts {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--mist);
  overflow: hidden;
}
.facts div {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--line);
}
.facts div:first-child { border-top: 0; }
.facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-ink);
}
.facts dd { margin: 0; color: var(--ink); font-weight: 640; }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: 3.5rem; }
}

.contact-block { display: grid; gap: 1rem; max-width: 40rem; }
.contact-mail {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 730;
  letter-spacing: -0.03em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
}
.contact-meta { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 2.4rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-name { margin-top: 0.85rem; color: var(--ink); font-weight: 700; }
.footer-meta { color: var(--muted); margin-top: 0.2rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-content: start;
}
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 630; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:visited { color: var(--ink); }
.footer-nav a:hover { color: var(--blue-ink); }
.fine {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-logo img { width: 230px; max-width: 70vw; height: auto; }

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 2rem; }
  .footer-nav { justify-content: flex-end; flex-wrap: nowrap; }
}

.page-miss { padding: 4.5rem 0 6rem; }
.page-miss .wrap { display: grid; gap: 1rem; justify-items: start; }
.page-miss h1 { max-width: 16ch; }
.page-miss .btn { margin-top: 0.5rem; }

.band-deep :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .nav-toggle, .brand-bar, .skip { display: none !important; }
  .site-header { position: static; }
  .site-nav { display: flex !important; position: static !important; box-shadow: none !important; }
  .band-deep, .band-deep h2, .band-deep .lede, .band-deep .note, .stat dd, .stat dt {
    background: #fff !important;
    color: #000 !important;
  }
  a { text-decoration: underline; }
}
