@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --background: #100e19;
  --panel: #191525;
  --text: #f7f4ff;
  --muted: #beb5cc;
  --accent: #c99efb;
  --accent-hover: #dbbcff;
  --edge: #3e3450;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 5px; }
::selection { color: var(--background); background: var(--accent-hover); }

.container { width: min(calc(100% - 5.5rem), 76rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  transform: translateY(-200%);
  color: var(--background);
  background: var(--accent);
}
.skip-link:focus { transform: none; }

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-block: 1.55rem;
}
.brand { display: inline-flex; align-items: center; gap: .85rem; width: fit-content; font-size: 1.65rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.brand img { flex: none; }
.main-nav { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.25rem); font-weight: 650; }
.main-nav a, .text-link, .site-footer nav a { transition: color .18s ease; }
.main-nav a:hover, .text-link:hover, .site-footer nav a:hover { color: var(--accent-hover); }
.site-header .button { justify-self: end; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.12rem;
  padding: .7rem 1.3rem;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: .72rem;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 760;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.button-outline { border-color: var(--accent); border-radius: 1rem; font-weight: 650; }
.button-outline:hover { background: var(--panel); border-color: var(--accent-hover); }
.button-primary { color: var(--background); background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); }
.text-link { font-weight: 650; text-underline-offset: .25em; }
.text-link:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(32.5rem, 45vw, 42rem);
  display: flex;
  align-items: center;
  padding-block: 3.4rem 5rem;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.65rem);
  line-height: .995;
  letter-spacing: -.075em;
  font-weight: 800;
}
.hero h1 span, .section > h2 { color: var(--accent); }
.hero p { margin: 1.7rem 0 2rem; color: var(--text); font-size: clamp(1.06rem, 1.8vw, 1.35rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero-art {
  position: absolute;
  z-index: 0;
  inset: -1.2rem -2.5rem auto auto;
  width: min(62%, 43rem);
  user-select: none;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 68% 66% at 54% 48%, #000 51%, transparent 91%);
  mask-image: radial-gradient(ellipse 68% 66% at 54% 48%, #000 51%, transparent 91%);
}
.hero-art img { width: 100%; }

.section { scroll-margin-top: 1rem; }
.section > h2, .contact h2 {
  position: relative;
  margin: 0 0 1.8rem;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  letter-spacing: -.055em;
  line-height: 1.1;
  font-weight: 800;
}
.service-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { padding: .25rem clamp(1rem, 3.4vw, 3.15rem); border-inline-start: 1px solid var(--edge); }
.service:first-child { border: 0; padding-inline-start: 0; }
.service:last-child { padding-inline-end: 0; }
.service-icon { display: block; width: 2.9rem; height: 2.9rem; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service h3, .project h3 { margin: .8rem 0 .55rem; font-size: clamp(1.3rem, 2.4vw, 1.85rem); letter-spacing: -.04em; line-height: 1.18; font-weight: 800; }
.service p, .project p, .contact p { margin: 0; color: var(--muted); }

.projects { margin-top: clamp(4rem, 8vw, 7rem); }
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 19rem;
  border: 1px solid var(--edge);
  border-radius: .95rem;
  overflow: hidden;
  background: var(--panel);
}
.project-copy { align-self: center; max-width: 35rem; padding: clamp(1.5rem, 5vw, 4rem); }
.project h3 { margin-top: 0; font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
.project p { margin: 1rem 0 1.45rem; }
.project .text-link { color: var(--accent); }
.project .text-link:hover { color: var(--accent-hover); }
.project-art { width: 100%; height: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: 50% 47%; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem 2rem; padding-block: clamp(3.2rem, 6.4vw, 5.6rem); }
.contact h2 { margin-bottom: .5rem; }
.contact .button { flex: none; }
.site-footer { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; align-items: center; justify-content: space-between; padding-block: 1.55rem 2.3rem; border-top: 1px solid var(--edge); }
.footer-brand { font-size: 1.15rem; gap: .65rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; color: var(--muted); font-size: .925rem; }

@media (max-width: 850px) {
  .container { width: calc(100% - 3.5rem); }
  .site-header { gap: 1rem; }
  .brand { font-size: 1.35rem; gap: .65rem; }
  .site-header .brand img { width: 38px; }
  .main-nav { gap: 1.3rem; font-size: .94rem; }
  .hero { min-height: 30rem; }
  .hero h1 { font-size: clamp(2.7rem, 6.8vw, 4rem); }
  .hero-art { inset: 1rem -1.6rem auto auto; width: 67%; }
  .footer-brand { font-size: 1.15rem; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 2.5rem); }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: .95rem 1rem; padding-block: 1.1rem .5rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; gap: 1.5rem; }
  .site-header .button { grid-row: 1; grid-column: 2; min-height: 2.65rem; padding: .55rem .85rem; }
  .hero { display: grid; min-height: 0; padding-block: 2.1rem 1.5rem; }
  .hero h1 { font-size: clamp(1.94rem, 8.75vw, 3.35rem); line-height: 1.02; letter-spacing: -.06em; }
  .hero p { max-width: 27rem; margin-block: 1.2rem 1.45rem; }
  .desktop-break { display: none; }
  .actions { gap: .65rem 1rem; }
  .actions .text-link { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .hero-art { position: relative; inset: auto; width: min(calc(100% + 1.25rem), 29rem); justify-self: center; margin: -.3rem 0 -1.3rem; }
  .service-list { grid-template-columns: 1fr; }
  .service, .service:first-child, .service:last-child { padding: 1.25rem 0; border: 0; }
  .service + .service { border-top: 1px solid var(--edge); }
  .service:first-child { padding-top: 0; }
  .projects { margin-top: 2.55rem; }
  .project { grid-template-columns: 1fr; }
  .project-art { aspect-ratio: 1.6; }
  .contact { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
