:root {
  color-scheme: light;
  --ink: #121716;
  --brand-ink: #240037;
  --muted: #5a6662;
  --paper: #f7f5fb;
  --panel: #ffffff;
  --line: rgba(18, 23, 22, 0.13);
  --teal: #2563eb;
  --teal-dark: #240037;
  --lime: #22c55e;
  --violet: #8b5cf6;
  --coral: #ec775c;
  --shadow: 0 20px 70px rgba(18, 23, 22, 0.16);
  --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;
}

body.nav-open {
  overflow: hidden;
}

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

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 50%;
  max-width: calc(var(--max) + 32px);
  padding: 18px 24px;
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: min(100%, calc(100% - 24px));
  z-index: 20;
}

.site-header::before {
  background: rgba(11, 16, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  content: "";
  inset: 8px 0;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
  z-index: -1;
}

.site-header.is-scrolled::before,
.site-header.is-open::before {
  opacity: 1;
}

.brand,
.site-nav {
  color: #fff;
}

.brand {
  align-items: center;
  display: inline-flex;
  height: 40px;
  width: 172px;
}

.brand img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 6px;
  font-size: 0.92rem;
}

.site-nav a {
  border-radius: 7px;
  padding: 10px 13px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 40px;
  padding: 0;
  position: relative;
  width: 40px;
}

.nav-toggle span {
  background: #fff;
  border-radius: 999px;
  height: 2px;
  left: 9px;
  position: absolute;
  transition:
    transform 180ms ease,
    top 180ms ease;
  width: 22px;
}

.nav-toggle span:first-child {
  top: 15px;
}

.nav-toggle span:last-child {
  top: 23px;
}

.nav-open .nav-toggle span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 9, 8, 0.93) 0%, rgba(5, 9, 8, 0.75) 42%, rgba(5, 9, 8, 0.23) 100%),
    linear-gradient(0deg, rgba(5, 9, 8, 0.35), rgba(5, 9, 8, 0.04) 50%);
}

.hero-content {
  color: #fff;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 92vh;
  padding: 168px 24px 92px;
  position: relative;
}

.eyebrow,
.section-label,
.project-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--lime);
}

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

h1 {
  font-size: clamp(3rem, 8vw, 7.2rem);
  letter-spacing: 0;
  line-height: 0.93;
  margin-bottom: 28px;
  max-width: 850px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.18;
  margin-bottom: 12px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 660px;
}

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

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 780;
  min-height: 48px;
  padding: 0 18px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--lime);
  color: var(--brand-ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #fff;
}

.button.dark.secondary {
  border-color: rgba(18, 23, 22, 0.2);
  color: var(--ink);
}

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

.signal-band {
  background: var(--teal-dark);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.signal-band div {
  align-items: baseline;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 14px;
  min-height: 86px;
  padding: 28px 24px;
}

.signal-band strong {
  color: var(--lime);
  font-size: 1rem;
}

.signal-band span {
  color: rgba(255, 255, 255, 0.82);
}

.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: 108px 24px;
}

.intro {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: 0.32fr 0.68fr;
}

.intro-copy p,
.method-copy p {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.75;
  margin-top: 28px;
  max-width: 780px;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
  max-width: 780px;
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.portfolio-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(18, 23, 22, 0.04);
}

.service-card {
  min-height: 286px;
  padding: 30px;
}

.service-card p,
.portfolio-card p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.icon {
  align-items: center;
  background: rgba(37, 99, 235, 0.09);
  border-radius: 8px;
  color: var(--teal);
  display: inline-flex;
  height: 46px;
  justify-content: center;
  margin-bottom: 28px;
  width: 46px;
}

.icon svg {
  fill: none;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 25px;
}

.method {
  align-items: start;
  display: grid;
  gap: 70px;
  grid-template-columns: 0.9fr 1.1fr;
}

.stack {
  padding-top: 20px;
}

.stack-layout {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: 0.82fr 1.18fr;
}

.stack-panel,
.stack-groups article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stack-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 30px;
}

.stack-panel img {
  height: auto;
  max-width: 330px;
  width: 100%;
}

.stack-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 40px 0 0;
}

.stack-groups {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.stack-groups article {
  min-height: 152px;
  padding: 24px;
}

.stack-groups span {
  color: var(--brand-ink);
  display: block;
  font-weight: 840;
  margin-bottom: 18px;
}

.stack-groups ul,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stack-groups li,
.tags li {
  background: rgba(36, 0, 55, 0.06);
  border: 1px solid rgba(36, 0, 55, 0.1);
  border-radius: 999px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 10px;
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 160px 1fr;
  padding: 26px 0;
}

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

.timeline span {
  font-weight: 800;
}

.timeline span::before {
  color: var(--coral);
  content: "0" counter(step);
  counter-increment: step;
  display: block;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.portfolio-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 300px;
  padding: 28px;
}

.portfolio-card.featured {
  align-items: center;
  background:
    radial-gradient(circle at 85% 18%, rgba(34, 197, 94, 0.24), transparent 30%),
    linear-gradient(135deg, #ffffff, #f2effa);
  display: grid;
  gap: 26px;
  grid-column: span 3;
  grid-template-columns: 1fr 0.9fr;
  min-height: 250px;
}

.portfolio-card.featured img {
  justify-self: end;
  max-width: 420px;
  width: 100%;
}

.portfolio-card h3,
.portfolio-card p {
  margin-bottom: 0;
}

.portfolio-card .tags {
  margin-top: auto;
}

.contact {
  align-items: end;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr auto;
  margin-top: 36px;
  padding: 88px max(24px, calc((100vw - var(--max)) / 2));
}

.contact .section-label {
  color: rgba(18, 23, 22, 0.7);
  margin-bottom: 14px;
}

.contact h2 {
  max-width: 780px;
}

.site-footer {
  align-items: center;
  background: var(--brand-ink);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  justify-content: space-between;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
}

.site-footer img {
  height: 38px;
  object-fit: contain;
  object-position: left center;
  width: 164px;
}

@media (max-width: 840px) {
  .site-header {
    padding: 14px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: rgba(11, 16, 15, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 2px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: 66px;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
    width: min(260px, calc(100vw - 36px));
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    min-height: 88vh;
    padding-top: 128px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(5, 9, 8, 0.96) 0%, rgba(5, 9, 8, 0.82) 58%, rgba(5, 9, 8, 0.48) 100%),
      linear-gradient(0deg, rgba(5, 9, 8, 0.36), rgba(5, 9, 8, 0.08));
  }

  .signal-band,
  .service-grid,
  .intro,
  .method,
  .stack-layout,
  .stack-groups,
  .portfolio-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .signal-band div {
    padding: 22px 24px;
  }

  .section {
    padding: 78px 24px;
  }

  .intro,
  .method {
    gap: 34px;
  }

  .portfolio-card.featured {
    align-items: start;
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .portfolio-card.featured img {
    justify-self: start;
  }

  .contact {
    align-items: start;
    padding-bottom: 70px;
    padding-top: 70px;
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.55rem, 16vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .service-card {
    min-height: 0;
  }

  .timeline li {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
