:root {
  --vsk-blue: #567ebf;
  --vsk-blue-bright: #78a4e8;
  --vsk-dark: #020305;
  --vsk-ink: #111820;
  --vsk-paper: #edf1f5;
  --vsk-white: #f7f9fc;
  --vsk-line-dark: rgba(17, 24, 32, 0.17);
  --vsk-line-light: rgba(226, 236, 249, 0.22);
}

body.vsk-case {
  background: var(--vsk-paper);
  color: var(--vsk-ink);
}

.vsk-case figure,
.vsk-case blockquote,
.vsk-case h1,
.vsk-case h2,
.vsk-case h3,
.vsk-case p {
  margin-top: 0;
}

.vsk-case figure,
.vsk-case blockquote {
  margin-inline: 0;
}

.vsk-case .shell {
  width: min(calc(100% - (2 * var(--gutter))), 1680px);
  margin-inline: auto;
  padding-inline: 0;
}

.case-section {
  padding-block: clamp(96px, 9vw, 172px);
}

.case-section h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(66px, 8.2vw, 158px);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.84;
}

.case-section h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.eyebrow {
  margin-bottom: 24px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.75, 0.15, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Live brand cover */

.vsk-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  isolation: isolate;
  background: var(--vsk-dark);
  color: var(--vsk-white);
}

.vsk-hero__backdrop,
.vsk-hero__tone,
.vsk-hero__grid,
.vsk-hero__noise {
  position: absolute;
  inset: 0;
}

.vsk-hero__backdrop {
  z-index: -5;
  opacity: 0.1;
  mask-image: radial-gradient(circle at 50% 44%, #000, rgba(0, 0, 0, 0.2) 58%, transparent 90%);
}

.vsk-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: grayscale(1) saturate(0.3) contrast(1.55) brightness(0.28) hue-rotate(176deg);
  transform: scale(1.08);
}

.vsk-hero__tone {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(2, 3, 5, 0.94), rgba(3, 7, 12, 0.75) 50%, rgba(2, 3, 5, 0.94)),
    radial-gradient(circle at 50% 44%, rgba(57, 103, 169, 0.17), transparent 36%);
}

.vsk-hero__grid {
  z-index: -3;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(167, 190, 222, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 190, 222, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at 50% 46%, #000, rgba(0, 0, 0, 0.2) 58%, transparent 88%);
}

.vsk-hero__noise {
  z-index: -2;
  background: url("/ru-v1-case-vsk-building-v1/assets/optical-noise.svg") repeat;
  mix-blend-mode: soft-light;
  opacity: 0.11;
}

.vsk-hero__meta {
  position: absolute;
  top: 22px;
  right: var(--gutter);
  left: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: rgba(204, 220, 240, 0.42);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.vsk-hero__headline {
  position: absolute;
  top: 46%;
  right: var(--gutter);
  left: var(--gutter);
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #f7f9fc;
  font-family: var(--display);
  font-size: clamp(86px, 11vw, 220px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-shadow: 0 10px 46px rgba(0, 0, 0, 0.68);
  transform: translateY(-50%);
}

.vsk-hero__headline span:first-child {
  padding-right: clamp(120px, 15vw, 260px);
  text-align: left;
}

.vsk-hero__headline span:last-child {
  padding-left: clamp(120px, 15vw, 260px);
  text-align: right;
}

.vsk-hero__object {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 2;
  width: min(38vw, 570px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vsk-hero__aura {
  position: absolute;
  inset: 18% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 112, 184, 0.2), rgba(18, 43, 83, 0.07) 42%, transparent 72%);
  filter: blur(32px);
  opacity: 0.82;
}

.vsk-hero__mark,
.vsk-hero__mark img {
  width: 100%;
  height: 100%;
}

.vsk-hero__mark {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  filter: drop-shadow(0 46px 54px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(72, 129, 210, 0.15));
  opacity: 0.9;
}

.vsk-hero__mark img {
  object-fit: contain;
}

.vsk-hero__content {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  left: var(--gutter);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
}

.vsk-hero__content > div:first-child {
  max-width: 520px;
}

.vsk-hero__eyebrow {
  margin-bottom: 9px;
  color: rgba(228, 236, 247, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vsk-hero__lead {
  max-width: 490px;
  margin-bottom: 0;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.vsk-hero__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vsk-hero__tags span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  font-size: 0.68rem;
}

/* Sticky case navigation */

.case-index {
  position: relative;
  top: auto;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--vsk-dark);
  color: #fff;
}

.case-index a {
  display: flex;
  min-height: 58px;
  gap: 16px;
  align-items: center;
  padding: 10px clamp(12px, 1.6vw, 30px);
  border-right: 1px solid var(--vsk-line-light);
  font-size: 0.75rem;
  text-decoration: none;
}

.case-index a:last-child {
  border-right: 0;
}

.case-index span {
  color: var(--vsk-blue-bright);
  font-size: 0.58rem;
}

.case-index a:is(:hover, :focus-visible) {
  color: #a9c8f6;
}

/* Context */

.case-intro {
  background: var(--vsk-paper);
}

.case-intro__header {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: start;
  margin-bottom: clamp(74px, 9vw, 146px);
}

.case-intro__header h2 {
  max-width: 1320px;
}

.case-intro__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.45fr);
  gap: clamp(48px, 8vw, 160px);
  align-items: start;
  margin-bottom: clamp(68px, 8vw, 132px);
}

.case-intro__scope {
  border-top: 1px solid var(--vsk-line-dark);
}

.case-intro__scope span {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--vsk-line-dark);
  font-size: clamp(15px, 1.2vw, 20px);
}

.case-intro__copy {
  max-width: 940px;
  font-size: 19px;
  line-height: 1.42;
}

.case-intro__copy p {
  margin-bottom: 1.25em;
}

.case-board {
  overflow: visible;
}

.case-board img {
  width: 100%;
  height: auto;
}

.case-board figcaption,
.identity__versions figcaption,
.applications figcaption,
.content-system figcaption,
.projects figcaption {
  padding-top: 12px;
  color: rgba(17, 24, 32, 0.6);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Identity */

.identity {
  overflow: hidden;
  background: #07101b;
  color: var(--vsk-white);
}

.identity__lead {
  display: grid;
  grid-template-columns: 0.22fr minmax(0, 1fr) 0.45fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(80px, 10vw, 170px);
}

.identity__lead h2 {
  color: #eaf1fb;
}

.identity__lead > div {
  max-width: 540px;
  color: #aebdce;
  font-size: 19px;
  line-height: 1.42;
}

.identity__lead > div p {
  margin-bottom: 1.15em;
}

.identity__logo-stage {
  display: grid;
  min-height: clamp(480px, 54vw, 820px);
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--vsk-line-light);
}

.identity__logo-stage-half {
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vw, 120px);
}

.identity__logo-stage-half img {
  width: min(74%, 640px);
}

.identity__logo-stage-half--light {
  background: #f2f5f8;
}

.identity__logo-stage-half--blue {
  border-left: 1px solid var(--vsk-line-light);
  background: var(--vsk-blue);
}

.identity__principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: clamp(80px, 9vw, 150px);
  border-bottom: 1px solid var(--vsk-line-light);
}

.identity__principles article {
  min-height: 340px;
  padding: clamp(32px, 4vw, 66px);
  border-right: 1px solid var(--vsk-line-light);
}

.identity__principles article:last-child {
  border-right: 0;
}

.identity__principles span {
  color: var(--vsk-blue-bright);
  font-size: 0.62rem;
}

.identity__principles h3 {
  margin: 70px 0 18px;
  font-size: clamp(42px, 4.2vw, 74px);
  line-height: 0.9;
}

.identity__principles p {
  max-width: 420px;
  margin-bottom: 0;
  color: #aebdce;
  font-size: 16px;
}

.identity__versions img {
  width: 100%;
  height: auto;
}

.identity__versions figcaption {
  color: rgba(238, 245, 254, 0.58);
}

/* Applications */

.applications {
  background: #f7f8f9;
}

.applications__header {
  display: grid;
  grid-template-columns: 0.22fr minmax(0, 1fr) 0.42fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(80px, 10vw, 160px);
}

.applications__header > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.42;
}

.applications__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 84px) clamp(16px, 2vw, 30px);
}

.applications__grid figure {
  align-self: start;
}

.applications__grid img {
  width: 100%;
  height: auto;
  background: #e4e9ef;
}

.applications__grid .applications__wide {
  grid-column: 1 / -1;
}

/* Website */

.website {
  overflow: hidden;
  background: #07101b;
  color: var(--vsk-white);
}

.website__header {
  display: grid;
  grid-template-columns: 0.22fr minmax(0, 1fr) 0.48fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(80px, 10vw, 160px);
}

.website__header > div {
  max-width: 580px;
  color: #aebdce;
  font-size: 19px;
  line-height: 1.42;
}

.website__header > div p {
  margin-bottom: 1.15em;
}

.site-demo {
  border: 1px solid rgba(224, 235, 249, 0.28);
  background: #020305;
  box-shadow: 0 42px 100px rgba(0, 0, 0, 0.38);
}

.site-demo__bar {
  display: grid;
  min-height: 46px;
  grid-template-columns: repeat(3, 8px) 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(224, 235, 249, 0.2);
  color: rgba(231, 239, 249, 0.58);
  font-size: 0.68rem;
}

.site-demo__bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(231, 239, 249, 0.35);
}

.site-demo__bar b {
  justify-self: center;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.site-demo__bar a {
  text-decoration: none;
}

.site-demo__stage {
  position: relative;
  height: clamp(620px, 74svh, 900px);
  overflow: hidden;
  isolation: isolate;
  background: #020305;
}

.site-demo__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #020305;
}

/* Content and project photography */

.content-system {
  background: var(--vsk-paper);
}

.content-system__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.58fr);
  gap: clamp(60px, 9vw, 170px);
  align-items: center;
}

.content-system__copy h2 {
  max-width: 990px;
  margin-bottom: clamp(48px, 6vw, 90px);
}

.content-system__copy > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.42;
}

.content-system blockquote {
  max-width: 900px;
  margin-top: clamp(54px, 7vw, 110px);
  padding-top: 24px;
  border-top: 1px solid var(--vsk-line-dark);
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 82px);
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.content-system figure img {
  width: 100%;
  height: auto;
}

.projects {
  background: #f7f8f9;
}

.projects__header {
  display: grid;
  grid-template-columns: 0.22fr minmax(0, 1fr) 0.42fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(80px, 10vw, 160px);
}

.projects__header > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.42;
}

.projects__feature {
  margin-bottom: clamp(60px, 7vw, 110px);
}

.projects__feature img,
.projects__grid img {
  width: 100%;
  height: auto;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 88px) clamp(16px, 2vw, 30px);
}

.projects__grid figure {
  align-self: start;
}

.projects__credit {
  margin: clamp(70px, 8vw, 120px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--vsk-line-dark);
  color: rgba(17, 24, 32, 0.62);
  font-size: 0.76rem;
}

/* Result, credits, next project */

.result {
  overflow: hidden;
  background: #07101b;
  color: var(--vsk-white);
}

.result__header {
  display: grid;
  grid-template-columns: 0.22fr minmax(0, 1fr);
  gap: clamp(36px, 5vw, 88px);
  margin-bottom: clamp(80px, 10vw, 170px);
}

.result__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  gap: clamp(70px, 10vw, 190px);
  align-items: start;
}

.result__copy {
  max-width: 760px;
  color: #b5c2d1;
  font-size: 19px;
  line-height: 1.42;
}

.result__copy p {
  margin-bottom: 1.2em;
}

.result__grid ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--vsk-line-light);
  list-style: none;
}

.result__grid li {
  padding: 16px 0;
  border-bottom: 1px solid var(--vsk-line-light);
  color: #dce7f4;
  font-size: 15px;
}

.credits {
  background: var(--vsk-paper);
}

.credits__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  gap: clamp(70px, 9vw, 170px);
  align-items: end;
}

.credits__grid h2 {
  max-width: 1050px;
}

.credits__list {
  border-top: 1px solid var(--vsk-line-dark);
}

.credits__list article {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--vsk-line-dark);
}

.credits__list strong {
  font-size: 14px;
}

.credits__list span {
  color: rgba(17, 24, 32, 0.65);
  font-size: 14px;
}

.credits__list small {
  display: block;
  margin-top: 18px;
  color: rgba(17, 24, 32, 0.5);
  font-size: 0.68rem;
}

.related {
  background: #fff;
}

.related__grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(70px, 9vw, 170px);
  align-items: center;
}

.related__grid > div p:not(.eyebrow) {
  max-width: 560px;
}

.related__grid h2 {
  margin-bottom: 30px;
}

.related__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #07101b;
}

.related__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.related__cover span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  background: #fff;
  color: #080b11;
  font-size: 0.72rem;
}

.related__cover:hover img {
  transform: scale(1.025);
}

.case-contact {
  background: #05080d;
}

.case-contact .gradient-text {
  background: linear-gradient(110deg, #89aee5, #fff 46%, #567ebf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 1180px) {
  .vsk-hero__object {
    width: min(43vw, 530px);
  }

  .vsk-hero__headline span:first-child {
    padding-right: 15vw;
  }

  .vsk-hero__headline span:last-child {
    padding-left: 15vw;
  }

  .identity__lead,
  .applications__header,
  .website__header,
  .projects__header {
    grid-template-columns: 0.2fr 1fr;
  }

  .identity__lead > div,
  .applications__header > p:last-child,
  .website__header > div,
  .projects__header > p:last-child {
    grid-column: 2;
  }

  .credits__grid {
    grid-template-columns: 1fr 0.72fr;
  }
}

@media (max-width: 900px) {
  .case-section h2 {
    font-size: clamp(62px, 11vw, 104px);
  }

  .vsk-hero__object {
    width: min(54vw, 500px);
  }

  .vsk-hero__headline {
    font-size: clamp(72px, 11vw, 116px);
  }

  .identity__logo-stage {
    min-height: 460px;
  }

  .identity__principles article {
    min-height: 300px;
    padding: 34px;
  }

  .identity__principles h3 {
    margin-top: 50px;
  }

  .content-system__grid {
    grid-template-columns: 1fr 0.55fr;
    gap: 50px;
  }

  .result__grid {
    grid-template-columns: 1fr 0.72fr;
    gap: 60px;
  }

  .related__grid {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 54px;
  }
}

@media (max-width: 760px) {
  .vsk-case .shell {
    width: min(calc(100% - 32px), 1680px);
  }

  .case-section {
    padding-block: 84px;
  }

  .case-section h2 {
    font-size: clamp(52px, 16vw, 82px);
  }

  .vsk-hero {
    min-height: min(780px, calc(100svh - var(--header-h)));
  }

  .vsk-hero__meta {
    right: 18px;
    left: 18px;
  }

  .vsk-hero__headline {
    top: 40%;
    right: 18px;
    left: 18px;
    z-index: 3;
    font-size: clamp(36px, 10.5vw, 42px);
    text-shadow: 0 2px 18px #020305, 0 0 3px #020305;
  }

  .vsk-hero__headline span:first-child {
    padding-right: 18vw;
  }

  .vsk-hero__headline span:last-child {
    padding-left: 18vw;
  }

  .vsk-hero__object {
    top: 41%;
    width: min(72vw, 400px);
  }

  .vsk-hero__content {
    right: 18px;
    bottom: 20px;
    left: 18px;
    display: grid;
  }

  .vsk-hero__lead {
    max-width: 360px;
    font-size: clamp(21px, 6.7vw, 30px);
  }

  .vsk-hero__tags {
    justify-content: flex-start;
  }

  .case-index {
    grid-auto-columns: minmax(148px, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .case-index::-webkit-scrollbar {
    display: none;
  }

  .case-index a {
    min-height: 54px;
    border-bottom: 1px solid var(--vsk-line-light);
    white-space: nowrap;
  }

  .case-intro__header,
  .case-intro__grid,
  .identity__lead,
  .applications__header,
  .website__header,
  .projects__header,
  .result__header,
  .result__grid,
  .credits__grid,
  .related__grid,
  .content-system__grid {
    grid-template-columns: 1fr;
  }

  .case-intro__header,
  .identity__lead,
  .applications__header,
  .website__header,
  .projects__header,
  .result__header {
    gap: 28px;
    margin-bottom: 64px;
  }

  .case-intro__grid {
    gap: 44px;
    margin-bottom: 64px;
  }

  .identity__lead > div,
  .applications__header > p:last-child,
  .website__header > div,
  .projects__header > p:last-child {
    grid-column: auto;
  }

  .identity__logo-stage {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .identity__logo-stage-half {
    min-height: 330px;
    padding: 56px 28px;
  }

  .identity__logo-stage-half--blue {
    border-top: 1px solid var(--vsk-line-light);
    border-left: 0;
  }

  .identity__principles {
    grid-template-columns: 1fr;
    margin-bottom: 70px;
  }

  .identity__principles article {
    min-height: auto;
    padding: 38px 0 42px;
    border-right: 0;
    border-bottom: 1px solid var(--vsk-line-light);
  }

  .identity__principles h3 {
    margin: 34px 0 14px;
  }

  .applications__grid,
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .applications__grid .applications__wide {
    grid-column: auto;
  }

  .site-demo__bar {
    grid-template-columns: repeat(3, 7px) 1fr;
  }

  .site-demo__bar a {
    display: none;
  }

  .site-demo__stage {
    height: clamp(560px, 76svh, 720px);
  }

  .content-system__grid {
    gap: 64px;
  }

  .content-system figure {
    width: min(86%, 520px);
    justify-self: end;
  }

  .content-system blockquote {
    font-size: clamp(42px, 13vw, 68px);
  }

  .projects__feature {
    margin-bottom: 54px;
  }

  .result__grid {
    gap: 52px;
  }

  .credits__grid,
  .related__grid {
    gap: 64px;
  }

  .credits__list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .vsk-hero__headline {
    top: 38%;
    font-size: 36px;
  }

  .vsk-hero__object {
    top: 39%;
    width: 72vw;
  }

  .vsk-hero__tags span {
    padding: 6px 9px;
    font-size: 0.6rem;
  }

}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .related__cover img {
    transition: none;
  }
}
