@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-serif-display-italic-latin.woff2") format("woff2");
}

:root {
  --forest: #132019;
  --forest-soft: #314137;
  --white: #f7f5ef;
  --sage: #9dad92;
  --sage-field: #aab99f;
  --error: #a53b32;
  --rule-dark: rgb(19 32 25 / 42%);
  --rule-light: rgb(247 245 239 / 24%);
  --text-light-muted: rgb(247 245 239 / 72%);
  --text-dark-muted: rgb(19 32 25 / 72%);
  --shell: 1440px;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --section-space: clamp(5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scrollbar-color: var(--sage) var(--forest);
}

body {
  margin: 0;
  background: var(--forest);
  color: var(--white);
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  transform: translateY(calc(-100% - 1rem));
  transition: transform 160ms ease;
  background: var(--white);
  color: var(--forest);
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.keyboard-navigation .skip-link:focus-visible {
  transform: translateY(0);
}

.skip-link:focus:not(:focus-visible) {
  transform: translateY(calc(-100% - 1rem));
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding: 1.75rem var(--gutter);
}

.brand,
.header-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.brand {
  gap: 0.7rem;
}

.brand__mark {
  flex: 0 0 auto;
  width: 1.4rem;
  height: auto;
  object-fit: contain;
}

.header-action {
  color: rgb(247 245 239 / 72%);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45rem;
  transition: color 180ms var(--ease-out);
}

.header-action:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  background:
    radial-gradient(circle at 10% 64%, rgb(157 173 146 / 18%), transparent 42%),
    var(--forest);
}

.hero__inner {
  display: grid;
  align-content: center;
  min-height: 100svh;
  padding-block: clamp(8.75rem, 16vh, 12rem) clamp(5rem, 10vh, 8rem);
}

.hero__title {
  max-width: 70rem;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

.hero em,
.service em,
.method em,
.contact em {
  color: var(--sage);
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.contact em {
  color: var(--forest-soft);
}

.hero__support {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  max-width: 39rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.hero__support p {
  max-width: 58ch;
  margin: 0;
  color: var(--text-light-muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.button svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.65;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--light {
  background: var(--white);
  color: var(--forest);
}

.button--dark {
  background: var(--forest);
  color: var(--white);
}

.services,
.contact {
  background: var(--sage-field);
  color: var(--forest);
}

.services {
  padding-block: var(--section-space);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.75rem);
}

.section-heading h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.section-heading p {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--forest);
  color: var(--white);
}

.service {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 21rem;
  padding: clamp(1.75rem, 3vw, 3rem);
  border-inline-end: 1px solid var(--rule-light);
}

.service:last-child {
  border-inline-end: 0;
}

.service__number {
  color: rgb(247 245 239 / 64%);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.service h3 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.service p {
  max-width: 31ch;
  margin: 1rem 0 0;
  color: var(--text-light-muted);
  font-size: 0.96rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.method {
  background: var(--forest);
  padding-block: var(--section-space);
}

.method h2 {
  max-width: 59rem;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.98;
  text-wrap: balance;
}

.method__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  padding: 0;
  list-style: none;
}

.method__steps li {
  border-top: 1px solid var(--rule-light);
  padding-top: 1.35rem;
}

.method__steps span {
  color: rgb(247 245 239 / 52%);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.method__steps h3 {
  margin: 2rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.method__steps p {
  max-width: 31ch;
  margin: 0.85rem 0 0;
  color: var(--text-light-muted);
  text-wrap: pretty;
}

.contact {
  padding-block: var(--section-space);
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  gap: clamp(4rem, 10vw, 9rem);
}

.contact__intro h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.98;
  text-wrap: balance;
}

.contact__intro p {
  max-width: 49ch;
  margin: 2rem 0 0;
  color: var(--text-dark-muted);
  text-wrap: pretty;
}

.contact__fallback {
  font-size: 0.9rem;
}

.contact__fallback a {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.2em;
  font-style: italic;
  text-underline-offset: 0.25rem;
}

.contact__form-wrap {
  position: relative;
  min-width: 0;
}

.contact-form {
  display: grid;
  gap: 1.75rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule-dark);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--forest);
  padding: 0.75rem 0;
  font-size: 1.05rem;
  line-height: 1.45;
  transition: border-color 180ms var(--ease-out);
}

.form-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--forest);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.consent-field input:focus-visible,
.button:focus-visible,
.text-button:focus-visible,
.brand:focus-visible,
.header-action:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
}

.form-field__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(19 32 25 / 68%);
  font-size: 0.76rem;
}

.form-field__meta p {
  margin: 0;
}

.field-error {
  min-height: 1.1rem;
  margin: 0;
  color: #77251f;
  font-size: 0.78rem;
  font-weight: 600;
}

.field-error--consent {
  margin-top: -1.25rem;
}

.consent-field {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.8rem;
  align-items: start;
}

.consent-field input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.12rem 0 0;
  accent-color: var(--forest);
}

.consent-field label {
  max-width: 55ch;
  color: var(--text-dark-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent-field a {
  color: var(--forest);
  font-weight: 700;
  text-underline-offset: 0.2rem;
}

.contact-form .button {
  justify-self: start;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.form-status {
  display: none;
  max-width: 52ch;
  margin: 0;
  color: #77251f;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-status--visible {
  display: block;
}

.form-status a {
  color: inherit;
}

.form-success {
  padding-block: 1rem;
}

.form-success__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 0 2rem;
  border: 1px solid var(--forest);
  border-radius: 50%;
  font-size: 1.25rem;
}

.form-success h3 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.form-success p {
  max-width: 44ch;
  color: var(--text-dark-muted);
}

.text-button {
  min-height: 2.75rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--forest);
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.honeypot,
.form-target {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  background: var(--forest);
  color: var(--white);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.site-footer__inner,
.site-footer__brand,
.site-footer__links {
  display: flex;
  align-items: center;
}

.site-footer__inner {
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__brand {
  gap: 0.7rem;
}

.site-footer__brand,
.site-footer__links {
  color: rgb(247 245 239 / 62%);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__links {
  justify-content: flex-end;
  gap: 1.5rem;
  text-align: end;
}

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

.site-footer a:hover {
  color: var(--white);
}

.site-header--static {
  position: relative;
}

.legal-page {
  min-height: 100svh;
  background: var(--forest);
}

.legal {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.legal__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: start;
}

.legal__intro {
  position: sticky;
  top: 2rem;
}

.legal h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.legal h1 em {
  color: var(--sage);
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.legal__intro > p {
  max-width: 38ch;
  margin: 2rem 0 0;
  color: var(--text-light-muted);
}

.legal__intro .legal__updated {
  margin-top: 1rem;
  color: rgb(247 245 239 / 52%);
  font-size: 0.8rem;
}

.legal__content {
  min-width: 0;
}

.legal__status {
  border: 1px solid var(--sage);
  padding: 1.25rem;
}

.legal__status strong {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal__status p {
  margin: 0.7rem 0 0;
  color: var(--text-light-muted);
}

.legal__section {
  border-top: 1px solid var(--rule-light);
  margin-top: 3.5rem;
  padding-top: 1.35rem;
}

.legal__section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.legal__section h3 {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
}

.legal__section p,
.legal__section li,
.legal__section dd {
  max-width: 65ch;
  color: var(--text-light-muted);
  text-wrap: pretty;
}

.legal__section p {
  margin: 1rem 0 0;
}

.legal__section ul {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding-inline-start: 1.25rem;
}

.legal__section a,
.legal__facts a {
  color: var(--white);
  text-underline-offset: 0.25rem;
}

.legal__facts {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.legal__facts div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
}

.legal__facts dt {
  color: rgb(247 245 239 / 52%);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal__facts dd {
  margin: 0;
}

.legal__placeholder {
  color: var(--sage) !important;
  font-weight: 700;
}

.legal__purpose {
  margin-top: 1.5rem;
}

.legal__purpose + .legal__purpose {
  margin-top: 2rem;
}

.legal__sources {
  list-style: none;
  padding-inline-start: 0 !important;
}

@media (max-width: 800px) {
  .service-rail,
  .method__steps,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 15rem;
    border-inline-end: 0;
    border-bottom: 1px solid var(--rule-light);
  }

  .service:last-child {
    border-bottom: 0;
  }

  .method__steps {
    gap: 2.75rem;
  }

  .contact__layout {
    gap: 4.5rem;
  }

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

  .legal__intro {
    position: static;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 1.5rem;
  }

  .site-header {
    padding-top: 1.2rem;
  }

  .brand,
  .header-action {
    font-size: 0.63rem;
    letter-spacing: 0.11em;
  }

  .brand {
    gap: 0.5rem;
  }

  .hero__inner {
    align-content: center;
    padding-top: 7rem;
  }

  .hero__title {
    font-size: clamp(2.75rem, 14vw, 4.1rem);
    letter-spacing: -0.038em;
  }

  .hero__support {
    margin-top: 2.75rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 1rem;
  }

  .section-heading p {
    margin: 0;
  }

  .service {
    min-height: 14rem;
  }

  .method h2,
  .contact__intro h2 {
    font-size: clamp(2.65rem, 13vw, 3.8rem);
  }

  .site-footer__inner,
  .site-footer__links {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal__facts div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .site-footer__links {
    gap: 0.25rem;
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
