@font-face {
  font-family: Inter;
  src: url("./inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f9fcff;
  --muted: #deedf9;
  --accent: #fcdd2b;
  --accent-hover: #fff176;
  --on-accent: #082742;
  --line: #3d6995;
  --section-surface: #0c3e6c;
  --surface: #114778;
  --night: #0a3157;
  --radius: 1.25rem;
  --shadow: 0 10px 26px rgb(3 22 43 / 16%);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--night);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
:where(section[id]) { scroll-margin-top: 1rem; }

.container {
  width: min(100% - var(--gutter) * 2, 71rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: .75rem auto auto .75rem;
  padding: .55rem .9rem;
  transform: translateY(calc(-100% - 1rem));
  border-radius: .5rem;
  color: var(--on-accent);
  background: var(--accent-hover);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: #0e4e87;
}

.header-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .72rem;
  margin-right: auto;
  white-space: nowrap;
}
.brand-symbol {
  width: clamp(2.6875rem, 4.8vw, 3.875rem);
  height: auto;
}
.brand-name {
  position: relative;
  padding-inline-start: .72rem;
  border-inline-start: 1px solid rgb(226 243 255 / 44%);
  color: var(--ink);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 770;
  line-height: 1.36;
  letter-spacing: -.046em;
}
.brand-name > span { color: var(--accent); }
.brand-name sup {
  margin-inline-start: .23em;
  font-size: .43em;
  letter-spacing: 0;
  vertical-align: super;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.9vw, 2.3rem);
  font-size: .9rem;
  font-weight: 550;
  color: var(--muted);
}
.header-nav a { display: flex; min-height: 2.75rem; align-items: center; }
.header-nav a:hover { color: var(--accent-hover); }

.language {
  display: inline-grid;
  min-width: 2.9rem;
  min-height: 2.75rem;
  place-items: center;
  padding: 0 .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 255 255 / 6%);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
}
.language:hover { border-color: var(--accent); background: #18578e; color: var(--accent-hover); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 82% 76%, rgb(31 114 181 / 45%), transparent 58%),
    linear-gradient(125deg, #0c4171 8%, #155489 73%, #0e4e87 100%);
}
.hero::after {
  position: absolute;
  z-index: -1;
  top: 1.55rem;
  right: max(var(--gutter), calc((100% - 71rem) / 2));
  width: 6.2rem;
  height: 3.7rem;
  background: radial-gradient(circle, #a8d8ff 1.4px, transparent 2px) 0 0 / .92rem .92rem;
  opacity: .43;
  content: "";
}
.hero-inner {
  display: grid;
  min-height: 33rem;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(.75rem, 2.1vw, 1.65rem);
  padding-block: 2.1rem 1.8rem;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(3.35rem, 6.45vw, 5.45rem);
  font-weight: 795;
  line-height: 1.01;
  letter-spacing: -.067em;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent); }
.hero p {
  max-width: 30rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.23rem);
  line-height: 1.55;
}
.hero .button { margin-top: 1.65rem; }

.button {
  display: inline-flex;
  min-height: 3.4rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: .64rem;
  padding: .7rem 1.24rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 7px 22px rgb(4 30 56 / 30%);
  color: var(--on-accent);
  font-size: 1.01rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.button svg { flex: 0 0 auto; }
.button:hover { background: var(--accent-hover); box-shadow: 0 8px 25px rgb(4 30 56 / 40%); }

.hero-art {
  display: block;
  width: 100%;
  max-width: 35.625rem;
  margin-inline: auto;
}
.hero-art img { width: 100%; height: auto; }

.section { padding-block: clamp(2.65rem, 4.8vw, 4rem); }
.section h2 {
  font-size: clamp(1.85rem, 4.1vw, 3.4rem);
  font-weight: 745;
  line-height: 1.12;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.stage-grid, .project-grid {
  display: grid;
  gap: clamp(.8rem, 1.65vw, 1.3rem);
  margin-top: 1.75rem;
}
.stage-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stage {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stage-icon {
  position: relative;
  display: block;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 1rem;
  border-radius: .72rem;
  background: #15588f;
}
.stage-icon::before {
  position: absolute;
  inset: 0;
  background: var(--accent);
  mask: url("./stages.png") var(--icon-position) 50% / auto 2.65rem no-repeat;
  content: "";
}
.stage-icon-idea { --icon-position: 0%; }
.stage-icon-launch { --icon-position: 33.333%; }
.stage-icon-grow { --icon-position: 66.667%; }
.stage-icon-invest { --icon-position: 100%; }

.stage h3, .project h3 {
  font-size: 1.16rem;
  font-weight: 725;
  line-height: 1.25;
  letter-spacing: -.034em;
}
.stage p, .project p {
  margin-top: .48rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.ecosystem {
  border-block: 1px solid var(--line);
  background: var(--section-surface);
}

.project-grid {
  --columns: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(.85rem, 1.6vw, 1.15rem);
  --project-gap: clamp(.85rem, 1.6vw, 1.15rem);
}
.project-grid > li {
  flex: 0 0 calc((100% - (var(--columns) - 1) * var(--project-gap)) / var(--columns));
  min-width: 0;
}
.project {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.project:hover {
  border-color: #78a8d2;
  box-shadow: 0 13px 32px rgb(3 22 43 / 32%);
}
.project-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: var(--media-bg);
}
.project-media img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 94%;
  margin: auto;
  object-fit: contain;
}
.media-contain img { max-width: 89%; max-height: 89%; }
.media-cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: var(--media-position);
}
.media-brand {
  padding: .9rem;
  color: #174f81;
  background: linear-gradient(120deg, #f1f7fc, #daecf8);
  text-align: center;
}
.media-brand span {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 760;
  letter-spacing: -.045em;
}
.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.02rem 1.15rem;
}
.project h3 { font-size: 1.16rem; overflow-wrap: anywhere; }
.project-action {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin-top: auto;
  padding-top: .55rem;
  color: var(--accent);
  font-size: .91rem;
  font-weight: 670;
}
.project:hover .project-action { text-decoration: underline; text-underline-offset: .24em; }
.project :is(.project-funding, .project-note) {
  margin-top: auto;
  padding-top: .55rem;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 725;
  line-height: 1.35;
}
:is(.project-funding, .project-note) + .project-action {
  margin-top: 0;
  padding-top: .2rem;
}

.closing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.65rem 2rem;
  padding: clamp(2.1rem, 5vw, 4rem);
  border: 1px solid #4875a0;
  border-radius: calc(var(--radius) + .3rem);
  background: linear-gradient(114deg, #103f6f 8%, #15558b 100%);
}
.closing-panel .button { flex-shrink: 0; }

@media (max-width: 60rem) {
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 50rem) {
  .hero-inner { min-height: 26rem; gap: .65rem; }
  .hero h1 { font-size: clamp(2.65rem, 6.65vw, 3.65rem); }
  .project-copy { padding-inline: 1rem; }
}

@media (max-width: 42rem) {
  .header-nav { display: none; }
  .header-inner { min-height: 4.25rem; }
  .hero::after { top: .85rem; width: 4rem; height: 2.6rem; opacity: .3; }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: .45rem;
    padding-block: 2.1rem .55rem;
  }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 4.3rem); }
  .hero p { margin-top: 1.08rem; }
  .hero .button { margin-top: 1.25rem; }
  .hero-art { max-width: 32.5rem; }
  .project-copy { padding-inline: 1.25rem; }
  .closing-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 32rem) {
  .stage-grid { grid-template-columns: minmax(0, 1fr); gap: .72rem; }
  .stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .85rem;
    padding: 1.05rem;
  }
  .stage-icon { margin-bottom: 0; }
  .stage p { margin-top: .25rem; }
  .stage-grid, .project-grid { margin-top: 1.35rem; }
  .closing-panel { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

.catalog-status { margin-top: 1rem; color: var(--muted); }
.project-grid:empty { display: none; }
.closing { padding-block: clamp(2.6rem, 5vw, 3.75rem); }
.closing-panel { padding: clamp(1.65rem, 4.4vw, 3.25rem); }

.site-footer { border-top: 1px solid var(--line); background: #0b3961; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .15rem 1.35rem;
  padding-block: .85rem;
  color: var(--muted);
  font-size: .91rem;
}
.footer-inner a, .back-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--accent-hover);
  font-weight: 620;
}
.footer-inner a:hover, .back-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.back-link { font-size: .9rem; }
.legal { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.legal-inner { max-width: 46rem; }
.legal h1 {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  line-height: 1.03;
  font-weight: 765;
  letter-spacing: -.065em;
}
.legal h2 { margin-top: 1.65rem; font-size: 1.32rem; line-height: 1.3; letter-spacing: -.03em; }
.legal p { margin-top: .65rem; color: var(--muted); }
.legal-date { margin-bottom: 1.8rem; font-size: .92rem; }
.legal p a { color: var(--accent-hover); text-decoration: underline; text-underline-offset: .19em; }
@media (max-width: 61.875rem) { .project-grid { --columns: 3; } }
@media (max-width: 48rem) { .project-grid { --columns: 2; } }
@media (max-width: 33.75rem) {
  .project-grid { --columns: 1; }
  .closing-panel { padding: 1.45rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 0; }
  .back-link { font-size: .84rem; }
  .header-inner { gap: .75rem; }
}

.media-unavailable::before {
  content: attr(data-brand);
  padding: .9rem;
  color: #174f81;
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  font-weight: 740;
}
.project-media:not(.media-cover) img { max-width: min(89%, var(--native-width, 100%)); }

.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.install {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--accent-hover);
  background: transparent;
  cursor: pointer;
  font-weight: 620;
}
.install:hover { text-decoration: underline; text-underline-offset: .22em; }

/* Balance the final two rows when a single card would otherwise sit alone. */
@media (min-width: 61.876rem) {
  .project-grid:has(> li:nth-child(4n + 1):last-child):has(> li:nth-child(5)) > li:nth-last-child(-n + 5) {
    flex-basis: calc((100% - 2 * var(--project-gap)) / 3);
  }
}
@media (min-width: 48.001rem) and (max-width: 61.875rem) {
  .project-grid:has(> li:nth-child(3n + 1):last-child):has(> li:nth-child(4)) > li:nth-last-child(-n + 4) {
    flex-basis: calc((100% - var(--project-gap)) / 2);
  }
}

