/* DMARTX — design tokens from Figma (S0zGDMW46hAjFp8YEWOgtj) */

:root {
  --black: #000000;
  --deep: #080808;
  --graphite: #151515;
  --surface: #202020;
  --white: #ffffff;
  --soft: #eaeaea;
  --gray: #999999;
  --muted: #8a8a8a;
  --blue: #386bff;
  --lblue: #78c8ff;

  --r: 12px;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  --disp: "Space Grotesk", "Onest", "Noto Sans", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --body: "Manrope", "Segoe UI", sans-serif;

  --pad: 64px;
  --wrap: 1312px;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

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

::selection {
  background: var(--blue);
  color: var(--white);
}

.wrap {
  width: min(var(--wrap), 100% - var(--pad) * 2);
  margin-inline: auto;
}

/* ---------- type ---------- */

.sec-index {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 2px;
  color: var(--gray);
  text-transform: uppercase;
}

.h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 88px;
  line-height: 92px;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.kicker {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16.9px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.rule {
  height: 1px;
  background: var(--surface);
}

.foot-row > span {
  flex-shrink: 0;
}

.foot-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16.9px;
  letter-spacing: 2px;
  color: var(--gray);
  text-transform: uppercase;
}

/* ---------- buttons (Figma DS: 4 types x 3 states) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 18.2px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn .arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Primary — filled white */
.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:disabled {
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

/* Secondary — outline */
.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-secondary:disabled {
  border-color: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

/* Link — text */
.btn-link {
  color: var(--gray);
  padding: 18px 0;
}

.btn-link:hover {
  color: var(--blue);
}

.btn-link:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

/* Ghost — compact outline */
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  padding: 12px 18px;
  font-size: 12px;
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost:disabled {
  border-color: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}

/* compact filled (card CTA) */
.btn-sm {
  padding: 12px 18px;
  font-size: 13px;
  gap: 10px;
}

/* ---------- FX: glow + projection ---------- */

.fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 80px,
    #000 calc(100% - 140px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 80px,
    #000 calc(100% - 140px),
    transparent 100%
  );
}

.glow {
  position: absolute;
  border-radius: 50%;
  --o0: calc(var(--o) * 0.72);
  opacity: var(--o0);
  transform: scale(0.56);
}

.glow-field {
  left: var(--fx, 0);
  top: var(--fy, 0);
  width: var(--fw);
  height: var(--fh);
  background: var(--blue);
  filter: blur(250px);
}

.glow-cyan {
  left: calc(var(--fx, 0) + var(--cx));
  top: calc(var(--fy, 0) + var(--cy));
  width: var(--cw);
  height: var(--ch);
  background: var(--lblue);
  filter: blur(140px);
  --o0: calc((var(--o) - 0.02) * 0.72);
  opacity: var(--o0);
}

.glow-beam {
  left: calc(var(--fx, 0) + var(--bx));
  top: calc(var(--fy, 0) + var(--by));
  width: var(--bw);
  height: var(--bh);
  background: var(--blue);
  filter: blur(70px);
  transform: scale(0.56) rotate(-16deg);
  --o0: calc((var(--o) - 0.02) * 0.72);
  opacity: var(--o0);
}

.glow-hot {
  left: calc(var(--fx, 0) + var(--hx));
  top: calc(var(--fy, 0) + var(--hy));
  width: var(--hw);
  height: var(--hh);
  background: var(--white);
  filter: blur(50px);
  --o0: calc(var(--o) * 0.6 * 0.72);
  opacity: var(--o0);
}

/* projection: scanlines + sparse cells, confined to the lit ellipse */
.proj {
  position: absolute;
  left: var(--px, 0);
  top: var(--py, 0);
  width: var(--pw);
  height: var(--ph);
  background-image: repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0 2px,
      transparent 2px 8px
    ),
    url("../img/cells.svg");
  background-size: auto, 200px 200px;
  background-position: 0 0, 0 0;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, transparent 66%);
  mask-image: radial-gradient(ellipse at center, #000 18%, transparent 66%);
  transform: scale(0.56);
  opacity: 0.85;
  filter: blur(1.5px);
  animation: proj-flow 14s linear infinite;
}

@keyframes proj-flow {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 200px 200px, 200px 200px;
  }
}

/* glows hug their edge: shrink + push out so they bleed in as an accent */
.services .glow,
.projects .glow,
.manifesto .glow,
.contacts .glow,
.dir-page .glow,
.services .proj,
.projects .proj,
.manifesto .proj,
.contacts .proj,
.dir-page .proj {
  transform: translateX(90px) scale(0.56);
}

.services .glow-beam,
.projects .glow-beam,
.manifesto .glow-beam,
.contacts .glow-beam,
.dir-page .glow-beam {
  transform: translateX(90px) scale(0.56) rotate(-16deg);
}

.hero .glow,
.about .glow,
.hero .proj,
.about .proj {
  transform: translateX(-90px) scale(0.56);
}

.hero .glow-beam,
.about .glow-beam {
  transform: translateX(-90px) scale(0.56) rotate(-16deg);
}

/* band: vertical ticks inside card header */
.band-ticks {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0 1px,
    transparent 1px 26px
  );
}

/* preview panel texture: scanlines 26px + 44px cells on 68px grid */
.preview-tex {
  background-image: repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0 2px,
      transparent 2px 26px
    ),
    url("../img/grid-cells.svg");
  background-size: auto, 68px 68px;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  position: relative;
  z-index: 5;
}

.logo {
  font-family: var(--body);
  font-weight: 800;
  font-size: 22px;
  line-height: 30.1px;
  letter-spacing: 3px;
  color: var(--white);
}

.menu {
  display: flex;
  gap: 44px;
}

.menu a {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16.9px;
  letter-spacing: 1px;
  color: var(--gray);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--white);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease;
}

.burger span::before {
  top: -7px;
}

.burger span::after {
  top: 7px;
}

/* ---------- sections ---------- */

.sec {
  position: relative;
  overflow: hidden;
}

.sec > .wrap {
  position: relative;
  z-index: 1;
}

/* ---- Hero ---- */

.hero {
  min-height: 900px;
  padding-top: 36px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
}

.hero .rule-top {
  margin-top: 20px;
}

.hero .sec-index {
  margin-top: 31px;
}

.headline {
  margin-top: 86px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 112px;
  line-height: 116px;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.headline .accent {
  color: var(--blue);
}

.hero-art {
  position: absolute;
  top: 92px;
  right: 0;
  width: 316px;
  height: 576px;
  background: var(--black);
  overflow: hidden;
  z-index: 1;
}

.hero-art .art-scan {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 8px
  );
}

.hero-art img {
  position: absolute;
  top: 150px;
  left: 24px;
  width: 268px;
  height: 268px;
}

.hero-kicker {
  margin-top: 54px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16.9px;
  letter-spacing: 2px;
  color: #b3b3b3;
  text-transform: uppercase;
}

.hero .rule-bottom {
  margin-top: 55px;
}

.hero-lead {
  margin-top: 35px;
  font-size: 24px;
  line-height: 32.8px;
  color: var(--white);
  max-width: 655px;
}

.hero-cta {
  margin-top: 47px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-cta .btn-link {
  color: var(--gray);
  letter-spacing: 2px;
  font-family: var(--mono);
  font-size: 14px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.hero-cta .btn-link:hover {
  color: var(--blue);
}

.hero-copy {
  position: absolute;
  right: 0;
  bottom: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ---- section head (shared by 02..06) ---- */

.sec-head .sec-index {
  padding-top: 56px;
}

.sec-head .h2 {
  margin-top: 24px;
}

.sec-head .kicker,
.sec-head .sub {
  margin-top: 28px;
}

.sec-head .rule {
  margin-top: 23px;
}

/* ---- Services ---- */

.services {
  padding-bottom: 100px;
}

.sub {
  color: var(--gray);
  letter-spacing: 2px;
}

.services-grid {
  margin-top: 43px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
}

.card {
  background: var(--deep);
  border: 1px solid var(--surface);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .band {
  height: 40px;
  background: var(--graphite);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: relative;
}

.card .band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0 1px,
    transparent 1px 26px
  );
  pointer-events: none;
}

.card .band > * {
  position: relative;
}

.band-index {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 2px;
  color: var(--gray);
}

.band-tag {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 2px;
  color: var(--muted);
}

.card-body {
  padding: 36px 24px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.card-title.sm {
  font-size: 30px;
  line-height: 34px;
}

.card-desc {
  margin-top: 28px;
  font-size: 17px;
  line-height: 26px;
  color: var(--gray);
  max-width: 460px;
}

.card-foot {
  margin-top: auto;
  padding: 0 24px 30px;
}

.card-foot .rule {
  margin-bottom: 19px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16.9px;
  letter-spacing: 2px;
  color: var(--soft);
  text-transform: uppercase;
}

.card-link .arrow {
  color: var(--blue);
  font-size: 14px;
  transition: transform 0.2s ease;
}

/* card CTA: quiet text link at rest, filled blue on hover */
.card-link.btn {
  background: transparent;
  color: var(--soft);
  border-radius: var(--r);
  padding: 13px 18px;
  font-size: 13px;
  gap: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card-link.btn .arrow {
  color: var(--blue);
  font-size: 14px;
}

.card-link.btn:hover {
  background: var(--blue);
  color: var(--white);
}

.card-link.btn:hover .arrow {
  color: var(--white);
  transform: translateX(4px);
}

/* CTA card */
.card.cta-card {
  background: var(--graphite);
}

.card.cta-card .band {
  justify-content: flex-end;
}

.card.cta-card .card-body {
  padding-bottom: 30px;
}

.card.cta-card .btn {
  margin-top: 26px;
  align-self: flex-start;
}

.services-grid .card {
  min-height: 300px;
}

/* ---- Projects ---- */

.projects-grid {
  margin-top: 63px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project .preview {
  height: 380px;
  background: var(--graphite);
  border: 1px solid var(--surface);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project .preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05) 0 2px,
      transparent 2px 26px
    ),
    url("../img/grid-cells.svg");
  background-size: auto, 136px 136px;
  pointer-events: none;
}

.project .preview .initial {
  position: relative;
  z-index: 1;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 180px;
  line-height: 229.7px;
  letter-spacing: -6px;
  color: var(--white);
}

.project .name {
  margin-top: 32px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 34px;
  line-height: 38px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.project .kind {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 2px;
  color: var(--gray);
  text-transform: uppercase;
}

.project .rule {
  margin-top: 28px;
}

.project .p-link {
  display: inline-block;
  margin-top: 57px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16.9px;
  letter-spacing: 2px;
  color: var(--soft);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.project .p-link:hover {
  color: var(--blue);
}

.sec-head .projects-foot {
  margin-top: 113px;
}

.projects-foot + .foot-row {
  margin-top: 35px;
  padding-bottom: 51px;
}

/* ---- About ---- */

.about-lead {
  margin-top: 47px;
  display: grid;
  grid-template-columns: 768px 1px minmax(0, 1fr);
  gap: 0 48px;
}

.about-lead .lead {
  font-size: 22px;
  line-height: 34px;
  color: var(--soft);
}

.about-lead .v-rule {
  background: var(--surface);
  width: 1px;
  height: 168px;
  margin-top: 0;
}

.quote {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--white);
}

.quote.accent {
  color: var(--blue);
}

.quote-block .quote + .quote {
  margin-top: 12px;
}

.quote-block {
  margin-top: 16px;
}

.sec-head .rule-qualities {
  margin-top: 52px;
}

.qualities-label {
  margin-top: 31px;
}

.qualities {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.quality {
  background: var(--deep);
  border: 1px solid var(--surface);
  border-radius: var(--r);
  padding: 24px;
  min-height: 190px;
}

.quality .idx {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 2px;
  color: var(--gray);
}

.quality .q-title {
  margin-top: 22px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 26px;
  line-height: 30px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.quality .q-desc {
  margin-top: 14px;
  font-size: 15px;
  line-height: 22px;
  color: var(--gray);
}

.sec-head .rule-mv {
  margin-top: 50px;
}

.mv {
  margin-top: 31px;
  display: grid;
  grid-template-columns: 620px 1px minmax(0, 1fr);
  gap: 0;
}

.mv .mv-col:last-child {
  margin-left: 47px;
}

.mv .v-rule {
  background: var(--surface);
  width: 1px;
  height: 200px;
}

.mv-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 2px;
  color: var(--gray);
  text-transform: uppercase;
}

.mv-text {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--soft);
}

.mv-col .directions-label {
  margin-top: 40px;
}

.directions {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 1px;
  color: var(--soft);
  text-transform: uppercase;
}

.sec-head .about-foot {
  margin-top: 16px;
}

.about-foot + .foot-row {
  margin-top: 31px;
  padding-bottom: 63px;
}

.foot-right-white {
  color: var(--white);
}

/* ---- Manifesto ---- */

.manifesto-lines {
  margin-top: 36px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 96px;
  line-height: 96px;
  letter-spacing: -4px;
  text-transform: uppercase;
}

.manifesto-lines .accent {
  color: var(--blue);
}

.manifesto .sec-index {
  padding-top: 56px;
}

.manifesto .m-sub {
  margin-top: 36px;
}

.manifesto .rule {
  margin-top: 23px;
}

.sec-head .sec-index.qualities-label,
.sec-head .sec-index.process-label,
.manifesto .sec-index.principles-label {
  padding-top: 0;
}

.principles-label {
  margin-top: 31px;
}

.principle {
  display: grid;
  grid-template-columns: 76px 1fr;
}

.principles .principle:first-child {
  margin-top: 26px;
}

.p-sep {
  height: 1px;
  background: var(--graphite);
  margin-top: 38px;
}

.p-sep + .principle {
  margin-top: 15px;
}

.p-sep.thick {
  height: 5px;
  width: 870px;
  max-width: 100%;
  background: var(--graphite);
  margin-top: 56px;
}

.p-sep.foot-thick {
  height: 5px;
  width: 870px;
  max-width: 100%;
  background: var(--surface);
  margin-top: 18px;
}

.principle .p-idx {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 1px;
  color: var(--gray);
  padding-top: 10px;
}

.principle .p-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 24px;
  line-height: 30.6px;
  letter-spacing: -0.5px;
  color: var(--white);
}

.principle .p-body {
  margin-top: 9px;
  font-size: 15px;
  line-height: 22px;
  color: var(--gray);
  max-width: 940px;
}

.principles .principle + .principle {
  margin-top: 0;
}

.manifesto-foot {
  margin-top: 32px;
  padding-bottom: 47px;
}

/* ---- Contacts ---- */

.contacts .h2 {
  margin-top: 24px;
}

.contacts .rule-head {
  margin-top: 28px;
}

.contacts-body {
  margin-top: 55px;
  display: grid;
  grid-template-columns: 680px 1px minmax(0, 1fr);
  gap: 0;
}

.contacts-body .rail-v-rule {
  margin-left: 68px;
}

.contacts-body .rail {
  margin-left: 119px;
  padding-top: 16px;
}

.contacts {
  padding-bottom: 67px;
}

.form {
  display: flex;
  flex-direction: column;
}

.form .field + .field {
  margin-top: 28px;
}

.form .btn {
  margin-top: 56px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14.3px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.field .input {
  background: var(--deep);
  border: 1px solid var(--surface);
  border-radius: var(--r);
  padding: 24px;
  font-family: var(--body);
  font-size: 17px;
  line-height: 23.2px;
  color: var(--white);
  transition: border-color 0.2s ease;
  width: 100%;
}

.field .input::placeholder {
  color: var(--gray);
}

.field .input:hover {
  border-color: #333333;
}

.field .input:focus {
  outline: none;
  border-color: var(--blue);
}

.field textarea.input {
  min-height: 160px;
  resize: none;
}

.field select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999999' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}

.field select.input:invalid,
.field select.input option[value=""] {
  color: var(--gray);
}

.field select.input option {
  background: var(--deep);
  color: var(--white);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* arrows: one SVG, inherits text color, slides on hover */
.btn::after,
.btn-link::after,
.article-back::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 12px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M0 6h13M8.5 1.5L13.5 6L8.5 10.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' viewBox='0 0 16 12'%3E%3Cpath d='M0 6h13M8.5 1.5L13.5 6L8.5 10.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.2s ease;
}

.btn::after,
.article-back::before {
  vertical-align: middle;
}

.btn-link::after {
  margin-left: 10px;
  vertical-align: -1px;
}

.article-back::before {
  margin-right: 10px;
  transform: scaleX(-1);
}

.btn:hover::after,
.btn-link:hover::after {
  transform: translateX(4px);
}

.article-back:hover::before {
  transform: scaleX(-1) translateX(4px);
}

#brief-back::after {
  display: none;
}

/* share + also-read + home posts */
.share-row {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.share-row .btn-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.also {
  margin-top: 56px;
}

.also-title {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.also-item {
  display: block;
  border-top: 1px solid var(--surface);
  padding: 18px 0;
  color: var(--white);
  transition: color 0.2s ease;
}

.also-item:hover {
  color: var(--blue);
}

.also-rub {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.also-name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.5px;
}

.home-more {
  margin-top: 32px;
}

.faq-home {
  max-width: 820px;
  margin-top: 40px;
}

/* article page */
.article-back {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.article-back:hover {
  color: var(--blue);
}

.a-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.prose {
  max-width: 820px;
  margin-top: 48px;
}

.prose .a-lead {
  font-family: var(--body);
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: #d6d6d6;
  margin-bottom: 40px;
}

.prose h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -1px;
  margin-top: 56px;
  margin-bottom: 20px;
}

.prose p,
.prose li {
  font-family: var(--body);
  font-size: 17px;
  line-height: 27px;
  color: #bcbcbc;
}

.prose p + p {
  margin-top: 20px;
}

.prose ul {
  margin-top: 8px;
}

.prose li {
  margin-top: 12px;
  padding-left: 4px;
}

.prose li::before {
  content: "\2014\00a0";
  color: var(--blue);
}

.prose strong {
  color: var(--white);
  font-weight: 600;
}

.pull {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 26px;
  line-height: 34px;
  letter-spacing: -0.5px;
  color: var(--white);
  border-left: 2px solid var(--blue);
  padding-left: 24px;
  margin: 48px 0;
}

.faq {
  margin-top: 64px;
}

.faq h2 {
  margin-top: 0;
}

.faq-item {
  border-top: 1px solid var(--surface);
  padding: 24px 0;
}

.faq-q {
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  line-height: 24px;
  color: var(--white);
}

.faq-a {
  font-family: var(--body);
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
  margin-top: 10px;
}

.blog-empty {
  display: none;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-empty.show {
  display: block;
}

.a-fig {
  margin: 8px 0 40px;
}

.a-fig img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--surface);
}

/* blog page */
.blog-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card .card-body {
  padding-bottom: 30px;
}

.blog-card .b-title a {
  color: var(--white);
  transition: color 0.2s ease;
}

.blog-card .b-title a:hover {
  color: var(--blue);
}

.blog-card .b-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.5px;
}

.rubrics {
  margin-top: 32px;
}

.rubrics + .blog-grid {
  margin-top: 24px;
}

.blog-card.is-hidden {
  display: none;
}

/* courses page */
.kursy {
  padding-top: 36px;
}

.sec-head .sec-index.kursy-index {
  padding-top: 0;
  margin-top: 20px;
}

.card-link.muted {
  color: var(--muted);
  cursor: default;
}

/* brief wizard */
.brief-progress {
  padding-top: 0;
}

.brief-step {
  display: none;
}

.brief-step.is-active {
  display: block;
}

.brief-q {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.5px;
  margin-top: 24px;
}

.brief-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.opt {
  border: 1px solid var(--surface);
  background: var(--deep);
  border-radius: var(--r);
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--soft);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.opt:hover {
  border-color: var(--blue);
  color: var(--white);
}

.opt.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.brief-err {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff5c5c;
}

.brief-err:empty {
  display: none;
}

.brief-nav {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.btn[hidden] {
  display: none;
}

.brief .field {
  margin-top: 20px;
}

.brief .consent {
  margin-top: 20px;
}

.field.error .input {
  border-color: #ff5c5c;
}

.form .btn {
  align-self: flex-start;
}

.consent {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1px;
  color: var(--gray);
  text-transform: uppercase;
  max-width: 660px;
}

.form-note {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16.9px;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
}

.form-status {
  display: none;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  color: var(--blue);
}

.form-status.fail {
  color: #ff5c5c;
}

.rail-v-rule {
  background: var(--surface);
  width: 1px;
}

.rail-brand {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
  letter-spacing: -1px;
}

.rail-tagline {
  margin-top: 5px;
  font-size: 17px;
  line-height: 23.2px;
  color: var(--gray);
}

.rail .rule {
  margin-top: 45px;
}

.rail-label {
  margin-top: 31px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14.3px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.rail-text {
  margin-top: 14px;
  font-size: 17px;
  line-height: 26px;
  color: var(--soft);
}

.rail .rule + .rail-label {
  margin-top: 31px;
}

.rail .rail-rule-2 {
  margin-top: 54px;
}

.contacts .copyright {
  margin-top: 218px;
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ---- direction page ---- */

.dir-back {
  position: absolute;
  top: 56px;
  right: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.2s ease;
  z-index: 2;
}

.dir-back:hover {
  color: var(--blue);
}

.dir-lead-row {
  margin-top: 55px;
  display: grid;
  grid-template-columns: 600px 1px minmax(0, 1fr);
  gap: 0;
}

.dir-lead-row .v-rule {
  margin-left: 44px;
}

.dir-lead-row .dir-work-col {
  margin-left: 67px;
}

.dir-lead {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -1px;
  color: var(--white);
}

.dir-lead-row .v-rule {
  background: var(--surface);
  width: 1px;
  height: 232px;
}

.dir-work-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 2px;
  color: var(--gray);
  text-transform: uppercase;
  padding-top: 4px;
}

.dir-work {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dir-work-item {
  display: grid;
  grid-template-columns: 48px 1fr;
}

.dir-work-item .idx {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 1px;
  color: var(--muted);
  padding-top: 8px;
}

.dir-work-item .txt {
  font-size: 19px;
  line-height: 26px;
  color: var(--soft);
}

.sec-head .rule-process {
  margin-top: 51px;
}

.process-label {
  margin-top: 31px;
}

.steps {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step .idx {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 15.6px;
  letter-spacing: 1px;
  color: var(--muted);
}

.step .s-title {
  margin-top: 16px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  line-height: 28.1px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--white);
}

.step .s-desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--gray);
  max-width: 280px;
}

.sec-head .rule-cta {
  margin-top: 90px;
}

.cta-row {
  margin-top: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 48px;
}

.cta-note {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 16.9px;
  letter-spacing: 1px;
  color: var(--gray);
  text-transform: uppercase;
}

.sec-head .rule-foot {
  margin-top: 0;
}

.dir-page .foot-row {
  margin-top: 31px;
  padding-bottom: 31px;
}

/* ---------- responsive ---------- */

@media (max-width: 1424px) {
  .headline {
    font-size: 96px;
    line-height: 100px;
  }

  .h2 {
    font-size: 76px;
    line-height: 80px;
  }

  .manifesto-lines {
    font-size: 80px;
    line-height: 84px;
  }

  .about-lead {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 380px);
    gap: 0 40px;
  }

  .mv {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 0 40px;
  }

  .contacts-body {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 420px);
    gap: 0 40px;
  }

  .dir-lead-row {
    grid-template-columns: minmax(0, 560px) 1px minmax(0, 1fr);
  }

  .mv .mv-col:last-child,
  .contacts-body .rail-v-rule,
  .contacts-body .rail,
  .dir-lead-row .v-rule,
  .dir-lead-row .dir-work-col {
    margin-left: 0;
  }
}

@media (max-width: 1120px) {
  :root {
    --pad: 40px;
  }

  .headline {
    font-size: 80px;
    line-height: 84px;
  }

  .h2 {
    font-size: 64px;
    line-height: 68px;
  }

  .hero-art {
    width: 260px;
    height: 480px;
  }

  .hero-art img {
    width: 212px;
    height: 212px;
    top: 130px;
    left: 24px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .qualities {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .menu {
    gap: 28px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prose {
    max-width: 100%;
  }

  .prose h2 {
    font-size: 26px;
    line-height: 33px;
  }

  .pull {
    font-size: 22px;
    line-height: 30px;
  }
}

@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .about-lead .v-rule {
    display: none;
  }

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

  .mv .v-rule {
    display: none;
  }

  .contacts-body {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contacts-body .rail-v-rule {
    display: none;
  }

  .dir-lead-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dir-lead-row .v-rule {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 20px;
  }

  .burger {
    display: flex;
  }

  .menu {
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 15;
  }

  .menu.open {
    opacity: 1;
    visibility: visible;
  }

  .menu a {
    font-size: 18px;
    letter-spacing: 3px;
  }

  .burger.open span {
    background: transparent;
  }

  .burger.open span::before {
    transform: translateY(7px) rotate(45deg);
  }

  .burger.open span::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* hero */
  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .headline {
    margin-top: 48px;
    font-size: 44px;
    line-height: 48px;
    letter-spacing: -1.5px;
  }

  .hero-art {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 260px;
    margin-top: 32px;
    border: 1px solid var(--surface);
    border-radius: var(--r);
  }

  .hero-art img {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
  }

  .hero-kicker {
    margin-top: 32px;
  }

  .hero .rule-bottom {
    margin-top: 24px;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 18px;
    line-height: 26px;
  }

  .hero-cta {
    margin-top: 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .hero-copy {
    position: static;
    margin-top: 40px;
  }

  /* section heads */
  .sec-head .sec-index,
  .manifesto .sec-index {
    padding-top: 40px;
  }

  .h2 {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -1.5px;
    margin-top: 16px;
  }

  .sec-head .kicker,
  .sec-head .sub {
    margin-top: 16px;
  }

  .sec-head .rule {
    margin-top: 20px;
  }

  /* services */
  .services-grid {
    margin-top: 24px;
    gap: 20px;
  }

  .card-title {
    font-size: 28px;
    line-height: 32px;
  }

  .card-title.sm {
    font-size: 22px;
    line-height: 26px;
  }

  .card-body {
    padding-top: 24px;
  }

  .card-desc {
    margin-top: 16px;
    font-size: 15px;
    line-height: 22px;
  }

  .card-foot {
    padding-bottom: 24px;
  }

  /* projects */
  .projects-grid {
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project .preview {
    height: 240px;
  }

  .project .preview .initial {
    font-size: 120px;
    line-height: 1;
  }

  .project .name {
    margin-top: 20px;
    font-size: 26px;
    line-height: 30px;
  }

  .project .p-link {
    margin-top: 24px;
  }

  .projects-foot {
    margin-top: 40px;
  }

  .projects-foot + .foot-row {
    margin-top: 24px;
    padding-bottom: 40px;
  }

  .foot-row {
    font-size: 11px;
    letter-spacing: 1px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .foot-row > span {
    flex-shrink: 1;
  }

  /* about */
  .about-lead {
    margin-top: 24px;
    gap: 28px;
  }

  .about-lead .lead {
    font-size: 18px;
    line-height: 28px;
  }

  .quote {
    font-size: 26px;
    line-height: 32px;
  }

  .quote-block {
    margin-top: 0;
  }

  .rule-qualities {
    margin-top: 40px;
  }

  .qualities-label {
    margin-top: 24px;
  }

  .qualities {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quality {
    min-height: 0;
    padding: 20px;
  }

  .rule-mv {
    margin-top: 40px;
  }

  .mv {
    margin-top: 24px;
    gap: 32px;
  }

  .mv-col .directions-label {
    margin-top: 0;
  }

  .about-foot {
    margin-top: 40px;
  }

  .about-foot + .foot-row {
    margin-top: 24px;
    padding-bottom: 40px;
  }

  /* manifesto */
  .manifesto-lines {
    margin-top: 24px;
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -1.5px;
  }

  .manifesto .m-sub {
    margin-top: 24px;
  }

  .manifesto .rule {
    margin-top: 24px;
  }

  .principles-label {
    margin-top: 24px;
  }

  .principle {
    grid-template-columns: 40px 1fr;
    padding-top: 24px;
  }

  .principles .principle + .principle {
    margin-top: 24px;
  }

  .principle .p-title {
    font-size: 20px;
    line-height: 26px;
  }

  .manifesto-foot {
    margin-top: 28px;
    padding-bottom: 40px;
  }

  /* contacts */
  .contacts .rule-head {
    margin-top: 20px;
  }

  .contacts-body {
    margin-top: 32px;
    gap: 40px;
  }

  .field .input {
    padding: 18px;
    font-size: 16px;
  }

  .form .btn {
    align-self: stretch;
    justify-content: center;
    margin-top: 32px;
  }

  .step .s-title {
    margin-top: 8px;
  }

  .consent {
    font-size: 11px;
  }

  .rail-brand {
    font-size: 32px;
    line-height: 40px;
  }

  .contacts .copyright {
    margin-top: 40px;
    padding-bottom: 40px;
    text-align: left;
  }

  /* direction page */
  .dir-back {
    position: static;
    display: inline-block;
    margin-bottom: 24px;
  }

  .dir-lead-row {
    margin-top: 24px;
    gap: 32px;
  }

  .dir-lead {
    font-size: 26px;
    line-height: 34px;
  }

  .dir-work {
    margin-top: 16px;
    gap: 20px;
  }

  .rule-process {
    margin-top: 40px;
  }

  .process-label {
    margin-top: 24px;
  }

  .steps {
    margin-top: 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rule-cta {
    margin-top: 40px;
  }

  .cta-row {
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding-bottom: 40px;
  }

  .cta-row .btn {
    justify-content: center;
  }

  .cta-note {
    text-align: center;
  }

  .dir-page .foot-row {
    margin-top: 24px;
    padding-bottom: 32px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* fx on mobile: no scaling; right-side glows re-anchored into the viewport */
  .fx {
    transform: none;
    width: 100%;
    height: 100%;
  }

  .services .fx {
    --fx: -60px !important;
    --fy: -160px !important;
    --px: -200px !important;
    --py: -300px !important;
  }

  .projects .fx {
    --fx: -60px !important;
    --fy: 780px !important;
    --px: -200px !important;
    --py: 640px !important;
  }

  .manifesto .fx {
    --fx: -80px !important;
    --fy: 860px !important;
    --px: -220px !important;
    --py: 720px !important;
  }

  .contacts .fx {
    --fx: 0px !important;
    --fy: 640px !important;
    --px: -140px !important;
    --py: 500px !important;
  }

  .dir-page .fx {
    --fx: -10px !important;
    --fy: 100px !important;
    --px: -150px !important;
    --py: -40px !important;
  }

  .glow-field {
    filter: blur(140px);
  }

  .glow-cyan {
    filter: blur(90px);
  }

  .glow-beam {
    filter: blur(50px);
  }

  .glow-hot {
    display: none;
  }
}

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

  .glow,
  .proj {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.out-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.out-list li {
  border-top: 1px solid var(--surface);
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
}

.dir-faq {
  max-width: 820px;
}
