:root {
  --bg: oklch(97% 0.012 95);
  --surface: oklch(99.2% 0.006 95);
  --surface-soft: oklch(95% 0.013 95);
  --fg: oklch(26% 0.035 158);
  --muted: oklch(45% 0.024 160);
  --border: oklch(88% 0.014 110);
  --navy: oklch(31% 0.05 158);
  --navy-dark: oklch(25% 0.05 158);
  --accent: oklch(58% 0.086 64);
  --accent-dark: oklch(40% 0.092 58);
  --success: oklch(52% 0.12 150);
  --shadow: 0 16px 42px oklch(22% 0.04 158 / 0.08);
  --font-display: "Source Serif 4", "Iowan Old Style", "Charter", Georgia, serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.container-wide { width: min(1280px, calc(100% - 48px)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid oklch(100% 0 0 / 0.12);
}
.topbar-inner {
  min-height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: oklch(97% 0.012 150);
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: oklch(92% 0.015 150);
  font-size: 16px;
  font-weight: 650;
}
.nav-links a { border-bottom: 2px solid transparent; padding: 5px 0; }
.nav-links a:hover { border-color: var(--accent); color: white; }

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-align: center;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-light { background: var(--bg); color: var(--fg); }
.btn-light:hover { background: var(--surface); }
.btn-block { width: 100%; }
.hero .btn-primary,
.job-hero .btn-primary {
  background: var(--accent-dark);
  border-color: oklch(100% 0 0 / 0.18);
}
.hero .btn-primary:hover,
.job-hero .btn-primary:hover { background: color-mix(in oklch, var(--accent-dark) 82%, black); }

.hero {
  background: var(--navy);
  color: white;
  padding: clamp(70px, 9vw, 118px) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}
.container.hero-grid-video {
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: minmax(340px, 0.64fr) minmax(620px, 1fr);
  gap: clamp(36px, 5vw, 76px);
}
.hero-grid-video .video-card {
  align-self: center;
  justify-self: stretch;
}
.hero-copy { max-width: 610px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  color: color-mix(in oklch, var(--bg) 74%, var(--accent));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 6vw, 66px); max-width: 11ch; }
.job-hero h1 { max-width: 18ch; font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 23px; line-height: 1.25; }
.hero p, .job-hero p {
  max-width: 58ch;
  margin: 24px 0 0;
  color: oklch(88% 0.018 150);
  font-size: 20px;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.visual-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 12px;
  background: oklch(22% 0.04 158);
  box-shadow: var(--shadow);
}
.visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.video-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 12px;
  background: black;
  box-shadow: var(--shadow);
}
.video-card iframe,
.video-card video {
  display: block;
  width: 100%;
  border: 0;
}
.video-card iframe { aspect-ratio: 16 / 9; }
.video-card video {
  height: auto;
  object-fit: cover;
  background: black;
}
.video-card-tall video { aspect-ratio: 100 / 65; }
.video-card-wide video { aspect-ratio: 100 / 59; }
.visual-stack {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 14px;
}
.visual-stack .visual-card:nth-child(2) { margin-top: 48px; }

.section { padding: clamp(72px, 8vw, 110px) 0; }
.section-soft { background: var(--surface-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-head p { margin: 15px 0 0; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}
.split + .split { margin-top: 72px; }
.copy p { color: var(--muted); margin: 18px 0 0; }
.image-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.positions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.positions-source {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.position-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 26px;
}
.position-card.source-group { padding: 0; overflow: hidden; }
.position-group-head {
  padding: 26px;
  border-bottom: 1px solid var(--border);
}
.position-category {
  padding: 24px 26px 28px;
  border-bottom: 1px solid var(--border);
}
.position-category:last-child { border-bottom: 0; }
.position-category h4 {
  margin: 0 0 12px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
}
.position-card h3 { color: var(--fg); }
.position-card p { margin: 8px 0 20px; color: var(--muted); font-size: 15px; }
.role-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.role-list a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 650;
}
.role-list a::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--navy) 14%, var(--surface));
}
.role-list a:hover { color: var(--accent-dark); }

.job-hero {
  background: var(--navy);
  color: white;
  padding: clamp(58px, 8vw, 96px) 0;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill {
  border: 1px solid oklch(100% 0 0 / 0.18);
  border-radius: 999px;
  padding: 8px 13px;
  color: oklch(92% 0.015 150);
  font-size: 13px;
  font-weight: 700;
}
.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(34px, 6vw, 70px);
  align-items: start;
}
.job-layout-wide {
  grid-template-columns: minmax(0, 1fr);
}
.job-layout-wide .job-aside {
  position: static;
  max-width: 440px;
}
.job-article {
  display: grid;
  gap: 38px;
}
.article-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 38px;
}
.article-section:last-child { border-bottom: 0; padding-bottom: 0; }
.article-section p { color: var(--muted); margin: 14px 0 0; }
.article-section ul, .article-section ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}
.article-section li + li { margin-top: 8px; }
.article-section strong { color: var(--fg); }
.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}
.job-layout-wide .video-feature {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
}
.video-feature h2 { max-width: 12ch; }
.job-aside {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
}
.aside-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}
.aside-card p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.facts {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}
.facts li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in oklch, var(--success) 18%, var(--surface));
  color: var(--navy);
  font-weight: 800;
}

.form-note {
  width: 100%;
  min-width: 0;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; min-width: 0; }
.field { display: grid; min-width: 0; gap: 8px; font-weight: 700; font-size: 15px; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--fg);
  padding: 12px 14px;
  font: inherit;
}
.field span { min-width: 0; overflow-wrap: anywhere; }
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--navy);
}
.field.field-full > span {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-disclaimer { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 34px 0;
  color: var(--muted);
  font-size: 15px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; color: var(--fg); font-weight: 700; }

@media (max-width: 860px) {
  .container, .container-wide, .container.hero-grid-video { width: min(100% - 32px, 1120px); }
  .topbar-inner { min-height: 70px; }
  .nav-links { display: none; }
  .hero-grid, .container.hero-grid-video, .split, .job-layout { grid-template-columns: 1fr; }
  .video-feature, .job-layout-wide .video-feature { grid-template-columns: 1fr; }
  .positions, .positions-source { grid-template-columns: 1fr; }
  .visual-stack { grid-template-columns: 1fr 1fr; }
  .job-aside { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .hero, .job-hero { padding: 48px 0 60px; }
  h1 { max-width: none; font-size: 38px; }
  .hero p, .job-hero p { font-size: 17px; }
  .visual-stack { grid-template-columns: 1fr; }
  .visual-stack .visual-card:nth-child(2) { margin-top: 0; }
  .btn { width: 100%; }
}
