:root {
  --ink: #182323;
  --ink-2: #263331;
  --muted: #65716d;
  --paper: #f3f1eb;
  --paper-2: #e8e5dc;
  --panel: #ffffff;
  --line: rgba(24, 35, 35, 0.14);
  --accent: #8d5e31;
  --accent-2: #b9864c;
  --steel: #53666b;
  --dark: #101817;
  --shadow: 0 18px 48px rgba(24, 35, 35, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3rem, 7.6vw, 7rem);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 4.4rem);
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  margin: 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: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(243, 241, 235, 0.96);
  box-shadow: 0 10px 32px rgba(24, 35, 35, 0.09);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: var(--line);
  color: #fff;
  background: var(--ink);
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 30px);
  font-size: 0.93rem;
  font-weight: 700;
}

.site-nav a,
.header-cta {
  opacity: 0.92;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 7px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: inherit;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 132px clamp(20px, 6vw, 86px) 72px;
  overflow: hidden;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 6vw, 86px);
  right: clamp(20px, 6vw, 86px);
  bottom: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.26);
}

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

.hero-media {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 16, 16, 0.88), rgba(10, 16, 16, 0.68) 46%, rgba(10, 16, 16, 0.28)),
    linear-gradient(0deg, rgba(10, 16, 16, 0.74), rgba(10, 16, 16, 0.06) 56%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
}

.hero-lead {
  max-width: 880px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.hero-copy {
  max-width: 820px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.solid {
  color: var(--ink);
  border-color: transparent;
  background: #fff;
}

.button.dark {
  width: fit-content;
  color: #fff;
  background: var(--dark);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 86px);
}

.section-kicker,
.panel-label {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.intro-grid p,
.section-heading p,
.text-stack p,
.ecosystem p,
.final-cta p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.value {
  background: var(--paper);
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 42px;
}

.section-heading.compact {
  margin-bottom: 34px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

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

.feature-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card-number {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
}

.feature-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
}

.who {
  color: #fff;
  background: var(--dark);
}

.who .panel-label {
  color: var(--accent-2);
}

.who h2 {
  max-width: 900px;
}

.who .text-stack {
  max-width: 900px;
  margin-top: 34px;
}

.who .text-stack p {
  color: rgba(255, 255, 255, 0.72);
}

.text-stack {
  display: grid;
  gap: 18px;
}

.services {
  background: var(--panel);
}

.service-list {
  display: grid;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 54px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-list span,
.timeline span {
  color: var(--accent);
  font-weight: 900;
}

.service-list p {
  max-width: 850px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.68;
}

.process {
  background: var(--paper-2);
}

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

.timeline article {
  min-height: 268px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: inline-block;
  margin-bottom: 58px;
}

.timeline p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.62;
}

.positioning {
  padding: clamp(74px, 10vw, 132px) clamp(20px, 6vw, 86px);
  color: #fff;
  background: linear-gradient(90deg, rgba(24, 35, 35, 0.94), rgba(24, 35, 35, 0.82)), url("https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.positioning-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 7vw, 98px);
  align-items: start;
}

.positioning .text-stack p {
  color: rgba(255, 255, 255, 0.72);
}

.projects {
  background: var(--paper);
}

.projects .button {
  margin-top: 28px;
}

.ecosystem {
  background: var(--panel);
}

.ecosystem-box {
  max-width: 1040px;
  padding: clamp(28px, 5vw, 54px);
  border-left: 5px solid var(--accent);
  background: var(--paper);
}

.ecosystem-box p {
  margin-top: 22px;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(72px, 10vw, 124px) clamp(20px, 6vw, 86px);
  color: #fff;
  background: var(--dark);
}

.final-cta h2 {
  max-width: 840px;
}

.final-cta p {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.final-cta .hero-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(150px, 0.7fr));
  gap: 28px;
  padding: 42px clamp(20px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.68);
  background: #0b1110;
}

.site-footer h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.96rem;
}

.site-footer p,
.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    background: rgba(243, 241, 235, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 16px;
    border-radius: 4px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(24, 35, 35, 0.06);
    text-decoration: none;
  }

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

  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .intro-grid,
  .split,
  .positioning-inner,
  .card-grid.three,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 90vh;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    padding: 112px 20px 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 16, 16, 0.9), rgba(10, 16, 16, 0.68)),
      linear-gradient(0deg, rgba(10, 16, 16, 0.8), rgba(10, 16, 16, 0.12) 58%);
  }

  .card-grid.four,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-list article {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .timeline article {
    min-height: auto;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}
