:root {
  --rue-ink: #15100f;
  --rue-brown: #2a1715;
  --rue-wine: #3a1919;
  --rue-clay: #9c6f61;
  --rue-sand: #d8c7b6;
  --rue-paper: #f3f0ea;
  --rue-mist: #e9e8e4;
}

.case-page {
  background: var(--rue-paper);
}

.case-page .site-header {
  background: rgba(8, 8, 10, 0.92);
}

.case-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: var(--rue-brown);
  color: var(--white);
}

.case-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 12, 11, 0.94) 0%, rgba(24, 12, 11, 0.72) 34%, rgba(24, 12, 11, 0.24) 68%, rgba(24, 12, 11, 0.12) 100%),
    linear-gradient(180deg, rgba(18, 9, 9, 0.34) 0%, rgba(18, 9, 9, 0.02) 45%, rgba(18, 9, 9, 0.62) 100%),
    url("/ru-v1-case-rueporte-v1/assets/rueporte-gb-hero.webp") center 44% / cover no-repeat;
  pointer-events: none;
}

.case-hero__title,
.case-hero__composition {
  position: relative;
  z-index: 1;
}

.case-hero__title {
  padding-top: clamp(30px, 4.5vw, 74px);
}

.case-kicker,
.case-number {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-hero h1 {
  margin: 20px 0 0;
  font-size: clamp(108px, 15.8vw, 272px);
  line-height: .82;
  letter-spacing: -0.065em;
  transform: translate(-12px, 14px);
}

.case-hero__composition {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  min-height: clamp(520px, 47vw, 790px);
  padding-top: clamp(56px, 7vw, 116px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.case-hero__copy {
  grid-column: 1 / span 6;
  padding: 0 3vw 18px 0;
}

.case-hero__copy h2 {
  max-width: 780px;
  margin: 30px 0 32px;
  font-size: clamp(52px, 4.7vw, 82px);
  line-height: 0.92;
}

.case-hero__copy > p:not(.case-number) {
  max-width: 630px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(17px, 1.15vw, 21px);
}

.case-hero__caption,
.identity-gallery figcaption,
.digital__screens figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.case-hero__caption {
  grid-column: 10 / -1;
  align-self: end;
  justify-self: end;
  max-width: 300px;
  margin: 0 0 18px;
  text-align: right;
}

.case-index {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line-dark);
  background: var(--rue-paper);
}

.case-index a {
  display: grid;
  min-height: 78px;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 22px;
  border-right: 1px solid var(--line-dark);
  font: 400 24px/1 var(--display);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

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

.case-index a:hover,
.case-index a:focus-visible {
  background: var(--rue-ink);
  color: var(--white);
}

.case-index span {
  align-self: start;
  color: var(--muted);
  font: 10px/1 var(--sans);
}

.case-section {
  padding-block: clamp(110px, 11vw, 190px);
}

.case-section__heading {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 24px;
  align-items: start;
}

.case-section__heading h2 {
  max-width: 1220px;
  font-size: clamp(64px, 7vw, 118px);
}

.case-context {
  background: var(--rue-paper);
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(80px, 9vw, 150px);
}

.context-intro {
  grid-column: 1 / span 5;
  max-width: 650px;
}

.context-intro__lead {
  font-size: clamp(23px, 2vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.context-shift {
  grid-column: 7 / -1;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(36px, 5vw, 76px);
  background: var(--rue-ink);
  color: var(--white);
}

.context-shift span,
.context-shift strong {
  font: 400 clamp(60px, 6.2vw, 112px)/0.82 var(--display);
  letter-spacing: -0.05em;
}

.context-shift span {
  color: rgba(255, 255, 255, 0.32);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.context-shift i {
  color: var(--rue-clay);
  font-size: 36px;
  font-style: normal;
}

.context-quote {
  grid-column: 3 / span 8;
  margin: clamp(86px, 10vw, 168px) 0 0;
  padding: 0;
  border: 0;
}

.context-quote p {
  margin: 0;
  font: 400 clamp(52px, 5.5vw, 92px)/0.96 var(--display);
  letter-spacing: -0.035em;
}

.logic {
  background: var(--rue-mist);
}

.logic__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.logic__intro .eyebrow {
  grid-column: 1 / span 3;
}

.logic__intro h2 {
  grid-column: 4 / span 6;
  font-size: clamp(70px, 7.3vw, 126px);
}

.logic__intro > p:last-child {
  grid-column: 10 / -1;
  max-width: 440px;
  font-size: 18px;
}

.logic-chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: clamp(100px, 11vw, 180px) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.logic-chain li {
  position: relative;
  min-height: 290px;
  padding: 34px 24px 28px 0;
}

.logic-chain li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--rue-clay);
}

.logic-chain span {
  color: var(--muted);
  font-size: 11px;
}

.logic-chain strong {
  display: block;
  margin: 64px 0 18px;
  font: 400 clamp(30px, 2.6vw, 46px)/0.96 var(--display);
  letter-spacing: -0.03em;
}

.logic-chain small {
  display: block;
  max-width: 260px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.positioning {
  position: relative;
  overflow: hidden;
  background: url("/ru-v1-case-rueporte-v1/assets/positioning-keaykolour-royal-cropped.webp") center / cover no-repeat;
  color: var(--white);
}

.positioning__grid {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(70px, 8vw, 140px);
}

.positioning__copy h2 {
  max-width: 930px;
  margin: 44px 0 60px;
  font-size: clamp(70px, 7vw, 122px);
}

.positioning__lead {
  max-width: 760px;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.26;
}

.positioning__copy > p:last-child {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.68);
}

.positioning__code {
  align-self: end;
  padding: clamp(40px, 5vw, 76px);
  background: rgba(242, 235, 228, 0.92);
  color: var(--rue-ink);
}

.positioning__code img {
  width: min(100%, 560px);
}

.positioning__code p {
  margin: clamp(100px, 14vw, 220px) 0 0;
  font: 400 clamp(38px, 3.7vw, 64px)/0.98 var(--display);
  letter-spacing: -0.035em;
}

.naming {
  background: var(--rue-paper);
}

.naming__header {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 24px;
}

.naming__header h2 {
  width: 100%;
  max-width: 1180px;
}

.naming__header h2 img {
  display: block;
  width: 50%;
  height: auto;
}

.naming__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(100px, 12vw, 190px);
}

.naming__lead {
  grid-column: 4 / span 5;
  font-size: clamp(24px, 2.1vw, 36px);
  line-height: 1.3;
}

.naming__tokens {
  grid-column: 9 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}

.naming__tokens span {
  padding: 11px 17px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 14px;
}

.naming__voice {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 100px;
}

.naming__voice p {
  min-height: 190px;
  margin: 0;
  padding: 24px 24px 30px 0;
  border-top: 1px solid var(--ink);
  font: 400 clamp(29px, 2.7vw, 47px)/1 var(--display);
  letter-spacing: -0.03em;
}

.identity {
  overflow: hidden;
  background: #e6e6e4;
}

.identity__header {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: 24px;
  align-items: start;
}

.identity__header .eyebrow {
  grid-column: 1;
}

.identity__header h2 {
  grid-column: 2;
  font-size: clamp(68px, 6.7vw, 114px);
}

.identity__header > p:last-child {
  grid-column: 3;
  max-width: 440px;
}

.identity-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 74px) 24px;
  align-items: start;
  margin-top: clamp(110px, 12vw, 200px);
}

.identity-gallery figure {
  margin: 0;
}

.identity-gallery figcaption {
  color: var(--muted);
}

.identity-gallery img {
  width: 100%;
  height: auto;
  background: transparent;
}

.identity-gallery__wordmark {
  grid-column: 1 / span 7;
}

.identity-gallery__blocks {
  grid-column: 9 / -1;
  margin-top: 9vw !important;
}

.identity-gallery__patterns {
  grid-column: 2 / span 5;
  margin-top: 5vw !important;
  transform: translateY(-50%) scale(1.2);
  transform-origin: center;
}

.identity-gallery__package {
  grid-column: 8 / -1;
  margin-top: 13vw !important;
}

.identity-gallery__slogan {
  grid-column: 8 / -1;
  margin-top: 3vw !important;
}

.identity-gallery__labels {
  grid-column: 1 / span 5;
  margin-top: 8vw !important;
}

.identity-gallery__business {
  grid-column: 2 / span 4;
  margin-top: 3vw !important;
}

@media (min-width: 761px) {
  .identity-gallery__business {
    transform: translateY(-200px);
  }
}

.identity-gallery__site {
  grid-column: 6 / -1;
  margin-top: 13vw !important;
}

.identity-card {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: clamp(38px, 6vw, 96px);
  overflow: hidden;
}

.identity-card--wordmark {
  background: transparent;
}

.identity-card--wordmark img {
  width: min(44%, 350px);
}

.identity-card--blocks {
  grid-template-columns: 1fr;
  gap: 60px;
  background: var(--rue-wine);
}

.identity-card--blocks img {
  width: min(100%, 330px);
  filter: invert(1);
}

.identity-card--patterns {
  grid-template-columns: 1fr;
  gap: 24px;
  overflow: visible;
  background: transparent;
}

.identity-card--patterns img {
  grid-column: 1;
  height: 420px;
  object-fit: contain;
}

.identity-gallery__package > img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.identity-gallery__slogan > img {
  width: min(100%, 620px);
}

.identity-gallery__site-stack {
  display: grid;
  overflow: hidden;
}

.identity-gallery__site-stack img {
  display: block;
  width: 100%;
}

@media (min-width: 1200px) {
  .identity-card--wordmark,
  .identity-card--blocks,
  .identity-gallery__site-stack {
    overflow: visible;
  }

  .identity-gallery__patterns,
  .identity-gallery__blocks,
  .identity-gallery__labels,
  .identity-gallery__package,
  .identity-gallery__slogan,
  .identity-gallery__business {
    overflow: visible;
  }

  .identity-gallery img {
    width: auto;
  }

  img.identity-wordmark-image,
  div.identity-card.identity-card--wordmark > img {
    width: 273px;
    height: 245px;
    margin-left: -157px;
    margin-top: 40px;
    object-fit: contain;
    object-position: center;
  }

  .identity-wordmark-caption {
    width: 149.297px;
    height: 18.297px;
    margin-left: 0;
    margin-top: -31px;
    min-height: 18px;
    white-space: normal;
  }

  .identity-blocks-print > .identity-blocks-print-image,
  figure.identity-gallery__blocks:nth-of-type(2) > img,
  img.identity-blocks-print-image {
    width: 656.26px;
    height: 860.89px;
    margin-left: -155.2px;
    margin-top: -201.7px;
    object-fit: contain;
    object-position: center;
  }

  .identity-blocks-print > .identity-blocks-print-caption,
  figure.identity-gallery__blocks:nth-of-type(2) > figcaption {
    width: 501px;
    height: 17px;
    margin-left: -26.2px;
    margin-top: 31.2px;
    white-space: normal;
  }

  img.identity-patterns-image,
  div.identity-card.identity-card--patterns > img {
    width: 511.93px;
    height: 630.8px;
    margin-left: 5.2px;
    margin-top: -391.7px;
    object-fit: contain;
    object-position: center;
  }

  .identity-package > .identity-package-image,
  figure.identity-gallery__package:nth-of-type(4) > img {
    width: 667.15px;
    height: 500.89px;
    margin-left: -25.2px;
    margin-top: -120.9px;
    object-fit: contain;
    object-position: center;
  }

  .identity-package > .identity-package-caption,
  figure.identity-gallery__package:nth-of-type(4) > figcaption,
  figcaption.identity-package-caption {
    width: 201.188px;
    height: 20.8px;
    margin-left: 440.7px;
    margin-top: -82.3px;
    min-height: 20px;
    white-space: normal;
  }

  .identity-labels-image,
  figure.identity-gallery__labels:nth-of-type(6) > img,
  img.identity-labels-image {
    width: 497.08px;
    height: 794.34px;
    margin-left: 131.4px;
    margin-top: -1020.3px;
    object-fit: contain;
    object-position: center;
  }

  .identity-patterns-caption,
  figure.identity-gallery__patterns:nth-of-type(3) > figcaption,
  figcaption.identity-patterns-caption {
    width: 633px;
    height: 17px;
    margin-left: 5.1px;
    margin-top: 136.5px;
    white-space: normal;
  }

  .identity-business-image,
  figure.identity-gallery__business:nth-of-type(7) > img,
  img.identity-business-image {
    width: 501px;
    height: 256px;
    margin-left: 766.2px;
    margin-top: -1587.5px;
    object-fit: contain;
  }

  .identity-business-caption,
  figure.identity-gallery__business:nth-of-type(7) > figcaption,
  figcaption.identity-business-caption {
    width: 134.688px;
    height: 19.5px;
    margin-left: 1132.5px;
    margin-top: -1311.8px;
    min-height: 17px;
    white-space: normal;
  }

  .identity-site-stack img,
  div.identity-gallery__site-stack > img,
  img.identity-site-image {
    width: 895px;
    height: 500px;
    margin-left: 0.4px;
    margin-top: -170px;
    object-fit: contain;
  }

  .identity-labels-caption,
  figure.identity-gallery__labels:nth-of-type(6) > figcaption,
  figcaption.identity-labels-caption {
    width: 170.688px;
    height: 18px;
    margin-left: 457.8px;
    margin-top: -137.7px;
    min-height: 17px;
    white-space: normal;
  }

  figure.identity-gallery__slogan:nth-of-type(5) > figcaption,
  figcaption.identity-slogan-caption {
    width: 125.188px;
    height: 18px;
    margin-left: 74.9px;
    margin-top: -70.6px;
    min-height: 17px;
    white-space: normal;
  }

  figure.identity-gallery__slogan:nth-of-type(5) > img {
    width: 469.4px;
    height: 109.78px;
    margin-left: 71.9px;
    margin-top: -190.5px;
    object-fit: contain;
    object-position: center;
  }

  img.identity-wordmark-image,
  img.identity-blocks-print-image,
  img.identity-patterns-image,
  img.identity-package-image,
  img.identity-business-image,
  img.identity-labels-image,
  img.identity-site-image,
  figure.identity-gallery__slogan:nth-of-type(5) > img {
    object-fit: contain;
    object-position: center;
  }
}

@media (min-width: 1800px) {
  .identity-wordmark-block .identity-card--wordmark {
    position: relative;
    display: block;
    height: 477px;
    min-height: 477px;
    padding: 0;
  }

  .identity-wordmark-block .identity-card--wordmark > img.identity-wordmark-image {
    position: absolute;
    top: 209.984px;
    left: 0.066px;
    width: 273px;
    height: 245px;
    max-width: none;
    margin: 0;
    object-fit: contain;
    object-position: center;
  }

  .identity-gallery > figure.identity-blocks-print,
  .identity-gallery > figure.identity-patterns-block,
  .identity-gallery > figure.identity-package,
  .identity-gallery > figure.identity-gallery__slogan,
  .identity-gallery > figure.identity-labels-block,
  .identity-gallery > figure.identity-business-block,
  .identity-gallery > figure.identity-site-block {
    position: relative;
  }

  .identity-gallery > figure.identity-blocks-print {
    height: 707.375px;
  }

  .identity-gallery > figure.identity-patterns-block {
    height: 585.609px;
  }

  .identity-gallery > figure.identity-package {
    height: 318.484px;
  }

  .identity-gallery > figure.identity-gallery__slogan,
  .identity-gallery > figure.identity-labels-block,
  .identity-gallery > figure.identity-business-block {
    height: 0;
  }

  .identity-gallery > figure.identity-site-block {
    height: 356.719px;
  }

  .identity-gallery > figure.identity-patterns-block > .identity-card--patterns {
    height: 431.109px;
    min-height: 431.109px;
  }

  .identity-gallery > figure.identity-blocks-print > img.identity-blocks-print-image {
    position: absolute;
    top: -282.733px;
    left: -131.188px;
    width: 632.545px;
    height: 1086.166px;
    max-width: none;
    margin: 0;
  }

  .identity-gallery > figure.identity-blocks-print > figcaption.identity-blocks-print-caption {
    position: absolute;
    top: 694.275px;
    left: -131.187px;
    width: 501px;
    height: 17px;
    min-height: 0;
    margin: 0;
  }

  .identity-gallery > figure.identity-patterns-block img.identity-patterns-image {
    position: absolute;
    top: -505.272px;
    left: 5.269px;
    width: 564.721px;
    height: 808.366px;
    max-width: none;
    margin: 0;
  }

  .identity-gallery > figure.identity-patterns-block > figcaption.identity-patterns-caption {
    position: absolute;
    top: 123.409px;
    left: 5.294px;
    width: 108.188px;
    height: 18px;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    white-space: normal;
  }

  .identity-gallery > figure.identity-package > img.identity-package-image {
    position: absolute;
    top: -119.479px;
    left: -10.825px;
    width: 652.348px;
    height: 516.452px;
    max-width: none;
    margin: 0;
  }

  .identity-gallery > figure.identity-package > figcaption.identity-package-caption {
    position: absolute;
    top: 399.787px;
    left: 431.488px;
    width: 201.188px;
    height: 20.797px;
    min-height: 0;
    margin: 0;
  }

  .identity-gallery > figure.identity-gallery__slogan > img {
    position: absolute;
    top: 140.117px;
    left: 0.121px;
    width: 442.729px;
    height: 103.531px;
    max-width: none;
    margin: 0;
  }

  .identity-gallery > figure.identity-gallery__slogan > figcaption {
    position: absolute;
    top: 297.971px;
    left: 0.091px;
    width: 125.188px;
    height: 18px;
    min-height: 0;
    margin: 0;
  }

  .identity-gallery > figure.identity-labels-block > img.identity-labels-image {
    position: absolute;
    top: -779.604px;
    left: 0.011px;
    width: 657.038px;
    height: 1049.943px;
    max-width: none;
    margin: 0;
  }

  .identity-gallery > figure.identity-labels-block > figcaption.identity-labels-caption {
    position: absolute;
    top: 154.344px;
    left: 485.997px;
    width: 170.688px;
    height: 18px;
    min-height: 0;
    margin: 0;
  }

  .identity-gallery > figure.identity-business-block > img.identity-business-image {
    position: absolute;
    top: 255.8px;
    left: -131.312px;
    width: 501px;
    height: 256px;
    max-width: none;
    margin: 0;
  }

  .identity-gallery > figure.identity-business-block > figcaption.identity-business-caption {
    position: absolute;
    top: 529.603px;
    left: 235px;
    width: 134.688px;
    height: 19.5px;
    min-height: 0;
    margin: 0;
  }

  .identity-gallery > figure.identity-site-block > .identity-site-stack {
    position: relative;
    height: 330px;
    overflow: visible;
  }

  .identity-gallery > figure.identity-site-block > .identity-site-stack > img.identity-site-image {
    position: absolute;
    top: 42.7px;
    left: 0.391px;
    width: 895px;
    height: 500px;
    max-width: none;
    margin: 0;
  }

  .identity-gallery > figure.identity-site-block > figcaption.identity-site-caption {
    position: absolute;
    top: 564.2px;
    left: 0;
    width: 895.344px;
    height: 16.719px;
    margin: 0;
  }

  .identity .identity-status {
    margin-top: 291.6px;
  }
}

.identity-status {
  display: grid;
  grid-template-columns: 3fr 7fr 2fr;
  gap: 24px;
  margin-top: clamp(100px, 12vw, 190px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.identity-status > p:last-child {
  grid-column: 2;
  max-width: 800px;
  margin: 0;
  font-size: 17px;
}

.editorial {
  background: var(--rue-paper);
}

.editorial__header {
  display: grid;
  grid-template-columns: 3fr 8fr 1fr;
  gap: 24px;
}

.editorial__header h2 {
  grid-column: 2;
  font-size: clamp(64px, 6.3vw, 108px);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 84px) 24px;
  align-items: start;
  margin-top: clamp(100px, 11vw, 180px);
}

.editorial-grid figure {
  margin: 0;
}

.editorial-grid img {
  width: 100%;
  height: auto;
}

.editorial-grid__one {
  position: relative;
  grid-column: 1 / span 6;
}

.editorial-grid .editorial-grid__slogan {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(29%, 230px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.editorial-grid__two {
  grid-column: 9 / -1;
  margin-top: 12vw !important;
}

.editorial-grid__three {
  grid-column: 2 / span 4;
  margin-top: 5vw !important;
}

@media (min-width: 768px) {
  .editorial-grid__three img {
    transform: scale(2);
    transform-origin: center;
  }
}

.editorial-grid__four {
  grid-column: 7 / -1;
}

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

.digital__grid {
  display: grid;
  grid-template-columns: 6.25fr 5.75fr;
  gap: clamp(54px, 6vw, 110px);
  align-items: start;
}

.digital__header {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.digital__header h2 {
  margin: 42px 0;
  font-size: clamp(62px, 5.8vw, 98px);
}

.digital-title__pair {
  white-space: nowrap;
}

.digital__header > p:not(.eyebrow) {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.68);
}

.digital__header .text-link {
  margin-top: 24px;
}

.digital__screens {
  margin: 0;
}

.digital__browser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px 12px 0 0;
  background: #fff;
}

.digital__browser + .digital__browser {
  margin-top: 38px;
}

.digital__browser > span {
  display: flex;
  height: 34px;
  gap: 6px;
  align-items: center;
  padding: 0 13px;
  background: #242427;
}

.digital__browser i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

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

.digital__browser--long img {
  height: auto;
}

.digital__browser--catalog img {
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  object-position: center 56%;
}

.digital-products {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px 18px;
  margin-top: 74px;
}

.digital-products figure {
  margin: 0;
}

.digital-products figure:nth-child(even) {
  margin-top: 120px;
}

.digital-products img {
  width: 100%;
  aspect-ratio: 0.76;
  object-fit: cover;
  background: #f2f2f2;
}

.digital-products figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.digital-products__phone {
  display: grid;
  justify-items: center;
}

.digital-products__phone figcaption {
  width: min(100%, 320px);
}

.iphone-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 48px;
  background: linear-gradient(145deg, #4a4a4d 0%, #111113 18%, #050506 72%, #343437 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.iphone-frame::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 39px;
  pointer-events: none;
  content: "";
}

.iphone-frame__island {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 31%;
  height: 22px;
  border-radius: 999px;
  background: #050506;
  transform: translateX(-50%);
}

.iphone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 39px;
  object-fit: cover;
  object-position: center top;
}

.result {
  background: var(--rue-paper);
}

.result__header {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 24px;
}

.result__header h2 {
  font-size: clamp(78px, 8.5vw, 146px);
}

.result__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(70px, 8vw, 140px);
  align-items: start;
  margin-top: clamp(110px, 12vw, 190px);
}

.result__statement {
  max-width: 980px;
  font: 400 clamp(45px, 4.5vw, 76px)/1 var(--display);
  letter-spacing: -0.035em;
}

.result__grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result__grid li {
  padding: 21px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 17px;
}

.result__grid li:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.credits {
  background: #dedbd5;
}

.credits__header {
  display: grid;
  grid-template-columns: 3fr 8fr 1fr;
  gap: 24px;
}

.credits__header h2 {
  grid-column: 2;
  font-size: clamp(64px, 6.3vw, 108px);
}

.credits__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(100px, 11vw, 180px);
  border-top: 1px solid var(--ink);
}

.credits__list article {
  min-height: 340px;
  padding: 24px 30px 30px 0;
}

.credits__list article + article {
  padding-left: 28px;
  border-left: 1px solid var(--line-dark);
}

.credits__list span {
  color: var(--muted);
  font-size: 11px;
}

.credits__list h3 {
  margin: 78px 0 22px;
  font-size: clamp(37px, 3.1vw, 54px);
  line-height: 0.96;
}

.credits__list p {
  max-width: 470px;
  color: #575457;
}

.related {
  background: var(--rue-paper);
}

.related__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(60px, 8vw, 130px);
  align-items: end;
}

.related__copy h2 {
  margin: 46px 0 34px;
  font-size: clamp(96px, 11vw, 188px);
}

.related__copy > p:not(.eyebrow) {
  max-width: 630px;
}

.related__copy .text-link {
  margin-top: 26px;
}

.related__visual {
  position: relative;
  display: block;
  overflow: hidden;
}

.related__visual img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  transition: transform 500ms ease;
}

.related__visual span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.88);
  color: var(--white);
  font-size: 13px;
}

.related__visual:hover img {
  transform: scale(1.015);
}

.case-contact {
  padding-top: clamp(110px, 11vw, 180px);
}

@media (max-width: 1199px) {
  .case-index {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-index a:nth-child(3) {
    border-right: 0;
  }

  .case-index a:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line-dark);
  }

  .case-hero__copy {
    grid-column: 1 / span 6;
  }

  .case-hero__caption {
    grid-column: 9 / -1;
  }

  .identity__header,
  .editorial__header,
  .credits__header {
    grid-template-columns: 3fr 9fr;
  }

  .identity__header h2,
  .identity__header > p:last-child,
  .editorial__header h2,
  .credits__header h2 {
    grid-column: 2;
  }

  .identity__header > p:last-child {
    margin-top: 30px;
  }

  .digital__grid {
    grid-template-columns: 5fr 7fr;
  }
}

@media (max-width: 959px) {
  .case-hero h1 {
    font-size: clamp(102px, 18vw, 170px);
  }

  .case-hero__composition,
  .positioning__grid,
  .digital__grid,
  .result__grid,
  .related__grid {
    grid-template-columns: 1fr;
  }

  .case-hero__copy,
  .case-hero__caption {
    grid-column: 1;
  }

  .case-hero__copy {
    max-width: 760px;
  }

  .case-hero__caption {
    justify-self: start;
    margin-top: 38px;
    text-align: left;
  }

  .logic__intro h2 {
    grid-column: 4 / -1;
  }

  .logic__intro > p:last-child {
    grid-column: 4 / span 7;
    margin-top: 30px;
  }

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

  .logic-chain li {
    min-height: 250px;
  }

  .positioning__code {
    max-width: 720px;
    margin-left: 18vw;
  }

  .digital__header {
    position: static;
  }

  .digital-title__pair {
    white-space: normal;
  }

  .digital__screens {
    margin-top: 60px;
  }

  .digital-products {
    grid-column: 1;
  }
}

@media (max-width: 767px) {
  .case-page .site-header {
    grid-template-columns: 1fr auto;
  }

  .case-page .menu-toggle {
    position: static;
    display: grid;
    width: 42px;
    height: 42px;
    justify-self: end;
    place-content: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .case-page .menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: transform 180ms ease;
  }

  .case-page .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .case-page .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .case-page .mobile-menu {
    display: flex;
  }

  .case-hero {
    min-height: 0;
  }

  .case-hero__title {
    padding-top: 28px;
  }

  .case-hero h1 {
    margin-top: 18px;
    font-size: clamp(76px, 23.5vw, 96px);
    line-height: 0.8;
    letter-spacing: -0.07em;
    transform: translate(-4px, 6px);
  }

  .case-hero__composition {
    min-height: 720px;
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .case-hero__copy {
    padding: 0;
  }

  .case-hero__copy h2 {
    margin-top: 24px;
    font-size: clamp(48px, 14vw, 65px);
  }

  .case-hero__backdrop {
    background:
      linear-gradient(180deg, rgba(24, 12, 11, 0.28) 0%, rgba(24, 12, 11, 0.72) 49%, rgba(24, 12, 11, 0.96) 100%),
      url("/ru-v1-case-rueporte-v1/assets/editorial-hero.webp") 57% top / auto 58% no-repeat,
      var(--rue-brown);
  }

  .case-hero__caption {
    max-width: 240px;
    margin-top: 30px;
  }

  .case-index {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .case-index a {
    min-width: 190px;
    min-height: 64px;
    flex: 0 0 auto;
    border-right: 1px solid var(--line-dark) !important;
    border-bottom: 0 !important;
    scroll-snap-align: start;
    font-size: 21px;
  }

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

  .case-section__heading,
  .naming__header,
  .result__header,
  .identity__header,
  .editorial__header,
  .credits__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-section__heading > *,
  .naming__header > *,
  .result__header > *,
  .identity__header > *,
  .editorial__header > *,
  .credits__header > * {
    min-width: 0;
    max-width: 100%;
  }

  .case-section__heading h2,
  .naming__header h2,
  .result__header h2,
  .identity__header h2,
  .identity__header > p:last-child,
  .editorial__header h2,
  .credits__header h2 {
    grid-column: 1;
  }

  .case-section__heading h2,
  .identity__header h2,
  .editorial__header h2,
  .credits__header h2 {
    margin-top: 30px;
    font-size: clamp(48px, 14vw, 64px);
  }

  .context-grid {
    display: block;
    margin-top: 66px;
  }

  .context-shift {
    margin-top: 54px;
    padding: 34px 22px;
  }

  .context-shift span,
  .context-shift strong {
    font-size: clamp(54px, 17vw, 74px);
  }

  .context-quote {
    margin-top: 78px;
  }

  .context-quote p {
    font-size: clamp(44px, 13vw, 58px);
  }

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

  .logic__intro .eyebrow,
  .logic__intro h2,
  .logic__intro > p:last-child {
    grid-column: 1;
  }

  .logic__intro h2 {
    margin-top: 28px;
    font-size: clamp(54px, 15vw, 70px);
  }

  .logic-chain {
    grid-template-columns: 1fr;
    margin-top: 74px;
  }

  .logic-chain li {
    min-height: 0;
    padding: 28px 0 42px;
    border-bottom: 1px solid var(--line-dark);
  }

  .logic-chain strong {
    margin-top: 28px;
  }

  .positioning__grid {
    gap: 60px;
  }

  .positioning__copy h2 {
    margin: 30px 0 38px;
    font-size: clamp(54px, 15vw, 70px);
  }

  .positioning__code {
    margin-left: 0;
    padding: 30px 22px;
  }

  .positioning__code p {
    margin-top: 100px;
    font-size: 43px;
  }

  .naming__header h2 {
    margin-top: 34px;
    font-size: clamp(86px, 26vw, 118px);
  }

  .naming__body {
    display: block;
    margin-top: 74px;
  }

  .naming__tokens {
    margin-top: 44px;
  }

  .naming__voice {
    grid-template-columns: 1fr;
    margin-top: 74px;
  }

  .naming__voice p {
    min-height: 0;
    padding-bottom: 40px;
  }

  .identity-gallery,
  .editorial-grid {
    display: block;
    margin-top: 74px;
  }

  .identity-gallery figure,
  .editorial-grid figure {
    margin: 0 0 52px !important;
  }

  .identity-gallery__wordmark {
    width: 100%;
  }

  .identity-gallery__blocks {
    width: 72%;
    margin-left: auto !important;
  }

  .identity-gallery__patterns {
    width: 88%;
    transform: none;
  }

  .identity-gallery__package {
    width: 88%;
    margin-left: auto !important;
  }

  .identity-gallery__slogan,
  .identity-gallery__business {
    width: 82%;
  }

  .identity-gallery__labels {
    width: 78%;
    margin-left: auto !important;
  }

  .identity-gallery__site {
    width: 100%;
  }

  .identity-card {
    min-height: 280px;
    padding: 34px;
  }

  .identity-card--patterns img {
    height: 260px;
  }

  .identity-status {
    display: block;
    margin-top: 66px;
  }

  .identity-status > p:last-child {
    margin-top: 26px;
  }

  .editorial-grid__one,
  .editorial-grid__four {
    width: 92%;
  }

  .editorial-grid__two {
    width: 68%;
    margin-left: auto !important;
  }

  .editorial-grid__three {
    width: 72%;
  }

  .digital__grid,
  .result__grid,
  .related__grid {
    gap: 54px;
  }

  .digital__header h2 {
    margin: 30px 0;
    font-size: clamp(52px, 14.5vw, 67px);
  }

  .digital__browser + .digital__browser {
    margin-top: 20px;
  }

  .digital-products {
    gap: 28px 10px;
    margin-top: 50px;
  }

  .digital-products figure:nth-child(even) {
    margin-top: 62px;
  }

  .iphone-frame {
    padding: 5px;
    border-radius: 30px;
  }

  .iphone-frame::after {
    inset: 5px;
    border-radius: 25px;
  }

  .iphone-frame__island {
    top: 11px;
    height: 14px;
  }

  .iphone-frame img {
    border-radius: 25px;
  }

  .result__header h2 {
    margin-top: 30px;
    font-size: clamp(56px, 15.5vw, 66px);
  }

  .result__grid {
    margin-top: 70px;
  }

  .result__statement {
    font-size: clamp(42px, 12vw, 56px);
  }

  .credits__list {
    grid-template-columns: 1fr;
    margin-top: 70px;
  }

  .credits__list article {
    min-height: 0;
    padding: 24px 0 42px !important;
    border-bottom: 1px solid var(--line-dark);
    border-left: 0 !important;
  }

  .credits__list h3 {
    margin-top: 40px;
  }

  .related__copy h2 {
    font-size: clamp(80px, 24vw, 112px);
  }

  .case-contact .contact__grid {
    gap: 70px;
  }
}

/*
 * Responsive identity gallery
 *
 * The approved art-directed composition remains untouched at >= 1800px.
 * Below that breakpoint each image and its caption behaves as one module:
 * the figure owns placement, while the media and caption stay in normal flow.
 */
@media (max-width: 1799px) {
  .identity-gallery > .identity-media {
    --identity-caption-align: flex-start;
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
    margin: 0 !important;
    overflow: visible;
    transform: none;
  }

  .identity-gallery > .identity-media > [data-layout-role="media"] {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    transform: none;
  }

  .identity-gallery > .identity-media > img[data-layout-role="media"],
  .identity-gallery > .identity-media > [data-layout-role="media"] img {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .identity-gallery > .identity-media > figcaption[data-layout-role="caption"] {
    position: static;
    align-self: var(--identity-caption-align);
    width: auto;
    max-width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    white-space: normal;
    transform: none;
  }

  .identity-package,
  .identity-labels-block,
  .identity-business-block {
    --identity-caption-align: flex-end;
  }

  .identity-gallery > .identity-wordmark-block > .identity-card--wordmark {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: transparent;
  }

  .identity-gallery > .identity-wordmark-block > .identity-card--wordmark img {
    width: min(48%, 273px);
  }

  .identity-gallery > .identity-patterns-block > .identity-card--patterns {
    display: block;
    background: transparent;
  }

  .identity-gallery > .identity-media > img.identity-slogan-image {
    align-self: flex-start;
    width: min(78%, 520px);
  }

  .editorial-grid > figure.editorial-grid__two,
  .editorial-grid > figure.editorial-grid__three {
    position: static;
    height: auto;
    overflow: visible;
  }

  .editorial-grid > figure.editorial-grid__two > img,
  .editorial-grid > figure.editorial-grid__three > img {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    transform: none;
  }
}

@media (min-width: 1200px) and (max-width: 1799px) {
  .identity-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: clamp(72px, 7vw, 112px) 24px;
    align-items: start;
  }

  .identity-gallery > .identity-wordmark-block {
    grid-column: 1 / span 5;
    grid-row: 1;
  }

  .identity-gallery > .identity-patterns-block {
    grid-column: 1 / span 5;
    grid-row: 1;
    margin-top: clamp(255px, 19vw, 340px) !important;
  }

  .identity-gallery > .identity-blocks-print {
    grid-column: 8 / -1;
    grid-row: 1;
  }

  .identity-gallery > .identity-gallery__slogan {
    grid-column: 1 / span 5;
    grid-row: 2;
    margin-top: clamp(70px, 8vw, 135px) !important;
  }

  .identity-gallery > .identity-package {
    grid-column: 7 / -1;
    grid-row: 2;
  }

  .identity-gallery > .identity-labels-block {
    grid-column: 1 / span 5;
    grid-row: 3;
  }

  .identity-gallery > .identity-business-block {
    grid-column: 8 / span 4;
    grid-row: 3;
    margin-top: clamp(145px, 13vw, 235px) !important;
  }

  .identity-gallery > .identity-site-block {
    grid-column: 6 / -1;
    grid-row: 4;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .identity-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 82px 24px;
    align-items: start;
  }

  .identity-gallery > .identity-media {
    grid-column: auto;
    grid-row: auto;
  }

  .identity-gallery > .identity-site-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 959px) {
  .identity-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 64px;
    align-items: start;
  }

  .identity-gallery > .identity-media {
    grid-column: 1;
    grid-row: auto;
  }

  .identity-gallery > .identity-wordmark-block {
    width: 88%;
  }

  .identity-gallery > .identity-blocks-print {
    width: 72%;
    margin-left: auto !important;
  }

  .identity-gallery > .identity-patterns-block {
    width: 82%;
  }

  .identity-gallery > .identity-package {
    width: 82%;
    margin-left: auto !important;
  }

  .identity-gallery > .identity-gallery__slogan {
    width: 72%;
  }

  .identity-gallery > .identity-labels-block {
    width: 80%;
    margin-left: auto !important;
  }

  .identity-gallery > .identity-business-block {
    width: 70%;
  }

  .identity-gallery > .identity-site-block {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .identity-gallery {
    row-gap: 52px;
  }
}

/* Art-directed positions approved in the 2054px editor viewport. */
@media (min-width: 1800px) {
  .editorial-grid__two,
  .editorial-grid__three {
    position: relative;
    overflow: visible;
  }

  .editorial-grid__two {
    height: 374.25px;
  }

  .editorial-grid__two > img {
    position: absolute;
    top: -191.9px;
    left: -121.1px;
    width: 501.344px;
    height: 374.25px;
    max-width: none;
    margin: 0;
    object-fit: contain;
    transform: none;
  }

  .editorial-grid__three {
    height: 302.672px;
  }

  .editorial-grid__three > img {
    position: absolute;
    top: -46.272px;
    left: -212.463px;
    width: 926.254px;
    height: 559.217px;
    max-width: none;
    margin: 0;
    object-fit: contain;
    transform: none;
  }

  .identity-gallery > figure.identity-package > figcaption.identity-package-caption {
    left: 433.485px;
  }

  .identity-gallery > figure.identity-labels-block > figcaption.identity-labels-caption {
    left: 492.984px;
  }

  .related__copy {
    position: relative;
    top: -20.6px;
  }

  #related-title {
    position: relative;
    top: auto;
    left: -13.2px;
    margin: 27.299px 0 49.801px;
  }

  .related__copy > a.text-link {
    position: static;
    margin-top: 143.499px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related__visual img {
    transition: none;
  }
}
