:root {
  --ocra-blue: #0f73b8;
  --ocra-blue-deep: #0d4f7d;
  --ocra-sky: #dff1fb;
  --ocra-ink: #18364d;
  --ocra-muted: #657b8d;
  --ocra-cream: #f8f4ec;
  --ocra-paper: #fffefd;
  --ocra-line: rgba(15, 115, 184, 0.12);
  --ocra-shadow: 0 18px 48px rgba(16, 64, 100, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ocra-ink);
  background:
    radial-gradient(circle at top left, rgba(197, 229, 248, 0.8), transparent 28%),
    linear-gradient(180deg, #f4fbff 0%, #fbfaf6 22%, #ffffff 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header,
.section,
.site-footer {
  padding-inline: clamp(1.25rem, 2vw, 2rem);
}

.site-header {
  max-width: var(--content-width);
  margin: 1rem auto 0;
  padding: 0.85rem 1.35rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  position: relative;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 115, 184, 0.1);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(18, 72, 110, 0.08);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.partner-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
  grid-column: 3;
}

.partner-links a {
  display: inline-flex;
  align-items: center;
}

.partner-links img {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.partner-links .crs4-logo {
  height: 26px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.95rem;
  grid-column: 2;
  justify-content: center;
}

.top-nav a {
  text-decoration: none;
  color: var(--ocra-blue-deep);
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.top-nav a:hover {
  color: var(--ocra-blue);
  background: rgba(15, 115, 184, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 115, 184, 0.08);
}

.hero,
.section > * ,
.site-footer > * {
  max-width: var(--content-width);
  margin-inline: auto;
}

.hero {
  padding: 4.25rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocra-blue);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-family: "Segoe UI Variable", "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  max-width: none;
}

h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  max-width: none;
}

h3 {
  font-size: 1.18rem;
}

.hero-lead,
.prose-grid p,
.info-card p,
.timeline-step p,
.echoes-callout p,
.footer-project-note p,
.footer-eu-band p {
  line-height: 1.7;
}

.hero-lead {
  margin: 1.3rem 0 0;
  font-size: 1.12rem;
  max-width: 58ch;
  color: var(--ocra-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ocra-blue) 0%, #3ea2d6 100%);
  box-shadow: 0 14px 30px rgba(15, 115, 184, 0.2);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(15, 115, 184, 0.26);
}

.button-secondary {
  color: var(--ocra-blue-deep);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 115, 184, 0.14);
}

.button-secondary:hover {
  background: #ffffff;
}

.hero-metrics {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-metrics li {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--ocra-line);
  box-shadow: var(--ocra-shadow);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 0.35rem;
}

.hero-metrics span {
  font-size: 0.92rem;
  color: var(--ocra-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-figure,
.showcase-card {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ocra-paper);
  border: 1px solid rgba(15, 115, 184, 0.1);
  box-shadow: var(--ocra-shadow);
}

.hero-figure-large img,
.hero-video {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: contain;
  background: linear-gradient(180deg, #f3fbff 0%, #f8f5ed 100%);
}

.hero-video {
  display: block;
}

.hero-figure figcaption,
.showcase-card figcaption {
  padding: 1rem 1.15rem 1.15rem;
  font-size: 0.95rem;
  color: var(--ocra-muted);
  background: rgba(255, 253, 250, 0.98);
}

.section {
  padding-block: 4rem;
}

.section-heading {
  margin-bottom: 1.6rem;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.annotation-model-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.8rem;
  align-items: center;
}

.annotation-model-copy p {
  margin-top: 0;
  color: var(--ocra-muted);
  line-height: 1.75;
}

.annotation-model-figure {
  margin: 0;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 251, 255, 0.98) 100%);
  border: 1px solid var(--ocra-line);
  box-shadow: var(--ocra-shadow);
}

.annotation-model-figure img {
  width: 100%;
  height: auto;
}

.annotation-model-figure figcaption {
  margin-top: 1rem;
  color: var(--ocra-muted);
  line-height: 1.6;
}

.prose-grid p {
  margin-top: 0;
  font-size: 1rem;
  color: var(--ocra-muted);
}

.section-tinted > *:not(.section-heading) {
  position: relative;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 252, 255, 0.95) 100%);
  border: 1px solid var(--ocra-line);
  box-shadow: var(--ocra-shadow);
}

.info-card p {
  margin: 0.8rem 0 0;
  color: var(--ocra-muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-card img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.media-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-lightbox-trigger img,
.media-lightbox-trigger video {
  width: 100%;
  transition: transform 180ms ease;
}

.media-lightbox-trigger:hover img,
.media-lightbox-trigger:hover video {
  transform: scale(1.01);
}

.video-trigger {
  cursor: pointer;
}

.video-trigger:hover video {
  transform: none;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.timeline-step {
  position: relative;
  min-height: 100%;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f4fafe 100%);
  border: 1px solid var(--ocra-line);
}

.timeline-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--ocra-blue-deep);
  color: white;
  font-weight: 700;
}

.timeline-step p {
  color: var(--ocra-muted);
}

.section-contrast > * {
  border-radius: var(--radius-xl);
}

.prose-grid-contrast,
.echoes-callout {
  background: linear-gradient(180deg, rgba(235, 246, 252, 0.95) 0%, rgba(248, 251, 253, 0.98) 100%);
  color: var(--ocra-ink);
  border: 1px solid rgba(15, 115, 184, 0.1);
}

.prose-grid-contrast {
  padding: 2rem;
}

.prose-grid-contrast p {
  color: var(--ocra-muted);
}

.echoes-callout {
  margin-top: 1rem;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.echoes-callout p {
  margin: 0;
}

.echoes-callout a {
  color: var(--ocra-blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  padding-top: 5rem;
  padding-bottom: 0;
}

.footer-project-note {
  text-align: center;
  padding: 0 2rem 1.8rem;
  max-width: 820px;
}

.footer-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocra-blue);
}

.footer-project-note p:last-child {
  margin: 0;
  color: var(--ocra-muted);
}

.footer-eu-band {
  padding: 1rem 2rem 1.3rem;
  background: linear-gradient(180deg, #eef8fc 0%, #f8fbfd 100%);
  color: var(--ocra-ink);
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr minmax(110px, 170px);
  gap: 1.2rem;
  align-items: center;
  border-top: 1px solid rgba(15, 115, 184, 0.1);
}

.footer-eu-band p {
  margin: 0;
  font-size: 0.92rem;
  text-align: center;
}

.footer-eu-band img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0.9rem 1.2rem;
    gap: 0.8rem;
  }

  .brand-lockup {
    width: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .partner-links {
    justify-content: flex-end;
    justify-self: end;
    flex-wrap: nowrap;
  }

  .top-nav {
    justify-content: center;
    grid-column: 1 / -1;
  }
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(4, 18, 30, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  width: min(94vw, 1500px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lightbox-image {
  width: 100%;
  max-height: calc(92vh - 5rem);
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-video {
  width: 100%;
  max-height: calc(92vh - 5rem);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1080px) {
  .hero,
  .two-column,
  .annotation-model-layout,
  .timeline,
  .card-grid,
  .footer-eu-band {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .echoes-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-eu-band img {
    margin-inline: auto;
    max-width: 160px;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 0.8rem 1rem;
    gap: 0.65rem;
  }

  .brand-logo {
    height: 38px;
  }

  .partner-links {
    gap: 0.7rem;
  }

  .partner-links img {
    height: 26px;
  }

  .top-nav {
    gap: 0.2rem;
    font-size: 0.84rem;
  }

  .top-nav a {
    padding: 0.48rem 0.6rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .brand-lockup {
    width: auto;
  }

  .partner-links {
    margin-left: 0;
    gap: 0.65rem;
    flex-wrap: nowrap;
  }

  .partner-links img {
    height: 22px;
  }

  .brand-logo {
    height: 34px;
  }

  .top-nav {
    font-size: 0.8rem;
  }

  .top-nav a {
    padding: 0.42rem 0.52rem;
  }

  .hero,
  .section,
  .site-footer {
    padding-inline: 1rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .section {
    padding-block: 2.4rem;
  }

  .hero-figure-large img {
    aspect-ratio: 16 / 11;
  }

  .echoes-callout a {
    white-space: normal;
    word-break: break-word;
  }
}
