:root {
  --ink: #141414;
  --paper: #fafaf7;
  --muted: #8a877d;
  --muted-dark: #a8a69c;
  --mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --max: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.dark :focus-visible {
  outline-color: var(--paper);
}

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

header {
  padding-block: 28px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.wordmark svg {
  display: block;
}

.wordmark span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.wordmark small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.42em;
}

.bar-link {
  border-bottom: 2px solid var(--ink);
  padding: 8px 0 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.bar-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  padding-block: 72px 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 48px;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero p {
  max-width: 34em;
  margin-top: 28px;
  color: #3d3d3a;
  font-size: 1.05rem;
}

.hero p b {
  color: var(--ink);
  font-weight: 500;
}

.cta {
  display: inline-block;
  min-height: 44px;
  margin-top: 36px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.cta:hover {
  background: var(--paper);
  color: var(--ink);
}

.flag-stage {
  display: flex;
  justify-content: center;
}

.flag-stage svg {
  width: min(300px, 70vw);
  height: auto;
  overflow: visible;
}

.eye {
  transition: transform 0.12s ease-out;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .eye {
    animation: blink 6s infinite;
  }

  @keyframes blink {
    0%,
    3.4%,
    100% {
      transform: scaleY(1);
    }

    1.7% {
      transform: scaleY(0.12);
    }
  }
}

.creed {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
}

.work {
  padding-block: 96px;
}

.kicker {
  margin-bottom: 40px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

.service h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.service .unit {
  width: 16px;
  height: 16px;
  margin-bottom: 20px;
  background: var(--ink);
}

.service p {
  margin-top: 12px;
  color: #3d3d3a;
  font-size: 0.98rem;
}

.fine {
  max-width: 44em;
  margin-top: 64px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.contact {
  padding-block: 96px 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.contact .lead {
  max-width: 26em;
  margin-top: 20px;
  color: var(--muted-dark);
}

.contact .direct {
  margin-top: 32px;
  color: var(--muted-dark);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.contact .direct a {
  display: inline-block;
  border-bottom: 1px solid var(--paper);
  color: var(--paper);
  padding-block: 6px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

form {
  display: grid;
  gap: 32px;
}

.field label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid #4a4a46;
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  padding: 10px 0 14px;
  caret-color: var(--paper);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.field ::placeholder {
  color: #6d6b64;
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--paper);
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

button[type="submit"] {
  min-height: 48px;
  justify-self: start;
  border: 2px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  padding: 16px 28px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

button[type="submit"]:hover {
  background: var(--ink);
  color: var(--paper);
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sent {
  display: none;
  align-items: flex-start;
  gap: 24px;
}

.sent.is-visible {
  display: flex;
}

.sent svg {
  width: 96px;
  flex-shrink: 0;
}

.sent h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.sent p {
  max-width: 30em;
  margin-top: 8px;
  color: var(--muted-dark);
  overflow-wrap: anywhere;
}

.sent a {
  color: var(--paper);
}

.form-note,
.form-status {
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.form-status {
  min-height: 1.25em;
}

.form-status.error {
  color: #ffb4a8;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  padding-bottom: 40px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #3a3a37;
  color: var(--muted-dark);
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-block: 40px 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .flag-stage {
    order: -1;
  }

  .flag-stage svg {
    width: min(190px, 52vw);
  }

  .services {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work {
    padding-block: 72px;
  }

  .contact {
    padding-block: 64px 56px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  form {
    gap: 28px;
  }

  button[type="submit"] {
    width: 100%;
    min-height: 52px;
    justify-self: stretch;
    padding: 18px 28px;
  }

  .cta {
    display: block;
    text-align: center;
  }

  .sent {
    flex-direction: column;
  }

  .fine {
    margin-top: 48px;
  }
}

@media (max-width: 400px) {
  .wordmark span {
    font-size: 12px;
  }

  .creed {
    font-size: 11px;
    letter-spacing: 0.22em;
  }
}
