:root {
  /* Layout idea: a quiet, type-led page where the live roles board is the one loud element. */
  --navy: #0B334E;
  --navy-deep: #072436;
  --orange: #F77D20;
  --orange-text: #B4530A;
  --paper: #F3F6F8;
  --card: #FFFFFF;
  --ink: #15202A;
  --slate: #55636F;
  --rule: #D5DCE2;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; font-stretch: 88%; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; max-width: 62ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-text);
}

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; text-decoration: none; color: var(--navy); }
.wordmark span { color: var(--orange); }
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 34px; width: auto; margin-right: 10px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; color: var(--navy); padding: 8px 14px; border-radius: 4px;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--navy); color: #fff; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 4px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--navy-deep); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--card); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--navy-deep); }
.btn.orange:hover { filter: brightness(0.95); }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-copy p { font-size: 1.18rem; color: var(--slate); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Roles board: the one loud element */
.board { background: var(--navy-deep); color: #E6EEF3; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(7, 36, 54, 0.7); }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.14); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.board-head .live { color: var(--orange); display: flex; align-items: center; gap: 8px; }
.board-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .board-head .live::before { animation: none; } html { scroll-behavior: auto; } }
.board-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; color: inherit; }
.board-row:hover { background: rgba(255,255,255,0.06); }
.board-row .t { font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff; }
.board-row .c { font-family: var(--mono); font-size: 0.8rem; color: var(--orange); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.board-row .m { font-family: var(--mono); font-size: 0.74rem; color: #9FB4C2; grid-column: 1 / -1; }
.board-foot { padding: 14px 18px; font-family: var(--display); font-weight: 700; }
.board-foot a { color: #fff; }

/* Sections */
section.band { padding: 60px 0; }
section.band.white { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.band.dark { background: var(--navy); }
section.band.dark h2, section.band.dark h3 { color: #fff; }
section.band.dark p { color: #C9D7E0; }
section.band.dark .eyebrow { color: var(--orange); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.section-head p { color: var(--slate); }

.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--navy); }
.lane { padding: 22px 22px 22px 0; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.lane + .lane { padding-left: 22px; }
.lane:last-child { border-right: 0; }
.lane p { font-size: 0.98rem; color: var(--slate); }
.lane .eg { font-family: var(--mono); font-size: 0.74rem; color: var(--orange-text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { padding-left: 26px; position: relative; max-width: 58ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 3px; background: var(--orange); }

/* Jobs */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; margin-bottom: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 20px; }
.skills-field, .filters-foot { grid-column: 1 / -1; }
.filter-toggle { display: none; }
@media (max-width: 700px) {
  .filter-toggle { display: block; width: 100%; margin-bottom: 14px; text-align: left; }
  .filter-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; }
  .filters:not(.open) { display: none; }
}
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill { font-family: var(--mono); font-size: 0.78rem; padding: 6px 12px; border-radius: 3px; border: 1px solid #9AA8B3; background: var(--card); color: var(--navy); cursor: pointer; }
.skill:hover { border-color: var(--navy); }
.skill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
select, input[type="text"], input[type="email"], input[type="url"], input[type="file"], textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 11px 12px; border: 1px solid #9AA8B3; border-radius: 4px; background: var(--card); width: 100%;
}
.count { font-family: var(--mono); font-size: 0.85rem; color: var(--slate); }
.job-list { display: flex; flex-direction: column; gap: 14px; }
.job { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--navy); border-radius: 4px; }
.job summary { list-style: none; cursor: pointer; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; }
.job summary::-webkit-details-marker { display: none; }
.job[open] { border-left-color: var(--orange); }
.job .title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.job .salary { font-family: var(--mono); font-size: 0.92rem; color: var(--orange-text); font-variant-numeric: tabular-nums; text-align: right; }
.job .meta { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 0.72rem; padding: 3px 9px; border-radius: 3px; background: var(--paper); color: var(--navy); border: 1px solid var(--rule); }
.chip.draft { background: #FFF1E3; border-color: #F5C8A0; color: var(--orange-text); }
.job-body { padding: 0 22px 24px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; border-top: 1px solid var(--rule); padding-top: 22px; }
.job-body dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 0.98rem; }
.job-body dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); padding-top: 4px; }
.job-body dd { margin: 0; }
.apply { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.apply h3 { font-size: 1.05rem; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--slate); line-height: 1.4; }
.consent input { margin-top: 3px; flex: none; }
.form-note { font-size: 0.9rem; padding: 10px 12px; border-radius: 4px; background: #FFF1E3; color: #7A3A05; border: 1px solid #F5C8A0; }
.form-note[hidden] { display: none; }
.form-note.good { background: #E8F4EC; color: #1F5A33; border-color: #B5D8C1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: 0.6; cursor: default; }
.empty { padding: 28px; background: var(--card); border: 1px dashed #9AA8B3; border-radius: 4px; color: var(--slate); }

/* Companies */
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 14px; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 0.8rem; color: var(--orange); }
.steps p { font-size: 0.98rem; }
.table-scroll { overflow-x: auto; }
table.models { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.98rem; }
table.models th, table.models td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.models th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
table.models td:first-child { font-family: var(--display); font-weight: 700; color: var(--navy); }
table.models td.fee { font-family: var(--mono); color: var(--orange-text); white-space: nowrap; }

.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9FB4C2; padding: 36px 0; font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
.site-footer .wordmark { color: #fff; font-size: 1.1rem; }

[data-view][hidden] { display: none; }

@media (max-width: 900px) {
  .hero .wrap, .split, .job-body { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr 1fr; }
  .lane, .lane + .lane { padding: 20px 16px 20px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .lanes, .steps { grid-template-columns: 1fr; }
  .job summary { grid-template-columns: 1fr; }
  .job .salary, .board-row .c { text-align: left; }
  .board-row { grid-template-columns: 1fr; }
}

/* Privacy policy */
.policy { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.policy h2 { font-size: 1.35rem; margin-top: 18px; }
.policy h3 { margin-top: 6px; }
.policy .muted { color: var(--slate); font-size: 0.95rem; }

/* Disciplines and levels */
.lanes.three { grid-template-columns: repeat(3, 1fr); }
.group-title { font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin: 28px 0 10px; }
.group-title:first-of-type { margin-top: 0; }
@media (max-width: 900px) { .lanes.three { grid-template-columns: 1fr; } }

/* Role brief */
.brief h4 { font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); margin: 6px 0 -6px; }
.brief .ticks li { font-size: 0.98rem; }

/* Role pages */
.role-page { display: flex; flex-direction: column; gap: 14px; }
.role-page .role-salary { font-family: var(--mono); color: var(--orange-text); font-size: 1.05rem; }
.role-page .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.role-page .job-body { padding: 22px 0 0; margin-top: 10px; }
.role-page .brief h2 { font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); margin: 6px 0 -6px; }
.share { font-size: 0.9rem; color: var(--slate); }
