:root {
  --bg: #070d14;
  --panel: #101d2e;
  --panel-soft: #16263b;
  --line: rgba(162, 188, 220, 0.28);
  --text: #eaf1f9;
  --muted: #a4b8cf;
  --accent: #62d4ff;
  --accent-2: #72f0c2;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 78% -16%, rgba(93, 160, 228, 0.2), transparent 70%),
    radial-gradient(860px 460px at 8% 12%, rgba(114, 240, 194, 0.1), transparent 68%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  margin-top: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 16, 26, 0.82);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.topbar a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c6d9ec;
}

.hero {
  margin-top: 22px;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(14, 24, 37, 0.9), rgba(9, 17, 28, 0.88));
  box-shadow: 0 18px 38px rgba(2, 6, 13, 0.48);
}

.hero-media {
  height: 320px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-body {
  padding: 22px;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.hero h1 {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.18;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border-radius: 999px;
  border: 1px solid rgba(162, 188, 220, 0.35);
  padding: 4px 10px;
  color: #cfe0f1;
  font-size: 0.74rem;
}

.metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 11px;
}

.metric strong {
  display: block;
  font-size: 1.3rem;
  color: var(--accent-2);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.metric span {
  font-size: 0.78rem;
  color: var(--muted);
}

main {
  padding: 28px 0 60px;
  display: grid;
  gap: 14px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(15, 27, 41, 0.92), rgba(10, 18, 29, 0.84));
  box-shadow: 0 12px 28px rgba(2, 6, 13, 0.42);
  padding: 18px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.dual {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 8px;
  font-size: 0.75rem;
  color: #bcd0e7;
  background: rgba(6, 12, 21, 0.72);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.links a {
  border-radius: 999px;
  border: 1px solid rgba(162, 188, 220, 0.35);
  padding: 7px 11px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cde0f2;
}

.links a:hover {
  border-color: rgba(98, 212, 255, 0.6);
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related a {
  font-size: 0.8rem;
  color: #8fdfff;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .dual,
  .metrics,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-media {
    height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
