:root {
  --bg: #0d0b12;
  --bg-hover: #15121c;
  --fg: #f3f1f6;
  --muted: #a39fae;
  --dim: #7d7888;
  --line: #221e2b;
  --line-strong: #352f40;
  --accent: #ff6fcf;
  --pink: #ff5fc8;
  --violet: #7b5cff;
  --grad: linear-gradient(90deg, var(--pink), var(--violet));
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--fg); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 11, 18, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--fg); }
.brand__name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav__link { color: var(--muted); }

.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang__btn {
  border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 6px 10px; border-radius: 999px;
  background: transparent; color: var(--muted);
  transition: background .15s, color .15s;
}
.lang__btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 16px;
  padding: 15px 24px; border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.btn--sm { padding: 9px 16px; font-size: 15px; }
.btn--light { background: var(--fg); color: var(--bg); }
.btn--light:hover { background: #fff; color: var(--bg); }
.btn--grad { background: var(--grad); color: #fff; }
.btn--grad:hover { color: #fff; opacity: .9; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--fg); font-weight: 500; }
.btn--ghost:hover { border-color: var(--accent); }
.btn--block { width: 100%; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px;
}
.eyebrow--sm { margin-bottom: 20px; }

/* Hero */
.hero {
  position: relative;
  padding-top: 96px; padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px; align-items: center;
}
.hero__copy { position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(44px, 6.4vw, 84px); line-height: 1; letter-spacing: -.035em;
  font-weight: 600; margin-bottom: 28px; text-wrap: balance;
}
.hero__lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; margin-bottom: 40px; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hero__glow {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 90, 255, .28), rgba(13, 11, 18, 0) 65%);
}
.hero__mark { position: relative; width: min(360px, 80%); height: auto; }

@keyframes sqPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes sqFlow { to { stroke-dashoffset: -40; } }
.hero__mark line { stroke-dasharray: 28 12; animation: sqFlow linear infinite; }
.hero__mark circle { animation: sqPulse 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero__mark line, .hero__mark circle { animation: none; stroke-dasharray: none; }
  html { scroll-behavior: auto; }
}

/* Logos strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip__inner {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; gap: 16px 40px; flex-wrap: wrap; align-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--dim);
}
.strip__label { color: var(--muted); }

/* Sections */
.section { padding-top: 120px; padding-bottom: 40px; }
.section--contact { padding-bottom: 120px; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.section__sub { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 380px; }
.h2 {
  font-size: clamp(32px, 4vw, 52px); letter-spacing: -.03em; line-height: 1.05;
  font-weight: 600; max-width: 640px; text-wrap: balance;
}
#process .h2, #work .h2 { margin-bottom: 56px; }
.h2--wide { max-width: 720px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
}
.service {
  background: var(--bg); padding: 36px 30px 40px;
  display: flex; flex-direction: column; gap: 16px; min-height: 300px;
  transition: background .2s;
}
.service:hover { background: var(--bg-hover); }
.service__n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.service h3 { font-size: 23px; font-weight: 600; letter-spacing: -.015em; }
.service p, .step p { color: var(--muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step__when { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step__dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(180deg, var(--pink), var(--violet)); }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }

/* Work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.case { display: flex; flex-direction: column; gap: 18px; color: var(--fg); }
.case:hover { color: var(--fg); }
.case__img {
  aspect-ratio: 4 / 3; border-radius: 16px; border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #14111b 0 10px, #18141f 10px 20px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  transition: border-color .2s;
}
.case:hover .case__img { border-color: var(--line-strong); }
.case__meta { display: flex; flex-direction: column; gap: 6px; }
.case__tag { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.case h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; transition: color .15s; }
.case:hover h3 { color: var(--accent); }

/* Contact */
.contact {
  border-radius: 28px; padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(135deg, #2a1230 0%, #1a1236 100%);
  border: 1px solid #3a2a48;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px;
}
.contact__title {
  font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.035em; line-height: 1.02;
  font-weight: 600; margin-bottom: 20px; text-wrap: balance;
}
.contact__sub { color: #c9c3d4; font-size: 18px; line-height: 1.55; margin-bottom: 28px; max-width: 440px; }
.contact__mail { font-family: var(--mono); font-size: 15px; color: #ff8fdb; }
.contact__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { color: #ff8a9a; font-size: 14px; line-height: 1.45; }
.form__error[hidden] { display: none; }
.form button:disabled { opacity: .6; cursor: wait; }
.field {
  padding: 16px 18px; border-radius: 12px; border: 1px solid #4a3a5a;
  background: rgba(13, 11, 18, .55); color: var(--fg);
  font: inherit; font-size: 16px; outline: none;
  transition: border-color .15s;
}
.field::placeholder { color: var(--dim); }
.field:focus { border-color: var(--accent); }
.field--area { resize: vertical; min-height: 120px; }
.thanks {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  height: 100%; padding: 32px; border-radius: 18px; background: rgba(13, 11, 18, .5);
}
.thanks[hidden] { display: none; }
.thanks h3 { font-size: 26px; font-weight: 600; }
.thanks p { color: #c9c3d4; font-size: 16px; line-height: 1.55; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  padding-top: 32px; padding-bottom: 32px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--dim);
}
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--dim); }
.footer__links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 860px) {
  .nav__link { display: none; }
  .nav { gap: 14px; }
}
@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header__inner { gap: 12px; }
  .hero { padding-top: 56px; padding-bottom: 48px; gap: 24px; }
  .hero__art { min-height: 300px; }
  .service { min-height: 0; padding: 28px 24px 32px; }
  .section { padding-top: 80px; }
  .section--contact { padding-bottom: 80px; }
  .btn--sm { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 400px) {
  .brand__name { display: none; }
}
