:root {
  color-scheme: dark;
  --ink: #f8f7f1;
  --muted: #b8bbb5;
  --quiet: #737871;
  --carbon: #070806;
  --panel: rgba(16, 18, 16, 0.78);
  --line: rgba(248, 247, 241, 0.16);
  --cyan: #55d7ee;
  --green: #8be36d;
  --amber: #efbb62;
  --paper: #ede8dc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--carbon);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.82);
  padding-block: 12px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 56px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(248, 247, 241, 0.24);
  background: rgba(7, 8, 6, 0.42);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  grid-area: 1 / 1;
  background: currentColor;
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-7px);
}

.menu-toggle span:last-child {
  transform: translateY(7px);
}

.nav-cta {
  border: 1px solid rgba(248, 247, 241, 0.24);
  padding: 10px 14px;
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 96svh;
  overflow: hidden;
  padding: 128px clamp(18px, 5vw, 72px) 26px;
  isolation: isolate;
}

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

.hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.05);
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 8, 6, 0.96) 0%, rgba(7, 8, 6, 0.78) 37%, rgba(7, 8, 6, 0.1) 75%),
    linear-gradient(0deg, rgba(7, 8, 6, 0.92) 0%, rgba(7, 8, 6, 0) 42%),
    radial-gradient(circle at 76% 24%, rgba(85, 215, 238, 0.18), transparent 34%);
}

.hero-content {
  align-self: center;
  width: min(760px, 100%);
}

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

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

h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(4.1rem, 11vw, 11.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  color: var(--paper);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  line-height: 1.6;
}

.hero-actions,
.hero-metrics,
.project-topline,
.final-cta {
  display: flex;
  align-items: center;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: #11120f;
}

.button.secondary {
  border-color: rgba(248, 247, 241, 0.28);
  background: rgba(248, 247, 241, 0.08);
  color: var(--ink);
}

.hero-metrics {
  align-self: end;
  justify-content: space-between;
  gap: 14px;
  width: min(980px, 100%);
  margin-top: 70px;
}

.hero-metrics div {
  min-height: 92px;
  flex: 1;
  border-top: 1px solid rgba(248, 247, 241, 0.28);
  padding-top: 18px;
}

.hero-metrics span {
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-metrics strong {
  display: block;
  max-width: 230px;
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  line-height: 1.35;
}

.section {
  padding: clamp(70px, 10vw, 140px) clamp(18px, 5vw, 72px);
}

.intro {
  background: var(--paper);
  color: #151610;
}

.intro .section-kicker,
.team .section-kicker {
  color: #315f40;
}

.intro-grid,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 96px);
}

.intro h2,
.section-heading h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 5.5rem);
  line-height: 0.98;
}

.intro-copy {
  color: #34362f;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.75;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #0d0f0d;
  padding-block: 0;
}

.process-step {
  min-height: 320px;
  padding: clamp(28px, 4vw, 56px);
  background:
    linear-gradient(145deg, rgba(248, 247, 241, 0.08), rgba(248, 247, 241, 0.02)),
    #11130f;
}

.process-step span,
.status,
.platforms,
.coming-soon,
.role {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-step span {
  color: var(--cyan);
}

.process-step h3,
.project-card h3,
.person-card h3 {
  margin: 26px 0 14px;
  font-size: clamp(1.5rem, 2.3vw, 2.35rem);
}

.process-step p,
.project-card p,
.person-card p,
.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.projects {
  background:
    linear-gradient(180deg, #070806 0%, #10120f 100%);
}

.section-heading {
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

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

.project-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 44px);
  background: var(--panel);
}

.project-card::before {
  position: absolute;
  inset: auto -12% -24% 38%;
  height: 58%;
  content: "";
  opacity: 0.5;
  filter: blur(24px);
}

.project-card.finance::before {
  background: linear-gradient(135deg, rgba(239, 187, 98, 0.7), rgba(139, 227, 109, 0.2));
}

.project-card.staesys::before {
  background: linear-gradient(135deg, rgba(85, 215, 238, 0.68), rgba(139, 227, 109, 0.18));
}

.project-card > * {
  position: relative;
}

.project-topline {
  justify-content: space-between;
  gap: 16px;
}

.status {
  color: var(--green);
}

.platforms {
  color: var(--quiet);
  text-align: right;
}

.project-card h3 {
  margin-top: 98px;
  font-size: clamp(2.3rem, 4.6vw, 5.4rem);
  line-height: 0.95;
}

.project-card p {
  max-width: 560px;
  font-size: 1.08rem;
}

.coming-soon {
  display: inline-flex;
  margin-top: 28px;
  border: 1px solid rgba(248, 247, 241, 0.18);
  padding: 10px 12px;
  color: var(--paper);
}

.team {
  background: var(--paper);
  color: #11120f;
}

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

.person-card {
  display: grid;
  gap: 26px;
  min-height: 520px;
  border: 1px solid rgba(17, 18, 15, 0.16);
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.42);
}

.person-photo {
  width: min(304px, 100%);
  height: 304px;
  justify-self: center;
  border: 1px solid rgba(17, 18, 15, 0.16);
  background: #11120f;
  object-fit: cover;
  object-position: center top;
}

.person-card h3 {
  margin: 0 0 8px;
}

.person-card p {
  color: #4a4d43;
}

.role {
  margin-bottom: 20px;
  color: #315f40;
}

.final-cta {
  align-items: start;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background: #10120f;
  border-block: 1px solid var(--line);
}

.contact-copy {
  max-width: 760px;
}

.final-cta h2 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 5.2rem);
}

.final-cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.final-cta p a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(139, 227, 109, 0.65);
  text-underline-offset: 0.22em;
}

.contact-form {
  display: grid;
  width: min(460px, 100%);
  flex-shrink: 0;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(248, 247, 241, 0.18);
  border-radius: 0;
  background: rgba(248, 247, 241, 0.08);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  outline: none;
  padding: 13px 14px;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-form textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(139, 227, 109, 0.75);
  background: rgba(248, 247, 241, 0.12);
}

.contact-form .button {
  width: 100%;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--quiet);
  font-size: 0.9rem;
}

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

  .menu-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    flex: 0 0 auto;
  }

  .site-header.is-menu-open .menu-toggle span:first-child {
    transform: rotate(45deg);
  }

  .site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
  }

  .nav-links {
    display: none;
  }

  .site-header.is-menu-open .nav-links {
    position: absolute;
    top: calc(100% - 8px);
    right: clamp(18px, 4vw, 56px);
    display: grid;
    width: min(260px, calc(100vw - 36px));
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(7, 8, 6, 0.94);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
  }

  .site-header.is-menu-open .nav-links a {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(248, 247, 241, 0.1);
  }

  .site-header.is-menu-open .nav-links a:last-child {
    border-bottom: 0;
  }

  .site-header.is-menu-open .nav-cta {
    border: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(7, 8, 6, 0.94), rgba(7, 8, 6, 0.62)),
      linear-gradient(0deg, rgba(7, 8, 6, 0.96), rgba(7, 8, 6, 0.22));
  }

  h1 {
    font-size: clamp(4rem, 18vw, 7.6rem);
  }

  .hero-metrics,
  .intro-grid,
  .section-heading,
  .process,
  .project-grid,
  .team-grid,
  .final-cta,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    margin-top: 54px;
  }

  .process-step {
    min-height: 230px;
  }

  .project-card {
    min-height: 360px;
  }

  .project-card h3 {
    margin-top: 68px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.88rem;
  }

  .hero {
    padding-inline: 16px;
  }

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

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .platforms {
    text-align: left;
  }

  .person-photo {
    justify-self: start;
  }
}
