:root {
  --ink: #111827;
  --muted: #5d697a;
  --paper: #f6f8f5;
  --white: #ffffff;
  --line: #dce3ea;
  --dark: #08111f;
  --blue: #164a66;
  --green: #2f7d68;
  --amber: #c88735;
  --red: #9a4f44;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
}

.brand,
nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

nav {
  gap: clamp(14px, 2vw, 30px);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 750;
}

nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo {
  right: 0;
  left: auto;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  filter: saturate(0.95) contrast(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 17, 31, 0.95) 0%, rgba(8, 17, 31, 0.82) 38%, rgba(8, 17, 31, 0.36) 68%, rgba(8, 17, 31, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 17, 31, 0.84) 0%, rgba(8, 17, 31, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 92vh;
  max-width: 850px;
  padding: 132px clamp(20px, 5vw, 72px) 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #9fd8c5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(62px, 11vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.cn {
  color: inherit;
  opacity: 0.78;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 850;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.intro,
.section,
.systems,
.stack,
.contact {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.intro,
.stack,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  background: var(--white);
}

.intro h2,
.section-heading h2,
.systems h2,
.stack h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro p,
.section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.project-card {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.project-card.featured {
  grid-row: span 2;
  min-height: 680px;
  color: var(--white);
  background: var(--blue);
}

.project-card span,
.systems-grid span {
  color: var(--amber);
  font-weight: 950;
}

.project-card h3 {
  margin: 64px 0 16px;
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.05;
}

.project-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.project-card.featured p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}

.project-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--white);
  font-weight: 900;
  border-bottom: 2px solid #9fd8c5;
}

.systems {
  color: var(--white);
  background: #13252a;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 38px;
  background: rgba(255, 255, 255, 0.16);
}

.systems-grid article {
  min-height: 282px;
  padding: clamp(22px, 3vw, 34px);
  background: #13252a;
}

.systems-grid h3 {
  margin: 54px 0 14px;
  font-size: 24px;
}

.systems-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: #fbfcfa;
  font-size: 13px;
  font-weight: 850;
}

.stack-cloud span:nth-child(3n + 1) {
  color: var(--green);
}

.stack-cloud span:nth-child(3n + 2) {
  color: var(--blue);
}

.stack-cloud span:nth-child(3n) {
  color: var(--red);
}

.contact {
  color: var(--white);
  background: var(--blue);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero-photo {
    object-position: 60% 26%;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(8, 17, 31, 0.98) 0%, rgba(8, 17, 31, 0.82) 56%, rgba(8, 17, 31, 0.14) 100%),
      linear-gradient(90deg, rgba(8, 17, 31, 0.52), rgba(8, 17, 31, 0.1));
  }

  .intro,
  .section-heading,
  .stack,
  .contact,
  .project-grid,
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    min-height: 430px;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 58px;
  }

  .hero-content {
    padding-bottom: 34px;
  }

  .button {
    width: 100%;
  }

  footer {
    display: grid;
  }
}
