:root {
  --teal: #163B39;
  --teal-deep: #123F46;
  --ivory: #F2EFE8;
  --ivory-muted: #D8D3C9;
  --oak: #B89A72;
  --oak-dark: #725A43;
  --muted: #52625F;

  --content-width: 1380px;
  --page-padding: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(4rem, 8vw, 7.5rem);
  --card-radius: 2rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Serif", Georgia, serif;
  color: var(--teal);
  background:
    radial-gradient(circle at 15% 10%, rgba(113, 169, 158, 0.22), transparent 34%),
    radial-gradient(circle at 85% 75%, rgba(184, 154, 114, 0.18), transparent 34%),
    linear-gradient(145deg, #EDF2EB 0%, #DFE9E1 48%, #D5E2DD 100%);
}

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

p {
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
}


/* Shared site chrome */

.site-header,
.site-footer,
main > section {
  width: min(100% - (2 * var(--page-padding)), var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

.brand {
  font-size: 2rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-family: "Azeret Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  color: var(--muted);
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid rgba(22, 59, 57, 0.2);
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.site-footer-brand,
.site-footer-corporate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-footer-brand {
  flex: 0 0 auto;
}

.site-footer-corporate {
  justify-content: flex-end;
  margin: 0;
  line-height: 1.45;
  text-align: right;
}

.site-footer-corporate span:not(:first-child)::before {
  content: "\00B7";
  margin-right: 1rem;
  color: var(--oak-dark);
}


/* Generic page content */

.page-intro {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.capability-section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.capability-section + .capability-section {
  padding-top: 0;
}

.page-intro h1 {
  max-width: 950px;
  margin-bottom: 2rem;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.how-we-work-intro h1 {
  max-width: 1050px;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.02;
}

.lead {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  color: var(--muted);
}

.eyebrow,
.card-type,
.card-meta {
  margin: 0;
  font-family: "Azeret Mono", monospace;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--oak-dark);
}


/* Generic sections */

.section-header {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.capability-section > .section-header {
  margin-inline: 0;
  text-align: left;
}

.section-header h2 {
  margin: 0.8rem 0 1.5rem;
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-intro {
  max-width: 830px;
  margin: 0 auto;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.capability-section .section-intro {
  margin-inline: 0;
}

/* Generic card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.capability-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2rem;
  border: 1px solid rgba(22, 59, 57, 0.22);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.42);
}

.card-header {
  margin-bottom: 1.25rem;
}

.card-header h3 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1.12;
}

.card-header h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  line-height: 1.12;
}

.card-description {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tags span {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.25;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.card-footer p:last-child {
  margin-bottom: 0;
}

.section-note {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.capability-section > .section-note {
  margin-inline: 0;
}

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

.principles-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
}

.principles-grid .card-description {
  margin-bottom: 0;
}

.section-note p {
  margin: 0;
}

/* Homepage */

.home-page {
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--ivory);
  background: var(--teal-deep);
}

.home-page main {
  width: 100%;
}

.home-hero {
  width: min(100%, 1050px);
  padding: 0;
  text-align: center;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.brand-rule {
  width: 86px;
  height: 3px;
  margin: 1.9rem auto;
  border-radius: 999px;
  background: var(--oak);
}

.home-headline,
.home-services {
  font-family: "Azeret Mono", monospace;
}

.home-headline {
  margin: 0;
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  color: var(--oak);
}

.home-services {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: center;
  column-gap: 1.25rem;
  margin: 1.75rem 0 0;
  font-size: clamp(0.82rem, 1.35vw, 0.98rem);
  color: var(--ivory-muted);
}

.home-services span:not(:last-child)::after {
  content: " |";
  margin-left: 1.25rem;
  color: var(--oak);
}

.home-proposition {
  max-width: 900px;
  margin: 2.75rem auto 0;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-style: italic;
}

.home-action {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 1.75rem;
  margin: 0;
}

.text-link {
  font-family: "Azeret Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oak);
}
.contact-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 48px 160px;
}

.contact-hero .section-header {
  max-width: 800px;
  margin-bottom: 64px;
}

.contact-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.contact-card {
  max-width: 660px;
  margin-inline: auto;
  padding: 36px;
  text-align: center;

  border: 1px solid rgba(22, 59, 57, 0.3);
  border-radius: 36px;

  background: rgba(255, 255, 255, 0.28);
}

.contact-button {
  display: inline-block;
  margin-bottom: 22px;
  padding: 0.8rem 1.35rem;

  border: 1px solid var(--teal);
  border-radius: 999px;

  font-family: "Azeret Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  transition: color 160ms ease, background-color 160ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  color: var(--ivory);
  background: var(--teal);
}

.contact-note {
  max-width: 560px;
  margin: 0 auto;

  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .contact-hero {
    padding: 80px 24px 110px;
  }

  .contact-card {
    padding: 30px 24px;
    border-radius: 28px;
  }
}

/* Responsive */

@media (max-width: 1050px) {
  .home-services {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem 0;
  }

  .home-services span {
    grid-column: span 2;
    white-space: nowrap;
  }

  .home-services span:nth-child(n + 4) {
    grid-column: span 3;
  }

  .home-services span:nth-child(3)::after {
    content: "";
    margin: 0;
  }
}

@media (max-width: 700px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .site-footer-corporate {
    justify-content: flex-start;
    text-align: left;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .home-action {
    right: var(--page-padding);
    left: var(--page-padding);
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  .section-note {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .home-services {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .home-services span,
  .home-services span:nth-child(n + 4) {
    grid-column: auto;
  }

  .home-services span:not(:last-child)::after {
    content: "";
    margin: 0;
  }
}
