:root {
  --ink: #12211c;
  --ink-soft: #2a3f38;
  --pine: #1c3d34;
  --field: #d7e0db;
  --mist: #eef2ef;
  --paper: #f6f8f6;
  --signal: #c8e04a;
  --signal-ink: #1a2808;
  --line: rgba(18, 33, 28, 0.16);
  --line-strong: rgba(18, 33, 28, 0.28);
  --hero-veil: rgba(8, 18, 15, 0.72);
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: clamp(1.25rem, 4vw, 2.75rem);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 33, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 28, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, auto;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
}

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

h1,
h2,
h3,
.hero__brand,
.nav__logo,
.footer__brand {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

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

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 500;
  max-width: 14ch;
}

h3 {
  font-size: 1.35rem;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.65rem 1rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 180ms ease;
}

.btn--primary {
  background: var(--signal);
  color: var(--signal-ink);
}

.btn--primary:hover {
  background: #d4ea6a;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(246, 248, 246, 0.45);
  background: transparent;
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(246, 248, 246, 0.08);
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 220ms ease;
}

.text-link:hover {
  background-size: 100% 2px;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--space);
  color: var(--paper);
  background: transparent;
  transition: background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.nav.is-scrolled,
.nav.is-open {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.nav__logo {
  position: relative;
  z-index: 21;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__menu a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__menu a:not(.nav__cta):hover {
  text-decoration: underline;
}

.nav__cta {
  padding: 0.55rem 0.95rem;
  border-radius: 2px;
  background: var(--signal);
  color: var(--signal-ink);
}

.nav:not(.is-scrolled):not(.is-open) .nav__cta {
  background: var(--signal);
  color: var(--signal-ink);
}

.nav__toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav__toggle-bars {
  position: relative;
  margin: 0 auto;
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle-bars::before {
  top: -6px;
}

.nav__toggle-bars::after {
  top: 6px;
}

.nav.is-open .nav__toggle-bars {
  background: transparent;
}

.nav.is-open .nav__toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: hero-drift 28s ease-out forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 18, 15, 0.82) 0%,
      rgba(8, 18, 15, 0.5) 38%,
      rgba(8, 18, 15, 0.12) 72%
    ),
    linear-gradient(180deg, rgba(8, 18, 15, 0.18) 0%, rgba(8, 18, 15, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  padding: calc(var(--space) + 4.5rem) var(--space) clamp(3rem, 8vh, 5.5rem);
  animation: rise 900ms ease 180ms both;
}

.hero__brand {
  margin-bottom: 1.15rem;
  font-size: clamp(3.4rem, 11vw, 8.4rem);
  font-weight: 700;
  line-height: 0.88;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 500;
}

.hero__lede {
  max-width: 36ch;
  margin-top: 0.9rem;
  color: rgba(246, 248, 246, 0.82);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.statement {
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--space);
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.statement__text {
  max-width: 22ch;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-align: center;
}

.services {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--space);
}

.services__intro {
  position: sticky;
  top: 5.25rem;
  align-self: start;
}

.services__intro p:last-child {
  max-width: 34ch;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.services__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.1rem;
  padding: 1.45rem 0;
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service__index {
  padding-top: 0.35rem;
  color: var(--pine);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  transition: color 200ms ease;
}

.service__body p {
  max-width: 48ch;
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.service:hover .service__index {
  color: #5a7a18;
}

.approach {
  background: var(--ink);
  color: var(--paper);
}

.approach__media {
  margin: 0;
  height: min(58vh, 32rem);
  overflow: hidden;
}

.approach__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.approach__panel {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5.5rem) var(--space) clamp(4rem, 8vw, 6.5rem);
}

.approach__intro p:last-of-type {
  max-width: 42ch;
  margin-top: 0.9rem;
  color: rgba(246, 248, 246, 0.72);
}

.approach .eyebrow {
  color: var(--signal);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin: 3rem 0 0;
  padding: 2.4rem 0 0;
  border-top: 1px solid rgba(246, 248, 246, 0.16);
  list-style: none;
}

.step__index {
  display: block;
  margin-bottom: 1rem;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-bottom: 0.55rem;
}

.step p {
  color: rgba(246, 248, 246, 0.72);
}

.partner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 32rem;
  background: var(--mist);
}

.partner__media {
  margin: 0;
  min-height: 22rem;
}

.partner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space);
}

.partner__copy p:last-of-type {
  max-width: 38ch;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.contact {
  background: var(--mist);
  border-top: 1px solid var(--line);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--space);
}

.contact__intro p:last-of-type {
  max-width: 36ch;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.form .btn {
  justify-self: start;
}

.form.is-hidden,
.form-success[hidden],
.form__error[hidden] {
  display: none;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.75rem) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #8a2d1f;
}

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

.form__error {
  color: #8a2d1f;
  font-size: 0.92rem;
}

.form-success {
  padding: 0.5rem 0 2rem;
  animation: rise 500ms ease both;
}

.form-success__kicker {
  margin-bottom: 0.75rem;
  color: var(--pine);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-success h2 {
  max-width: 16ch;
}

.form-success p:last-child {
  max-width: 40ch;
  margin-top: 1rem;
  color: var(--ink-soft);
}

.footer {
  display: grid;
  gap: 0.45rem;
  padding: 2.4rem var(--space) 2.8rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(246, 248, 246, 0.72);
}

.footer__brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paper);
  text-decoration: none;
}

.footer__meta {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

#services,
#approach,
#contact {
  scroll-margin-top: 4.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(0.9rem);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(0, -1.6%, 0);
  }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: block;
    position: relative;
    z-index: 21;
  }

  .nav__menu {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    padding: 5rem var(--space);
    background: var(--paper);
    color: var(--ink);
  }

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

  .nav__menu a {
    font-family: var(--display);
    font-size: 2rem;
    letter-spacing: -0.04em;
  }

  .nav__cta {
    width: max-content;
    margin-top: 0.5rem;
    font-family: var(--sans);
    font-size: 1rem;
  }

  .services,
  .partner,
  .steps,
  .form__grid,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .services__intro {
    position: static;
  }

  .hero__veil {
    background: linear-gradient(
      180deg,
      rgba(8, 18, 15, 0.28) 0%,
      rgba(8, 18, 15, 0.55) 42%,
      rgba(8, 18, 15, 0.88) 100%
    );
  }

  .approach__media,
  .partner__media {
    height: 42vw;
    min-height: 14rem;
  }
}

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

  .hero__image,
  .hero__content,
  .form-success,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--primary:hover {
    transform: none;
  }
}
