:root {
  --bg: #0b1018;
  --bg-elev: #121a26;
  --bg-soft: #182233;
  --line: #2a3648;
  --text: #eef3f8;
  --muted: #9aabc0;
  --accent: #3ddc97;
  --accent-ink: #052016;
  --gold: #f0c14b;
  --danger: #f07167;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Figtree", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --header-h: 64px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 220, 151, 0.08), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(240, 193, 75, 0.06), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7aefbb; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(11, 16, 24, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 9px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--text); }
.site-nav .nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.view[hidden] { display: none !important; }

.hero { padding: 48px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 10px;
}

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 16px; font-weight: 600; }
h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
h2 { font-size: 1.7rem; margin: 0 0 12px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }

.lede { font-size: 1.12rem; color: var(--muted); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-note { color: var(--muted); font-size: 0.92rem; }

.video-chrome {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow);
}
.video-chrome .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3a4658;
  margin: 4px 3px 10px;
}
.video-stage {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(61, 220, 151, 0.18), transparent 50%),
    #0e1622;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
}
.play-mark {
  width: 56px; height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.play-mark::after {
  content: "";
  position: absolute;
  inset: 18px 16px 18px 22px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--accent-ink);
}

.section { padding: 28px 0 48px; }
.section-title { margin-bottom: 20px; }

.pillar-grid, .job-grid, .share-grid {
  display: grid;
  gap: 16px;
}
.pillar-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card-kicker {
  font-family: var(--display);
  color: var(--accent);
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.card p { color: var(--muted); margin: 0; }
.card h3 + p { margin-top: 8px; }

.band {
  background: linear-gradient(180deg, var(--bg-soft), transparent);
  border-block: 1px solid var(--line);
}
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  counter-reset: s;
}
.steps-row li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
}
.steps-row strong { display: block; color: var(--text); font-family: var(--display); margin-bottom: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.view-head { margin-bottom: 24px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.88rem; margin: 8px 0 0; }

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.stepper button {
  font: inherit;
  font-weight: 600;
  background: var(--bg-elev);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.stepper button.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.stepper button.is-done { color: var(--text); }

label { display: block; font-weight: 600; font-size: 0.92rem; }
input[type="text"],
input[type="search"],
select,
textarea {
  width: 100%;
  margin-top: 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}
input::placeholder { color: #6d7d91; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background:
    linear-gradient(160deg, var(--accent), #1a6b4d);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent-ink);
}

.question-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}
.question-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.question-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.question-item textarea,
.question-item input[type="text"] {
  margin-top: 0;
}
.q-index { color: var(--accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; }
.linkish {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.linkish:hover { color: var(--danger); }

.add-row, .filter-bar, .builder-nav, .record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.add-row .grow, .filter-bar label { flex: 1 1 200px; }
.builder-nav { justify-content: space-between; margin-top: 24px; }

.combined-card { margin-bottom: 20px; }
.subhead { margin: 24px 0 12px; }
.player-slot video, #record-preview, .profile-card video {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  background: #000;
  margin-top: 10px;
}
.player-slot .stream-wrap,
.profile-card .stream-wrap,
.question-item .stream-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.stream-wrap iframe,
iframe.stream-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.file-name { font-size: 0.85rem; color: var(--muted); }

.record-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.share-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
  word-break: break-all;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.profile-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}
.profile-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.profile-top .avatar { width: 96px; height: 96px; }
.profile-meta { color: var(--muted); margin: 0; }
.profile-answers { display: grid; gap: 16px; margin-top: 8px; }
.profile-answers article {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.profile-answers h3 { font-family: var(--font); font-size: 1rem; font-weight: 700; }

.share-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.share-grid .btn { width: 100%; }

.filter-bar { margin-bottom: 12px; }
.talent-map {
  height: min(70vh, 640px);
  min-height: 360px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 1;
}

.job-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 12px; }
.job-grid a.card {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.job-grid a.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 50;
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer a { color: var(--text); }

.leaflet-container { font-family: var(--font); background: #0e1622; }
.pin-label {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 12px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #0b1018;
}

@media (max-width: 840px) {
  .hero-grid, .pillar-grid, .steps-row, .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 16, 24, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-cta { text-align: center; }
  .hero-frame { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .job-grid a.card { transition: none; }
}
