@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600&display=swap");

:root {
  --ink: #0b0d0c;
  --paper: #f2f1eb;
  --green: #59c36a;
  --green-dark: #225d2c;
  --muted: #6f746f;
  --line: rgba(11, 13, 12, 0.16);
  --mono: "IBM Plex Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 13, 12, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 13, 12, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.site-header,
main,
footer {
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.28em;
  align-items: center;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.08em;
}

.brand-prompt {
  color: var(--green);
}

.status {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(89, 195, 106, 0.13);
  animation: pulse 2.4s ease-out infinite;
}

.hero {
  min-height: calc(100svh - 112px);
  padding: clamp(64px, 9vw, 136px) 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 36px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow span {
  margin-right: 14px;
  color: var(--green-dark);
}

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

h1 {
  max-width: 1200px;
  margin-bottom: clamp(64px, 9vw, 128px);
  font-size: clamp(3.2rem, 8.2vw, 8.7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

h1 em {
  position: relative;
  color: var(--green-dark);
  font-style: normal;
}

h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.04em;
  left: 0.04em;
  height: 0.08em;
  background: var(--green);
  transform: rotate(-1.8deg);
  transform-origin: left;
}

.hero-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.intro {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.text-link {
  justify-self: end;
  display: inline-flex;
  gap: 36px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
}

.text-link span {
  color: var(--green-dark);
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(4px);
}

.services {
  padding: clamp(96px, 14vw, 190px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 80px;
}

.section-heading h2 {
  max-width: 690px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.service {
  min-height: 320px;
  padding: 28px 32px 32px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.service + .service {
  padding-left: 32px;
}

.service:last-child {
  border-right: 0;
}

.service-number {
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.service h3 {
  margin: auto 0 20px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.service p {
  max-width: 340px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.closing {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f3f5ef;
  background: var(--ink);
}

.closing::after {
  content: ">";
  position: absolute;
  right: -0.04em;
  bottom: -0.35em;
  color: rgba(89, 195, 106, 0.08);
  font-family: var(--mono);
  font-size: min(64vw, 800px);
  line-height: 1;
}

.closing-command {
  position: relative;
  z-index: 1;
  max-width: 920px;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 6vw, 6.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.closing-command > span:first-child {
  color: var(--green);
}

.cursor {
  display: inline-block;
  width: 0.06em;
  height: 0.85em;
  margin-left: 0.12em;
  vertical-align: -0.08em;
  background: var(--green);
  animation: blink 1.1s step-end infinite;
}

.closing-note {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: rgba(243, 245, 239, 0.55);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-small {
  justify-self: start;
  color: var(--ink);
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: -0.08em;
}

footer p {
  margin-bottom: 0;
}

.back-to-top {
  justify-self: end;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.back-to-top:hover {
  color: var(--paper);
  background: var(--ink);
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 9px rgba(89, 195, 106, 0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1360px);
  }

  .site-header {
    min-height: 88px;
  }

  .status span:last-child {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 88px);
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(3.05rem, 15.5vw, 5.5rem);
  }

  .hero-footer,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
    margin-top: 16px;
  }

  .section-heading {
    gap: 24px;
    margin-bottom: 56px;
  }

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

  .service,
  .service + .service {
    min-height: 230px;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service:last-child {
    border-bottom: 0;
  }

  .closing {
    min-height: 470px;
    padding: 32px 24px;
  }

  footer {
    min-height: 150px;
    grid-template-columns: 1fr 1fr;
  }

  footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .status-light,
  .cursor {
    animation: none;
  }
}
