:root {
  --bg-obsidian: #090d16;
  --surface-pcb: #111827;
  --surface-alt: #0d1322;
  --border-trace: rgba(241, 245, 249, 0.13);
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --copper: #f59e0b;
  --text-white: #f1f5f9;
  --text-slate: #cbd5e1;
  --text-dim: #94a3b8;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald);
  color: var(--bg-obsidian);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* PCB Topbar */
.pcb-topbar {
  background: #05080f;
  border-bottom: 1px solid var(--border-trace);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.55rem 0;
  color: var(--text-slate);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--emerald);
  font-weight: 600;
}

.led-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.topbar-meta a {
  color: var(--copper);
  text-decoration: none;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-trace);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-white);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: block;
}

.pcb-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--copper);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-item {
  color: var(--text-slate);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--emerald);
}

.nav-btn {
  background: var(--emerald);
  color: var(--bg-obsidian);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s ease;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: var(--emerald-bright);
}

.burger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-trace);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-white);
  margin: 4px 0;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--border-trace);
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.09), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08), transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.75rem;
  align-items: start;
}

.silkscreen-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.14;
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-size: 1.06rem;
  color: var(--text-slate);
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-emerald {
  background: var(--emerald);
  color: var(--bg-obsidian);
}

.btn-emerald:hover,
.btn-emerald:focus-visible {
  background: var(--emerald-bright);
  transform: translateY(-1px);
}

.btn-copper {
  background: var(--surface-pcb);
  color: var(--text-white);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.btn-copper:hover,
.btn-copper:focus-visible {
  border-color: var(--copper);
  color: var(--copper);
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-trace);
}

.spec-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.spec-value {
  font-size: 0.92rem;
  color: var(--emerald);
}

/* Interactive Terminal Card */
.terminal-card {
  background: #070a12;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #111827;
  border-bottom: 1px solid var(--border-trace);
}

.term-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.amber { background: #f59e0b; }
.dot.green { background: #10b981; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(17, 24, 39, 0.65);
  border-bottom: 1px solid var(--border-trace);
}

.month-chip {
  background: transparent;
  border: 1px solid var(--border-trace);
  color: var(--text-slate);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
}

.month-chip.active,
.month-chip:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--emerald);
  color: var(--emerald);
}

.terminal-screen {
  padding: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
}

.term-cmd {
  color: var(--emerald);
  margin-bottom: 0.75rem;
}

.term-heading {
  color: var(--copper);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.term-block {
  margin-bottom: 0.75rem;
  color: var(--text-slate);
}

.term-block strong {
  color: var(--text-white);
}

/* Sections */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-trace);
}

.alt-surface {
  background: var(--surface-alt);
}

.section-head {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-slate);
  font-size: 1.02rem;
}

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

.time-card {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 10px;
  padding: 1.5rem;
}

.highlight-card {
  border-top: 3px solid var(--copper);
}

.highlight-emerald {
  border-top: 3px solid var(--emerald);
}

.time-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  margin-bottom: 0.6rem;
}

.time-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.time-card p {
  font-size: 0.9rem;
  color: var(--text-slate);
}

/* Schedule Rows */
.schedule-cards {
  display: grid;
  gap: 1rem;
}

.sched-row {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.sched-date {
  border-right: 1px solid var(--border-trace);
  padding-right: 1rem;
}

.sched-mo {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.sched-date strong {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--copper);
}

.sched-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.sched-body p {
  font-size: 0.92rem;
  color: var(--text-slate);
}

.sched-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  white-space: nowrap;
}

/* Kit Grid */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.kit-card {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 10px;
  padding: 1.75rem;
}

.kit-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--copper);
  margin-bottom: 0.65rem;
}

.kit-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.kit-card p {
  font-size: 0.92rem;
  color: var(--text-slate);
}

/* Academic Layout */
.academic-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.check-list {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-slate);
  font-size: 0.95rem;
}

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

.roles-panel {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-left: 4px solid var(--emerald);
  border-radius: 10px;
  padding: 1.75rem;
}

.roles-panel h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1.15rem;
}

.role-item {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-trace);
}

.role-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--copper);
}

.role-item span {
  font-size: 0.92rem;
  color: var(--text-white);
}

/* RSVP Panel */
.rsvp-panel {
  background: var(--surface-pcb);
  border: 1px solid var(--border-trace);
  border-radius: 12px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.rsvp-intro h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 0.85rem;
}

.rsvp-intro p {
  color: var(--text-slate);
}

.rsvp-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-trace);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--emerald);
  border-color: transparent;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.rsvp-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--emerald);
}

/* Footer */
.site-footer {
  padding: 2.75rem 0;
  background: #05080f;
  font-size: 0.88rem;
  color: var(--text-slate);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-footer strong {
  color: var(--text-white);
}

.site-footer a {
  color: var(--emerald);
  text-decoration: none;
}

/* Conference Expeditions & Field Deployments */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.deploy-card {
  background: var(--surface-card);
  border: 1px solid var(--border-trace);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.deploy-card:hover {
  border-color: var(--emerald-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.deploy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.deploy-dates {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.05em;
}

.deploy-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.deploy-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.deploy-loc {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.deploy-desc {
  font-size: 0.92rem;
  color: var(--text-slate);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.deploy-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-trace);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.deploy-role {
  color: var(--text-muted);
}

.deploy-link {
  color: var(--emerald-glow);
  text-decoration: none;
  font-weight: 700;
}

.deploy-link:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .hero-grid,
  .timeline-grid,
  .kit-grid,
  .deploy-grid,
  .academic-layout,
  .rsvp-panel {
    grid-template-columns: 1fr;
  }

  .sched-row {
    grid-template-columns: 1fr;
  }

  .sched-date {
    border-right: none;
    border-bottom: 1px solid var(--border-trace);
    padding-bottom: 0.5rem;
  }

  .quick-specs,
  .form-row {
    grid-template-columns: 1fr;
  }

  .burger-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface-pcb);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-trace);
  }

  .nav-links.open {
    display: flex;
  }
}
