:root {
  --forest: #1F422D;
  --deep: #12391D;
  --sandstone: #C4A97D;
  --chalk: #F8F7F4;
  --graphite: #121A15;
  --steel: #68726B;
  --line: #D9D3C6;
  --paper: #FFFFFF;
  --paper-soft: #EEE9DD;
  --ink-muted: #465149;
  --overlay: rgba(18, 26, 21, 0.66);
  --container: min(calc(100% - 48px), 1440px);
  --heading: Georgia, "Times New Roman", serif;
  --body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--chalk);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--sandstone);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--sandstone);
  color: var(--graphite);
  padding: 10px 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--chalk);
  border-bottom: 1px solid rgba(248, 247, 244, 0.18);
  background: linear-gradient(180deg, rgba(18, 26, 21, 0.58), rgba(18, 26, 21, 0));
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--graphite);
  background: rgba(248, 247, 244, 0.96);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  text-transform: uppercase;
  letter-spacing: 0.46em;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-symbol {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 1px solid currentColor;
  position: relative;
}

.brand-symbol::before,
.brand-symbol::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.brand-symbol::before {
  inset: 11px 4px auto 4px;
  height: 1px;
}

.brand-symbol::after {
  inset: 4px auto 4px 11px;
  width: 1px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.primary-nav a,
.footer-nav a,
.utility-link {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  padding-block: 31px 28px;
  color: currentColor;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--sandstone);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  color: currentColor;
  background: transparent;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 19px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

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

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

main {
  background: var(--chalk);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--chalk);
  background: var(--graphite);
}

.page-hero {
  min-height: 670px;
}

.hero-media,
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: right center;
  filter: saturate(0.78) contrast(1.08);
  transform: scale(1.08);
  transform-origin: right center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 26, 21, 0.95) 0%, rgba(18, 26, 21, 0.82) 36%, rgba(18, 26, 21, 0.28) 100%),
    linear-gradient(0deg, rgba(18, 26, 21, 0.54) 0%, rgba(18, 26, 21, 0) 42%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 180px 0 92px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--sandstone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.hero h1,
.display-title,
.section-title,
.panel-title,
.cta-title {
  margin: 0;
  font-family: var(--heading);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 {
  max-width: min(980px, 100%);
  font-size: clamp(62px, 8vw, 126px);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.page-hero h1 {
  font-size: clamp(70px, 9vw, 132px);
}

.hero-copy {
  max-width: min(690px, 100%);
  margin: 30px 0 0;
  color: rgba(248, 247, 244, 0.88);
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 36px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid currentColor;
  padding: 0 26px;
  color: inherit;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--chalk);
  background: var(--forest);
  border-color: var(--forest);
}

.button.light {
  color: var(--graphite);
  background: var(--chalk);
  border-color: var(--chalk);
}

.button.secondary {
  color: var(--chalk);
  border-color: rgba(248, 247, 244, 0.64);
}

.button.dark-secondary {
  color: var(--forest);
  border-color: var(--forest);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  border-bottom: 1px solid var(--sandstone);
  padding-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease;
}

.text-link::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.text-link.light {
  color: var(--chalk);
}

.text-link.dark {
  color: var(--forest);
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section.tight {
  padding: 68px 0;
}

.section.dark {
  color: var(--chalk);
  background: var(--deep);
  border-top-color: rgba(248, 247, 244, 0.15);
}

.section.alt {
  background: var(--paper-soft);
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.8fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
}

.section-title {
  max-width: 620px;
  color: var(--forest);
  font-size: clamp(48px, 5.5vw, 86px);
}

.dark .section-title,
.dark .panel-title,
.dark .cta-title {
  color: var(--chalk);
}

.section-copy {
  max-width: 760px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.75;
}

.dark .section-copy,
.dark p,
.dark .grid-cell p,
.dark .metric span {
  color: rgba(248, 247, 244, 0.76);
}

.rule-grid {
  display: grid;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.rule-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rule-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rule-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rule-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-cell,
.project-tile,
.metric,
.partner-block {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
}

.grid-cell {
  min-height: 250px;
  padding: 34px;
}

.grid-cell h3,
.project-tile h3,
.partner-block h3,
.process-step h3,
.footer h3 {
  margin: 0 0 14px;
  color: var(--forest);
  font-size: 12px;
  letter-spacing: 0.17em;
  line-height: 1.35;
  text-transform: uppercase;
}

.grid-cell p,
.project-tile p,
.partner-block p,
.process-step p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.68;
}

.grid-cell svg,
.grid-cell img.icon {
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
}

.process-grid {
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 210px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 26px;
  color: var(--sandstone);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.media-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.media-band.reverse .media-panel:first-child {
  order: 2;
}

.media-panel {
  min-height: 540px;
  background: var(--deep);
}

.media-panel.copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 82px);
  color: var(--chalk);
}

.media-panel picture,
.media-panel img {
  width: 100%;
  height: 100%;
}

.media-panel img {
  object-fit: cover;
}

.media-panel .panel-title {
  color: var(--chalk);
  font-size: clamp(46px, 5vw, 76px);
}

.media-panel p {
  max-width: 630px;
  margin: 26px 0 0;
  color: rgba(248, 247, 244, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table caption {
  text-align: left;
  padding: 22px 24px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 20px 22px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--chalk);
  background: var(--deep);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--ink-muted);
}

.note {
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 13px;
}

.stack-gap-sm {
  margin-top: 34px;
}

.stack-gap-md {
  margin-top: 46px;
}

.stack-gap-lg {
  margin-top: 48px;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.partner-block {
  min-height: 140px;
  padding: 30px;
}

.partner-name {
  display: block;
  margin-top: 12px;
  font-family: var(--heading);
  color: var(--forest);
  font-size: 36px;
  line-height: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.project-tile {
  background: var(--chalk);
}

.project-tile picture,
.project-tile img {
  width: 100%;
}

.project-tile img {
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-tile div {
  min-height: 190px;
  padding: 28px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--deep);
  color: var(--chalk);
}

.metric {
  min-height: 150px;
  padding: 32px;
  border-color: rgba(248, 247, 244, 0.16);
  background: transparent;
}

.metric strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--heading);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-weight: 500;
}

.metric span {
  display: block;
  max-width: 240px;
  color: rgba(248, 247, 244, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.cta-band {
  padding: 86px 0;
  color: var(--chalk);
  background: var(--forest);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 48px;
  align-items: end;
}

.cta-title {
  max-width: 760px;
  font-size: clamp(48px, 6vw, 86px);
}

.cta-inner p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(248, 247, 244, 0.78);
}

.site-footer {
  color: var(--chalk);
  background: var(--graphite);
  padding: 72px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(120px, 1fr));
  gap: 42px;
}

.footer-brand p,
.footer-nav a,
.footer-small,
.footer-contact {
  color: rgba(248, 247, 244, 0.68);
  font-size: 13px;
  line-height: 1.8;
}

.footer-brand p {
  max-width: 380px;
  margin: 22px 0 0;
}

.footer-nav {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer h3 {
  color: var(--chalk);
  margin-bottom: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 62px;
  padding-top: 28px;
  border-top: 1px solid rgba(248, 247, 244, 0.16);
}

.utility-link {
  color: rgba(248, 247, 244, 0.7);
}

.error-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 24px 72px;
  background: var(--deep);
  color: var(--chalk);
}

.error-panel {
  max-width: 720px;
}

.error-panel h1 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(58px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.error-panel p {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(248, 247, 244, 0.76);
}

@media (max-width: 1100px) {
  .primary-nav {
    gap: 26px;
  }

  .rule-grid.three,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rule-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(calc(100% - 32px), 1440px);
  }

  .nav-shell {
    min-height: 72px;
  }

  .brand-mark {
    max-width: calc(100vw - 100px);
    letter-spacing: 0.28em;
    font-size: 12px;
  }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px 24px;
    color: var(--graphite);
    background: rgba(248, 247, 244, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a::after {
    bottom: 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero,
  .page-hero {
    min-height: 690px;
  }

  .hero-inner {
    padding: 132px 0 58px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(40px, 11vw, 60px);
    line-height: 1;
  }

  .hero-media img {
    object-position: 78% center;
    transform: scale(1.14);
  }

  .hero-copy {
    font-size: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .split-intro,
  .media-band,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .media-band.reverse .media-panel:first-child {
    order: 0;
  }

  .media-panel {
    min-height: 430px;
  }

  .media-panel.copy-panel {
    min-height: auto;
    padding: 50px 24px;
  }

  .rule-grid.two,
  .rule-grid.three,
  .rule-grid.four,
  .rule-grid.six,
  .project-grid,
  .metric-strip,
  .partner-row {
    grid-template-columns: 1fr;
  }

  .grid-cell,
  .process-step,
  .partner-block {
    min-height: auto;
    padding: 28px 24px;
  }

  .project-tile div {
    min-height: auto;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .page-hero h1 {
    max-width: 9.8ch;
    font-size: clamp(32px, 8.8vw, 40px);
    line-height: 1.05;
    text-wrap: auto;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: 100%;
  }

  .button {
    width: 100%;
    max-width: 100%;
    padding-inline: 18px;
    text-align: center;
  }

  .hero,
  .page-hero {
    min-height: 660px;
  }

  .hero-copy {
    font-size: 15px;
    line-height: 1.65;
    max-width: 34ch;
  }

  .text-link {
    max-width: 100%;
  }

  .brand-mark {
    letter-spacing: 0.18em;
  }

  .section-title,
  .media-panel .panel-title,
  .cta-title {
    font-size: clamp(42px, 13vw, 58px);
  }

  .data-table th,
  .data-table td {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
