:root {
  --ink: #102234;
  --navy: #0d293f;
  --navy-deep: #071d2e;
  --orange: #f06b45;
  --orange-soft: #ffb08f;
  --sage: #d9e3d9;
  --sage-deep: #44625c;
  --paper: #f4f1ea;
  --paper-light: #fbfaf7;
  --line: rgba(16, 34, 52, 0.18);
  --muted: #62717c;
  --white: #fff;
  --shadow: 0 24px 70px rgba(7, 29, 46, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 34, 52, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 52, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button, a { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-deep);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-decoration: none;
}

.wordmark-mark {
  width: 19px;
  height: 19px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 42% 38%, 42% 100%, 0 100%);
}

.draft-badge,
.hero-meta span,
.track-label {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.draft-badge {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.7fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
  padding: clamp(72px, 10vw, 128px) 0 88px;
}

.eyebrow,
.section-number {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: balance; }

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(3.5rem, 8vw, 7.3rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

h1 span { color: var(--orange); }

.hero-lead {
  max-width: 680px;
  margin: 34px 0 28px;
  color: #405261;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-meta span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

.workshop-loop {
  padding: 28px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.workshop-loop h2 {
  margin: 0 0 24px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.workshop-loop ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workshop-loop li {
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.workshop-loop li > span {
  grid-row: span 2;
  color: var(--orange-soft);
  font: 700 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.workshop-loop strong { font-size: 0.95rem; }
.workshop-loop small { color: rgba(255, 255, 255, 0.67); }

.tracks { padding: 42px 0 88px; }

.section-heading,
.choice-header {
  display: flex;
  gap: 36px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-heading h2,
.choice-header h2,
.safety h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading > p,
.choice-header > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
}

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

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 570px;
  padding: clamp(30px, 5vw, 54px);
  overflow: hidden;
}

.track-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 280px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.15;
  box-shadow: 0 0 0 42px transparent, 0 0 0 43px currentColor, 0 0 0 84px transparent, 0 0 0 85px currentColor;
  pointer-events: none;
}

.track-card--developer {
  color: var(--white);
  background: var(--navy-deep);
}

.track-card--northstar {
  color: var(--ink);
  background: var(--sage);
}

.track-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.track-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid currentColor;
  font: 700 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.track-icon--compass { font-size: 1.4rem; }

.track-card h3 {
  max-width: 520px;
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.track-card > p {
  max-width: 540px;
  margin: 0 0 28px;
  font-size: 1.05rem;
  opacity: 0.78;
}

.track-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.track-card li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  font-size: 0.92rem;
}

.track-card li::before { content: "—"; color: var(--orange); }

.button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  margin-top: auto;
  padding: 13px 18px;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
}

.button--light { color: var(--navy-deep); background: var(--white); }
.button--dark { color: var(--white); background: var(--navy-deep); }
.button--disabled { color: #6c787f; background: #e4e3de; cursor: not-allowed; }

.button:not(:disabled):hover { transform: translateY(-2px); }

.button:focus-visible,
.role-button:focus-visible,
.team-grid a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.choice-panel {
  scroll-margin-top: 24px;
  margin: 0 0 88px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.choice-panel[hidden] { display: none; }

.choice-panel.is-revealing { animation: panel-in 360ms ease-out both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.team-grid a {
  display: flex;
  min-height: 90px;
  padding: 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.team-grid a:hover { border-color: var(--orange); transform: translateY(-2px); }
.team-grid span { color: var(--muted); font-size: 0.75rem; font-weight: 650; }

.first-step {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  margin-top: 22px;
  padding: 18px;
  color: var(--white);
  background: var(--navy);
}

.first-step span {
  color: var(--orange-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.first-step code { font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }

.role-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
}

.role-list { display: grid; align-content: start; gap: 6px; }

.role-button {
  padding: 15px 17px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 720;
  text-align: left;
}

.role-button:hover,
.role-button.is-active { color: var(--white); background: var(--navy); }

.role-preview {
  min-height: 340px;
  padding: clamp(28px, 5vw, 52px);
  color: var(--white);
  background: var(--sage-deep);
}

.role-kicker {
  margin: 0 0 22px;
  color: #dce8df;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.role-preview h3 {
  max-width: 700px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.role-preview > p:not(.role-kicker) { max-width: 760px; color: rgba(255, 255, 255, 0.8); }

.deliverables {
  display: grid;
  gap: 6px;
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.deliverables span { color: #dce8df; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }

.safety {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 90px;
  padding: clamp(30px, 5vw, 52px);
  border-top: 4px solid var(--orange);
  background: var(--white);
  box-shadow: var(--shadow);
}

.safety-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  font-size: 1.2rem;
  font-weight: 900;
}

.safety p:last-child { max-width: 800px; margin-bottom: 0; color: var(--muted); }

footer {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

footer p { margin: 0; }

@media (max-width: 860px) {
  .hero, .track-grid, .role-layout { grid-template-columns: 1fr; }
  .hero { gap: 48px; padding-top: 72px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-card { min-height: 520px; }
  .role-list { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .site-header { min-height: 72px; }
  .draft-badge { font-size: 0.62rem; }
  .hero { padding: 54px 0 64px; }
  .section-heading, .choice-header, footer { display: grid; }
  .team-grid { grid-template-columns: 1fr; }
  .first-step { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; }
  .track-card { min-height: auto; }
  .track-card .button { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
