/* ==========================================================================
   DEMVR — Academic-Institutional Geodetic Research Portal
   Contract 28CI/2026 | PN-IV-P7-7.1-CI-2025-0112 (UEFISCDI)
   ========================================================================== */

:root {
  /* Archival Academic Palette */
  --bg-page: #FAF9F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F2F5F7;
  --bg-accent-soft: #EDF4F6;
  --bg-amber-soft: #FDF5EC;
  --bg-green-soft: #ECF7F1;

  --ink-primary: #0F2740;
  --ink-secondary: #2F4458;
  --ink-muted: #5A6B7B;
  --ink-light: #7D8C9A;

  --brand-navy: #0F2740;
  --brand-petrol: #1A566B;
  --brand-petrol-hover: #134253;
  --brand-amber: #B45A16;
  --brand-amber-bright: #D47824;
  --brand-green: #146C43;

  --border-hairline: #E3E0D6;
  --border-cool: #D7E1E8;
  --border-strong: #C5CFD7;

  --shadow-xs: 0 1px 2px rgba(15, 39, 64, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 39, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 39, 64, 0.08);
  --shadow-lg: 0 18px 42px rgba(15, 39, 64, 0.14);

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container-max: 1180px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-petrol);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--brand-amber);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink-primary);
  line-height: 1.2;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.012em;
}

p {
  margin-top: 0;
  color: var(--ink-secondary);
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reading progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-petrol), var(--brand-amber-bright));
  z-index: 1200;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Top Institutional Strip & Sticky Navigation
   ========================================================================== */
.top-strip {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  padding: 7px 0;
}

.top-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-strip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-amber-bright);
  flex-shrink: 0;
}

.top-strip code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #F4C48B;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink-primary);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 7px 11px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  transition: background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-navy);
  background: rgba(26, 86, 107, 0.09);
}

.nav-links a.active {
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* RO / EN Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-cool);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--brand-navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.lang-btn:not([aria-pressed="true"]):hover {
  color: var(--brand-navy);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--ink-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  padding: 12px 24px 20px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.mobile-drawer a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.mobile-drawer a:hover {
  background: var(--bg-subtle);
}

/* ==========================================================================
   Hero Section (Academic Editorial + Topographic Contours — ZERO patent graphics)
   ========================================================================== */
.hero {
  position: relative;
  padding: 58px 0 46px;
  border-bottom: 1px solid var(--border-hairline);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(26, 86, 107, 0.08), transparent 48%),
    radial-gradient(circle at 12% 85%, rgba(180, 90, 22, 0.06), transparent 45%),
    var(--bg-page);
}

.hero-contours {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  overflow: hidden;
}

.hero-contours svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 42px;
  align-items: start;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.badge-navy {
  background: var(--brand-navy);
  color: #FFFFFF;
}

.badge-petrol {
  background: var(--bg-accent-soft);
  color: var(--brand-petrol);
  border: 1px solid #C6DEE5;
}

.badge-green {
  background: var(--bg-green-soft);
  color: var(--brand-green);
  border: 1px solid #BDE3CE;
}

.badge-amber {
  background: var(--bg-amber-soft);
  color: var(--brand-amber);
  border: 1px solid #F0D2B2;
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.14;
  margin-bottom: 18px;
  color: var(--brand-navy);
}

.hero-title .highlight {
  color: var(--brand-petrol);
}

.hero-lead {
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ink-secondary);
  margin-bottom: 26px;
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--brand-navy);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-petrol);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--brand-navy);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--brand-petrol);
  color: var(--brand-petrol);
  background: var(--bg-accent-soft);
}

/* Official Identification Card in Hero Right */
.id-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-top: 4px solid var(--brand-navy);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.id-card-header {
  padding: 16px 22px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-cool);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.id-card-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-navy);
  margin: 0;
}

.id-list {
  margin: 0;
  padding: 8px 22px 16px;
}

.id-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #EFECE4;
  font-size: 0.86rem;
  align-items: baseline;
}

.id-row:last-child {
  border-bottom: none;
}

.id-row dt {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.id-row dd {
  margin: 0;
  color: var(--ink-primary);
  font-weight: 500;
}

.id-row dd strong {
  color: var(--brand-navy);
}

/* KPI Strip */
.kpi-strip {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.15;
  margin-bottom: 5px;
}

.kpi-value.accent-petrol { color: var(--brand-petrol); }
.kpi-value.accent-amber { color: var(--brand-amber); }
.kpi-value.accent-green { color: var(--brand-green); }

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 3px;
}

.kpi-note {
  font-size: 0.74rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Generic Section Layout
   ========================================================================== */
.section {
  padding: 74px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-petrol);
  margin-bottom: 10px;
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-amber);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--ink-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ==========================================================================
   Cards & Grid Helpers
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-xs);
}

.card-accent-top {
  border-top: 3px solid var(--brand-petrol);
}

.card-amber-top {
  border-top: 3px solid var(--brand-amber);
}

.card h3 {
  font-size: 1.24rem;
  margin-bottom: 10px;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-petrol);
  background: var(--bg-accent-soft);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ==========================================================================
   Section 01: Context Bars
   ========================================================================== */
.context-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 30px;
  align-items: start;
}

.stat-bars {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.stat-bar-item {
  display: grid;
  gap: 7px;
}

.stat-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.stat-bar-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.stat-bar-num {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.stat-bar-track {
  height: 11px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-cool);
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.fill-navy { background: linear-gradient(90deg, #153554, #1A566B); }
.fill-amber { background: linear-gradient(90deg, #B45A16, #DC822D); }
.fill-crimson { background: linear-gradient(90deg, #9B2C2C, #C53D3D); }

.source-caption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-green);
  font-weight: 700;
}

/* ==========================================================================
   Section 02: Methodology Pipeline
   ========================================================================== */
.pipeline {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pipeline-step {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pipeline-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-amber);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.pipeline-step h4 {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--brand-navy);
}

.pipeline-step p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Tabs UI (Results & Deliverables)
   ========================================================================== */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 12px;
}

.tab-btn {
  border: 1px solid var(--border-cool);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s ease;
}

.tab-btn:hover {
  border-color: var(--brand-petrol);
  color: var(--brand-navy);
}

.tab-btn[aria-selected="true"] {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.24s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Figures, Field Photos & 3D DEM Gallery
   ========================================================================== */
.figure-grid-4 {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr 0.85fr 0.85fr;
  gap: 16px;
  margin-top: 22px;
}

.figure-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.figure-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.figure-card {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.figure-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.figure-media {
  position: relative;
  background: #F7F8FA;
  cursor: zoom-in;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figure-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.figure-media.contain img {
  object-fit: contain;
  padding: 10px;
  background: #FFFFFF;
}

.figure-media.chart-tall img {
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: #FFFFFF;
  padding: 12px;
}

.figure-card:hover .figure-media img {
  transform: scale(1.02);
}

.zoom-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(15, 39, 64, 0.82);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
}

.figure-card figcaption {
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  border-top: 1px solid var(--border-hairline);
  line-height: 1.45;
  flex: 1;
}

.figure-card figcaption strong {
  color: var(--brand-navy);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  margin-right: 4px;
}

/* Metrics Pill Row inside Result Tabs */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.metric-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-cool);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.metric-box-val {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.metric-box-lbl {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Tables (Academic Clean Styling)
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table thead th {
  background: var(--bg-subtle);
  color: var(--brand-navy);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 16px;
  border-bottom: 2px solid var(--border-cool);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #EFECE4;
  color: var(--ink-secondary);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #FCFBF8;
}

.data-table tr.row-total td {
  background: var(--bg-accent-soft);
  color: var(--brand-navy);
  font-weight: 700;
  border-top: 2px solid var(--brand-petrol);
}

.data-table tr.row-sub td:first-child {
  padding-left: 30px;
}

.num-col {
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-green-soft);
  color: var(--brand-green);
  white-space: nowrap;
}

.status-pill::before {
  content: "●";
  font-size: 0.55rem;
}

/* ==========================================================================
   Activities Cards (A1 - A8)
   ========================================================================== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.activity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.activity-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-amber);
  background: var(--bg-amber-soft);
  border: 1px solid #F0D2B2;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.activity-card h4 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.activity-card p {
  font-size: 0.87rem;
  margin: 0;
  line-height: 1.58;
}

/* ==========================================================================
   Section 05: Intellectual Property (Strictly OSIM-Safe Notice)
   ========================================================================== */
.ip-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-cool);
  border-left: 5px solid var(--brand-amber);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.ip-title-box {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 14px 0 16px;
}

.ip-title-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.ip-title-text {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.ip-reg-box {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.ip-reg-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 6px;
}

.ip-reg-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #F4C48B;
  margin-bottom: 10px;
}

.ip-reg-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

.osim-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.83rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   Section 06: Dissemination & Valorization
   ========================================================================== */
.timeline-list {
  display: grid;
  gap: 16px;
}

.timeline-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-petrol);
  background: var(--bg-accent-soft);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.timeline-item h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.88rem;
  margin: 0;
}

.citation-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg-page);
  border-left: 3px solid var(--brand-petrol);
  font-size: 0.83rem;
  color: var(--ink-primary);
  border-radius: 0 4px 4px 0;
}

.domains-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.domain-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-cool);
  color: var(--brand-navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   Section 07: Partners & Research Team
   ========================================================================== */
.researcher-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.researcher-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar.alt {
  background: var(--brand-petrol);
}

.researcher-name {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.researcher-role {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-petrol);
}

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

.r-stat {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-cool);
  color: var(--ink-primary);
  padding: 4px 9px;
  border-radius: 4px;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.equip-item {
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.83rem;
}

.equip-item strong {
  display: block;
  color: var(--brand-navy);
  margin-bottom: 3px;
}

/* ==========================================================================
   Section 08: Budget Visual & Footer
   ========================================================================== */
.budget-split {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.budget-bar {
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 14px;
  background: var(--bg-subtle);
}

.budget-bar-public {
  width: 90%;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-petrol));
}

.budget-bar-private {
  width: 10%;
  background: var(--brand-amber-bright);
}

.budget-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.site-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.84);
  padding: 50px 0 34px;
  font-size: 0.87rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #F4C48B;
  margin-bottom: 12px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
  line-height: 1.6;
}

.site-footer a {
  color: #A8DCE8;
}

.site-footer a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.66);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 24, 38, 0.9);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1020px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--brand-navy);
  color: #FFFFFF;
  gap: 16px;
}

.lightbox-caption {
  font-size: 0.88rem;
  font-weight: 500;
}

.lightbox-close {
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

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

.lightbox-body {
  padding: 16px;
  background: #F4F6F8;
  display: flex;
  justify-content: center;
  max-height: 78vh;
  overflow: auto;
}

.lightbox-body img {
  max-height: 72vh;
  width: auto;
  border-radius: 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid,
  .context-layout,
  .ip-banner {
    grid-template-columns: 1fr;
  }
  .kpi-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .figure-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 52px 0;
  }
  .kpi-strip,
  .grid-2,
  .grid-3,
  .grid-4,
  .activities-grid,
  .metric-row,
  .equip-grid,
  .figure-grid-3,
  .figure-grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .pipeline,
  .figure-grid-4 {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .timeline-date {
    width: fit-content;
  }
  .id-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .ip-banner {
    padding: 22px 20px;
  }
}

/* Print Styles (Clean PDF export for UEFISCDI dossier) */
@media print {
  .site-header,
  .scroll-progress,
  .hero-actions,
  .tabs-bar,
  .zoom-pill,
  .lightbox {
    display: none !important;
  }
  .tab-panel {
    display: block !important;
    margin-bottom: 24px;
  }
  body {
    background: #FFFFFF;
  }
  .section {
    padding: 24px 0;
    break-inside: avoid;
  }
}
