@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-2: #262626;
  --text: #404040;
  --muted: #525252;
  --muted-2: #737373;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --accent: #2e4bff;
  --on-dark: #fafafa;
  --on-dark-soft: #d4d4d4;
  --on-dark-muted: #a3a3a3;
  --dark-line: #262626;
  --available: #16a34a;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 69px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
}

a:hover {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: #fff;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.label {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.muted {
  color: var(--muted-2);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 12px;
}

.logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.logo-word b {
  font-weight: 700;
}

.logo-word span {
  font-weight: 400;
}

.cursor {
  display: inline-block;
  width: 0.46em;
  height: 0.8em;
  margin-left: 0.125em;
  background: var(--accent);
  transform: translateY(0.125em);
  animation: blink 1.1s steps(1) infinite;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  font-size: 15px;
}

.nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  flex: none;
  transition: transform 0.15s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.btn-lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 18px;
  gap: 12px;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-2);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #1f3ae6;
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* Hero */

.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px);
}

.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 56px;
}

.hero-copy {
  flex: 1.6 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--available);
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.lead {
  max-width: 560px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 0;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts div {
  flex: 1 1 160px;
  padding-right: 24px;
}

.facts dt {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.facts dd {
  margin-top: 6px;
  font-weight: 500;
}

.hero-photo {
  flex: 1 1 360px;
  max-width: 500px;
  position: relative;
}

.hero-photo img,
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--line);
}

.hero-photo img {
  object-position: 50% 15%;
}

.hero-photo::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  background: var(--accent);
}

.hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* Stack band */

.stack {
  background: var(--ink);
  color: var(--on-dark);
}

.stack ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  padding: 22px 0;
  font-family: var(--mono);
  font-size: 14px;
}

.stack li:first-child {
  color: var(--on-dark-muted);
}

/* Sections */

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 64px;
}

.section-head > div {
  flex: 1 1 520px;
  min-width: 0;
}

.section-head > p {
  flex: 0 1 420px;
  color: var(--muted);
}

.section .label {
  margin-bottom: 16px;
}

.h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

/* Services */

.services {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 32px;
}

.service {
  flex: 1 1 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.service-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.service h3 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service p {
  font-size: 16px;
  color: var(--muted);
}

.service .tags {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
}

/* Process */

.process .h2 {
  max-width: 760px;
  margin-bottom: 64px;
}

.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: #d4d4d4;
  border: 1px solid #d4d4d4;
}

.step {
  flex: 1 1 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 36px;
  background: var(--bg-alt);
}

.step-num {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--accent);
}

.step h3 {
  margin-top: 12px;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.step p {
  font-size: 16px;
  color: var(--muted);
}

/* About */

.about .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 80px;
}

.about-photo {
  flex: 1 1 340px;
  max-width: 480px;
}

.about-photo img {
  object-position: 30% 35%;
}

.about-copy {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-copy .label {
  margin-bottom: 0;
}

.about-intro {
  font-size: 19px;
  color: var(--ink-2);
}

.about-copy > p:not(.label):not(.about-intro) {
  color: var(--muted);
}

.checks {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.checks svg {
  flex: none;
  color: var(--accent);
}

/* Contact */

.contact {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(80px, 12vw, 160px);
}

.contact .wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact .label {
  color: var(--on-dark-muted);
  margin-bottom: 0;
}

.contact h2 {
  max-width: 1000px;
  font-size: clamp(44px, 7.5vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contact-lead {
  max-width: 560px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--on-dark-soft);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 16px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--on-dark-soft);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: 14px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-soft);
}

.socials a:hover {
  color: #fff;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--ink);
}

/* Legal pages */

.legal {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 112px);
  line-height: 1.6;
}

.legal .label {
  margin-bottom: 16px;
}

.legal h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.legal-intro {
  max-width: 680px;
  margin-bottom: 72px;
  color: var(--muted);
}

.legal-part {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.legal-part + .legal-row {
  border-top: 0;
}

.legal-part.is-divided {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 2px solid var(--ink);
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.legal-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.legal-row > h2,
.legal-row > h3 {
  flex: 0 1 280px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.legal-row > :not(h2):not(h3) {
  flex: 1 1 520px;
  min-width: 0;
  color: var(--text);
}

.legal-row .num {
  margin-right: 12px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.facts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facts-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

.facts-list dt {
  flex: 0 0 160px;
  color: var(--muted-2);
}

.facts-list dd {
  flex: 1 1 240px;
  min-width: 0;
}

.legal-outro {
  margin-top: 40px;
  color: var(--muted);
}

/* 404 */

.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-block: var(--section-y);
}

.not-found h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.not-found p:not(.label) {
  max-width: 480px;
  color: var(--muted);
}

/* Small screens */

@media (max-width: 640px) {
  :root {
    --header-h: 69px;
  }

  .nav a:not(.btn) {
    display: none;
  }

  .hero .wrap {
    gap: 40px;
  }

  .hero-photo::after {
    right: -8px;
    top: -8px;
    width: 20px;
    height: 20px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .process .h2 {
    margin-bottom: 40px;
  }

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

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

  .cursor {
    animation: none;
  }

  .btn,
  .btn svg {
    transition: none;
  }
}
