@font-face {
  font-family: 'Golos Text';
  src: url('fonts/golos-text-variable.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1d1a16;
  --muted: #5f5850;
  --line: #e8e1d6;
  --accent: #c9401b;
  --accent-ink: #ffffff;
  --tile: #e5532d;
  --tile-ink: #fff4ea;
  --sun: #f2b33d;
  --soft: #fce9e0;
  --soft-ink: #b4441f;
  --shadow: 0 1px 2px rgb(29 26 22 / 6%), 0 18px 40px -18px rgb(29 26 22 / 28%);
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --surface: #1d1a16;
    --ink: #f3eee7;
    --muted: #a79f94;
    --line: #2e2a24;
    --accent: #ff7a52;
    --accent-ink: #15130f;
    --soft: #3a2219;
    --soft-ink: #ff9b7a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 18px 40px -18px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'Golos Text',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'tnum' 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2.5px;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  padding-block: 18px;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
}

.tile-bg {
  fill: var(--tile);
}

.tile-px {
  fill: var(--tile-ink);
}

.brand-name {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav {
  display: none;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

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

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }
}

/* Hero */

.hero {
  padding-block: clamp(32px, 7vw, 88px) clamp(56px, 9vw, 112px);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

h1 {
  font-size: clamp(2.5rem, 7.2vw, 4.6rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.button-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.hero-art {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.hero-tile {
  position: absolute;
  inset: 21%;
  border-radius: 25%;
  transform: rotate(-6deg);
  box-shadow: 0 26px 44px -18px rgb(201 64 27 / 55%);
}

.hero-tile svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-tile .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6s infinite;
}

.pixel {
  position: absolute;
  width: var(--s);
  height: var(--s);
  left: var(--x);
  top: var(--y);
  background: var(--c, var(--ink));
  transform: rotate(var(--r, 0deg));
}

.pixel-outline {
  background: transparent;
  box-shadow: inset 0 0 0 3px var(--ink);
}

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

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

  .hero-tile .eye {
    animation: none;
  }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
  }

  .hero-art {
    width: min(100%, 420px);
  }
}

/* Sections */

.section {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.split {
  display: grid;
  gap: 24px;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }
}

.prose {
  display: grid;
  gap: 1em;
  max-width: 42rem;
  font-size: 1.1rem;
}

/* What we do */

.cards {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 820px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card-icon {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.card h3 {
  margin-top: 20px;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
}

/* Project */

.project {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.project h3 {
  font-size: 1.35rem;
}

.project p {
  margin-top: 8px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--soft-ink);
  font-size: 0.82rem;
  font-weight: 650;
}

/* Contacts */

.contacts {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

@media (min-width: 820px) {
  .contacts {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.contact {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.contact-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-value {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* Company details */

.details {
  margin: 0;
}

.details div {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.details div:first-child {
  padding-top: 0;
}

.details dt {
  color: var(--muted);
  font-size: 0.95rem;
}

.details dd {
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .details div {
    grid-template-columns: 220px 1fr;
    gap: 24px;
  }
}

/* Footer */

.site-footer {
  padding-block: 28px 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
