/* Sia: Careers shared styles
   ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'NHaasGrotesk';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/NHaasGroteskTXPro-55Rg.ttf') format('truetype');
}
@font-face {
  font-family: 'NHaasGrotesk';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/NHaasGroteskTXPro-65Md.ttf') format('truetype');
}
@font-face {
  font-family: 'BlackerSans';
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url('/assets/fonts/Blacker-Sans-Display-Medium-Italic.ttf') format('truetype');
}

:root {
  --sia-blue: #043ada;
  --sia-blue-bright: #2a5cff;
  --sia-green: #96e448;
  --sia-black: #000000;
  --sia-paper: #f1efe6;
  --sia-paper-warm: #ebe7d8;
  --sia-line-on-paper: rgba(0, 0, 0, 0.12);

  --font-sans: 'NHaasGrotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-italic: 'BlackerSans', 'Times New Roman', serif;

  --pad-x: clamp(20px, 4vw, 56px);
  --radius: 22px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--sia-paper);
  color: var(--sia-black);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

/* ─────── Top nav (matches main site) ─────── */
.topnav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--pad-x));
  max-width: 1480px;
  z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px 12px 20px;
  background: var(--sia-blue);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(4, 58, 218, 0.18);
}
.topnav__brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.topnav__brand svg { width: 78px; height: 32px; }
.topnav__links { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 500; }
.topnav__links a {
  color: #fff;
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.topnav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%;
  bottom: 0; height: 1px; background: currentColor;
  transition: right .25s ease;
}
.topnav__links a:hover { color: var(--sia-green); }
.topnav__links a:hover::after,
.topnav__links a.is-active::after { right: 0; }
.topnav__links a.is-active { color: var(--sia-green); }

@media (max-width: 720px) {
  .topnav__links { display: none; }
}
/* ─────── Mobile menu ─────── */
.topnav__toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.topnav__toggle span {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.topnav.is-open .topnav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav.is-open .topnav__toggle span:nth-child(2) { opacity: 0; }
.topnav.is-open .topnav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .topnav { flex-wrap: wrap; padding-right: 14px; transition: border-radius .2s ease; }
  .topnav__toggle { display: flex; }
  .topnav.is-open { border-radius: 22px; }
  .topnav.is-open .topnav__links {
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; gap: 16px; font-size: 15px;
    padding: 16px 6px 8px; margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }
}


/* ─────── Page wrap ─────── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px var(--pad-x) 80px;
}
.wrap--wide { max-width: 1280px; }

/* ─────── Hero (hub + role pages) ─────── */
.c-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.c-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
.c-hero__eyebrow svg { width: 28px; height: 28px; }
.c-hero__title {
  font-weight: 600;
  font-size: clamp(44px, 6.5vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}
.c-hero__title .em {
  display: block;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  color: var(--sia-blue);
}
.c-hero__lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  max-width: 56ch;
  opacity: 0.85;
  margin: 0;
}

/* ─────── Role cards (hub page) ─────── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.role-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column;
  gap: 16px;
  color: var(--sia-black);
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
  min-height: 280px;
  position: relative;
}
.role-card:hover {
  background: var(--sia-blue);
  color: #fff;
  transform: translateY(-2px);
}
.role-card__no {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
}
.role-card__title {
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}
.role-card__sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--sia-blue);
  margin: 0;
  transition: color .25s ease;
}
.role-card:hover .role-card__sub { color: var(--sia-green); }
.role-card__meta {
  display: flex; flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
  margin-top: auto;
}
.role-card__arrow {
  position: absolute;
  right: clamp(20px, 2vw, 32px);
  bottom: clamp(20px, 2vw, 32px);
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  display: grid; place-items: center;
  transition: transform .2s ease;
}
.role-card:hover .role-card__arrow { transform: translate(3px, -3px); }
.role-card__arrow svg { width: 14px; height: 14px; }

/* ─────── "Don't see your role" block ─────── */
.spec-card {
  background: var(--sia-black);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
}
.spec-card h3 {
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.spec-card p {
  margin: 0;
  font-size: 15px;
  opacity: 0.85;
  max-width: 48ch;
}
.spec-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sia-green);
  color: var(--sia-black);
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.spec-card a:hover { background: var(--sia-blue-bright); color: #fff; }

/* ─────── Role page: meta strip ─────── */
.role-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin-bottom: clamp(40px, 5vw, 56px);
}
.role-meta__item {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 6px;
}
.role-meta__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  font-weight: 600;
}
.role-meta__value {
  font-size: 17px;
  font-weight: 500;
}

/* ─────── Role page: content sections ─────── */
.role-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 3.5vw, 48px);
  margin-bottom: clamp(20px, 2.4vw, 28px);
}
.role-section--dark {
  background: var(--sia-black);
  color: #fff;
}
.role-section--blue {
  background: var(--sia-blue);
  color: #fff;
}
.role-section__h {
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.role-section__h--italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
}
.role-section p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 70ch;
}
.role-section p:last-child { margin-bottom: 0; }
.role-section ul {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
}
.role-section ul li { margin-bottom: 8px; max-width: 68ch; }
.role-section ul:last-child { margin-bottom: 0; }
.role-section h4 {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 22px 0 12px;
  color: var(--sia-blue);
}
.role-section--dark h4 { color: var(--sia-green); }
.role-section--blue  h4 { color: var(--sia-green); }
.role-section h4:first-child { margin-top: 0; }

.role-subgroup {
  margin-bottom: 22px;
}
.role-subgroup__t {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--sia-blue);
}
.role-section--dark .role-subgroup__t,
.role-section--blue .role-subgroup__t { color: var(--sia-green); }

/* ─────── Apply CTA (role page bottom) ─────── */
.apply {
  background: var(--sia-black);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-top: clamp(28px, 3vw, 40px);
}
.apply h2 {
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.apply p { margin: 0; max-width: 56ch; opacity: 0.85; font-size: 16px; }
.apply__btn {
  background: var(--sia-green);
  color: var(--sia-black);
  border-radius: 999px;
  padding: 18px 28px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.apply__btn:hover { background: var(--sia-blue-bright); color: #fff; }
.apply__btn:active { transform: scale(0.985); }
.apply__small {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ─────── Back link ─────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 24px;
  transition: opacity .2s ease, color .2s ease;
}
.back-link:hover { opacity: 1; color: var(--sia-blue); }
.back-link svg { width: 14px; height: 14px; }

/* ─────── Footer (small) ─────── */
.cfooter {
  background: var(--sia-black);
  color: var(--sia-paper);
  padding: 36px var(--pad-x) 28px;
  text-align: center;
}
.cfooter a:hover { color: var(--sia-green); }
.cfooter__row {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
}
.cfooter__brand svg { width: 56px; height: 28px; color: var(--sia-green); }
.cfooter__line {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ─────── Responsive ─────── */
@media (max-width: 880px) {
  .role-grid { grid-template-columns: 1fr; }
  .spec-card { grid-template-columns: 1fr; }
  .spec-card a { justify-self: start; }
  .role-meta { grid-template-columns: 1fr; }
}

/* ─────── Footer (matches the homepage) ─────── */
.footer-svg {
  background: var(--sia-paper);
  padding: clamp(24px, 3vw, 40px) var(--pad-x) clamp(20px, 2.5vw, 32px);
}
.footer-svg__wrap {
  max-width: 1480px; margin: 0 auto;
  /* One rounded card: the artwork and the black bar are clipped together,
     matching the rounded blocks used through the rest of the site. */
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.footer-svg__img { display: block; width: 100%; height: auto; }
.footer-svg__bottom {
  background: #000;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(241, 239, 230, 0.6);
  padding: 14px clamp(20px, 3vw, 40px) 18px;
  margin-top: -2px;
}
