@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DM-Sans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DM-Sans-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --black: #0b0b0b;
  --ink: #111111;
  --white: #f5f5f1;
  --acid: #96ff00;
  --acid-soft: #c9ff7a;
  --grey: #b9b9b2;
  --line: rgba(245, 245, 241, 0.25);
  --radius: 24px;
  --gap: 12px;
  --shell: min(1540px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.is-modal-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: var(--shell);
  margin: 12px auto 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.74);
  backdrop-filter: blur(18px);
}

.main-nav {
  display: flex;
  gap: 6px;
  font-size: 14px;
}

.main-nav a,
.header-mail {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.main-nav a,
.header-mail {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.header-mail:hover {
  color: var(--black);
  border-color: var(--acid);
  background: var(--acid);
}

.header-mail {
  justify-self: end;
  color: var(--black);
  border-color: var(--acid);
  background: var(--acid);
  font-size: 14px;
  font-weight: 650;
}

.header-mail:hover {
  border-color: var(--white);
  background: var(--white);
  transform: translateY(-1px);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.hero {
  padding: 12px 0 64px;
}

.hero-grid {
  min-height: calc(100svh - 98px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(330px, 1.6fr) minmax(220px, 1fr);
  gap: var(--gap);
}

.bento-card,
.work-card,
.client-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-brand {
  grid-column: span 7;
  padding: clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.16);
  isolation: isolate;
}

.eyebrow,
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-brand h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(68px, 8.2vw, 150px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.brand-line {
  display: block;
  white-space: nowrap;
}

.brand-by {
  margin-bottom: 0.05em;
  font-style: italic;
  font-weight: 420;
}

.brand-name {
  font-size: 0.9em;
  letter-spacing: -0.055em;
}

.hero-motto {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 360px;
  align-self: flex-start;
  font-size: clamp(23px, 2.5vw, 40px);
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.orb {
  position: absolute;
  border: 1px solid var(--acid);
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  width: 40%;
  aspect-ratio: 1;
  top: -18%;
  right: -8%;
}

.orb-two {
  width: 26%;
  aspect-ratio: 1;
  left: 44%;
  bottom: -20%;
}

.showreel-card {
  grid-column: span 5;
  background: #24251f;
}

.showreel-card > img,
.image-card > img,
.image-client > img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.showreel-card:hover > img,
.image-card:hover > img,
.image-client:hover > img {
  transform: scale(1.035);
}

.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.showreel-copy {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.play-button {
  width: clamp(80px, 9vw, 128px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.play-button:hover {
  color: var(--black);
  background: var(--acid);
  border-color: var(--acid);
  transform: rotate(6deg);
}

.intro-card {
  grid-column: span 5;
  padding: clamp(24px, 3vw, 46px);
  color: var(--ink);
  background: var(--white);
}

.intro-card h2 {
  margin: 18px 0;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.intro-card p {
  max-width: 600px;
  margin: 0;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.25;
}

.card-index {
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

.services-card {
  grid-column: span 4;
  padding: clamp(24px, 3vw, 42px);
  color: var(--ink);
  background: var(--acid);
}

.service-line {
  margin: 6px 0 0;
  padding-top: 7px;
  border-top: 1px solid var(--ink);
  font-size: clamp(19px, 2.1vw, 32px);
  letter-spacing: -0.04em;
}

.status-card {
  grid-column: span 3;
  padding: clamp(24px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--white);
  transition: background 180ms ease, transform 180ms ease;
}

.status-card:hover,
.status-card:focus-visible {
  background: #f4f4ef;
  transform: translateY(-4px);
  outline: 0;
}

.status-card p {
  margin: 20px 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.status-cta {
  width: max-content;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
}

.status-label {
  width: max-content;
  padding: 7px 11px;
  color: var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.works {
  padding: 80px 0;
}

.works .section-heading {
  grid-template-columns: 1fr;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(72px, 12vw, 190px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.085em;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 72%;
  height: 6px;
  margin: 16px 0 0 6%;
  border-radius: 50%;
  background: var(--acid);
  transform: rotate(-4deg);
}

.works-note,
.clients-heading > p {
  max-width: 480px;
  margin: 0 0 8px;
  color: var(--grey);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
}

.filters {
  margin-bottom: 16px;
  padding: 10px 0 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-button {
  padding: 9px 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--black);
  border-color: var(--acid);
  background: var(--acid);
}

.work-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 285px;
  gap: var(--gap);
}

.work-card {
  min-height: 285px;
  padding: 20px;
  color: var(--white);
  background: #1f1f1d;
  transition: opacity 220ms ease, transform 220ms ease;
  isolation: isolate;
}

.work-card.is-leaving {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

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

.work-card-wide {
  grid-column: span 2;
}

.work-card-tall {
  grid-row: span 2;
}

.work-grid.is-filtered {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 340px;
}

.work-grid.is-filtered[data-visible-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.work-grid.is-filtered[data-visible-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-grid.is-filtered .work-card {
  min-height: 340px;
  grid-column: span 1;
  grid-row: span 1;
}

.work-number {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 4;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.work-meta {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.work-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-meta strong {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 620;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.work-meta span {
  font-size: 13px;
  opacity: 0.76;
}

.work-arrow {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 20px;
  font-size: 30px;
  transition: transform 180ms ease;
}

a.work-card:hover .work-arrow {
  transform: translate(5px, -5px);
}

.image-card {
  padding: 0;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.76));
}

.landscape-card > img {
  object-position: center 52%;
}

.project-cover-sokolov {
  object-position: center 32%;
}

.graphic-card {
  color: var(--ink);
  background: var(--white);
}

.graphic-card::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  top: -32%;
  right: -20%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.6;
}

.project-monogram {
  position: absolute;
  top: 25%;
  right: 18px;
  max-width: calc(100% - 36px);
  font-size: clamp(66px, 8vw, 130px);
  font-weight: 620;
  line-height: 0.75;
  letter-spacing: -0.09em;
}

.project-monogram-wide {
  font-size: clamp(72px, 11vw, 180px);
}

.project-monogram-vertical {
  top: 20%;
  right: -35%;
  font-size: clamp(70px, 9vw, 142px);
  transform: rotate(90deg);
}

.car-card {
  color: var(--ink);
  background: #a7caff;
}

.yandex-card {
  color: var(--white);
  background: #272727;
}

.honor-card {
  color: var(--ink);
  background: #d8d1ff;
}

.pek-card {
  color: var(--ink);
  background: var(--acid);
}

.film-mark {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

.acid-card {
  color: var(--ink);
  background: var(--acid);
}

.dark-card {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.white-card {
  color: var(--ink);
  background: var(--white);
}

.type-orbit {
  position: absolute;
  top: 21%;
  right: -38%;
  width: 130%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 700;
  letter-spacing: -0.1em;
  transform: rotate(90deg);
}

.nda-label,
.coming-label {
  position: absolute;
  top: 46%;
  left: 20px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.ant-mark {
  position: absolute;
  top: 70px;
  right: 38px;
  font-size: 54px;
  line-height: 0.5;
  text-align: center;
}

.mini-grid {
  position: absolute;
  width: 150px;
  aspect-ratio: 1;
  top: 52px;
  right: 42px;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 50%;
}

.giant-type {
  position: absolute;
  top: 32%;
  right: 20px;
  font-size: clamp(80px, 10vw, 150px);
  line-height: 0.7;
  letter-spacing: -0.12em;
}

.giant-type-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.moex-type {
  color: #e21b22;
  font-size: clamp(56px, 7vw, 100px);
  letter-spacing: -0.08em;
}

.clients {
  padding: 80px 0 120px;
}

.client-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 340px 260px;
  gap: var(--gap);
}

.client-card {
  padding: 28px;
}

.client-main {
  grid-column: span 7;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.client-main p {
  margin: 0;
  max-width: 860px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.image-client {
  grid-column: span 5;
  padding: 0;
}

.client-acid {
  grid-column: span 4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-content: center;
  gap: 12px;
  color: var(--ink);
  background: var(--acid);
}

.client-acid span {
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  font-size: clamp(25px, 3vw, 44px);
  letter-spacing: -0.05em;
}

.client-landscape {
  grid-column: span 8;
}

.client-landscape img {
  object-position: center 55%;
}

.contact {
  color: var(--ink);
  background: var(--acid);
}

.contact-inner {
  min-height: 88svh;
  padding: clamp(70px, 10vw, 150px) 0 38px;
  display: flex;
  flex-direction: column;
}

.contact h2 {
  margin: auto 0;
  font-size: clamp(64px, 11.5vw, 176px);
  font-weight: 430;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.contact h2 span,
.contact h2 em {
  display: block;
  white-space: nowrap;
}

.contact h2 em {
  font-weight: 430;
}

.contact-mail {
  width: max-content;
  max-width: 100%;
  margin: 46px 0;
  font-size: clamp(22px, 4vw, 64px);
  line-height: 1;
  border-bottom: 3px solid var(--ink);
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
}

.contact-bottom div {
  display: flex;
  gap: 28px;
}

.media-dialog {
  width: min(1080px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: visible;
  background: #000;
  color: #fff;
}

.media-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: -44px;
  right: 0;
  width: 36px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #111;
  cursor: pointer;
}

.media-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.media-frame iframe,
.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 22px;
}

.media-frame img {
  display: block;
  object-fit: contain;
}

.media-frame video {
  display: block;
  background: #000;
  object-fit: contain;
}

.media-loading,
.media-error {
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: #fff;
  text-align: center;
}

.media-loading::after {
  content: "";
  width: 22px;
  aspect-ratio: 1;
  margin-left: 12px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: media-spin 0.8s linear infinite;
}

@keyframes media-spin {
  to {
    transform: rotate(360deg);
  }
}

.media-dialog.is-image {
  width: min(1280px, calc(100vw - 24px));
}

.media-dialog.is-image .media-frame {
  height: min(82vh, 900px);
  aspect-ratio: auto;
}

.media-caption {
  position: absolute;
  top: calc(100% + 12px);
  left: 4px;
  right: 4px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.media-caption a {
  color: inherit;
  white-space: nowrap;
}

.media-caption a[hidden] {
  display: none;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-rows: minmax(400px, 1.4fr) minmax(330px, 1fr) minmax(230px, 0.7fr);
  }

  .hero-brand,
  .showreel-card {
    grid-column: span 12;
  }

  .intro-card {
    grid-column: span 6;
  }

  .services-card {
    grid-column: span 6;
  }

  .status-card {
    grid-column: span 12;
  }

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

  .work-grid.is-filtered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-bento {
    grid-template-rows: 330px 260px 260px;
  }

  .client-main,
  .image-client {
    grid-column: span 12;
  }

  .client-acid,
  .client-landscape {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 20px, 1540px);
    --radius: 18px;
    --gap: 8px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    margin-top: 8px;
    padding: 7px;
    border-radius: 18px;
  }

  .main-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 8px 11px;
    flex: 0 0 auto;
    font-size: 11px;
  }

  .header-mail {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    font-size: 11px;
  }

  .hero {
    padding-top: 8px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-rows: 510px 430px auto auto auto;
  }

  .hero-brand {
    padding: 24px;
  }

  .hero-brand h1 {
    font-size: clamp(60px, 21vw, 98px);
    line-height: 0.9;
  }

  .hero-motto {
    align-self: flex-start;
    font-size: 24px;
  }

  .showreel-card,
  .intro-card,
  .services-card,
  .status-card {
    grid-column: span 12;
  }

  .intro-card,
  .services-card,
  .status-card {
    min-height: 250px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: clamp(64px, 25vw, 116px);
  }

  .works {
    padding: 50px 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .work-grid.is-filtered {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .work-grid.is-filtered .work-card {
    min-height: 330px;
  }

  .work-card-wide,
  .work-card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .work-card-tall {
    min-height: 520px;
  }

  .work-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .client-bento {
    grid-template-columns: 1fr;
    grid-template-rows: 330px 280px 280px 280px;
  }

  .client-main,
  .image-client,
  .client-acid,
  .client-landscape {
    grid-column: span 1;
  }

  .clients {
    padding: 50px 0 80px;
  }

  .contact-inner {
    min-height: 76svh;
  }

  .contact h2 {
    font-size: clamp(48px, 14.5vw, 70px);
    line-height: 0.9;
    letter-spacing: -0.055em;
  }

  .contact-mail {
    font-size: clamp(20px, 7vw, 36px);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
