/* =========================================================
   RAR FRONT RANGE — design tokens (brand-aligned, font-trimmed)
   Palette: RAR brand — magenta, yellow, cyan, purple, green, orange
   Type: Pilowlava (real brand font, self-hosted, used for all
         headers/display text) + IBM Plex Mono (used everywhere
         else — body copy, labels, nav, buttons) — a deliberately
         small two-font system.
   Signature motif: "holographic topography" — Colorado contour
   lines drawn in gradient strokes as a background element that
   recurs across every page.
   ========================================================= */

@font-face {
  font-family: "Pilowlava";
  src: url("assets/fonts/Pilowlava-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --paper-dim: #faf7fb;

  --magenta: #e929f0;
  --magenta-tint: #e1c5f6;
  --magenta-tint-2: #d897d4;
  --yellow: #f7ed4a;
  --cyan: #5affee;
  --cyan-tint: #90f9f3;
  --purple: #750cff;
  --purple-tint: #a2a4fb;
  --purple-tint-2: #8458b4;
  --green: #2c8952;
  --green-tint: #aef095;
  --orange: #fea549;
  --orange-tint: #f8c86f;

  --grad-sunrise: linear-gradient(135deg, var(--magenta), var(--yellow), var(--cyan));
  --grad-alpine: linear-gradient(135deg, var(--cyan), var(--purple));
  --grad-dusk: linear-gradient(135deg, var(--purple-tint), var(--cyan-tint));
  --grad-meadow: radial-gradient(circle at 30% 30%, var(--yellow), var(--purple-tint), var(--green));

  --line: rgba(10, 10, 10, 0.14);
  --line-on-dark: rgba(255, 255, 255, 0.18);

  --display: "Bagel Fat One", cursive, sans-serif;
  /*--body: "Space Grotesk", sans-serif;*/
  --body: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.05;
}

.eyebrow-wrap {
  display: inline-flex;
  align-items: center;
}
.eyebrow-svg {
  height: 15px;
  width: auto;
  display: block;
}
.route-head .eyebrow-wrap,
.cta-band .eyebrow-wrap {
  margin: 0 auto;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--ink);
  padding: 10px 16px; z-index: 100;
  font-family: var(--mono); font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: var(--max); margin: 0 auto;
}

.brand { text-decoration: none; display: flex; align-items: center; }
.brand-logo { height: 46px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-family: var(--mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-image: var(--grad-sunrise) 1; border-bottom: 2px solid;
  color: var(--purple);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; text-decoration: none; padding: 12px 20px;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-solid:hover { box-shadow: 3px 3px 0 var(--magenta); }

.btn-grad {
  background: var(--grad-sunrise); border: 1.5px solid var(--ink); color: var(--ink);
}
.btn-grad:hover { box-shadow: 3px 3px 0 var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--ink);
  padding: 8px 10px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; cursor: pointer;
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper); overflow: hidden; padding: 120px 0 100px; }

.contour-bg { position: absolute; inset: 0; opacity: 0.9; pointer-events: none; }
.hero-blob {
  position: absolute; top: -180px; right: -160px; width: 520px; height: 520px;
  border-radius: 50%; background: var(--grad-meadow); filter: blur(6px);
  opacity: 0.55; pointer-events: none;
}
.hero-badge {
  position: absolute; top: 36px; right: 40px; width: 148px; height: auto;
  transform: rotate(9deg); filter: drop-shadow(0 10px 22px rgba(0,0,0,0.16));
  z-index: 2; pointer-events: none;
}
@media (max-width: 700px) {
  .hero-badge { width: 92px; top: 20px; right: 20px; }
}

.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.topo-section { position: relative; overflow: hidden; }
.topo-section > .wrap { position: relative; z-index: 2; }

.topo-masthead {
  position: relative; overflow: hidden;
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
}
.topo-masthead > .wrap { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(42px, 7vw, 86px); max-width: 16ch; margin: 20px 0 26px; color: var(--ink);
  text-transform: none;
}
.hero h1 .grad-text {
  background: var(--grad-sunrise);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub {
  font-family: var(--body); font-style: normal; font-size: clamp(17px, 2.2vw, 21px);
  max-width: 48ch; color: var(--ink); opacity: 0.82; margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- route / waypoints (signature element) ---------- */
.route { position: relative; padding: 90px 0; }

.route-head { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.route-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }

.waypoints { position: relative; display: flex; flex-direction: column; gap: 46px; }

.route-line {
  position: absolute; right: 0; top: -20px; bottom: -20px; width: 72px;
  opacity: 0.55; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='130' viewBox='0 0 72 130'%3E%3Cpath d='M36,0 C58,32 14,33 36,65 C58,97 14,98 36,130' fill='none' stroke='%23750cff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 72px 130px;
}

.waypoint {
  position: relative; display: flex; align-items: center; gap: 24px;
  padding-right: 104px;
}
.waypoint-card { flex: 1; min-width: 0; border: 1.5px solid var(--ink); background: var(--paper); padding: 28px 30px; }

.waypoint-marker {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display); z-index: 1;
}
.waypoint:nth-child(2) .waypoint-marker { background: var(--magenta-tint); }
.waypoint:nth-child(3) .waypoint-marker { background: var(--cyan-tint); }
.waypoint:nth-child(4) .waypoint-marker { background: var(--green-tint); }
.waypoint-marker .mi { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: rgba(0,0,0,0.68); }
.waypoint-marker .n { font-size: 22px; font-weight: 600; color: var(--ink); }

.waypoint-card h3 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }
.waypoint:nth-child(2) .waypoint-card h3 { border-bottom: 3px solid var(--magenta); padding-bottom: 8px; display: inline-block; }
.waypoint:nth-child(3) .waypoint-card h3 { border-bottom: 3px solid var(--purple); padding-bottom: 8px; display: inline-block; }
.waypoint:nth-child(4) .waypoint-card h3 { border-bottom: 3px solid var(--green); padding-bottom: 8px; display: inline-block; }

/* ---------- quicklinks ---------- */
.quicklinks { background: var(--paper-dim); padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
.tile {
  background: var(--paper); padding: 32px 26px; text-decoration: none; color: var(--ink);
  min-height: 130px; display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.15s ease;
}
.tile h3 { font-size: 19px; margin: 20px 0 8px; }
.tile p { font-family: var(--mono); font-size: 12.5px; opacity: 0.65; }
.tile .arrow { font-family: var(--mono); font-size: 13px; margin-top: 18px; }
.tile:nth-child(1):hover { background: var(--cyan-tint); }
.tile:nth-child(2):hover { background: var(--green-tint); }
.tile:nth-child(3):hover { background: var(--magenta-tint); }
.tile:nth-child(4):hover { background: #fff6c4; }

/* ---------- section basics ---------- */
.section { padding: 90px 0; }
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 14px; }
.lede { font-family: var(--body); font-size: 20px; max-width: 68ch; }

.prose { max-width: 68ch; font-size: 18px; }
.prose p { margin-bottom: 1.3em; }
.prose h3 { font-family: var(--display); color: var(--purple); font-size: 21px; margin: 2em 0 0.6em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-sunrise); color: var(--ink); padding: 74px 0; text-align: center; }
.cta-band .eyebrow-svg { opacity: 0.92; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin: 16px 0 30px; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band .btn { border-color: var(--ink); }

/* ---------- team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 48px; }
.team-card { border: 1.5px solid var(--ink); padding: 30px; display: grid; grid-template-columns: 84px 1fr; gap: 22px; }

.avatar {
  width: 84px; height: 84px; border-radius: 50%; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 22px; font-weight: 400; flex-shrink: 0;
}
.avatar-a { background: var(--magenta-tint); }
.avatar-b { background: var(--cyan-tint); }
.avatar-c { background: var(--orange-tint); }
.avatar-d { background: var(--green-tint); }

.team-card h3 { font-size: 19px; color: var(--ink); }
.team-card .pronoun {
  font-family: var(--mono); font-size: 12px; color: var(--purple); text-transform: none;
  letter-spacing: 0; display: block; margin: 4px 0 12px;
}
.team-card p { font-size: 15.5px; }

/* ---------- glossary box ---------- */
.callout { border-left: 4px solid var(--purple); background: var(--magenta-tint); padding: 26px 30px; margin: 40px 0; }
.callout h3 { font-family: var(--display); font-size: 15px; color: var(--ink); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- placeholder / coming-soon pages ---------- */
.placeholder { min-height: 56vh; display: flex; align-items: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.placeholder .wrap { width: 100%; }
.placeholder-inner { max-width: 640px; position: relative; z-index: 2; }
.placeholder-inner iframe { max-width: 100%; display: block; margin-bottom: 24px; }
.placeholder h1 { font-size: clamp(34px, 5vw, 54px); margin: 16px 0 22px; }
.placeholder .lede { margin-bottom: 30px; font-family: var(--body); font-style: normal; font-size: 19px; }
.placeholder-meta {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--purple-tint-2);
  border-top: 1px dashed var(--line); padding-top: 20px; margin-top: 34px;
}
/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-on-dark); }
.footer-grid h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { text-decoration: none; font-size: 14.5px; color: rgba(255,255,255,0.82); }
.footer-grid a:hover { color: var(--yellow); }
.footer-logo { height: 72px; width: auto; display: block; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .waypoint { padding-right: 80px; gap: 16px; }
  .waypoint-card { padding: 22px 22px; }
  .waypoint-marker { width: 56px; height: 56px; right: 2px; }
  .waypoint-marker .n { font-size: 18px; }
  .route-line { width: 60px; }
}

@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .waypoint { flex-direction: column; align-items: stretch; padding-right: 0; }
  .waypoint-card { width: 100%; padding-bottom: 50px; }
  .waypoint-marker {
    position: static; transform: none; margin: -50px auto 0; width: 48px; height: 48px;
    box-shadow: 0 0 0 4px var(--paper);
  }
  .waypoint-marker .n { font-size: 16px; }
  .route-line { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
