:root {
  --ink: #14211f;
  --muted: #5f6b68;
  --line: #d8e3dd;
  --paper: #fbfaf6;
  --mist: #edf3ef;
  --green: #123f35;
  --green-2: #1f6a54;
  --coral: #d66d55;
  --gold: #b99757;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 40, 35, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 16px 45px rgba(18, 63, 53, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 7px 12px 7px 8px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  font-weight: 800;
}

.brand-emblem-wrap {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(18, 63, 53, 0.1);
  overflow: hidden;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.brand-name {
  display: grid;
  gap: 1px;
  color: currentColor;
  font-size: clamp(0.88rem, 1.3vw, 1.04rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: none;
}

.site-footer .brand-name,
.admin-login .brand-name,
.admin-dashboard .brand-name {
  color: var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 140px clamp(20px, 4vw, 56px) 28px;
  color: var(--white);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -3;
  object-fit: cover;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 29, 25, 0.9) 0%, rgba(8, 29, 25, 0.72) 42%, rgba(8, 29, 25, 0.26) 100%),
    linear-gradient(0deg, rgba(8, 29, 25, 0.68) 0%, rgba(8, 29, 25, 0.08) 45%);
}

.hero-content {
  max-width: 760px;
  padding-bottom: clamp(44px, 8vw, 98px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7.2vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--green-2);
  box-shadow: 0 14px 32px rgba(31, 106, 84, 0.28);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.button.candidate {
  color: var(--ink);
  background: var(--white);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 980px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-proof div {
  padding: clamp(18px, 2.8vw, 26px);
  background: rgba(255, 255, 255, 0.1);
}

.hero-proof strong,
.proof-stats strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.hero-proof span,
.proof-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.section-pad {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 4vw, 56px);
}

.intro {
  background: var(--paper);
}

.intro-grid,
.section-head,
.partners,
.contact,
.proof {
  max-width: 1180px;
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-grid p,
.section-head p,
.partners-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.roles {
  background: var(--mist);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 390px;
  margin-bottom: 4px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.role-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 63, 53, 0.06);
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  border-radius: 8px;
  color: var(--green);
  background: #e8f0eb;
  font-size: 1.3rem;
  font-weight: 800;
}

.role-card h3,
.step h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.role-card p,
.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.open-roles {
  background: var(--paper);
}

.open-roles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.roles-board {
  display: grid;
  gap: 14px;
}

.open-roles > .roles-board {
  max-width: 1180px;
  margin: 0 auto;
}

.open-role-card,
.empty-roles,
.admin-role-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 63, 53, 0.06);
}

.open-role-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.role-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.role-card-top h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-meta span,
.role-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--green);
  background: var(--mist);
  font-size: 0.78rem;
  font-weight: 800;
}

.role-status {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--green-2);
}

.role-description,
.role-description p,
.role-description ul,
.role-description ol,
.empty-roles p,
.form-note {
  margin-bottom: 0;
  color: var(--muted);
}

.role-description {
  display: grid;
  gap: 12px;
}

.role-description p,
.role-description ul {
  margin-top: 0;
}

.role-description ul,
.role-description ol {
  padding-left: 20px;
}

.role-description li + li {
  margin-top: 6px;
}

.role-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button.small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.button.remove {
  color: var(--green);
  border-color: var(--line);
  background: var(--white);
  box-shadow: none;
}

.button.edit {
  color: var(--white);
  background: var(--coral);
  box-shadow: none;
}

.empty-roles {
  padding: 30px;
}

.empty-roles h3 {
  margin-bottom: 8px;
}

.admin-role-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-role-form h3 {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions .button {
  flex: 1 1 160px;
}

.form-note {
  font-size: 0.86rem;
}

.partners {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.partners-copy h2 {
  margin-bottom: 22px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green-2);
  font-weight: 800;
}

.partner-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row span {
  color: var(--muted);
  font-weight: 700;
}

.panel-row strong {
  text-align: right;
}

.process {
  color: var(--white);
  background: var(--green);
}

.process .section-head {
  color: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.step {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.step span {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 800;
}

.step p {
  color: rgba(255, 255, 255, 0.74);
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.quote p {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3.6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
}

.proof-stats {
  display: grid;
  gap: 12px;
}

.proof-stats div {
  padding: 24px;
  border-left: 4px solid var(--coral);
  background: var(--mist);
}

.proof-stats span {
  color: var(--muted);
}

.candidate-apply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--white);
  background: linear-gradient(135deg, #123f35, #1f6a54);
}

.candidate-copy {
  max-width: 820px;
}

.candidate-copy h2 {
  margin-bottom: 18px;
}

.candidate-copy p {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.06rem;
}

.candidate-apply .button {
  flex: 0 0 auto;
  background: var(--coral);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

textarea {
  resize: vertical;
}

.rich-field {
  display: grid;
  gap: 8px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.rich-toolbar button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: var(--white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.rich-editor {
  min-height: 250px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.rich-editor:focus {
  outline: 2px solid rgba(31, 106, 84, 0.28);
  outline-offset: 2px;
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol {
  margin-top: 0;
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol {
  margin-bottom: 12px;
}

.rich-editor ul,
.rich-editor ol {
  padding-left: 22px;
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: #0c2822;
}

.site-footer p {
  max-width: 480px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.application-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 29, 25, 0.72);
  backdrop-filter: blur(10px);
}

.application-panel {
  position: relative;
  width: min(100%, 640px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.application-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.application-role {
  margin-bottom: 24px;
  color: var(--green-2);
  font-weight: 900;
}

.application-form {
  display: grid;
  gap: 16px;
}

.application-form .button {
  width: 100%;
}

.application-confirmation p {
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(18, 63, 53, 0.94), rgba(31, 106, 84, 0.82)),
    var(--green);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
}

.admin-login,
.admin-dashboard {
  width: min(100%, 1180px);
}

.admin-login {
  display: grid;
  gap: 30px;
  max-width: 520px;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(251, 250, 246, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.admin-brand {
  align-self: start;
}

.admin-login h1,
.admin-dashboard h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.admin-login p,
.admin-dashboard-head p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.admin-login-form {
  display: grid;
  gap: 16px;
}

.admin-login-form label {
  color: var(--white);
}

.admin-login-form input {
  background: var(--white);
}

.admin-login-form .form-note {
  color: #ffd7ce;
  font-weight: 800;
}

.admin-dashboard {
  display: grid;
  gap: 28px;
  color: var(--white);
}

.admin-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-public-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
}

.admin-open-roles .open-role-card,
.admin-open-roles .empty-roles,
.admin-open-roles .admin-role-form {
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: block;
  }

  .intro-grid,
  .partners,
  .proof,
  .contact,
  .open-roles-layout {
    grid-template-columns: 1fr;
  }

  .role-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 18px;
  }

  .candidate-apply {
    display: grid;
  }

  .candidate-apply .button {
    justify-self: start;
  }

  .admin-dashboard-head {
    display: grid;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-emblem-wrap {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-emblem {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    max-width: 160px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 98vh;
    padding: 112px 18px 18px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(8, 29, 25, 0.92) 0%, rgba(8, 29, 25, 0.72) 100%),
      linear-gradient(0deg, rgba(8, 29, 25, 0.76) 0%, rgba(8, 29, 25, 0.04) 50%);
  }

  .hero h1 {
    font-size: clamp(2.3rem, 13vw, 4.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .candidate-apply .button {
    justify-self: stretch;
  }

  .role-card-top,
  .form-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .role-status {
    justify-self: start;
  }

  .hero-proof,
  .role-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .step,
  .role-card {
    min-height: auto;
  }

  .panel-row,
  .site-footer {
    display: block;
  }

  .panel-row strong {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .site-footer p {
    margin-top: 18px;
    text-align: left;
  }
}
