/* Synesaia · Talent Pool stylesheet */
@import url('../tokens.css');

:root {
  --rhythm: clamp(96px, 12vh, 160px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: var(--bg); }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--pad-x); border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px;
}
.wordmark .glyph { width: 18px; height: 18px; display: block; }
.nav-links {
  display: flex; gap: 40px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links a { position: relative; padding: 6px 0; color: var(--ink-muted); transition: color 160ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--teal); }

/* CRUMB */
.crumb {
  padding: 18px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.crumb a { color: var(--ink-muted); transition: color 160ms ease; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--ink-dim); }
.crumb .current { color: var(--ink); }

/* HERO — pool & family pages */
.pool-hero {
  padding: clamp(72px, 12vh, 140px) var(--pad-x) clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--rule);
  max-width: 1200px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 36px;
}
.eyebrow .dash { width: 32px; height: 1px; background: var(--teal); }
.eyebrow .lbl {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
}
.pool-hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02;
  letter-spacing: -0.015em; margin: 0;
  text-wrap: balance; max-width: 18ch;
}
.pool-hero .sub {
  margin: clamp(28px, 4vh, 44px) 0 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px); line-height: 1.45;
  color: var(--ink-muted); max-width: 56ch;
  text-wrap: pretty;
}

/* TALENT POOL NOTICE — prominent callout */
.pool-notice {
  margin: 0 var(--pad-x);
  margin-top: clamp(40px, 6vh, 64px);
  margin-bottom: 0;
  padding: clamp(24px, 3vh, 32px) clamp(24px, 3vw, 40px);
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--teal);
  background: rgba(14,14,14,0.4);
  max-width: 880px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.pool-notice .pn-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
  white-space: nowrap;
  padding-top: 4px;
}
.pool-notice .pn-body {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(14px, 1vw, 16px); line-height: 1.65;
  color: var(--ink); margin: 0;
  text-wrap: pretty;
}
.pool-notice .pn-body strong {
  font-family: var(--sans); font-weight: 500; color: var(--ink);
}
@media (max-width: 720px) {
  .pool-notice { grid-template-columns: 1fr; gap: 10px; }
}

/* FAMILY GRID — used on pool index */
.family-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: clamp(56px, 8vh, 96px);
}
.family-card {
  background: var(--bg);
  padding: clamp(32px, 5vh, 56px) clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 18px;
  min-height: 340px;
  transition: background 220ms ease;
}
.family-card:hover { background: var(--bg-raised); }
.family-card .fc-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  display: inline-block;
  padding-top: 14px; position: relative;
}
.family-card .fc-num::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 24px; height: 1px; background: var(--teal);
}
.family-card h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.14;
  letter-spacing: -0.01em; margin: 0;
  text-wrap: balance; max-width: 20ch;
  color: var(--ink);
}
.family-card .fc-desc {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(14px, 1vw, 16px); line-height: 1.7;
  color: var(--ink-muted); margin: 0; max-width: 42ch;
  text-wrap: pretty;
}
.family-card .fc-roles {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px;
}
.family-card .fc-roles li {
  display: flex; align-items: baseline; gap: 10px;
}
.family-card .fc-roles li::before {
  content: ""; display: inline-block; width: 4px; height: 4px;
  background: var(--ink-dim); border-radius: 50%;
  flex-shrink: 0; transform: translateY(-2px);
}
.family-card .fc-arrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
  transition: gap 220ms ease, color 220ms ease;
}
.family-card .fc-arrow .count { color: var(--ink-dim); }
.family-card .fc-arrow .arr { color: var(--ink-muted); transition: gap 220ms ease, color 220ms ease; display: inline-flex; gap: 8px; }
.family-card:hover .fc-arrow .arr { color: var(--teal); gap: 14px; }
@media (max-width: 900px) {
  .family-grid { grid-template-columns: 1fr; }
}

/* FAMILY PAGE — list of specific roles */
.role-list {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: clamp(56px, 8vh, 96px) var(--pad-x);
}
.role-list-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vh, 40px) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 220ms ease;
}
.role-list-row:last-child { border-bottom: 0; }
.role-list-row:hover { padding-left: 12px; }
.role-list-row .rl-num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-dim);
}
.role-list-row .rl-main {
  display: flex; flex-direction: column; gap: 8px;
}
.role-list-row .rl-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2vw, 30px); line-height: 1.18;
  letter-spacing: -0.005em; color: var(--ink);
  text-wrap: balance; max-width: 28ch;
}
.role-list-row:hover .rl-title { color: var(--ink); }
.role-list-row .rl-desc {
  font-family: var(--sans); font-weight: 300;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-muted); margin: 0; max-width: 56ch;
  text-wrap: pretty;
}
.role-list-row .rl-pay {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-muted);
  display: flex; flex-direction: column; gap: 4px;
  text-align: right;
  min-width: 180px;
}
.role-list-row .rl-pay .ccy { color: var(--teal); margin-right: 4px; letter-spacing: 0.08em; }
.role-list-row .rl-arrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  white-space: nowrap;
  transition: color 220ms ease, gap 220ms ease;
  display: inline-flex; gap: 10px; align-items: center;
}
.role-list-row:hover .rl-arrow { color: var(--teal); gap: 16px; }
@media (max-width: 880px) {
  .role-list-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }
  .role-list-row .rl-pay { text-align: left; min-width: 0; flex-direction: row; gap: 16px; flex-wrap: wrap; }
  .role-list-row:hover { padding-left: 0; }
}

/* INDIVIDUAL ROLE PAGE */
.role-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) var(--pad-x) clamp(48px, 8vh, 96px);
}
.role-back {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  display: inline-flex; gap: 12px; align-items: center; margin-bottom: 48px;
  transition: gap 200ms ease, color 200ms ease;
}
.role-back:hover { color: var(--ink); gap: 18px; }

.role-meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  padding-bottom: 28px; border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.role-meta .family { color: var(--teal); }
.role-meta .sep { color: var(--ink-dim); }

.role-shell h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 5vw, 76px); line-height: 1.04;
  letter-spacing: -0.015em; margin: 0 0 clamp(24px, 4vh, 36px);
  text-wrap: balance; max-width: 22ch;
}
.role-standfirst {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45;
  color: var(--ink-muted); margin: 0;
  max-width: 44ch; text-wrap: pretty;
}

/* Chips line: location & corridor */
.role-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(28px, 4vh, 36px);
}
.chip {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--rule-strong);
  padding: 8px 14px;
  background: rgba(14,14,14,0.4);
  display: inline-flex; gap: 8px; align-items: center;
}
.chip .chip-key { color: var(--ink-muted); }
.chip--accent { border-color: var(--teal); color: var(--teal); }

/* Talent pool callout inside role page */
.role-shell .pool-notice {
  margin: clamp(40px, 6vh, 56px) 0 0;
  max-width: none;
}

.role-divider {
  margin: clamp(48px, 7vh, 80px) 0 clamp(36px, 5vh, 56px);
  border: 0; border-top: 1px solid var(--rule-strong);
}

.role-body {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(16px, 1.1vw, 18px); line-height: 1.78;
  color: var(--ink);
}
.role-body p {
  margin: 0 0 1.4em;
  text-wrap: pretty;
  max-width: 62ch;
}
.role-body p:last-child { margin-bottom: 0; }

.role-section {
  margin-top: clamp(48px, 6vh, 72px);
}
.role-section h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(22px, 2vw, 30px); line-height: 1.2;
  letter-spacing: -0.005em; margin: 0 0 24px;
  padding-top: 14px; position: relative;
  color: var(--ink);
}
.role-section h2::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 24px; height: 1px; background: var(--teal);
}

/* Structured bullet lists */
.role-list-bullets {
  list-style: none; padding: 0; margin: 0;
  max-width: 64ch;
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.role-list-bullets li {
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-family: var(--sans); font-weight: 300;
  font-size: 16px; line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}
.role-list-bullets li::before {
  content: ""; position: absolute;
  left: 0; top: 26px;
  width: 12px; height: 1px;
  background: var(--teal);
}
.role-list-bullets li strong {
  font-family: var(--sans); font-weight: 500;
  color: var(--ink);
}

/* Two-col fit list (must-have / nice-to-have side by side on wide) */
.role-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  margin-top: 0;
}
.role-fit > div h3 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink);
}
.role-fit > div.role-fit--must h3 { color: var(--teal); }
.role-fit > div.role-fit--nice h3 { color: var(--ink-muted); }
@media (max-width: 780px) {
  .role-fit { grid-template-columns: 1fr; gap: 36px; }
}

/* Package / pay table — reuse insights pattern */
.pay-note {
  font-family: var(--sans); font-size: 14px; line-height: 1.6;
  color: var(--ink-muted); margin: 0 0 24px;
  max-width: 62ch;
}
.pay-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.pay-table th, .pay-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.pay-table tr:last-child td { border-bottom: 0; }
.pay-table th {
  font-family: var(--mono); font-weight: 400;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted);
}
.pay-table th:first-child { width: 36%; }
.pay-table td:first-child {
  font-family: var(--serif); font-size: 17px;
  font-weight: 400; letter-spacing: -0.005em;
  color: var(--ink); text-transform: none;
}
.pay-table td .ccy {
  color: var(--teal); font-weight: 500; letter-spacing: 0.08em; margin-right: 4px;
}
.pay-table td .per { color: var(--ink-dim); font-size: 0.92em; }
.usd-line {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--ink-muted);
  margin: 14px 0 0;
}

/* Locations / visa boxes */
.role-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 0;
}
.role-grid-2 > div {
  background: var(--bg);
  padding: clamp(24px, 3vh, 32px) clamp(24px, 3vw, 36px);
}
.role-grid-2 h3 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--teal);
}
.role-grid-2 p {
  font-family: var(--sans); font-weight: 300;
  font-size: 15px; line-height: 1.65;
  color: var(--ink); margin: 0 0 10px;
  text-wrap: pretty;
}
.role-grid-2 p:last-child { margin-bottom: 0; }
@media (max-width: 780px) {
  .role-grid-2 { grid-template-columns: 1fr; }
}

/* Register CTA — full-width band */
.role-cta {
  margin: clamp(72px, 10vh, 120px) 0 0;
  padding: clamp(48px, 7vh, 80px) clamp(40px, 5vw, 64px);
  border: 1px solid var(--rule-strong);
  background: rgba(14,14,14,0.55);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.role-cta .cta-copy {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 48ch;
}
.role-cta .cta-eyebrow {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
}
.role-cta h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 2.4vw, 36px); line-height: 1.18;
  letter-spacing: -0.005em; margin: 0;
  text-wrap: balance;
}
.role-cta p {
  font-family: var(--sans); font-weight: 300;
  font-size: 15px; line-height: 1.6;
  color: var(--ink-muted); margin: 0;
  text-wrap: pretty;
}
.role-cta .cta-btn {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 28px;
  border: 1px solid var(--teal); color: var(--ink);
  display: inline-flex; gap: 12px; align-items: center;
  transition: background 200ms ease, gap 200ms ease;
  white-space: nowrap;
}
.role-cta .cta-btn:hover { background: var(--teal-soft); gap: 18px; }
@media (max-width: 780px) {
  .role-cta { grid-template-columns: 1fr; gap: 24px; padding: 36px 28px; }
  .role-cta .cta-btn { justify-content: center; }
}

/* Related roles */
.role-related {
  margin: clamp(72px, 10vh, 120px) 0 0;
  padding-top: clamp(40px, 5vh, 56px);
  border-top: 1px solid var(--rule);
}
.role-related .lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted);
  display: block; margin-bottom: 18px;
}
.role-related a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: end;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  transition: gap 220ms ease;
}
.role-related a:hover { gap: 32px; }
.role-related a:hover h4 { color: var(--ink); }
.role-related a:hover .arrow { color: var(--teal); }
.role-related .cat {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
  display: block; margin-bottom: 6px;
}
.role-related h4 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2;
  letter-spacing: -0.005em; margin: 0; color: var(--ink);
  max-width: 24ch; text-wrap: balance;
}
.role-related .pay-mini {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--ink-muted);
  white-space: nowrap;
}
.role-related .arrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  white-space: nowrap;
  transition: color 220ms ease;
}
@media (max-width: 720px) {
  .role-related a { grid-template-columns: 1fr; gap: 8px; }
  .role-related .pay-mini { display: none; }
}

.role-foot {
  margin-top: clamp(64px, 8vh, 96px);
  padding: clamp(32px, 4vh, 48px) 0 0;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  justify-content: space-between; align-items: baseline;
}
.role-foot .ln {
  font-family: var(--sans); font-weight: 300;
  font-size: 14px; line-height: 1.6;
  color: var(--ink-muted); margin: 0;
  max-width: 42ch;
}
.role-foot .ln a {
  color: var(--ink); border-bottom: 1px solid var(--teal);
  padding-bottom: 2px; transition: color 220ms ease;
}
.role-foot .ln a:hover { color: var(--teal); }
.role-foot .back {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
  white-space: nowrap;
  transition: color 220ms ease, gap 220ms ease;
  display: inline-flex; gap: 12px; align-items: center;
}
.role-foot .back:hover { color: var(--ink); gap: 18px; }

/* FOOTER */
footer {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 32px var(--pad-x);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  border-top: 1px solid var(--rule);
}
footer .foot-links { display: flex; gap: 28px; }
footer a:hover { color: var(--ink); }
footer .locale { color: var(--ink-dim); }
@media (max-width: 780px) {
  footer { flex-direction: column; gap: 16px; align-items: flex-start; }
}
