:root {
  --bg:            #0b1014;
  --bg-deep:       #070b0e;
  --fg:            #ffffff;
  --fg-dim:        rgba(255, 255, 255, .62);
  --fg-faint:      rgba(255, 255, 255, .38);
  --line:          rgba(255, 255, 255, .16);
  --line-strong:   rgba(255, 255, 255, .85);
  --accent:        #7fe3ff;
  --accent-2:      #b48cff;

  --shell:         1240px;
  --gutter:        clamp(20px, 5vw, 64px);
  --head-h:        72px;

  --step-0:        14px;
  --step-1:        16px;
  --ease:          cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--fg); color: var(--bg); }

a, button { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .row:active::before { opacity: 1; }
  .nav__list a:active,
  .mobile-menu a:active,
  .lang__btn:active { color: var(--accent); }
}

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

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

.bg {
  --hx: 74%;
  --hy: 47%;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(34% 44% at var(--hx) var(--hy), rgba(40, 90, 210, .16), rgba(40, 90, 210, 0) 100%),
    linear-gradient(135deg, rgba(20, 34, 52, .55) 0%, rgba(11, 16, 20, .2) 45%, #070b0e 100%),
    #0b1014;
}

.knot {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  display: block;
  opacity: 1;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, .018) 0 1px,
      transparent 1px 3px
    );
  mask-image: radial-gradient(120% 80% at 50% 20%, #000 20%, transparent 85%);
}

.site-head, main, .site-foot { position: relative; z-index: 2; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--step-0);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11, 16, 20, .82), rgba(11, 16, 20, .42));
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-head.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(8, 12, 15, .9);
}

.head-inner {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  letter-spacing: .04em;
}
.brand__mark {
  width: 26px;
  height: 26px;
  color: var(--fg);
  transition: transform .6s var(--ease), color .3s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(180deg); color: var(--accent); }
.brand__name { font-size: 15px; font-weight: 700; }
.brand__thin { font-weight: 300; opacity: .68; margin-left: .35em; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 28px; }
.nav__list a {
  position: relative;
  font-size: var(--step-0);
  color: var(--fg-dim);
  transition: color .25s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover,
.nav__list a.is-current { color: var(--fg); }
.nav__list a:hover::after,
.nav__list a.is-current::after { transform: scaleX(1); }

.head-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 4px;
}

.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lang__btn {
  background: none;
  border: 0;
  padding: 11px 6px;
  cursor: pointer;
  letter-spacing: .08em;
  color: var(--fg-faint);
  transition: color .25s var(--ease);
}
.lang__btn:hover { color: var(--fg); }
.lang__btn.is-active { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.lang__sep { color: var(--fg-faint); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: var(--step-0);
  letter-spacing: .06em;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .35s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn--solid { padding: 16px 40px; }

.head-cta { padding: 10px 18px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1px;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: grid;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 15, .96);
}
.mobile-menu a {
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.mobile-menu[hidden] { display: none; }

.hero {
  position: relative;
  min-height: calc(100svh - var(--head-h));
  display: flex;
  align-items: center;
  padding: clamp(56px, 10vh, 120px) 0 clamp(72px, 12vh, 140px);
}
.hero__inner { width: 100%; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(11, 16, 20, .72) 0%, rgba(11, 16, 20, .30) 42%, rgba(11, 16, 20, 0) 68%);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
}

.hero__title {
  font-size: clamp(30px, 6.2vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  max-width: 17ch;
  text-wrap: balance;
}

@media (min-width: 960px) {
  .hero__title { max-width: min(17ch, 54vw); }
  .hero__sub   { max-width: min(54ch, 52vw); }
}

.hero__sub {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--fg-dim);
}

.stats {
  margin-top: clamp(44px, 7vh, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: rgba(11, 16, 20, .55);
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .35s var(--ease);
}
.stat:hover { background: rgba(255, 255, 255, .04); }
.stat__num {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.stat__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 30ch;
}

.stack {
  margin-top: 40px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.stack__label {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.stack__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack__list li {
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--fg-dim);
  padding: 5px 12px;
  border: 1px solid var(--line);
}

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(to right, currentColor, transparent);
  animation: slide 2.4s var(--ease) infinite;
}
@keyframes slide {
  0%, 100% { transform: translateX(0); opacity: .3; }
  50%      { transform: translateX(10px); opacity: 1; }
}

.section { padding: clamp(72px, 12vh, 140px) 0; }
.section--studio { border-top: 1px solid var(--line); }
.section--company { border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 8px;
}
.section__title {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.section__note {
  font-size: 13px;
  color: var(--fg-faint);
  max-width: 40ch;
}

.rows { border-top: 1px solid var(--line-strong); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 32px;
  align-items: start;
  gap: 16px;
  padding: 26px 8px 24px;
  border-bottom: 1px solid var(--line-strong);
  cursor: default;
  overflow: hidden;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, .06), transparent 70%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.row:hover::before { opacity: 1; }

.row__idx {
  position: relative;
  font-size: 12px;
  color: var(--fg-faint);
  padding-top: 5px;
  letter-spacing: .1em;
}
.row__body { position: relative; display: block; }
.row__title {
  display: block;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: -.01em;
  transition: transform .4s var(--ease);
}
.row:hover .row__title { transform: translateX(8px); }
.row__desc {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 62ch;
  transition: transform .4s var(--ease) .04s;
}
.row:hover .row__desc { transform: translateX(8px); }

.row__arrow {
  position: relative;
  justify-self: end;
  padding-top: 4px;
  font-size: 18px;
  color: var(--fg-faint);
  transition: transform .4s var(--ease), color .3s var(--ease);
}
.row:hover .row__arrow { transform: translateX(6px); color: var(--fg); }

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.studio__lead .section__title { margin-bottom: 26px; }
.studio__text {
  font-size: 14px;
  line-height: 1.95;
  color: var(--fg-dim);
  max-width: 52ch;
}
.studio__text + .studio__text { margin-top: 18px; }

.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas: "n t" ". d";
  gap: 4px 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step__n { grid-area: n; font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.step__t { grid-area: t; font-size: 16px; }
.step__d { grid-area: d; font-size: 13px; color: var(--fg-dim); line-height: 1.7; }

.contact__head { display: block; padding-bottom: 36px; }
.contact__head .section__note { margin-top: 12px; }

.form { display: block; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 40px;
}

.field { position: relative; padding-top: 26px; margin-bottom: 30px; }
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg);
  font: inherit;
  font-size: 18px;
  padding: 6px 2px 10px;
  border-radius: 0;
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.7; }
.field label {
  position: absolute;
  left: 2px;
  top: 30px;
  font-size: 16px;
  color: var(--fg-faint);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-26px) scale(.72);
  color: var(--fg-dim);
}
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus + label,
.field textarea:focus + label { color: var(--accent); }

.field__err {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #ff8c8c;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.field.is-invalid .field__err { opacity: 1; transform: none; }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #ff8c8c; }

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}
.form__legal { font-size: 12px; color: var(--fg-faint); max-width: 46ch; line-height: 1.7; }

.form__status {
  margin-top: 20px;
  font-size: 13px;
  min-height: 1.4em;
  color: var(--accent);
}
.form__status.is-error { color: #ff8c8c; }

.contact__direct {
  margin-top: clamp(48px, 8vh, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact__direct li {
  background: rgba(11, 16, 20, .55);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact__k {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.contact__v { font-size: 14px; line-height: 1.7; }
a.contact__v { border-bottom: 1px solid var(--line); padding-bottom: 2px; align-self: flex-start; transition: border-color .3s var(--ease); }
a.contact__v:hover { border-bottom-color: var(--fg); }

.facts {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  column-gap: clamp(24px, 5vw, 72px);
}
.fact {
  display: grid;
  grid-template-columns: minmax(150px, 38%) 1fr;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.fact--wide { grid-column: 1 / -1; }
.fact dt { font-size: 12px; letter-spacing: .06em; color: var(--fg-faint); text-transform: uppercase; }
.fact dd { font-size: 14px; line-height: 1.6; word-break: break-word; }
.mono-k { font-weight: 600; color: var(--accent); }

.site-foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, transparent, rgba(7, 11, 14, .85));
  padding: clamp(48px, 8vh, 80px) 0 40px;
}
.foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.foot__phone { font-size: 20px; letter-spacing: .02em; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.foot__phone:hover { border-bottom-color: var(--fg); }

.foot__legal { font-size: 12px; line-height: 1.9; color: var(--fg-dim); max-width: 92ch; }
.foot__legal--dim { color: var(--fg-faint); margin-top: 6px; }

.foot__bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-faint);
}
.foot__bottom a:hover { color: var(--fg); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

[data-i18n] { transition: opacity .18s linear; }
body.is-swapping [data-i18n] { opacity: .25; }

@media (max-width: 959px) {

  .hero {
    align-items: flex-start;
    padding: clamp(32px, 5vh, 80px) 0 clamp(56px, 9vh, 120px);
  }
  .hero__inner { padding-top: clamp(150px, 23vh, 250px); }
  .hero::before {
    background: linear-gradient(to bottom, rgba(11, 16, 20, 0) 14%, rgba(11, 16, 20, .88) 42%);
  }
  .stats { margin-top: clamp(28px, 4vh, 56px); }
  .stack { margin-top: 26px; }
  .hero__sub { margin-top: 20px; }
}

@media (max-width: 900px) {
  :root { --head-h: 62px; }
  .nav, .head-cta { display: none; }
  .burger { display: block; }
  .head-actions { margin-left: auto; gap: 14px; }
  .studio { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 6px; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .row { grid-template-columns: 38px 1fr; }
  .foot__legal { font-size: 13px; }
  .head-actions { gap: 8px; }
  .row__arrow { display: none; }
  .hero__scroll { display: none; }
  .form__grid { gap: 0; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .btn--solid { width: 100%; }
  .foot__top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .bg, .knot, .grain, .site-head, .hero__scroll { display: none; }
  body { background: #fff; color: #000; }
}
