* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #0B0D10;                    /* page background (dark, matches landing) */
  --ink: #FFFFFF;                      /* primary text / inverted fills */
  --muted: rgba(255, 255, 255, 0.52);
  --faint: rgba(255, 255, 255, 0.12);
  --accent: #E8A33D;
  --font-main: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  opacity: 1;
}

a {
  color: inherit;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.page {
  min-height: 100vh;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--font-main);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo {
  display: block;
  width: clamp(108px, 12vw, 148px);
  height: auto;
  filter: brightness(0) invert(1);     /* black wordmark → white on dark */
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
  text-decoration: none;
}

.kicker {
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

h1 {
  max-width: 680px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.lede {
  max-width: 660px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.article {
  border-top: 0.5px solid var(--faint);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.section {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-bottom: 0.5px solid var(--faint);
}

.section-label {
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 1.45rem 0 0.45rem;
}

p {
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  line-height: 1.64;
  color: rgba(255, 255, 255, 0.64);
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  margin: 1.15rem 0 0;
}

li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.72rem;
  font-size: clamp(1.04rem, 2.1vw, 1.16rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.64);
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--accent);
  font-style: italic;
  color: rgba(255, 255, 255, 0.64);
}

.apply-panel {
  margin-top: 1.55rem;
}

.apply-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.apply-cta:hover,
.apply-cta:focus-visible {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.mission-shell {
  width: min(920px, 100%);
}

.mission-shell h1 {
  max-width: 880px;
}

.mission-shell .lede {
  max-width: 820px;
}

.mission-article {
  margin-top: 0.5rem;
}

.mission-section {
  grid-template-columns: minmax(3rem, 4rem) minmax(0, 1fr);
}

.mission-section > div:last-child {
  max-width: 760px;
}

.mission-signoff {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
  align-items: center;
  justify-content: space-between;
  border-top: 0.5px solid var(--faint);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-top: 1.1rem;
}

.mission-signoff p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.62);
}

.legal-shell {
  width: min(880px, 100%);
}

.legal-updated {
  margin: calc(-1 * clamp(1rem, 2vw, 1.5rem)) 0 clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-main);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.46);
}

.legal-article {
  margin-top: 0.5rem;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-bottom: 0.5px solid var(--faint);
}

.legal-section > div:last-child {
  max-width: 680px;
}

.legal-section h2,
.support-card h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
}

.legal-section p,
.legal-section li,
.support-card p {
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.support-card {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.support-card .section-label {
  display: block;
  margin-bottom: 1rem;
}

.support-email {
  color: var(--ink);
  font-size: clamp(1.12rem, 2.4vw, 1.35rem);
}

.apply-help {
  max-width: 520px;
  margin-top: 0.85rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--muted);
}

.footer {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--muted);
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.footer .sep {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.55rem;
}

.careers-shell {
  width: min(900px, 100%);
  margin: 0 auto;
}

.careers-hero {
  max-width: 760px;
}

.careers-lede {
  margin-bottom: 1.35rem;
}

.apply-snapshot {
  border-top: 1px solid var(--ink);
  border-bottom: 0.5px solid var(--faint);
  padding: 1rem 0 1.15rem;
}

.apply-snapshot p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

.apply-snapshot .snapshot-label {
  margin-bottom: 0.6rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--accent);
}

.apply-snapshot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.roles {
  border-top: 0.5px solid var(--faint);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.role-group {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.1rem, 2vw, 1.5rem) 0;
  border-bottom: 0.5px solid var(--faint);
}

.role-list {
  display: grid;
  gap: 0;
}

.role-section-title {
  margin: 1.6rem 0 0.25rem;
  padding-top: 0.9rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
}

.role-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.role-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  width: 100%;
  min-height: 5.25rem;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.role-button:last-child {
  border-bottom: 0;
}

.role-button:hover .role-title,
.role-button:focus-visible .role-title {
  color: var(--accent);
}

.role-button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 8px;
}

.role-copy {
  display: block;
}

.role-title {
  display: block;
  font-size: clamp(1.32rem, 3vw, 1.85rem);
  line-height: 1.08;
  transition: color 0.18s ease;
}

.role-summary {
  display: block;
  max-width: 650px;
  margin-top: 0.7rem;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.64);
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 0.65rem;
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--muted);
}

.role-comp {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--accent);
}

.role-action {
  align-self: center;
  font-family: var(--font-main);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.18s ease;
}

.role-button:hover .role-action,
.role-button:focus-visible .role-action {
  color: var(--accent);
  transform: translateX(2px);
}

.careers-apply {
  margin-top: 0.2rem;
}

.culture-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: min(840px, calc(100vh - 2rem));
  margin: auto;
  padding: 0;
  border: 0.5px solid var(--faint);
  background: #14171c;
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

.culture-dialog::backdrop {
  background: rgba(16, 16, 15, 0.52);
}

.culture-panel {
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.culture-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1.1rem;
}

.culture-close:hover,
.culture-close:focus-visible {
  color: var(--ink);
}

.culture-dialog h2 {
  max-width: 610px;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  margin: 0 0 1.2rem;
}

.culture-dialog p {
  max-width: 620px;
}

.culture-block {
  border-top: 0.5px solid var(--faint);
  margin-top: 1.7rem;
  padding-top: 1.35rem;
}

.culture-block ul {
  margin-top: 0.9rem;
}

.culture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
  align-items: center;
  border-top: 0.5px solid var(--faint);
  margin-top: 1.8rem;
  padding-top: 1.35rem;
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.culture-primary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.2rem;
}

.culture-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.role-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: -0.5rem 0 clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-main);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 640px) {
  .page {
    padding: 1.2rem;
  }

  .masthead {
    align-items: flex-start;
    padding-bottom: 2rem;
  }

  .section {
    display: block;
    padding: 1.25rem 0;
  }

  .legal-section {
    display: block;
    padding: 1.25rem 0;
  }

  .role-group {
    display: block;
  }

  .careers-hero {
    display: block;
  }

  .apply-snapshot {
    margin-top: 2rem;
  }

  .role-list {
    margin-top: 0.35rem;
  }

  .role-button {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .role-action {
    align-self: start;
    margin-top: 0.15rem;
  }

  .section-label {
    margin-bottom: 0.8rem;
  }

  .footer {
    line-height: 2.2;
  }

  .footer .sep {
    margin: 0 0.25rem;
  }
}
