@font-face {
  font-family: "Tilda Sans VF";
  src: url("../fonts/TildaSansVF.ttf") format("truetype-variations"),
       url("../fonts/TildaSansVF.ttf") format("truetype");
  font-weight: 250 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-text: #252525;
  --color-accent: #0d0dc0;
  --color-bg: #ffffff;
  --color-muted-bg: #f6f6f6;
  --color-border: #d8d8d8;
  --color-arrow-idle: #929396;

  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body: "Inter Tight", -apple-system, sans-serif;

  --container-width: 1200px;
  --container-padding: 40px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  text-transform: uppercase;
}

.slash {
  color: var(--color-accent);
}

.icon {
  flex-shrink: 0;
}

/* Custom cursor */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--color-accent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

.cursor--hover {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button {
    cursor: none;
  }
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* Home hero */

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: #818181;
  color: #fff;
  overflow: hidden;
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-hero__video--mobile {
  display: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.home-hero__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  z-index: 100;
}

.home-hero__mark {
  display: block;
  line-height: 0;
}

.home-hero__mark img {
  display: block;
  width: 30px;
  height: auto;
}

.home-hero__nav {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-hero__nav a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.home-hero__nav a:hover {
  opacity: 1;
}

.home-hero__projects {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  transition: opacity 0.2s ease;
}

.home-hero__projects:hover {
  opacity: 0.8;
}

.home-hero__bottom {
  margin-top: auto;
  padding-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-hero__title {
  margin: 0;
  font-family: "Tilda Sans VF", "Inter Tight", -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.2;
  white-space: nowrap;
}

.home-hero__title-break {
  display: none;
}

.home-hero__tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.2;
}

.home-hero__contact {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  transition: opacity 0.2s ease;
}

.home-hero__contact:hover {
  opacity: 0.8;
}

.home-hero .header__burger span {
  background: var(--color-bg);
}

.home-hero .header__burger.is-open span {
  background: var(--color-accent);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 32px 0;
  background: var(--color-bg);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header__link {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
}

/* Shared active-state dot (header link, filters) */

.dot {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header__nav-item {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  opacity: 0.6;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.header__nav-item:hover,
.header__link:hover {
  color: var(--color-accent);
  opacity: 1;
}

.header__nav-item--active {
  color: var(--color-accent);
  opacity: 1;
}

.header__nav-item--active .dot,
.header__link--active .dot,
.filter--active .dot {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header__link--active {
  color: var(--color-accent);
}

/* Burger */

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 21px;
  padding: 0;
  border: none;
  background: none;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.header__burger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu overlay */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 120px var(--container-padding) 40px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu__item {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: #666666;
  transition: color 0.2s ease;
}

.mobile-menu__item--active {
  color: var(--color-accent);
  font-weight: 500;
}

.mobile-menu__item--active .dot {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.mobile-menu__item:hover {
  color: var(--color-accent);
}

.mobile-menu__item--accent {
  margin-top: 18px;
}

/* Hero */

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  padding-top: 110px;
}

.hero__mark img {
  width: 355px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 702px;
}

.hero__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  text-align: justify;
  opacity: 0.6;
}

/* Projects */

.projects {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 60px;
}

.projects__banner {
  display: block;
  overflow: hidden;
}

.projects__banner img {
  width: 100%;
  height: 490px;
  object-fit: cover;
}

.projects__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.projects__pager-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Clients marquee */

.clients {
  margin-top: 120px;
}

.clients__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.clients__title {
  padding: 0 var(--container-padding);
  margin-bottom: 32px;
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 90s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 90px;
  padding-right: 10px;
  flex-shrink: 0;
}

.marquee__item {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__sep {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-text);
}

.marquee__sep--accent {
  color: var(--color-accent);
  opacity: 0.8;
  letter-spacing: 1px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Awards */

.awards {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.awards__title {
  align-self: stretch;
}

.awards__list {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.award {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 0;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.award + .award {
  border-top: 1px solid var(--color-border);
}

.award__year {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
}

.award__name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  white-space: nowrap;
}

.award__arrow {
  margin-left: auto;
  transition: transform 0.25s ease;
}

.award--accent {
  color: var(--color-accent);
}

.award:hover {
  color: var(--color-accent);
}

.award:hover .award__arrow {
  transform: translate(3px, -3px);
}

.award--hidden {
  display: none;
}

.awards__more {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-accent);
}

.awards__more .icon {
  transition: transform 0.25s ease;
}

.awards__more--expanded .icon {
  transform: rotate(180deg);
}


/* Principles */

.principles {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.principles__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.principles__nav {
  display: flex;
  gap: 16px;
}

.principles__arrow {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.principles__arrow:disabled {
  opacity: 0.3;
}

.principles__arrow:not(:disabled):hover {
  color: var(--color-accent);
}

.principles__viewport {
  overflow: hidden;
}

.principles__track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.principle {
  flex: 0 0 265px;
  height: 377px;
  perspective: 1400px;
}

.principle__rotor {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.principle.is-flipped .principle__rotor {
  transform: rotateY(180deg);
}

/* Hover/focus would latch the card open on touch, so it is pointer-only */
@media (hover: hover) {
  .principle:hover .principle__rotor,
  .principle:focus-within .principle__rotor {
    transform: rotateY(180deg);
  }
}

.principle__face {
  position: absolute;
  inset: 0;
  padding: 24px;
  background: var(--color-muted-bg);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.principle__face--front {
  transform: rotateY(0deg);
}

.principle__face--back {
  transform: rotateY(180deg);
}

.principle__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}

.principle__back-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  color: rgba(37, 37, 37, 0.6);
}

.principle__shape {
  position: absolute;
  left: 24px;
  top: 233px;
  width: 120px;
  height: 120px;
}

.principle__arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.principle__arrow--blue {
  color: var(--color-accent);
}

/* CTA / contact form */

.cta {
  margin-top: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 74px;
}

.cta__info {
  position: relative;
  flex: 0 0 518px;
  display: flex;
  flex-direction: column;
  gap: 92px;
}

.cta__intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cta__subtitle {
  margin: 0;
  max-width: 406px;
  font-size: 20px;
  line-height: 1.3;
  opacity: 0.6;
}

.cta__phone {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta__phone-label {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  opacity: 0.6;
}

.cta__phone-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}

.cta__squiggle {
  position: absolute;
  left: 255px;
  top: 135px;
  width: 270px;
  height: 238px;
  pointer-events: none;
  overflow: visible;
}

.cta__squiggle-reveal {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.cta__squiggle-arrow {
  stroke: #1515e0;
  stroke-width: 3.5;
  stroke-linejoin: round;
}

.cta__squiggle.is-drawn .cta__squiggle-reveal {
  animation: draw-squiggle-arrow 1.25s ease-out forwards;
}

@keyframes draw-squiggle-arrow {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta__squiggle-reveal {
    stroke-dashoffset: 0;
    animation: none !important;
  }
}

.cta__form {
  flex: 0 0 550px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.form__fields {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form__row {
  display: flex;
  gap: 20px;
}

.form__row .form__field {
  flex: 1 1 0;
  min-width: 0;
}

.form__input {
  width: 100%;
  padding: 0 0 16px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: none;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease;
}

.form__input::placeholder {
  color: var(--color-text);
  opacity: 0.5;
}

.form__input:focus {
  border-color: var(--color-accent);
}

.form__consent {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.form__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form__checkbox-box {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 1px solid var(--color-accent);
  position: relative;
  transition: background 0.2s ease;
}

.form__checkbox:checked + .form__checkbox-box {
  background: var(--color-accent);
}

.form__consent-text {
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.5;
}

.form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.form__submit:hover {
  opacity: 0.9;
}

/* Shared button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  transition: opacity 0.2s ease;
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  opacity: 0.9;
}

/* Team */

.team {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.team__intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.team__lead {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  text-align: justify;
}

.team__highlight {
  display: inline-block;
  padding: 2px 12px;
  background: var(--color-accent);
  color: #fff;
  transform: rotate(-2deg);
}

.team__cols {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.team__paragraphs {
  flex: 0 0 693px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team__paragraphs p {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  text-align: justify;
  opacity: 0.6;
}

.team__vacancy {
  flex: 0 0 265px;
}

.team__departments {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.department {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.department__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.department__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
}

.department__nav {
  display: flex;
  gap: 16px;
}

.department__arrow {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.department__arrow:disabled {
  opacity: 0.3;
}

.department__arrow:not(:disabled):hover {
  color: var(--color-accent);
}

.team__viewport {
  overflow: hidden;
}

.team__grid {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.member {
  flex: 0 0 calc((100% - 80px) / 5);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.member__photo {
  aspect-ratio: 360 / 445;
  overflow: hidden;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member__name {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}

.member__role {
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.7;
}

/* Footer */

.footer {
  margin-top: 120px;
  padding: 40px 0 60px;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer__nav {
  flex: 0 0 265px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 419px;
}

.footer__nav-item {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.footer__nav-item:hover {
  opacity: 0.7;
}

.footer__contacts {
  flex: 0 0 451px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 419px;
}

.footer__coords {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__coord {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-accent);
}

.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 140px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.footer__social:hover {
  opacity: 0.7;
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__address-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-accent);
}

.footer__address-text {
  margin: 0;
  max-width: 375px;
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.6;
}

.footer__cta {
  flex: 0 0 364px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  min-height: 419px;
}

.footer__form-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__form-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-accent);
}

.form--compact {
  gap: 24px;
}

.form--compact .form__fields {
  gap: 16px;
}

.form--compact .form__input {
  font-size: 16px;
  padding-bottom: 16px;
}

.form--compact .form__consent-text {
  font-size: 14px;
  opacity: 0.6;
}

.form--compact .form__submit {
  padding: 14px 24px;
  font-size: 14px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-accent);
}

.footer__legal-link {
  transition: opacity 0.2s ease;
}

.footer__legal-link:hover {
  opacity: 0.7;
}

/* Project detail page */

.project {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.project__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project__pager-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.project__pager-link:hover {
  color: var(--color-accent);
}

/* Intro */

.project__intro {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 60px;
}

.project__intro-media {
  flex: 0 0 487px;
  aspect-ratio: 487 / 392;
  overflow: hidden;
}

.project__intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__intro-info {
  flex: 0 0 487px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.project__params {
  display: flex;
  gap: 60px;
}

.param {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.param__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0.6;
}

.param__value {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-accent);
  white-space: nowrap;
}

.project__lead {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project__lead-title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}

.project__lead-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  text-align: justify;
  opacity: 0.6;
}

.project__squiggle {
  position: absolute;
  right: -20px;
  bottom: -90px;
  width: 205px;
  height: auto;
  pointer-events: none;
}

/* Big slider */

.project__slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin-top: 60px;
}

.project__slider-media {
  width: 100%;
  aspect-ratio: 1120 / 897;
  overflow: hidden;
}

.project__slider-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.project__slider-arrow {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.project__slider-arrow:hover {
  color: var(--color-accent);
}

.project__dots {
  display: flex;
  gap: 10px;
}

.project__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background 0.2s ease;
}

.project__dot--active {
  background: var(--color-accent);
}

/* Body: media rows + text */

.project__body {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.project__media-row {
  display: grid;
  width: 100%;
  gap: 0;
}

.project__media-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__media-row--photos {
  grid-template-columns: repeat(4, 1fr);
  height: 280px;
}

.project__media-row--diagrams {
  grid-template-columns: repeat(3, 1fr);
  height: 280px;
}

.project__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project__text-title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}

.project__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  text-align: justify;
  opacity: 0.6;
}

/* Video */

.project__video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1120 / 631;
  overflow: hidden;
  margin-top: 60px;
}

.project__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.project__video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid #fff;
  color: #fff;
  transition: background 0.25s ease;
}

.project__video:hover .project__video-play {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Bounding-box-centered triangle reads as shifted left (its solid edge
   is left, point is right) — nudge right so it looks centered */
.project__video-play svg {
  margin-left: 3px;
}

/* Authors */

.authors {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 60px;
}

.authors__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Portfolio */

.portfolio {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 60px;
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
}

.filter {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.6;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.filter:hover {
  color: var(--color-accent);
}

.filter--active {
  opacity: 1;
  font-weight: 500;
  color: var(--color-accent);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.portfolio__item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--color-muted-bg);
  overflow: hidden;
}

.portfolio__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio__item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: var(--color-bg);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio__item:hover .portfolio__item-overlay,
.portfolio__item:focus-visible .portfolio__item-overlay {
  opacity: 1;
}

.portfolio__item-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-text);
  text-wrap: balance;
}

.portfolio__item-desc {
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-text);
  opacity: 0.5;
  text-wrap: balance;
}

/* Scroll to top */

.scroll-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  opacity: 0.9;
}

/* Services */

.services {
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.service-block {
  display: flex;
  justify-content: space-between;
  gap: 98px;
}

.service-block__intro {
  position: relative;
  flex: 0 0 428px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-block__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
}

.service-block__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.6;
}

.service-block__steps {
  flex: 0 0 594px;
  display: flex;
  flex-direction: column;
}

.service-step {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.service-step:first-child {
  padding-top: 0;
  border-top: none;
}

.service-step + .service-step {
  margin-top: 16px;
}

.service-step__row {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--color-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.service-step__num {
  flex: 0 0 24px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}

.service-step__title {
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}

.service-step__arrow {
  flex: 0 0 24px;
  color: var(--color-arrow-idle);
  transform: rotate(90deg);
  transition: transform 0.3s ease, color 0.2s ease;
}

.service-step--open .service-step__arrow {
  color: inherit;
  transform: rotate(-90deg);
}

.service-step--open .service-step__row {
  color: var(--color-accent);
}

/* Pointer-only: a tap latches :hover, leaving closed steps accented */
@media (hover: hover) {
  .service-step__row:hover {
    color: var(--color-accent);
  }
}

.service-step__desc {
  margin: 0 0 0 44px;
  max-width: 550px;
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.6;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
}

.service-step--open .service-step__desc {
  max-height: 260px;
  margin-top: 16px;
}

/* Decorative scattered badges */

.service-badges {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 110px;
}

.service-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 2px 14px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;
  transform-origin: 50% 50%;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  animation-fill-mode: both;
  animation-timing-function: linear;
}

.service-badges.is-animated .service-badge--1 {
  animation-name: fall-visualization;
}

.service-badges.is-animated .service-badge--2 {
  animation-name: fall-documentation;
}

.service-badges.is-animated .service-badge--3 {
  animation-name: fall-concept;
}

.service-badge--1 {
  left: 0;
  top: 52px;
  --duration: 1180ms;
  --delay: 520ms;
  z-index: 2;
}

.service-badge--2 {
  left: 68px;
  top: 0;
  --duration: 1250ms;
  --delay: 980ms;
  z-index: 3;
}

.service-badge--3 {
  left: 147px;
  top: 57px;
  --duration: 1120ms;
  --delay: 0ms;
  z-index: 1;
}

@keyframes fall-documentation {
  0% {
    opacity: 0;
    transform: translate(165px, -620px) rotate(-28deg);
  }
  10% {
    opacity: 1;
  }
  48% {
    transform: translate(72px, -170px) rotate(31deg);
  }
  68% {
    transform: translate(16px, 28px) rotate(9deg);
  }
  79% {
    transform: translate(2px, -22px) rotate(18deg);
  }
  90% {
    transform: translate(-3px, 8px) rotate(11deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(13deg);
  }
}

@keyframes fall-visualization {
  0% {
    opacity: 0;
    transform: translate(66px, -610px) rotate(24deg);
  }
  12% {
    opacity: 1;
  }
  46% {
    transform: translate(42px, -205px) rotate(-34deg);
  }
  67% {
    transform: translate(17px, 18px) rotate(-14deg);
  }
  79% {
    transform: translate(8px, -20px) rotate(-3deg);
  }
  91% {
    transform: translate(-2px, 7px) rotate(-11deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(-8deg);
  }
}

@keyframes fall-concept {
  0% {
    opacity: 0;
    transform: translate(-10px, -640px) rotate(33deg);
  }
  10% {
    opacity: 1;
  }
  44% {
    transform: translate(-34px, -250px) rotate(-38deg);
  }
  64% {
    transform: translate(-12px, -28px) rotate(-18deg);
  }
  77% {
    transform: translate(-6px, 20px) rotate(-8deg);
  }
  90% {
    transform: translate(4px, -8px) rotate(-15deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-badge {
    animation: none !important;
  }

  .service-badge--1 {
    transform: rotate(-8deg);
  }

  .service-badge--2 {
    transform: rotate(13deg);
  }

  .service-badge--3 {
    transform: rotate(0deg);
  }
}

/* Vacancies */

.vacancies {
  padding-top: 60px;
  display: flex;
  justify-content: space-between;
  gap: 98px;
}

.vacancies__intro {
  position: relative;
  flex: 0 0 231px;
}

.vacancies__title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  text-transform: uppercase;
}

.vacancies__list {
  flex: 0 0 594px;
  display: flex;
  flex-direction: column;
}

.vacancy {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.vacancy:first-child {
  padding-top: 0;
  border-top: none;
}

.vacancy + .vacancy {
  margin-top: 32px;
}

.vacancy__row {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.vacancy--open .vacancy__row {
  color: var(--color-accent);
}

@media (hover: hover) {
  .vacancy__row:hover {
    color: var(--color-accent);
  }
}

.vacancy__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}

.vacancy__arrow {
  flex: 0 0 24px;
  color: var(--color-arrow-idle);
  transform: rotate(90deg);
  transition: transform 0.3s ease, color 0.2s ease;
}

.vacancy--open .vacancy__arrow {
  color: inherit;
  transform: rotate(-90deg);
}

.vacancy__body {
  overflow: hidden;
  max-height: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
}

.vacancy--open .vacancy__body {
  max-height: 900px;
  margin-top: 24px;
}

.vacancy__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vacancy__section-title {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
}

.vacancy__list-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vacancy__list-items li {
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.6;
}

.vacancy__list-items li::before {
  content: "— ";
}

.vacancy__contact {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
}

.vacancy__contact a {
  color: var(--color-accent);
}

/* Decorative vacancy badges */

.vacancy-badges {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 75px;
}

.vacancy-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 2px 14px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  white-space: nowrap;
  transform-origin: 50% 50%;
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  animation-fill-mode: both;
  animation-timing-function: linear;
}

.vacancy-badges.is-animated .vacancy-badge--1 {
  animation-name: fall-vacancy-1;
}

.vacancy-badges.is-animated .vacancy-badge--2 {
  animation-name: fall-vacancy-2;
}

.vacancy-badges.is-animated .vacancy-badge--3 {
  animation-name: fall-vacancy-3;
}

.vacancy-badge--1 {
  left: 0;
  top: 10px;
  --duration: 1180ms;
  --delay: 520ms;
  z-index: 1;
}

.vacancy-badge--2 {
  left: 60px;
  top: 0;
  --duration: 1250ms;
  --delay: 980ms;
  z-index: 2;
}

.vacancy-badge--3 {
  left: 171px;
  top: 34px;
  --duration: 1120ms;
  --delay: 0ms;
  z-index: 3;
}

@keyframes fall-vacancy-1 {
  0% {
    opacity: 0;
    transform: translate(66px, -610px) rotate(47deg);
  }
  12% {
    opacity: 1;
  }
  46% {
    transform: translate(42px, -205px) rotate(-11deg);
  }
  67% {
    transform: translate(17px, 18px) rotate(9deg);
  }
  79% {
    transform: translate(8px, -20px) rotate(20deg);
  }
  91% {
    transform: translate(-2px, 7px) rotate(12deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(15.3deg);
  }
}

@keyframes fall-vacancy-2 {
  0% {
    opacity: 0;
    transform: translate(165px, -620px) rotate(-37deg);
  }
  10% {
    opacity: 1;
  }
  48% {
    transform: translate(72px, -170px) rotate(22deg);
  }
  68% {
    transform: translate(16px, 28px) rotate(0deg);
  }
  79% {
    transform: translate(2px, -22px) rotate(9deg);
  }
  90% {
    transform: translate(-3px, 8px) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(4.3deg);
  }
}

@keyframes fall-vacancy-3 {
  0% {
    opacity: 0;
    transform: translate(-10px, -640px) rotate(31deg);
  }
  10% {
    opacity: 1;
  }
  44% {
    transform: translate(-34px, -250px) rotate(-40deg);
  }
  64% {
    transform: translate(-12px, -28px) rotate(-20deg);
  }
  77% {
    transform: translate(-6px, 20px) rotate(-10deg);
  }
  90% {
    transform: translate(4px, -8px) rotate(-17deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(-2.1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vacancy-badge {
    animation: none !important;
  }

  .vacancy-badge--1 {
    transform: rotate(15.3deg);
  }

  .vacancy-badge--2 {
    transform: rotate(4.3deg);
  }

  .vacancy-badge--3 {
    transform: rotate(-2.1deg);
  }
}

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 60px;
}

.faq__title {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.2;
  color: var(--color-accent);
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-text);
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .faq__q:hover {
    color: var(--color-accent);
  }
}

.faq__item--open > .faq__q {
  color: var(--color-accent);
}

.faq__icon {
  flex-shrink: 0;
  color: var(--color-arrow-idle);
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
  color: inherit;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item--open > .faq__a {
  grid-template-rows: 1fr;
}

.faq__a-inner {
  overflow: hidden;
}

.faq__a-inner p {
  margin: 0;
  padding: 0 0 16px;
  max-width: 1000px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  text-align: justify;
  opacity: 0.6;
}

.faq__a-inner p:last-child {
  padding-bottom: 28px;
}

/* Contacts */

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 40px;
}

.contacts__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
}

.contacts__title {
  margin: 0;
}

.contacts__coords {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacts__phone {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.contacts__phone:hover {
  opacity: 0.8;
}

.contacts__address {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--color-text);
}

.contacts__emails {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contacts__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-text);
  opacity: 0.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.contacts__label:hover {
  color: var(--color-accent);
  opacity: 1;
}

.contacts__email {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.contacts__email:hover {
  color: var(--color-accent);
}

/* Media */

.media {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-top: 40px;
}

.media__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 370px;
  background: var(--color-muted-bg);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  opacity: 0.5;
}

.media__block {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.media__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
}

.media__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
}

/* Vertical divider between columns — skip the first card of every row */
.media-card:not(:nth-child(4n+1))::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-accent);
}

/* Horizontal divider between rows — first card of every row after the first,
   centered in the existing 40px row gap (20px to the date above, 20px to the
   image below), spanning all 4 columns */
.media-card:nth-child(4n+1):not(:first-child)::after {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: calc(400% + 120px);
  height: 1px;
  background: var(--color-accent);
}

.media-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 24px;
  background: var(--color-muted-bg);
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.media-card:hover .media-card__img {
  opacity: 0.85;
}

.media-card__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-accent);
}

.media-card__text {
  margin: 0 0 20px;
  flex: 1;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  text-align: justify;
  opacity: 0.6;
}

.media-card__date {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0.6;
}

/* Article — rebuilt 1:1 from Figma node 1:4 (exact px values from the design file) */

.article {
  padding-top: 40px;
}

.article__title {
  margin: 60px 0 32px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.19;
  color: var(--color-accent);
}

.article__title-line {
  display: block;
}

.article__title-line--2 {
  margin-left: 253px;
}

.article__meta {
  display: flex;
  gap: 20px;
  height: 448px;
  margin-bottom: 32px;
}

.article__meta-side {
  flex: 0 0 233px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article__date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  opacity: 0.7;
}

.article__photo-small,
.article__photo-large {
  background: var(--color-muted-bg);
  overflow: hidden;
}

.article__photo-small {
  height: 281px;
}

.article__photo-large {
  flex: 1;
}

.article__photo-small img,
.article__photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lead: statement + callout/photo row, both indented to the 253px rail */

.article__lead {
  margin: 0 0 24px 253px;
}

.article__statement {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  color: var(--color-text);
  text-align: justify;
}

.article__lead-row {
  display: flex;
  align-items: flex-start;
  gap: 37px;
}

.article__lead-row .article__side-text {
  flex: 0 0 356px;
}

.article__lead-row .article__ph {
  flex: 1;
  height: 232px;
}

/* Full-width mono paragraphs used between/inside sections */

.article__wide {
  margin: 0 0 80px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-text);
  text-align: justify;
}

.article__section .article__wide {
  margin-bottom: 32px;
}

.article__section .article__wide:last-child {
  margin-bottom: 0;
}

/* Small Inter Tight side text used in photo/text rows */

.article__side-text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text);
  opacity: 0.7;
  text-align: justify;
}

.article__ph {
  background: var(--color-muted-bg);
}

.article__section {
  margin-bottom: 80px;
}

.article__section-head {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}

.article__section-num {
  flex: 0 0 253px;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 72px;
  line-height: 1;
  color: var(--color-text);
}

.article__section-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 54px;
  line-height: 1.2;
  color: var(--color-accent);
}

.article__section-intro {
  margin: 0 0 32px 253px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.5;
  color: var(--color-text);
  text-align: justify;
}

/* Photo/text rows. Column widths come from Figma, but heights flow from the
   content so longer copy pushes the layout down instead of overlapping it. */

.article__row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
}

/* Text column that stacks a two-up row above a full-width paragraph */
.article__col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article__col-top {
  display: flex;
  align-items: flex-start;
}

.article__row--s1 {
  gap: 25px;
}

.article__row--s1 .article__col {
  flex: 0 0 735px;
  gap: 20px;
}

.article__row--s1 .article__col-top {
  gap: 20px;
}

.article__ph--s1a { flex: 0 0 233px; height: 150px; }
.article__side-text--s1a { flex: 1; min-width: 0; }
.article__ph--s1b { flex: 0 0 358px; height: 320px; }

.article__row--s2 {
  gap: 20px;
}

.article__row--s2 .article__col {
  flex: 0 0 867px;
}

.article__row--s2 .article__col-top {
  gap: 24px;
}

/* Photo sits first in the DOM so it can float right on mobile */
.article__ph--s2 {
  order: 2;
  flex: 0 0 233px;
  height: 376px;
}

.article__side-text--s2a { flex: 0 0 484px; }
.article__side-text--s2b { flex: 1; min-width: 0; }

.article__wide--s2 {
  margin: 0;
}

/* Grid lets the photo sit between the two text columns on desktop while
   staying next to the paragraph it wraps on mobile (DOM order is the mobile
   one; grid-column/row place it for desktop). */

.article__grid--s3 {
  display: grid;
  grid-template-columns: 233px 360px 487px;
  gap: 32px 20px;
  margin-bottom: 32px;
}

.article__side-text--s3a { grid-column: 1; grid-row: 1; }
.article__ph--s3a { grid-column: 2; grid-row: 1; height: 262px; }
.article__side-text--s3b { grid-column: 3; grid-row: 1; }
.article__side-text--s3c { grid-column: 1 / -1; grid-row: 2; }

.article__row--s3b {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 32px;
}

.article__row--s3b .article__wide {
  flex: 0 0 738px;
  margin-bottom: 0;
}

.article__row--s3b .article__ph {
  flex: 0 0 360px;
  height: 303px;
}

.article .media__block {
  margin-top: 120px;
}

.article__more-title {
  margin: 0 0 40px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .clients,
  .awards,
  .principles,
  .cta,
  .team,
  .footer {
    margin-top: 80px;
  }

  /* Services */
  .services {
    padding-top: 9px;
    gap: 80px;
  }

  .service-block {
    flex-direction: column;
    gap: 32px;
  }

  .service-block__intro,
  .service-block__steps {
    flex: 1 1 auto;
  }

  .service-block__intro {
    gap: 16px;
  }

  /* Description spans the full column instead of hanging off the step number */
  .service-step__desc {
    margin-left: 0;
    max-width: none;
    text-align: justify;
  }

  .service-badges {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    height: 85px;
    margin-top: 8px;
  }

  .service-badge {
    padding: 2px 12px;
    font-size: 20px;
  }

  .service-badge--1 {
    left: 0;
    top: 35px;
  }

  .service-badge--2 {
    left: 89px;
    top: 0;
  }

  .service-badge--3 {
    left: 137px;
    top: 56px;
  }

  /* Vacancies */
  .vacancies {
    flex-direction: column;
    gap: 32px;
  }

  .vacancies__intro,
  .vacancies__list {
    flex: 1 1 auto;
  }

  .vacancy-badges {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    height: 86px;
    margin-top: 32px;
  }

  .vacancy-badge {
    padding: 1px 4px;
    font-size: 20px;
  }

  .vacancy-badge--1 {
    left: 190px;
    top: 62px;
    transform: rotate(0deg);
  }

  .vacancy-badge--2 {
    left: 105px;
    top: 0;
    transform: rotate(15.6deg);
  }

  .vacancy-badge--3 {
    left: 0;
    top: 37px;
    transform: rotate(-8.7deg);
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .hero__mark {
    display: none;
  }

  /* Figma mobile puts the projects block between the hero heading and its text.
     Flattening .hero lets both become flex children of <main> so they can be reordered. */
  main:has(.hero) {
    display: flex;
    flex-direction: column;
  }

  .hero,
  .hero__content {
    display: contents;
  }

  /* .container styles are lost when the wrappers are flattened — reapply them */
  .hero__heading,
  .hero__text {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
  }

  .hero__heading {
    order: 1;
    padding-top: 8px;
  }

  /* Brand and slashes stay on one line above the description, as in the design.
     Explicit gaps replace the wide monospace spaces so the line fits 348px. */
  .hero__brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
  }

  .hero__brand .slash {
    font-size: 0.68em;
  }

  .hero__title {
    text-align: justify;
  }

  .projects {
    order: 2;
    padding-top: 80px;
  }

  .hero__text {
    order: 3;
    margin-top: 80px;
    gap: 12px;
  }

  .clients {
    order: 4;
  }

  .awards {
    order: 5;
  }

  .principles {
    order: 6;
  }

  .cta {
    order: 7;
  }

  .team {
    order: 8;
  }

  .header {
    padding: 24px 0;
  }

  .header__nav,
  .header__link--contact {
    display: none;
  }

  body.menu-open .header__link {
    display: none;
  }

  .header__burger {
    display: flex;
    margin-left: auto;
  }

  /* Home hero */
  .home-hero__nav,
  .home-hero__projects,
  .home-hero__contact {
    display: none;
  }

  .home-hero__video--desktop {
    display: none;
  }

  .home-hero__video--mobile {
    display: block;
  }

  .home-hero__title {
    font-size: clamp(36px, 11.5vw, 72px);
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .home-hero__title-break {
    display: block;
  }

  /* Contacts */
  .contacts {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 9px;
  }

  .contacts__main {
    gap: 32px;
  }

  .contacts__coords {
    gap: 16px;
  }

  .contacts__item {
    gap: 6px;
  }

  .contacts__emails {
    gap: 24px;
  }

  /* Media */
  .media__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
  }

  /* Stacked columns break the nth(4n+1) row math for the desktop vertical
     divider, so swap it for a horizontal rule above each card instead */
  .media-card:not(:nth-child(4n+1))::before,
  .media-card:nth-child(4n+1):not(:first-child)::after {
    display: none;
  }

  .media-card:not(:first-child) {
    border-top: 1px solid var(--color-accent);
    padding-top: 20px;
  }

  .media__hero {
    height: 280px;
  }

  /* CTA stacks */
  /* Figma puts the contact line after the form, so .cta__info is flattened
     to let its children be reordered against .cta__form */
  .cta {
    position: relative;
    flex-direction: column;
    gap: 40px;
  }

  .cta__info {
    display: contents;
  }

  .cta__intro {
    order: 1;
  }

  .cta__form {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
  }

  .cta__phone {
    order: 3;
  }

  /* Anchored to .cta now that .cta__info no longer generates a box */
  .cta__squiggle {
    left: auto;
    right: -10px;
    top: auto;
    bottom: -8px;
    width: 150px;
    height: 132px;
  }

  /* Team */
  .team__cols {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .team__paragraphs {
    flex: 1 1 auto;
  }

  .team__vacancy {
    flex: 0 0 auto;
    align-self: flex-start;
  }

  .team__grid {
    gap: 16px;
  }

  .member {
    flex-basis: calc((100% - 16px) / 2);
  }

  /* Portfolio */
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .scroll-top {
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
  }

  /* Footer stacks */
  .footer__inner {
    flex-direction: column;
    gap: 48px;
  }

  .footer__nav,
  .footer__contacts,
  .footer__cta {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
  }

  /* Nav: two columns, filled top-to-bottom */
  .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    gap: 20px;
    justify-content: start;
  }

  /* Address before socials on mobile */
  .footer__contacts {
    justify-content: flex-start;
    gap: 32px;
  }

  .footer__coords {
    order: 1;
  }

  .footer__address {
    order: 2;
  }

  .footer__socials {
    order: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
  }

  /* Legal left-aligned on mobile */
  .footer__legal {
    align-items: flex-start;
    text-align: left;
  }

  /* Project page */
  .project__intro {
    flex-direction: column;
    gap: 32px;
  }

  .project__intro-media,
  .project__intro-info {
    flex: 1 1 auto;
    width: 100%;
  }

  .project__squiggle {
    display: none;
  }

  /* Portfolio */
  .portfolio__filters {
    gap: 12px 20px;
  }

  .filter {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  :root {
    --container-padding: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .hero__title {
    font-size: 32px;
  }

  .vacancies__title {
    font-size: 32px;
  }

  .home-hero__content {
    gap: 16px;
  }

  .article__title {
    font-size: 28px;
  }

  .article__statement {
    font-size: 18px;
  }

  /* CTA squiggle: smaller and clear of the phone number on narrow screens */
  /* Sized and placed so the arrow tip lands next to the phone number */
  .cta__squiggle {
    width: 135px;
    height: 119px;
    right: 8px;
    bottom: -7px;
  }

  .cta__intro {
    gap: 16px;
  }

  .cta__form {
    gap: 24px;
  }

  /* Contacts */
  .contacts__br {
    display: none;
  }

  .contacts__phone {
    font-size: 20px;
  }

  .contacts__address {
    font-size: 18px;
  }

  .contacts__label {
    font-size: 16px;
  }

  .contacts__email {
    font-size: 20px;
  }

  /* Media */
  .media__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .media__hero {
    height: 220px;
  }

  .faq {
    padding-top: 9px;
    gap: 32px;
  }

  .faq__title {
    font-size: 32px;
  }

  /* First row has no rule above it in the design */
  .faq__item:first-child {
    border-top: none;
  }

  .faq__q {
    font-size: 18px;
    padding: 16px 0;
    gap: 16px;
    align-items: flex-start;
  }

  .faq__icon {
    width: 24px;
    height: 24px;
  }

  .faq__a-inner p:last-child {
    padding-bottom: 16px;
  }

  /* Match the 16px title-to-divider gap used by the FAQ/services accordions */
  .vacancy {
    padding-top: 16px;
  }

  .vacancy + .vacancy {
    margin-top: 16px;
  }

  .vacancy__title {
    font-size: 20px;
  }

  .projects__banner img {
    height: 327px;
  }

  .principles__track {
    gap: 16px;
  }

  .principle {
    flex-basis: 100%;
    height: 260px;
  }

  .projects__pager {
    align-items: flex-start;
    gap: 16px;
  }

  .projects__pager-link {
    flex-direction: column;
    gap: 12px;
  }

  .projects__pager-link--prev {
    max-width: 190px;
    align-items: flex-start;
  }

  .projects__pager-link--next {
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  /* Head sits bottom-aligned with the arrows; the title wraps onto two lines */
  .principles__head {
    align-items: flex-end;
  }

  .principles__head .section-title {
    max-width: 166px;
  }

  .principle__title {
    font-size: 20px;
  }

  /* Shape is pinned by top offset, which was sized for the taller desktop card */
  .principle__shape {
    top: 116px;
  }

  .award__year,
  .award__name {
    font-size: 16px;
  }

  /* Absolute centering made long names overlap the year on narrow screens */
  .award {
    gap: 12px;
  }

  .award__name {
    position: static;
    left: auto;
    transform: none;
    flex: 1;
    text-align: center;
    white-space: normal;
  }

  .team__lead {
    font-size: 25px;
  }

  .team__vacancy {
    align-self: stretch;
  }

  .member__name {
    font-size: 16px;
  }

  .member__role {
    font-size: 12px;
  }

  .department__nav {
    display: none;
  }

  .team__grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 169px;
    gap: 12px 10px;
    overflow-x: auto;
    transition: none;
  }

  .member__photo {
    width: 169px;
    aspect-ratio: 169 / 194;
  }

  /* Name and phone stay side by side on mobile, as in the design */
  .form__row {
    gap: 16px;
  }

  .cta__subtitle,
  .cta__phone-label {
    font-size: 18px;
  }

  .footer__nav-item {
    font-size: 24px;
  }

  .footer__social {
    font-size: 16px;
  }

  .vacancies {
    padding-top: 32px;
  }

  /* Project page */
  .project__pager {
    align-items: flex-start;
  }

  .project__pager-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
  }

  .project__pager-link--prev {
    max-width: 180px;
  }

  .project__pager-link--next {
    flex-direction: column-reverse;
    align-items: flex-end;
    text-align: right;
  }

  .project__intro-media {
    aspect-ratio: 348 / 392;
  }

  .project__slider-media {
    aspect-ratio: 348 / 400;
  }

  .project__slider-arrow {
    color: var(--color-accent);
  }

  .project__intro-info {
    gap: 32px;
  }

  .project__params {
    flex-wrap: wrap;
    gap: 24px 40px;
  }

  .param {
    flex: 0 0 auto;
    min-width: 100px;
    gap: 16px;
  }

  .project__media-row--photos {
    height: 87px;
  }

  .project__media-row--diagrams {
    height: 86px;
  }

  .project__text {
    gap: 16px;
  }

  .authors__title {
    font-size: 24px;
  }

  .project__video-play {
    width: 44px;
    height: 44px;
    border-width: 1px;
  }

  .project__video-play svg {
    width: 14px;
    height: auto;
    margin-left: 1.5px;
  }

  /* Portfolio */
  .portfolio {
    padding-top: 32px;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .portfolio__item-title {
    font-size: 16px;
  }

  .portfolio__item-desc {
    font-size: 14px;
  }

  /* Article — mobile frame is a single 348px column; every desktop
     absolute row collapses back into normal flow, with photos floated
     where the Figma frame wraps text around them. */

  .article {
    padding-top: 32px;
  }

  .article__title {
    margin: 32px 0 24px;
    font-size: 40px;
    text-align: justify;
  }

  .article__title-line {
    display: inline;
  }

  .article__title-line--2 {
    margin-left: 0;
  }

  .article__meta {
    height: auto;
    gap: 0;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .article__meta-side {
    flex: 0 0 auto;
  }

  /* Mobile frame keeps only the right-hand photo next to the date */
  .article__photo-small {
    display: none;
  }

  .article__photo-large {
    flex: 0 0 205px;
    height: 230px;
  }

  .article__lead {
    margin: 0 0 24px;
  }

  .article__statement {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.2;
    text-align: justify;
  }

  .article__lead-row {
    flex-direction: column;
    gap: 24px;
  }

  .article__lead-row .article__side-text,
  .article__lead-row .article__ph {
    flex: none;
  }

  .article__lead-row .article__ph {
    width: 100%;
    height: 180px;
  }

  .article__wide {
    font-size: 20px;
    line-height: 1.2;
    text-align: justify;
  }

  .article__section .article__wide {
    margin-bottom: 24px;
  }

  .article__side-text {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
  }

  .article__section-head {
    margin-bottom: 24px;
  }

  .article__section-num {
    flex: 0 0 142px;
    font-size: 32px;
  }

  .article__section-title {
    font-size: 32px;
  }

  .article__section-intro {
    margin: 0 0 24px;
    font-size: 20px;
    line-height: 1.2;
    text-align: justify;
  }

  /* Desktop columns collapse into one; wrappers go transparent so the
     floats below sit in the row's own block context */
  .article__row {
    display: block;
    margin-bottom: 24px;
  }

  .article__col,
  .article__col-top {
    display: contents;
  }

  .article__grid--s3 {
    display: block;
    margin-bottom: 24px;
  }

  /* 1. Фрилансеры */
  .article__ph--s1a {
    float: left;
    width: 131px;
    height: 216px;
    margin-right: 10px;
  }

  .article__side-text--s1a {
    margin-bottom: 10px;
  }

  .article__side-text--s1b {
    clear: left;
  }

  .article__ph--s1b {
    clear: left;
    width: 100%;
    height: 230px;
    margin-top: 24px;
  }

  /* 2. Ремонтные компании */
  .article__row--s2 {
    margin-bottom: 16px;
  }

  .article__ph--s2 {
    float: right;
    width: 131px;
    height: 312px;
    margin-left: 12px;
  }

  .article__side-text--s2a {
    margin-bottom: 12px;
  }

  .article__side-text--s2b {
    clear: right;
    margin-bottom: 24px;
  }

  .article__wide--s2 {
    width: 100%;
    margin: 0;
  }

  /* 3. Бюро */
  .article__side-text--s3a {
    margin-bottom: 12px;
  }

  .article__ph--s3a {
    float: left;
    width: 133px;
    height: 216px;
    margin: 0 10px 0 0;
  }

  .article__row--s3b {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
  }

  .article__row--s3b .article__wide,
  .article__row--s3b .article__ph,
  .article__row--s3b > :nth-child(2) {
    flex: none;
  }

  .article__row--s3b .article__ph {
    width: 100%;
    height: 262px;
  }

  .article .media__block {
    margin-top: 80px;
  }

  .article__more-title {
    margin-bottom: 32px;
  }

  .article__boxes {
    grid-template-columns: 1fr;
  }

}
