:root {
  scrollbar-gutter: stable;
  --lp-gutter: max(clamp(1.125rem, 6.5vw, 5.85rem), calc((100% - 78.3rem) / 2));
  --lp-header-height: 5rem;
  --lp-display: Georgia, "Times New Roman", serif;
  --lp-text: Arial, Helvetica, sans-serif;
  --lp-title-size: clamp(1.875rem, 1.35rem + 1.85vw, 3rem);
  --lp-lead-size: clamp(1.125rem, 1.05rem + .225vw, 1.25rem);
  --lp-intro-size: clamp(1rem, .95rem + .15vw, 1.125rem);
  --lp-section-space: clamp(2rem, 4.5vw, 4.5rem);
}

.lp-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
  min-block-size: var(--lp-header-height);
  padding-inline: var(--lp-gutter);
  background: #fff;
  color: #283846;
  font: 400 .875rem/1.35 var(--lp-text);
}

.lp-header .lp-header__brand {
  display: block;
  flex: none;
}

.lp-header__brand img {
  display: block;
  width: 6.5625rem;
  height: auto;
}

.lp-header__toggle {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid #ced7d9;
  border-radius: .2rem;
  background: #fff;
  color: #10293c;
  cursor: pointer;
}

.lp-header__toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}

.lp-header .lp-header__nav {
  display: none;
  position: absolute;
  inset: 100% 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: .25rem;
  max-block-size: calc(100dvh - var(--lp-header-height));
  padding: .75rem var(--lp-gutter) 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  box-shadow: 0 .5rem 1rem rgb(7 24 39 / 12%);
}

.lp-header__toggle[aria-expanded="true"] + .lp-header__nav {
  display: flex;
}

.lp-header .lp-header__nav > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  min-block-size: 2.75rem;
  padding: .375rem 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: none;
  overflow-wrap: normal;
}

.lp-header .lp-header__nav > a:hover,
.lp-header .lp-header__nav > a[aria-current] {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.lp-header .lp-header__nav > .lp-header__action {
  justify-content: center;
  min-block-size: 3rem;
  padding: .5rem 1rem;
  border-radius: .15rem;
  background: #895b25;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.lp-header .lp-header__nav > .lp-header__action:hover {
  background: #754b1d;
}

.lp-header :is(a, button):focus-visible {
  outline: 3px solid #2478ac;
  outline-offset: 3px;
}

@media (min-width: 72rem) {
  :root { --lp-header-height: 6.25rem; }
  .lp-header__brand img { width: 7.8125rem; }
  .lp-header__toggle { display: none; }
  .lp-header .lp-header__nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 1.5vw, 1.5rem);
    padding: 0;
    max-block-size: none;
    overflow: visible;
    box-shadow: none;
  }
  .lp-header .lp-header__nav > a {
    flex: none;
    white-space: nowrap;
  }
  .lp-header .lp-header__nav > .lp-header__action {
    inline-size: 12.5rem;
  }
}

body .lp-hero.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-block-size: 0;
  height: auto;
  overflow: visible;
}

body .lp-hero .lp-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: var(--lp-section-space) var(--lp-gutter);
  font-family: var(--lp-text);
}

body .lp-hero .lp-hero__media {
  position: relative;
  inset: auto;
  order: 0;
  display: block;
  align-self: stretch;
  width: auto;
  height: auto !important;
  min-height: 0 !important;
  max-height: none;
  min-width: 0;
  aspect-ratio: 1.9;
  overflow: hidden;
}

body .lp-hero .lp-hero__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  object-fit: cover;
}

body .lp-hero .lp-hero__copy > .lp-hero__kicker {
  margin: 0 0 .875rem;
  font: 700 .8125rem/1.4 var(--lp-text);
  letter-spacing: .06em;
}

body .lp-hero .lp-hero__kicker::after { content: none; }

body .lp-hero .lp-hero__copy > .lp-hero__title,
body .lp-reading > .lp-hero__title {
  margin: 0;
  max-width: 26ch;
  font: 700 var(--lp-title-size)/1.1 var(--lp-display);
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

body .lp-hero .lp-hero__title > .hero-title-line { display: inline; }

body .lp-hero .lp-hero__copy > .lp-hero__lead {
  max-width: 48ch;
  margin: .875rem 0 0;
  font: 700 var(--lp-lead-size)/1.4 var(--lp-text);
  letter-spacing: normal;
  text-wrap: pretty;
}

body .lp-hero .lp-hero__copy > .lp-hero__intro,
body .lp-reading > .lp-hero__intro {
  max-width: 56ch;
  margin: .75rem 0 0;
  font: 400 var(--lp-intro-size)/1.55 var(--lp-text);
  letter-spacing: normal;
  text-wrap: pretty;
}

body .lp-hero .lp-hero__copy > :is(.button, .hero-actions, .cs-primary, .landing-button, .lp-worker-offer) {
  margin-top: 1.25rem;
  min-width: 0;
  max-width: 100%;
}

body .lp-hero .lp-hero__copy > :is(.button, .cs-primary, .landing-button) {
  width: fit-content;
  white-space: normal;
}

body .lp-hero .lp-hero__copy > .profile-rule { display: none; }
body .lp-hero .lp-hero__copy > .hero-note { margin-top: .875rem; }

body .lp-hero.lp-hero--contact {
  display: block;
  padding: var(--lp-section-space) var(--lp-gutter);
}

.lp-hero--contact .contact-hero__grid {
  width: 100%;
  margin: 0;
  gap: clamp(1.5rem, 4vw, 4.5rem);
}

body .lp-hero--contact .lp-hero__copy { padding: 0; }

body .lp-reading {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--lp-section-space) var(--lp-gutter);
}

body .lp-reading > :is(p, ul, ol) { max-width: 72ch; }
body .lp-reading > h2 { max-width: 40ch; }
body .lp-reading > .code { margin: 0 0 .875rem; }

.cs-main:has(> .lp-hero) { max-width: none; }
.cs-main:has(> .lp-hero) > :not(.lp-hero) {
  max-width: 75rem;
  margin-inline: auto;
}

@media (min-width: 56rem) {
  body .lp-hero.lp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body .lp-hero .lp-hero__copy {
    padding-inline-end: clamp(1.75rem, 3.2vw, 3.5rem);
  }
  body .lp-hero .lp-hero__media { aspect-ratio: auto; }
  body .lp-hero:not(.lp-hero--contact) { min-block-size: clamp(23rem, 34vw, 32rem); }
  body .lp-hero .profile-hero__image img { object-position: center 30%; }
}

@media (max-width: 47.5rem) {
  .profile-page .profile-cards { min-width: 0; }
  .profile-page .profile-cards > * { min-width: 0; overflow-wrap: anywhere; }
  .profile-page .profile-dark { overflow-wrap: anywhere; }
}

@media (max-width: 56rem) {
  :is(.profile-page .profile-dark, .campaign-page .campaign-final, body[data-page] .final-feature) {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(.profile-dark, .campaign-final, .final-feature) > * { min-width: 0; }
}

@media (max-width: 35rem) {
  .hero-actions { flex-wrap: wrap; }
}

@media (max-width: 35rem) {
  .options { grid-template-columns: minmax(0, 1fr); }
  .options .button { white-space: normal; }
}
