:root {
  --scroll-blue: #3b50cf;
  --scroll-green: #04cb5d;
  --scroll-ink: #111217;
  --scroll-paper: #f4f5f6;
  --scroll-line: rgba(17, 18, 23, .16);
}

html {
  scroll-behavior: smooth;
}

body.scrollnet-case {
  overflow-x: clip;
  background: #fff;
  color: var(--scroll-ink);
}

.scrollnet-case .site-header {
  background: rgba(10, 11, 14, .96);
}

.scrollnet-case .header-cta,
.scrollnet-case .case-contact .button,
.scrollnet-case .mobile-menu .button {
  background: var(--scroll-blue);
}

.scrollnet-case .header-cta:hover,
.scrollnet-case .case-contact .button:hover,
.scrollnet-case .mobile-menu .button:hover {
  background: #2f43c1;
}

.case-section {
  padding-block: var(--section-space);
  scroll-margin-top: calc(var(--header-h) + 58px);
}

.case-section figcaption,
.overview-media figcaption {
  margin-top: 12px;
  color: rgba(17, 18, 23, .58);
  font-size: 9px;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: clamp(72px, 8vw, 132px);
}

.section-heading .eyebrow {
  grid-column: 1 / span 2;
}

.section-heading h2 {
  grid-column: 3 / span 8;
  margin: 0;
  font-size: clamp(58px, 6vw, 112px);
  line-height: .92;
  letter-spacing: -.035em;
}

.section-heading--split h2 {
  grid-column: 3 / span 6;
}

.section-heading--split > p:last-child {
  grid-column: 10 / -1;
  align-self: end;
  margin: 0;
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.5;
}

.section-heading--split i {
  font-style: normal;
  font-weight: 600;
}

/* Hero */

.scrollnet-hero {
  --hero-x: 50%;
  --hero-y: 48%;
  position: relative;
  min-height: max(650px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: #f7f9fb;
  isolation: isolate;
}

.scrollnet-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 22, 27, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 27, .045) 1px, transparent 1px);
  background-size: clamp(76px, 9vw, 150px) clamp(76px, 9vw, 150px);
  content: "";
  mask-image: linear-gradient(to bottom, transparent 2%, #000 28%, #000 72%, transparent 98%);
}

.scrollnet-hero__mesh {
  position: absolute;
  z-index: -1;
  inset: -18%;
  background:
    radial-gradient(circle at var(--hero-x) var(--hero-y), rgba(255,255,255,.72) 0 9%, transparent 29%),
    radial-gradient(circle at calc(var(--hero-x) - 17%) calc(var(--hero-y) + 8%), rgba(59,80,207,.48) 0 11%, transparent 35%),
    radial-gradient(circle at calc(var(--hero-x) + 17%) calc(var(--hero-y) - 7%), rgba(4,203,93,.42) 0 10%, transparent 34%);
  filter: blur(42px) saturate(112%);
  transform: scale(1.06);
  transition: background-position 500ms ease;
  will-change: transform;
}

.scrollnet-hero__meta,
.scrollnet-hero__footer {
  position: absolute;
  z-index: 3;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.scrollnet-hero__meta {
  top: 28px;
  color: rgba(17, 18, 23, .66);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scrollnet-hero__meta p,
.scrollnet-hero__footer p {
  margin: 0;
}

.scrollnet-hero__logo {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 70px var(--gutter) 120px;
}

.scrollnet-hero__logo h1 {
  width: min(63vw, 900px);
  margin: 0;
}

.scrollnet-hero__logo picture,
.scrollnet-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.scrollnet-hero__footer {
  bottom: 28px;
  align-items: end;
}

.scrollnet-hero__footer > p {
  max-width: 520px;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.45;
}

.scrollnet-hero__footer > a {
  color: inherit;
  font-size: 11px;
  text-underline-offset: .35em;
}

/* Index */

.case-index {
  position: relative;
  z-index: 85;
  top: auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--scroll-line);
  border-bottom: 1px solid var(--scroll-line);
  background: rgba(245, 247, 248, .94);
  backdrop-filter: blur(16px);
}

.case-index a {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-right: 1px solid var(--scroll-line);
  color: rgba(17,18,23,.62);
  font-size: 9px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

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

.case-index a span {
  color: var(--scroll-blue);
  font-variant-numeric: tabular-nums;
}

.case-index a:is(:hover, :focus-visible),
.case-index a[aria-current="true"] {
  background: #fff;
  color: var(--scroll-ink);
}

/* Context */

.context {
  background: #fff;
}

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

.context__lead {
  grid-column: 3 / span 5;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 3.25vw, 62px);
  line-height: .99;
  letter-spacing: -.03em;
}

.context__copy {
  grid-column: 9 / -1;
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.5;
}

.context__copy p:first-child {
  margin-top: 0;
}

.context__copy p:last-child {
  margin-bottom: 0;
}

.scope-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: clamp(70px, 8vw, 124px);
  border-top: 1px solid var(--scroll-line);
  border-bottom: 1px solid var(--scroll-line);
}

.scope-row span {
  min-height: 88px;
  display: flex;
  align-items: flex-end;
  padding: 16px 14px;
  border-right: 1px solid var(--scroll-line);
  font-size: 11px;
}

.scope-row span:last-child {
  border-right: 0;
}

.overview-media {
  margin: 0;
  padding: 0 0 var(--section-space);
  background: #fff;
}

.overview-media > img {
  display: block;
  width: 100%;
  height: auto;
}

/* Naming */

.naming {
  --name-progress: 0;
  background: var(--scroll-ink);
  color: #fff;
}

.naming .section-heading--split > p:last-child {
  color: rgba(255,255,255,.68);
}

.naming-stage {
  position: relative;
  min-height: min(72vw, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9vw var(--gutter);
  border-top: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 35% 40%, rgba(59,80,207,.26), transparent 30%),
    radial-gradient(circle at 66% 58%, rgba(4,203,93,.19), transparent 32%);
}

.naming-logo {
  position: relative;
  z-index: 2;
  width: min(63vw, 900px);
  transform: scale(calc(.94 + var(--name-progress) * .06));
  transition: transform 140ms linear;
  will-change: transform;
}

.naming-logo picture,
.naming-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.naming-traffic {
  position: absolute;
  z-index: 4;
  inset: 0;
  opacity: calc(.38 + var(--name-progress) * .34);
  pointer-events: none;
}

.naming-traffic__lane {
  position: absolute;
  width: 3.88%;
  height: 73.1%;
  overflow: hidden;
  border-radius: 999px;
  contain: paint;
}

.naming-traffic__lane--up {
  top: 0;
  left: 47.87%;
}

.naming-traffic__lane--down {
  top: 26.9%;
  left: 53.88%;
}

.naming-traffic__lane i {
  position: absolute;
  left: 50%;
  width: clamp(3px, .28vw, 5px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 5px rgba(255,255,255,.48);
  animation-duration: 5.4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: calc(var(--dot) * -.45s);
  will-change: top;
}

.naming-traffic__lane i:nth-child(3n+1) { opacity: .34; }
.naming-traffic__lane i:nth-child(3n+2) { opacity: .52; }
.naming-traffic__lane i:nth-child(3n) { opacity: .68; }
.naming-traffic__lane--up i { animation-name: naming-traffic-up; }
.naming-traffic__lane--down i { animation-name: naming-traffic-down; }

@keyframes naming-traffic-up {
  from { top: 104%; }
  to { top: -4%; }
}

@keyframes naming-traffic-down {
  from { top: -4%; }
  to { top: 104%; }
}

.naming-stage__note {
  position: absolute;
  bottom: 34px;
  color: rgba(255,255,255,.5);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.naming-stage__note--left {
  left: var(--gutter);
}

.naming-stage__note--right {
  right: var(--gutter);
}

/* Identity */

.identity {
  background: var(--scroll-paper);
}

.identity-stage {
  position: relative;
  min-height: min(60vw, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--scroll-line);
  background: linear-gradient(115deg, var(--scroll-blue), var(--scroll-green));
  transition: background 420ms cubic-bezier(.2,.75,.25,1);
}

.identity-stage[data-tone="blue"] {
  background: var(--scroll-blue);
}

.identity-stage[data-tone="green"] {
  background: var(--scroll-green);
}

.identity-stage::before,
.identity-stage::after {
  position: absolute;
  width: min(46vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  content: "";
}

.identity-stage::after {
  width: min(28vw, 400px);
}

.identity-stage__logo {
  position: relative;
  z-index: 2;
  width: min(54%, 720px);
  padding: clamp(28px, 4vw, 64px);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
}

.identity-stage__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.identity-stage__controls {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  left: 50%;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(8,10,12,.5);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.identity-stage__controls button {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
}

.identity-stage__controls button[aria-pressed="true"] {
  background: #fff;
  color: var(--scroll-ink);
}

.identity-stage__controls button span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--scroll-blue);
}

.identity-stage__controls button[data-tone="green"] span {
  background: var(--scroll-green);
}

.identity-stage__controls button[data-tone="gradient"] span {
  background: linear-gradient(135deg, var(--scroll-blue), var(--scroll-green));
}

.identity-archive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.identity-archive figure,
.applications__grid figure {
  margin: 0;
}

.identity-archive img,
.applications__grid img,
.digital img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Illustrations */

.illustrations {
  padding-bottom: 0;
  background: #fff;
}

.story-slider {
  outline: 0;
}

.story-slider__viewport {
  position: relative;
  aspect-ratio: 8 / 3;
  overflow: hidden;
  background: #1428a8;
}

.story-slider__viewport figure {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(3%);
  transition: opacity 420ms ease, transform 600ms cubic-bezier(.2,.75,.25,1);
}

.story-slider__viewport figure.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.story-slider__viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-slider__viewport figcaption {
  position: absolute;
  bottom: 18px;
  left: var(--gutter);
  margin: 0;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(10, 12, 16, .66);
  color: #fff;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.story-slider__controls {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--scroll-line);
  font-size: 10px;
}

.story-slider__controls > div:last-child {
  justify-self: end;
}

.story-slider__controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--scroll-line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.story-slider__dots {
  display: flex;
  gap: 7px;
}

.story-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  background: rgba(17,18,23,.2);
}

.story-slider__dots button[aria-pressed="true"] {
  background: var(--scroll-blue);
  transform: scale(1.5);
}

/* Motion + web */

.motion-panel {
  overflow: hidden;
  background: #0c0d12;
}

.motion-panel picture,
.motion-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.digital {
  background: var(--scroll-paper);
}

.digital-overview,
.digital-long {
  margin: 0;
}

.digital-overview {
  margin-bottom: clamp(70px, 8vw, 126px);
}

.digital-long {
  width: min(78%, 1280px);
  margin-inline: auto;
  padding: clamp(18px, 2vw, 32px);
  border: 1px solid var(--scroll-line);
  background: #fff;
  box-shadow: 0 34px 80px rgba(26,34,56,.1);
}

/* Applications */

.applications {
  background: #fff;
}

.applications__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Result, credits, related */

.result {
  background: var(--scroll-blue);
  color: #fff;
}

.result .eyebrow {
  color: rgba(255,255,255,.7);
}

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

.result__grid > div {
  grid-column: 3 / span 5;
  font-size: clamp(20px, 1.5vw, 28px);
  line-height: 1.35;
}

.result__grid > div p:first-child {
  margin-top: 0;
}

.result__grid ul {
  grid-column: 9 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result__grid li {
  padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.26);
}

.result__grid li:last-child {
  border-bottom: 1px solid rgba(255,255,255,.26);
}

.credits {
  background: #0c0d12;
  color: #fff;
}

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

.credits__grid header {
  grid-column: 1 / span 5;
}

.credits__grid h2 {
  margin: 20px 0 0;
  font-size: clamp(48px, 5vw, 94px);
  line-height: .92;
}

.credits__list {
  grid-column: 7 / -1;
}

.credits__list article {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}

.credits__list article:last-child {
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.credits__list span {
  color: rgba(255,255,255,.65);
  line-height: 1.45;
}

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

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

.related__grid > div {
  grid-column: 1 / span 5;
}

.related__grid h2 {
  margin: 22px 0 30px;
  font-size: clamp(64px, 7vw, 128px);
  line-height: .86;
}

.related__grid p:not(.eyebrow) {
  max-width: 480px;
  font-size: clamp(17px, 1.2vw, 21px);
  line-height: 1.45;
}

.related__card {
  position: relative;
  grid-column: 7 / -1;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.related__card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(.2,.75,.25,1);
}

.related__card:hover img {
  transform: scale(1.02);
}

.related__card span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 11px;
  background: #fff;
  font-size: 10px;
  text-transform: uppercase;
}

/* Contact */

.case-contact {
  background:
    radial-gradient(circle at 82% 26%, rgba(4,203,93,.18), transparent 32%),
    radial-gradient(circle at 18% 72%, rgba(59,80,207,.25), transparent 35%),
    #07090c;
}

.scrollnet-case .case-contact .gradient-text {
  background: linear-gradient(110deg, var(--scroll-blue), var(--scroll-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 1100px) {
  .section-heading h2 {
    grid-column: 3 / -1;
  }

  .section-heading--split h2 {
    grid-column: 3 / span 7;
  }

  .section-heading--split > p:last-child {
    grid-column: 10 / -1;
  }

  .context__lead {
    grid-column: 2 / span 6;
  }

  .context__copy {
    grid-column: 9 / -1;
  }
}

@media (max-width: 820px) {
  .scrollnet-hero__meta p:last-child {
    display: none;
  }

  .scrollnet-hero__logo h1 {
    width: min(78vw, 650px);
  }

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

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

  .case-index a {
    min-width: 150px;
    scroll-snap-align: start;
  }

  .section-heading {
    display: block;
    margin-bottom: 64px;
  }

  .section-heading .eyebrow {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(49px, 12vw, 82px);
  }

  .section-heading--split > p:last-child {
    max-width: 620px;
    margin-top: 34px;
  }

  .context__grid,
  .result__grid,
  .credits__grid,
  .related__grid {
    display: block;
  }

  .context__lead,
  .context__copy {
    margin-inline: 0;
  }

  .context__copy {
    margin-top: 48px;
  }

  .scope-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scope-row span:nth-child(3) {
    border-right: 0;
  }

  .scope-row span:nth-child(-n+3) {
    border-bottom: 1px solid var(--scroll-line);
  }

  .naming-stage {
    min-height: 680px;
  }

  .naming-logo {
    width: min(76vw, 760px);
  }

  .identity-archive,
  .applications__grid {
    grid-template-columns: 1fr;
  }

  .story-slider__viewport {
    aspect-ratio: 8 / 4.5;
  }

  .digital-long {
    width: 100%;
  }

  .result__grid ul {
    margin-top: 64px;
  }

  .credits__list {
    margin-top: 70px;
  }

  .related__card {
    margin-top: 60px;
  }
}

@media (max-width: 700px) {
  .motion-panel picture {
    min-height: 0;
    aspect-ratio: 838 / 1280;
  }

  .motion-panel img {
    height: 100%;
    object-fit: contain;
  }
}

@media (max-width: 560px) {
  .case-section {
    padding-block: clamp(88px, 24vw, 120px);
  }

  .scrollnet-hero {
    min-height: calc(100svh - var(--header-h));
  }

  .scrollnet-hero__meta {
    top: 20px;
  }

  .scrollnet-hero__logo {
    padding-inline: 24px;
  }

  .scrollnet-hero__logo h1 {
    width: 91vw;
  }

  .scrollnet-hero__footer {
    display: block;
  }

  .scrollnet-hero__footer > p {
    max-width: 92%;
    font-size: 15px;
  }

  .scrollnet-hero__footer > a {
    display: inline-block;
    margin-top: 18px;
  }

  .section-heading h2 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .context__lead {
    font-size: clamp(31px, 9.8vw, 48px);
  }

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

  .scope-row span,
  .scope-row span:nth-child(3) {
    border-right: 1px solid var(--scroll-line);
    border-bottom: 1px solid var(--scroll-line);
  }

  .scope-row span:nth-child(even) {
    border-right: 0;
  }

  .scope-row span:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .naming-stage {
    min-height: 520px;
    padding-inline: 6px;
  }

  .naming-logo {
    width: 92vw;
  }

  .identity-stage {
    min-height: 520px;
  }

  .identity-stage__logo {
    width: 86%;
    padding: 25px;
  }

  .identity-stage__controls {
    width: calc(100% - 24px);
    justify-content: center;
  }

  .identity-stage__controls button {
    padding-inline: 10px;
  }

  .story-slider__viewport {
    aspect-ratio: 1 / .74;
  }

  .story-slider__controls {
    grid-template-columns: 1fr 1fr;
  }

  .story-slider__dots {
    display: none;
  }

  .story-slider__controls > div:last-child {
    grid-column: 2;
  }

  .digital-long {
    padding: 10px;
  }

  .credits__grid h2 {
    overflow-wrap: anywhere;
    font-size: clamp(42px, 12vw, 64px);
  }

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

  .related__grid h2 {
    font-size: clamp(66px, 20vw, 100px);
  }
}

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

  .scrollnet-hero__mesh,
  .naming-logo,
  .naming-traffic__lane i,
  .story-slider__viewport figure,
  .related__card img {
    transition: none !important;
  }

  .naming-traffic__lane i {
    display: none;
    animation: none !important;
  }

  .naming {
    --name-progress: 1;
  }
}
