/* ===================================================================
   RFI-PaCe — Partners & Sponsors site
   Palette taken from the mission patch: deep orbital navy, the gold
   ring of the patch as the accent, and the cyan downlink beam as a
   secondary signal colour.
   =================================================================== */

:root {
  --void: #060b16;
  --void-deep: #03060d;
  --panel: #0e1729;
  --panel-raised: #142238;
  --line: #22344f;
  --line-soft: #101c2e;

  --ink: #eef3fa;
  --ink-muted: #96a7c0;
  --ink-faint: #64748f;

  --accent: #e3ae4b;        /* patch ring gold */
  --accent-bright: #f5c667;
  --signal: #4fc3e8;        /* downlink beam cyan */

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 6px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% -140px, #16253d 0%, rgba(22, 37, 61, 0) 70%),
    repeating-linear-gradient(
      to bottom,
      rgba(79, 195, 232, 0.035) 0px,
      rgba(79, 195, 232, 0.035) 1px,
      transparent 1px,
      transparent 6px
    ),
    var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

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

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

/* --- Top nav --- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.site-nav .brand img { height: 38px; width: auto; display: block; }
.site-nav .back-link {
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav .back-link:hover { color: var(--accent); border-color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #1a1206;
  padding: 16px 34px;
  font-size: 1.08rem;
}
.btn-primary:hover { background: var(--accent-bright); }
.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  padding: 12px 22px;
  font-size: 0.95rem;
}
.btn-secondary:hover { border-color: var(--signal); color: var(--signal); }

.btn-ig {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  padding: 13px 24px;
  font-size: 0.98rem;
}
.btn-ig svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-ig:hover { border-color: var(--accent); color: var(--accent); }

/* =========================== LANDING =========================== */

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px 40px;
}

.hero .patch {
  width: 200px;
  height: 200px;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 34px rgba(227, 174, 75, 0.22));
}
.hero .patch img { width: 100%; height: 100%; object-fit: contain; display: block; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 10px;
}
.hero .mission-line {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 500;
  margin-bottom: 30px;
}

/* The one piece of motion on the site: a receiver sweeping the band.
   It sits under the mission line and runs once on load. */
.trace {
  width: min(560px, 92%);
  height: 40px;
  margin-bottom: 36px;
}
.trace .baseline { stroke: var(--line); stroke-width: 1; }
.trace .spectrum {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.3;
  stroke-linejoin: round;
  opacity: 0.75;
}
.trace .sweep { stroke: var(--accent); stroke-width: 1.4; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .trace .sweep {
    animation: sweep 5s ease-in-out 0.6s 1 both;
  }
}
@keyframes sweep {
  0%   { transform: translateX(0);     opacity: 0; }
  8%   { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translateX(560px); opacity: 0; }
}

.hero .summary {
  max-width: 62ch;
  font-size: 1.06rem;
  color: var(--ink-muted);
  margin-bottom: 38px;
}
.hero .summary strong { color: var(--ink); font-weight: 600; }
.hero .summary + .summary { margin-top: -22px; }

.hero .cta-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

.hero-footer {
  padding: 24px 24px 44px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.hero-footer a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 3px; }
.hero-footer a:hover { color: var(--accent); }

/* =========================== BOARD =========================== */

.board-header {
  padding: 60px 0 26px;
  max-width: 62ch;
}
.board-header h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin-bottom: 12px; }
.board-header p { font-size: 1.04rem; }

.group-section { padding: 38px 0 44px; }
.group-section + .group-section { border-top: 1px solid var(--line); }

.group-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}
.group-heading h2 { font-size: 1.6rem; }
.group-blurb {
  font-size: 0.96rem;
  max-width: 58ch;
  margin-bottom: 26px;
}

/* auto-fill (not auto-fit) keeps the empty tracks, so a group holding a
   single card renders it at normal card width instead of stretching it
   across the whole row. */
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.supporter-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
a.supporter-card:hover { border-color: var(--accent); }
a.supporter-card:hover .supporter-name { color: var(--accent); }

/* Tile background for logos that need a specific backing colour */
.supporter-card.bg-white { background: #ffffff; border-color: #ffffff; }
.supporter-card.bg-white .supporter-name { color: #16202f; }
a.supporter-card.bg-white:hover .supporter-name { color: #8a6a15; }
.supporter-card.bg-black { background: #05070c; border-color: var(--line); }

.supporter-card .logo-slot {
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.supporter-card .logo-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.supporter-card .logo-placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.78rem;
  padding: 6px;
}

.supporter-card .supporter-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.supporter-card .supporter-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: -6px;
}
.supporter-card.bg-white .supporter-note { color: #5a6b83; }

.board-footer {
  padding: 46px 0 60px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.board-footer h2 { font-size: 1.35rem; }
.board-footer p { font-size: 0.95rem; max-width: 56ch; }
.board-footer .footer-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 560px) {
  .site-nav { flex-direction: column; gap: 12px; align-items: flex-start; }
  .board-header { padding-top: 40px; }
  .group-heading { flex-wrap: wrap; }
  .hero .patch { width: 158px; height: 158px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
