:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #e4e7ee;
  --line-strong: #d3d9e3;
  --text: #273248;
  --muted: #667085;
  --muted-soft: #8a94a8;
  --accent: #2d68ff;
  --accent-soft: #eef4ff;
  --content-width: 1080px;
  --content-narrow: 980px;
  --detail-sidebar-width: 250px;
  --detail-gap: 3rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

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

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.page-shell--narrow {
  width: min(calc(100% - 2rem), var(--content-narrow));
}

.job-card {
  background: transparent;
}

.section,
.section--intro,
.cta {
  padding: 0;
}

.section + .section,
.section + .cta,
.section--intro + .section {
  margin-top: 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand--center {
  justify-content: center;
  width: 100%;
}

.brand--link {
  transition: opacity 160ms ease;
}

.brand--link:hover {
  opacity: 0.88;
}

.brand__logo {
  display: block;
  width: auto;
  height: 2.9rem;
}

.overview-header {
  display: grid;
  gap: 1.7rem;
}

.overview-copy {
  max-width: 48rem;
}

.overview-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.overview-copy p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.overview-subline {
  margin-top: 1.2rem;
  color: #596b88;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #d8e2f3;
  border-radius: 999px;
  color: #4f5f80;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.section-heading {
  margin: 0 0 1.35rem;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading--small {
  font-size: 1.06rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.jobs-list {
  border-top: 1px solid var(--line);
}

.job-row {
  display: block;
  margin-top: 0.85rem;
  padding: 1.35rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(98, 123, 255, 0.06),
    0 10px 24px rgba(96, 110, 214, 0.08);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.job-row:hover {
  border-color: #cfd8e6;
  background: linear-gradient(180deg, #fcfdff 0%, #f7f9fc 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 0 0 1px rgba(85, 114, 255, 0.1),
    0 14px 30px rgba(84, 103, 200, 0.12);
  transform: translateY(-1px);
}

.job-row__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.job-row__title {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.job-row__meta {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.job-row__arrow {
  flex: 0 0 auto;
  color: #7d8ab0;
  font-size: 1.15rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    color 160ms ease;
}

.job-row:hover .job-row__arrow {
  color: var(--text);
  transform: translateX(3px);
}

.detail-topbar {
  display: grid;
  grid-template-columns: var(--detail-sidebar-width) minmax(0, 1fr);
  gap: var(--detail-gap);
  align-items: start;
  margin-bottom: 1.35rem;
}

.back-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 160ms ease;
}

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

.detail-header {
  display: grid;
  gap: 1.5rem;
  margin-left: calc(var(--detail-sidebar-width) + var(--detail-gap));
  max-width: 44rem;
  margin-bottom: 0.35rem;
}

.detail-title {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.detail-pills-mobile {
  display: none;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.78rem;
  border: 1px solid #dbe3f2;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #51627f;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

.detail-intro {
  max-width: 40rem;
  margin: 0.5rem 0 0;
  padding: 1rem 1.15rem;
  color: #556783;
  font-size: 1.08rem;
  line-height: 1.8;
  border: 1px solid #dde5f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7faff 100%);
}

.detail-layout {
  display: grid;
  grid-template-columns: var(--detail-sidebar-width) minmax(0, 1fr);
  gap: var(--detail-gap);
  align-items: start;
  margin-top: 2.2rem;
}

.detail-sidebar {
  position: sticky;
  top: 2rem;
}

.meta-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.meta-item {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.meta-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.meta-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #65738f;
  font-size: 0.9rem;
  font-weight: 700;
}

.meta-value {
  display: block;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.detail-content {
  min-width: 0;
}

.content-section + .content-section {
  margin-top: 2.6rem;
}

.content-section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  position: relative;
  padding-bottom: 0.45rem;
}

.content-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #8d5bff);
  border-radius: 999px;
}

.content-copy {
  max-width: 44rem;
}

.content-copy p,
.content-copy li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.82;
}

.content-copy p + p,
.content-copy ul,
.content-copy p + ul {
  margin-top: 1rem;
}

.content-copy ul {
  padding-left: 1.2rem;
}

.content-copy li + li {
  margin-top: 0.75rem;
}

.content-copy li::marker {
  color: var(--muted-soft);
}

.apply-box {
  margin-top: 3rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #dce5f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #fbfcff 100%);
}

.apply-box h2 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.apply-box p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.text-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c9d1ea;
  text-underline-offset: 0.16em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .page-shell,
  .page-shell--wide,
  .page-shell--narrow {
    width: min(calc(100% - 2rem), var(--content-width));
  }

  .overview-copy {
    max-width: 42rem;
  }

  .overview-header {
    gap: 1.9rem;
  }

  .overview-copy p {
    font-size: 1.02rem;
    line-height: 1.78;
  }

  .job-row {
    padding: 1.2rem 1.05rem;
  }

  .job-row__title {
    font-size: 1.2rem;
  }

  .detail-topbar {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-top: 1.75rem;
  }

  .detail-sidebar {
    position: static;
  }

  .detail-header {
    margin-left: 0;
    margin-bottom: 0;
    max-width: 40rem;
    gap: 1.15rem;
  }

  .detail-intro {
    margin-top: 0.7rem;
    font-size: 1.02rem;
    line-height: 1.72;
    padding: 1.05rem 1.05rem;
  }

  .meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  .meta-item {
    padding: 0.95rem 0;
  }

  .meta-item:nth-child(2) {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .page-shell--wide,
  .page-shell--narrow {
    width: min(calc(100% - 2.5rem), var(--content-width));
    padding: 2rem 0 3.35rem;
  }

  .brand__logo {
    height: 2.15rem;
  }

  .overview-header {
    gap: 2rem;
  }

  .overview-copy h1,
  .detail-title {
    font-size: 2rem;
    letter-spacing: -0.045em;
  }

  .overview-copy p {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.74;
  }

  .overview-subline {
    margin-top: 1.4rem;
    font-size: 0.92rem;
  }

  .section + .section,
  .section + .cta,
  .section--intro + .section {
    margin-top: 3.15rem;
  }

  .section-heading--small {
    margin-bottom: 1rem;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
  }

  .jobs-list {
    border-top: 0;
  }

  .job-row {
    margin-top: 0;
    padding: 1.28rem 1.18rem;
    border-radius: 18px;
  }

  .job-row + .job-row {
    margin-top: 0.85rem;
  }

  .job-row__header {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .job-row__title {
    font-size: 1.18rem;
    line-height: 1.22;
  }

  .job-row__meta {
    margin-top: 0.55rem;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .job-row__arrow {
    margin-top: 0.08rem;
    font-size: 1rem;
  }

  .detail-topbar {
    gap: 0.85rem;
    margin-bottom: 1.55rem;
  }

  .back-link {
    font-size: 0.92rem;
  }

  .content-section h2 {
    font-size: 1.45rem;
  }

  .detail-title {
    max-width: none;
    font-size: 1.88rem;
    line-height: 1.03;
  }

  .detail-header {
    gap: 1.25rem;
  }

  .detail-pills-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: -0.15rem;
  }

  .detail-intro {
    margin-top: 0.65rem;
    padding: 1.1rem 1rem;
    font-size: 0.97rem;
    line-height: 1.72;
  }

  .detail-layout {
    gap: 2.3rem;
    margin-top: 2rem;
  }

  .detail-sidebar {
    display: none;
  }

  .content-section + .content-section {
    margin-top: 2.7rem;
  }

  .content-copy p,
  .content-copy li {
    font-size: 0.96rem;
    line-height: 1.76;
  }

  .content-copy p + p,
  .content-copy ul,
  .content-copy p + ul {
    margin-top: 1.15rem;
  }

  .apply-box {
    margin-top: 2.8rem;
    padding: 1.2rem 1rem;
  }
}
