:root {
  --cream-50: #f4f0e6;
  --cream-100: #ece6d5;
  --cream-200: #dbd4c3;
  --cream-300: #c7bfa8;
  --sand-400: #918d81;
  --espresso: #21150b;
  --espresso-soft: #2b1f14;
  --steel-100: #bfd8eb;
  --steel-200: #7dc1e4;
  --steel-300: #6e8d99;
  --steel-400: #2e5b6e;
  --steel-500: #23424f;
  --steel-600: #184254;
  --coral-300: #d48e76;
  --coral-500: #cc4729;
  --bg: #f1f5f8;
  --surface: #ffffff;
  --surface-soft: #e8eff4;
  --text: #21150b;
  --text-2: #2a3a42;
  --muted: #6e8d99;
  --line: rgba(35, 66, 79, 0.14);
  --line-strong: rgba(35, 66, 79, 0.24);
  --accent: #23424f;
  --accent-hover: #184254;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-md: 0 1px 2px rgba(33, 21, 11, 0.05), 0 8px 24px -14px rgba(33, 21, 11, 0.12);
  --shadow-pop: 0 2px 4px rgba(33, 21, 11, 0.08), 0 18px 40px -16px rgba(33, 21, 11, 0.28);
  --focus-ring: 0 0 0 3px rgba(46, 91, 110, 0.35);
  --font-sans: "Heebo", "Assistant", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
  --bg: #121d22;
  --surface: #1b292f;
  --surface-soft: #25383f;
  --text: #f4f0e6;
  --text-2: #dbe6ea;
  --muted: #9db8c4;
  --line: rgba(244, 240, 230, 0.16);
  --line-strong: rgba(244, 240, 230, 0.26);
  --accent: #7dc1e4;
  --accent-hover: #bfd8eb;
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.22), 0 12px 28px -16px rgba(0, 0, 0, 0.52);
  --shadow-pop: 0 2px 4px rgba(0, 0, 0, 0.22), 0 22px 48px -18px rgba(0, 0, 0, 0.66);
  --focus-ring: 0 0 0 3px rgba(125, 193, 228, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: rgba(46, 91, 110, 0.24);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 245, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="dark"] .masthead {
  background: rgba(18, 29, 34, 0.9);
}

.masthead-inner {
  width: min(72rem, calc(100% - 2rem));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: 148px;
  height: auto;
}

nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-2);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
}

.lang-switch,
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.lang-option,
.theme-option {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-option:hover,
.theme-option:hover {
  background: var(--surface-soft);
}

.lang-option.is-active,
.theme-option.is-active {
  background: var(--accent);
  color: var(--surface);
}

html[data-theme="light"] .lang-option.is-active,
html[data-theme="light"] .theme-option.is-active {
  color: #ffffff;
}

nav a:hover,
nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hero {
  min-height: min(790px, calc(100svh - 108px));
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--espresso);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 21, 11, 0.18), rgba(33, 21, 11, 0.56)),
    linear-gradient(0deg, rgba(33, 21, 11, 0.74), rgba(33, 21, 11, 0.14) 58%, rgba(33, 21, 11, 0.12));
}

html[dir="ltr"] .hero::after {
  background:
    linear-gradient(270deg, rgba(33, 21, 11, 0.18), rgba(33, 21, 11, 0.56)),
    linear-gradient(0deg, rgba(33, 21, 11, 0.74), rgba(33, 21, 11, 0.14) 58%, rgba(33, 21, 11, 0.12));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0 3rem;
  color: var(--cream-50);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--steel-100);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
}

html[dir="ltr"] h1 {
  max-width: 14ch;
}

.hero-lede {
  max-width: 47rem;
  color: var(--cream-100);
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}

.btn-primary,
.btn-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

html[data-theme="dark"] .btn-primary {
  color: #121d22;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(236, 230, 213, 0.4);
  color: var(--cream-50);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.quick-facts {
  width: min(48rem, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(236, 230, 213, 0.26);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(236, 230, 213, 0.18);
}

.quick-facts div {
  min-height: 76px;
  padding: 0.7rem 0.85rem;
  background: rgba(24, 66, 84, 0.34);
}

.quick-facts dt {
  color: var(--steel-100);
  font-size: 0.8rem;
  font-weight: 600;
}

.quick-facts dd {
  margin: 0.15rem 0 0;
  color: var(--cream-50);
  font-size: 1.1rem;
  font-weight: 800;
}

.section {
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section--intro {
  background: var(--surface);
}

.section--mentor {
  background: #edf3f6;
}

html[data-theme="dark"] .section--mentor {
  background: #102228;
}

.intro-grid,
.split,
.apply-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
}

.section-kicker {
  color: var(--steel-400);
}

h2 {
  max-width: 14ch;
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

html[dir="ltr"] h2 {
  max-width: 16ch;
}

.intro-grid > p,
.prose p,
.role-head p,
.apply-grid > div > p {
  max-width: 48rem;
  color: var(--text-2);
  font-size: 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section--role {
  background: linear-gradient(180deg, var(--bg), #ffffff);
}

html[data-theme="dark"] .section--role {
  background: linear-gradient(180deg, var(--bg), #16252b);
}

.role-head {
  max-width: none;
  margin-bottom: 1.75rem;
}

.role-head h2 {
  max-width: none;
}

.role-head p {
  max-width: 68rem;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.role-card {
  min-height: 205px;
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.role-card h3,
.fit-block h3 {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1.3;
}

.role-card p {
  color: var(--text-2);
}

.fit-block {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.fit-block > div,
.fit-block aside {
  padding: 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

ul {
  padding-inline-start: 1.25rem;
  margin-bottom: 0;
}

li + li {
  margin-top: 0.45rem;
}

.fit-block aside {
  background: var(--accent);
  color: var(--surface);
}

html[data-theme="light"] .fit-block aside {
  color: #ffffff;
}

.fit-block aside p {
  margin-bottom: 0.8rem;
}

.fit-block aside p:last-child {
  margin-bottom: 0;
}

.section--apply {
  background: var(--surface);
}

.apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-pop);
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 700;
}

.field-help {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.wide {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea {
  background: #101a1f;
}

input::placeholder {
  color: var(--muted);
}

.form-note {
  grid-column: 1 / -1;
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.4rem;
  margin: -0.2rem 0 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
}

.form-status[data-state="error"] {
  color: var(--coral-500);
}

html[data-theme="dark"] .form-status[data-state="error"] {
  color: var(--coral-300);
}

.hp-field {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

footer {
  background: var(--espresso);
  color: var(--cream-100);
}

.footer-inner {
  width: min(72rem, calc(100% - 2rem));
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 2rem 0;
}

.footer-inner img {
  width: 150px;
  height: auto;
}

.footer-inner p {
  margin: 0;
  color: var(--cream-100);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
  text-underline-offset: 0.18em;
}

.text-link:hover {
  color: var(--accent-hover);
}

@media (max-width: 860px) {
  .hero {
    min-height: min(720px, calc(100svh - 104px));
  }

  .intro-grid,
  .split,
  .apply-grid,
  .fit-block {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .quick-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .apply-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .masthead-inner {
    width: min(100% - 1rem, 72rem);
  }

  .brand img {
    width: 112px;
  }

  nav a {
    padding: 0.35rem 0.45rem;
    font-size: 0.92rem;
  }

  nav {
    display: none;
  }

  .masthead-actions {
    gap: 0.35rem;
  }

  .lang-option,
  .theme-option {
    min-height: 32px;
    padding: 0.2rem 0.45rem;
    font-size: 0.82rem;
  }

  .hero-copy {
    width: min(100% - 1rem, 72rem);
    padding-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.6rem);
  }

  .section-inner {
    width: min(100% - 1rem, 72rem);
    padding: 3.25rem 0;
  }

  .quick-facts div {
    min-height: 68px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
