:root {
  --ink: #14251f;
  --forest: #1b352c;
  --forest-light: #294b3e;
  --sand: #eee9dd;
  --paper: #f8f5ed;
  --orange: #da683a;
  --orange-dark: #bf5129;
  --line: rgba(20, 37, 31, 0.2);
  --white-line: rgba(248, 245, 237, 0.22);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(100%, var(--max-width));
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 4rem;
  color: var(--paper);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-style: italic;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name strong {
  color: var(--orange);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:not(.nav-contact):hover,
.site-nav a:not(.nav-contact):focus-visible {
  color: var(--orange);
}

.nav-contact {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(248, 245, 237, 0.55);
}

.nav-contact:hover,
.nav-contact:focus-visible {
  border-color: var(--orange);
  background: var(--orange);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 850px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.32fr);
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 72% 48%, rgba(81, 119, 87, 0.28), transparent 25%),
    linear-gradient(130deg, #14251f 0%, #1a332a 62%, #10221c 100%);
}

.hero::after {
  position: absolute;
  right: 9%;
  bottom: -17rem;
  width: 35rem;
  height: 35rem;
  border: 1px solid rgba(218, 104, 58, 0.42);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-position: center;
  background-size: 7rem 7rem;
  mask-image: linear-gradient(to right, black, transparent 82%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(870px, 86%);
  margin: 7rem auto 2rem;
  padding-left: 2rem;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 {
  max-width: 900px;
  margin-bottom: 2.2rem;
  font-size: clamp(4rem, 7.3vw, 7.6rem);
}

h1 em,
h2 em {
  color: var(--orange);
  font-weight: 400;
}

.hero-intro {
  max-width: 650px;
  margin-bottom: 2.4rem;
  color: rgba(248, 245, 237, 0.79);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.button {
  display: inline-block;
  padding: 0.95rem 1.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  border: 1px solid var(--orange);
  background: var(--orange);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--paper);
  background: transparent;
}

.text-link {
  color: rgba(248, 245, 237, 0.8);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-underline-offset: 0.35rem;
  text-transform: uppercase;
}

.text-link span {
  padding-left: 0.4rem;
  color: var(--orange);
}

.hero-aside {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  border-left: 1px solid var(--white-line);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-aside p {
  margin: 0;
  color: rgba(248, 245, 237, 0.62);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 8rem 4rem;
}

.capability {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: clamp(4rem, 8vw, 9rem);
}

.section-heading h2,
.approach h2,
.contact h2 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.5rem);
}

.section-copy {
  max-width: 620px;
  padding-top: 2.2rem;
  color: #4e5b56;
}

.lead {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.35;
}

.capability-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-card {
  min-height: 310px;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.capability-card:first-child {
  padding-left: 0;
}

.capability-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.card-number {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.capability-card h3 {
  margin: 4rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.capability-card p {
  max-width: 350px;
  color: #58635f;
}

.approach {
  display: grid;
  max-width: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(5rem, 10vw, 11rem);
  padding-right: max(4rem, calc((100vw - var(--max-width)) / 2 + 4rem));
  padding-left: max(4rem, calc((100vw - var(--max-width)) / 2 + 4rem));
  color: var(--paper);
  background: var(--forest);
}

.approach-details {
  max-width: 600px;
  color: rgba(248, 245, 237, 0.68);
}

.approach-details .lead {
  color: var(--paper);
}

.principles {
  padding: 0;
  margin: 4rem 0 0;
  list-style: none;
}

.principles li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--white-line);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.principles span {
  display: inline-block;
  width: 3.5rem;
  color: var(--orange);
  font-size: 0.7rem;
}

.about {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 5rem;
}

.large-copy {
  max-width: 980px;
  margin-bottom: 4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 4rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 850px;
  color: #58635f;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 6rem;
  padding: 7rem max(4rem, calc((100vw - var(--max-width)) / 2 + 4rem));
  color: var(--paper);
  background: var(--orange-dark);
}

.contact .eyebrow {
  color: var(--ink);
}

.contact h2 em {
  color: var(--ink);
}

.contact-action {
  align-self: end;
}

.contact-action p {
  max-width: 520px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.button-light {
  border: 1px solid var(--paper);
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 3rem;
  padding: 2rem max(4rem, calc((100vw - var(--max-width)) / 2 + 4rem));
  color: rgba(248, 245, 237, 0.6);
  background: #0d1d17;
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-footer {
  color: var(--paper);
}

@media (max-width: 900px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
    width: 2.8rem;
    height: 2.8rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(248, 245, 237, 0.45);
    color: inherit;
    background: transparent;
  }

  .nav-toggle span:not(.sr-only) {
    width: 1.15rem;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    display: none;
    width: min(19rem, calc(100vw - 3rem));
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem;
    color: var(--paper);
    background: #10231c;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.22);
  }

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

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--white-line);
  }

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

  .nav-contact {
    border: 0;
  }

  .hero {
    min-height: 760px;
    grid-template-columns: 1fr;
  }

  .hero-content {
    width: auto;
    margin: 6rem 1.5rem 0;
    padding: 4rem 0;
  }

  .hero-aside {
    display: none;
  }

  .section,
  .approach,
  .contact {
    padding: 6rem 1.5rem;
  }

  .capability,
  .approach,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-copy {
    padding-top: 0;
  }

  .capability-list {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .capability-card,
  .capability-card:first-child,
  .capability-card:last-child {
    min-height: 0;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-card:last-child {
    border-bottom: 0;
  }

  .capability-card h3 {
    margin-top: 2rem;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.3rem, 16vw, 4.6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact .button {
    width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

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

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