/* ─── R&D PAGE ──────────────────────────────────────── */

/* Reuse shared nav from style.css — just add the active state */
.nav-active {
  color: var(--white) !important;
}

/* ─── HERO ──────────────────────────────────────────── */
.rd-hero {
  position: relative;
  padding: 180px 48px 120px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.rd-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 30% 40%, #0d1520 0%, transparent 60%),
    linear-gradient(170deg, #0a0e18 0%, #080808 50%);
}
.rd-hero-body {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}
.rd-hero-body h1 {
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
  max-width: 700px;
}
.rd-hero-body p {
  font-size: 17px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.75;
  max-width: 560px;
}

/* ─── PROJECT SECTION ───────────────────────────────── */
.rd-project {
  border-bottom: 1px solid var(--border);
}
.rd-project-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
}
.rd-project-header {
  margin-bottom: 72px;
  max-width: 800px;
}
.rd-project-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 24px 0 12px;
}
.rd-project-de {
  font-size: 14px;
  color: var(--dim);
  font-weight: 300;
}

.rd-project-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}

.rd-project-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rd-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.rd-detail-row:first-child { padding-top: 0; }
.rd-detail-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.rd-detail-row span:last-child,
.rd-detail-row a {
  font-size: 14px;
  font-weight: 400;
  color: var(--light);
}
.rd-detail-row a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 1px;
  display: inline-block;
  transition: border-color 0.2s;
}
.rd-detail-row a:hover { border-color: var(--mid); }

.rd-project-desc p {
  font-size: 15px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 24px;
}
.rd-project-desc p:last-child { margin-bottom: 0; }

@media (max-width: 800px) {
  .rd-project-grid { grid-template-columns: 1fr; gap: 48px; }
  .rd-project-inner { padding: 72px 24px; }
  .rd-hero { padding: 140px 24px 80px; }
}

/* ─── POSTER SECTION ────────────────────────────────── */
.rd-poster-section {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}
.rd-poster-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
}
.rd-poster-note {
  font-size: 13px;
  color: var(--dim);
  margin: 12px 0 48px;
  font-weight: 300;
}
.rd-poster-embed {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 7;
}
.rd-poster-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.poster-download {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #333;
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.poster-download:hover { border-color: var(--mid); }

@media (max-width: 800px) {
  .rd-poster-inner { padding: 72px 24px; }
  .rd-poster-embed { aspect-ratio: 4 / 3; }
}

/* ─── FUNDING ACKNOWLEDGMENT ────────────────────────── */
.rd-funding {
  border-bottom: 1px solid var(--border);
}
.rd-funding-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.rd-funding-text {
  font-size: 13px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.8;
  max-width: 720px;
}
.rd-funding-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.rd-funding-logos img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0.9);
}

@media (max-width: 640px) {
  .rd-funding-inner { padding: 48px 24px; }
  .rd-funding-logos { gap: 32px; }
  .rd-funding-logos img { height: 36px; }
}

/* Poster: whole poster visible without scrolling */
.rd-poster-embed { aspect-ratio: auto; display: flex; justify-content: center; background: transparent; border: none; }
.rd-poster-embed img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 220px); border: 1px solid var(--border); background: #fff; }
@media (max-width: 800px) { .rd-poster-embed { aspect-ratio: auto; } .rd-poster-embed img { max-height: none; width: 100%; } }
