:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #101b18;
  --panel-2: #14231f;
  --text: #eef6f2;
  --muted: #a8bbb4;
  --line: rgba(238, 246, 242, 0.14);
  --accent: #50d6c2;
  --accent-2: #ffcf7a;
  --danger: #ff7b7b;
  --ok: #78e08f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 15, 0.78);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 64px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.hero {
  min-height: 92svh;
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(7, 17, 15, 0.96) 0%, rgba(7, 17, 15, 0.72) 38%, rgba(7, 17, 15, 0.14) 100%);
}

.hero-content {
  max-width: 760px;
  padding: 23svh clamp(18px, 6vw, 80px) 10svh;
  position: relative;
  z-index: 1;
}

.eyebrow,
.label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  align-items: center;
  display: flex;
  gap: 10px;
}

.status-dot {
  background: var(--ok);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(120, 224, 143, 0.12);
  display: inline-block;
  height: 9px;
  width: 9px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.88;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  max-width: 650px;
}

.hero-actions,
.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 12px 18px;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06211d;
}

.button.secondary {
  background: rgba(238, 246, 242, 0.08);
  color: var(--text);
}

.band {
  background: #0c1815;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 32px);
}

.intro-band .section-inner {
  padding-bottom: 36px;
  padding-top: 36px;
}

.status-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 1fr 0.7fr;
}

.status-grid strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-top: 8px;
}

.progress-row {
  display: grid;
  gap: 10px;
}

.progress {
  background: rgba(238, 246, 242, 0.12);
  height: 8px;
  overflow: hidden;
}

.progress span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  display: block;
  height: 100%;
  width: 40%;
}

.split-section {
  display: grid;
  gap: clamp(36px, 7vw, 88px);
  grid-template-columns: 0.95fr 1.25fr;
}

.research-list,
.focus-list {
  display: grid;
  gap: 18px;
}

.research-list article,
.publication-card,
.deadline-card,
.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.research-list p,
.muted,
.publication-card p,
.deadline-card p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 760px;
}

.section-heading.compact h2 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

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

.publication-card {
  min-height: 250px;
}

.status-pill {
  border: 1px solid var(--line);
  color: var(--accent-2);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 5px 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-list span,
.focus-list li {
  background: rgba(80, 214, 194, 0.1);
  border: 1px solid rgba(80, 214, 194, 0.22);
  border-radius: 6px;
  color: #d8fffa;
  padding: 9px 11px;
}

.focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.deadline-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.contact-section {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-form {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 28px);
}

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

label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  background: rgba(238, 246, 242, 0.08);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 44px;
  padding: 12px;
}

textarea {
  resize: vertical;
}

#form-status {
  color: var(--muted);
  line-height: 1.4;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
}

.admin-body {
  padding-top: 64px;
}

.admin-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 48px 18px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.admin-panel pre {
  color: var(--muted);
  overflow-x: auto;
  white-space: pre-wrap;
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 64px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 0.82rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(7, 17, 15, 0.62) 0%, rgba(7, 17, 15, 0.95) 62%);
  }

  .hero-content {
    padding-top: 30svh;
  }

  .status-grid,
  .split-section,
  .card-grid,
  .deadline-list,
  .contact-section,
  .form-row,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    display: none;
  }

  .site-header {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  h1 {
    font-size: clamp(3.5rem, 20vw, 5.8rem);
  }

  .button {
    justify-content: center;
    width: 100%;
  }
}
