:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #5e6965;
  --paper: #f7f4ee;
  --cream: #ebe3d5;
  --charcoal: #111615;
  --teal: #1f6f6b;
  --teal-dark: #164f4c;
  --rust: #b65b35;
  --line: rgba(22, 32, 29, 0.16);
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(17, 22, 21, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(17, 22, 21, 0.82), rgba(17, 22, 21, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 760;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-mark span {
  position: absolute;
  display: block;
  width: 22px;
  height: 16px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.1);
}

.brand-mark span:nth-child(1) {
  left: 1px;
  top: 9px;
  transform: rotate(-10deg);
}

.brand-mark span:nth-child(2) {
  right: 1px;
  top: 5px;
  transform: rotate(8deg);
}

.brand-mark span:nth-child(3) {
  left: 7px;
  bottom: 1px;
  border-color: var(--rust);
  transform: rotate(2deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  opacity: 0.88;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.nav-cta {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

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

.hero img {
  object-fit: cover;
  object-position: 68% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 22, 21, 0.94) 0%, rgba(17, 22, 21, 0.84) 32%, rgba(17, 22, 21, 0.28) 64%, rgba(17, 22, 21, 0.06) 100%),
    linear-gradient(0deg, rgba(17, 22, 21, 0.62) 0%, rgba(17, 22, 21, 0) 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 72px);
  padding-top: 72px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro h2,
.cta-section h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 9vw, 8.6rem);
}

.hero-copy {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 780;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 16px 34px rgba(31, 111, 107, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.section-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.section-band {
  background: var(--cream);
}

.intro {
  padding: clamp(54px, 8vw, 96px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(36px, 7vw, 94px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.cta-section h2 {
  font-size: clamp(2.15rem, 4.2vw, 4.25rem);
}

.intro p:not(.section-kicker),
.section-heading.split > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
}

.apps-section,
.work-section,
.process-section {
  padding: clamp(62px, 9vw, 118px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.62fr);
  gap: clamp(28px, 6vw, 82px);
  max-width: none;
  align-items: end;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(17, 22, 21, 0.08);
}

.app-card-top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--cream);
  box-shadow: 0 10px 24px rgba(17, 22, 21, 0.14);
}

.app-category {
  margin: 0 0 5px;
  color: var(--rust);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  line-height: 1.12;
}

.app-card > p {
  margin: 0;
  color: var(--muted);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
  background: rgba(247, 244, 238, 0.8);
}

.app-links a:first-child {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

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

.work-item {
  min-height: 310px;
  padding: clamp(24px, 4vw, 38px);
  border-right: 1px solid var(--line);
}

.work-item:last-child {
  border-right: 0;
}

.metric {
  display: block;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 840;
}

.work-item h3,
.service-list h3 {
  margin: 70px 0 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.work-item p,
.service-list p,
.process-list p {
  margin: 0;
  color: var(--muted);
}

.services {
  padding: clamp(62px, 9vw, 118px) 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.service-list article {
  min-height: 230px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
}

.service-list h3 {
  margin-top: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  position: relative;
  min-height: 250px;
  padding: 26px 24px;
  border-top: 4px solid var(--teal);
  background: var(--white);
}

.process-list li::after {
  counter-increment: steps;
  content: "0" counter(steps);
  position: absolute;
  right: 22px;
  bottom: 14px;
  color: rgba(182, 91, 53, 0.22);
  font-size: 4rem;
  font-weight: 850;
  line-height: 1;
}

.process-list span {
  display: block;
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: 820;
}

.cta-section {
  padding: clamp(58px, 8vw, 96px) 0;
  color: var(--white);
  background: var(--charcoal);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.cta-inner h2 {
  max-width: 900px;
}

.site-footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.94rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--white);
  font-weight: 720;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    max-width: 240px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 22, 21, 0.95) 0%, rgba(17, 22, 21, 0.78) 55%, rgba(17, 22, 21, 0.24) 100%),
      linear-gradient(0deg, rgba(17, 22, 21, 0.64) 0%, rgba(17, 22, 21, 0) 42%);
  }

  .intro-grid,
  .section-heading.split,
  .cta-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .apps-grid,
  .work-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-item:nth-child(2) {
    border-right: 0;
  }

  .work-item:last-child {
    grid-column: 1 / -1;
    min-height: 240px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    display: grid;
    gap: 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    min-height: 96svh;
    align-items: end;
  }

  .hero img {
    object-position: 73% center;
  }

  .hero-content {
    width: min(100% - 32px, 620px);
    margin: 0 auto;
    padding: 154px 0 46px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 5rem);
  }

  .hero-actions,
  .cta-inner {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .apps-grid,
  .work-grid,
  .service-list,
  .process-list {
    grid-template-columns: 1fr;
  }

  .work-item,
  .work-item:nth-child(2),
  .work-item:last-child {
    min-height: auto;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .work-item:first-child {
    border-top: 0;
  }

  .work-item h3 {
    margin-top: 46px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
