/* ==========================================================================
   Pixellion — case study
   Editorial detail page for the selected work archive.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('../img/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('../img/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary: #D72363;
  --primary-deep: #A70E4C;
  --primary-soft: #FBE3EC;
  --magenta: #FF4D8D;
  --violet: #7B4DFF;
  --blue: #3155FF;
  --ink: #0B0A12;
  --ink-2: #14111C;
  --ink-3: #1B1725;
  --cream: #F6F2EB;
  --cream-deep: #EFE8DE;
  --paper: #FCFAF7;
  --white: #FFFFFF;
  --muted: #6D6775;
  --muted-2: #6D6775;
  --line: rgba(11, 10, 18, 0.10);
  --line-soft: rgba(11, 10, 18, 0.06);
  --line-light: rgba(255, 255, 255, 0.12);
  --text: #39333F;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-cover: 0 60px 120px -50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card: 0 30px 80px -50px rgba(24, 12, 40, 0.4);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, figcaption, dl, dd, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

.ic {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}

.wrap {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
}

.case-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 16px;
  border-radius: 9px;
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.case-skip:focus {
  transform: translateY(0);
}

.case-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
}

.case-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--violet), var(--blue));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.case-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.case-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.07);
  background: rgba(11, 10, 18, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.case-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.case-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.case-brand img {
  width: 30px;
  height: 30px;
}

.case-brand span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.case-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.case-nav a {
  position: relative;
  padding: 6px 0;
  color: rgba(246, 242, 235, 0.56);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.case-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--magenta);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.case-nav a:hover {
  color: var(--cream);
}

.case-nav a:hover::after {
  transform: scaleX(1);
}

.case-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.case-lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.case-lang a {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 25px;
  border-radius: 999px;
  color: rgba(246, 242, 235, 0.48);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease;
}

.case-lang a:hover {
  color: var(--cream);
}

.case-lang a.is-active {
  background: var(--cream);
  color: var(--ink);
}

.case-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--cream);
  font-size: 10px;
  font-weight: 750;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.case-header__cta:hover {
  border-color: var(--primary);
  background: var(--primary);
}

.case-menu-btn {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.case-mobile-nav {
  position: fixed;
  z-index: 99;
  top: 74px;
  right: 0;
  left: 0;
  padding: 20px 20px 26px;
  background: rgba(11, 10, 18, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.case-mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.case-mobile-nav nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--cream);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.case-mobile-nav nav a span {
  color: var(--magenta);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.case-mobile-nav__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.case-mobile-nav__foot .case-header__cta {
  background: var(--primary);
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 146px 0 38px;
  background: var(--ink);
  color: var(--cream);
}

.case-hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.case-hero__glow {
  position: absolute;
  border-radius: 50%;
}

.case-hero__glow--one {
  top: -22%;
  left: -12%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(215, 35, 99, 0.24), transparent 64%);
  filter: blur(10px);
}

.case-hero__glow--two {
  right: -20%;
  bottom: -30%;
  width: 56vw;
  height: 56vw;
  background: radial-gradient(circle, rgba(49, 85, 255, 0.2), transparent 64%);
  filter: blur(14px);
}

.case-hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(85% 70% at 42% 30%, #000, transparent 75%);
  mask-image: radial-gradient(85% 70% at 42% 30%, #000, transparent 75%);
}

.case-hero__watermark {
  position: absolute;
  right: -2vw;
  bottom: -9vw;
  color: transparent;
  font-size: 30vw;
  font-weight: 800;
  letter-spacing: -0.09em;
  line-height: 0.8;
  opacity: 0.55;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  user-select: none;
}

.case-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: clamp(40px, 6vw, 94px);
  align-items: center;
}

.case-hero__copy {
  min-width: 0;
  padding-bottom: 18px;
}

.case-crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: rgba(246, 242, 235, 0.6);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-crumbs a {
  color: rgba(246, 242, 235, 0.72);
  transition: color 0.2s ease;
}

.case-crumbs a:hover {
  color: var(--magenta);
}

.case-crumbs span[aria-hidden] {
  color: rgba(246, 242, 235, 0.2);
}

.case-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--magenta);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.9);
}

.case-eyebrow__sep {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.case-hero__title {
  max-width: 900px;
  font-size: clamp(46px, 5.5vw, 86px);
  font-weight: 600;
  letter-spacing: -0.062em;
  line-height: 0.96;
  text-wrap: balance;
}

.case-hero__title em {
  color: var(--magenta);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.case-hero__lede {
  max-width: 600px;
  margin-top: 28px;
  color: rgba(246, 242, 235, 0.58);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.68;
  text-wrap: pretty;
}

.case-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 38px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.case-hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 90px;
}

.case-hero__meta span {
  color: rgba(246, 242, 235, 0.55);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-hero__meta strong {
  color: rgba(246, 242, 235, 0.88);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.45;
}

.case-hero__meta-wide {
  flex: 1;
  min-width: 180px !important;
}

.case-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.case-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.case-btn:active {
  transform: translateY(1px);
}

.case-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 34px -18px rgba(215, 35, 99, 0.8);
}

.case-btn--primary:hover {
  background: var(--primary-deep);
  box-shadow: 0 22px 42px -18px rgba(215, 35, 99, 0.9);
}

.case-btn__icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-right: -8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.25s ease, background 0.25s ease;
}

.case-btn:hover .case-btn__icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.24);
}

.case-btn--ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(246, 242, 235, 0.82);
}

.case-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
}

.case-btn--outline {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--cream);
}

.case-btn--outline:hover {
  border-color: var(--magenta);
  background: rgba(255, 77, 141, 0.08);
  color: #fff;
}

.case-btn--dark {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 20px 40px -22px rgba(11, 10, 18, 0.75);
}

.case-btn--dark:hover {
  background: #211A2D;
  transform: translateY(-1px);
}

.case-btn--full {
  width: 100%;
  min-height: 47px;
  margin-top: 22px;
  font-size: 10px;
}

.case-hero__cover {
  position: relative;
  margin: 0;
}

.case-hero__cover-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--ink-3);
  box-shadow: var(--shadow-cover);
  transform: rotate(-1.15deg);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.case-hero__cover:hover .case-hero__cover-frame {
  transform: rotate(0deg) scale(1.008);
  box-shadow: 0 70px 140px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.case-hero__cover-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.case-hero__cover img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center;
}

.case-hero__stamp {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 7, 12, 0.55);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.case-hero__stamp span {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.58;
}

.case-hero__stamp strong {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.case-hero__cover figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding: 0 4px;
  color: rgba(246, 242, 235, 0.58);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-hero__cover figcaption span:last-child {
  max-width: 62%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 74px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.case-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(246, 242, 235, 0.6);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.case-scroll:hover {
  color: var(--cream);
}

.case-scroll__line {
  display: block;
  width: 44px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.case-scroll__line i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--magenta);
  transform: translateX(-100%);
  animation: scrollLine 2.6s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  45%, 55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.case-hero__index {
  color: rgba(246, 242, 235, 0.55);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Shared section bits
   -------------------------------------------------------------------------- */

.case-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-label > span:first-child {
  color: var(--primary);
}

.case-label__line {
  width: 34px;
  height: 1px;
  background: var(--line);
}

.case-label--light {
  color: rgba(246, 242, 235, 0.6);
}

.case-label--light > span:first-child {
  color: var(--magenta);
}

.case-label--light .case-label__line {
  background: rgba(255, 255, 255, 0.16);
}

.case-h2 {
  margin-top: 22px;
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.01;
  text-wrap: balance;
}

.case-h2 em {
  color: var(--primary);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Overview
   -------------------------------------------------------------------------- */

.case-overview {
  position: relative;
  scroll-margin-top: 88px;
  padding: clamp(76px, 1vw, 126px) 0 clamp(80px, calc(1vw + 13.8px), 128px);
  background:
    radial-gradient(50% 40% at 100% 0%, rgba(215, 35, 99, 0.055), transparent 60%),
    var(--cream);
}

.case-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
  margin-top: 48px;
}

.case-overview__main {
  max-width: 790px;
  min-width: 0;
}

.case-overview__main .case-h2 {
  margin-bottom: 34px;
}

.case-fallback {
  margin: 0 0 24px;
  padding: 12px 15px;
  border: 1px solid rgba(215, 35, 99, 0.18);
  border-radius: 10px;
  background: rgba(215, 35, 99, 0.045);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.case-prose {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.82;
  overflow-wrap: break-word;
}

.case-prose > p {
  margin-bottom: 1.35em;
}

.case-prose > p:first-child {
  margin-bottom: 1.5em;
  color: var(--ink);
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.68;
  letter-spacing: -0.014em;
}

.case-prose > p:last-child {
  margin-bottom: 0;
}

.case-prose div {
  margin-bottom: 1.35em;
}

.case-prose strong,
.case-prose b {
  color: var(--ink);
  font-weight: 750;
}

.case-prose em,
.case-prose i {
  font-family: var(--font-serif);
  font-size: 1.12em;
}

.case-prose h2,
.case-prose h3,
.case-prose h4 {
  margin: 1.8em 0 0.6em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.case-prose h2 {
  font-size: 30px;
}

.case-prose h3 {
  font-size: 23px;
}

.case-prose h4 {
  font-size: 18px;
}

.case-prose ul,
.case-prose ol {
  margin: 0 0 1.35em;
  padding-left: 22px;
}

.case-prose ul {
  list-style: none;
}

.case-prose ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 2px;
}

.case-prose ul li::before {
  content: '';
  position: absolute;
  top: 0.78em;
  left: -18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.case-prose ol {
  list-style: decimal;
  padding-left: 24px;
}

.case-prose ol li {
  margin-bottom: 8px;
  padding-left: 3px;
}

.case-prose ol li::marker {
  color: var(--primary);
  font-size: 0.8em;
  font-weight: 800;
}

.case-prose blockquote {
  margin: 2em 0;
  padding: 10px 0 10px 24px;
  border-left: 2px solid var(--primary);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.3vw, 32px);
  font-style: italic;
  line-height: 1.35;
}

.case-prose a {
  color: var(--primary);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.case-prose a:hover {
  color: var(--primary-deep);
}

.case-prose figure {
  margin: 2em 0;
}

.case-prose figcaption {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 10px;
}

.case-aside {
  position: sticky;
  top: 104px;
  min-width: 0;
}

.case-details {
  position: relative;
  overflow: hidden;
  padding: 25px 25px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(215, 35, 99, 0.18), transparent 58%),
    radial-gradient(100% 80% at 100% 100%, rgba(49, 85, 255, 0.12), transparent 60%),
    var(--ink);
  color: var(--cream);
  box-shadow: 0 36px 80px -46px rgba(11, 10, 18, 0.6);
}

.case-details::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.case-details__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(246, 242, 235, 0.5);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-details__mark {
  color: var(--magenta);
  font-size: 12px;
}

.case-details dl {
  display: flex;
  flex-direction: column;
}

.case-details dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.case-details dl > div:last-child {
  border-bottom: 0;
}

.case-details dt {
  color: rgba(246, 242, 235, 0.58);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.7;
  text-transform: uppercase;
}

.case-details dd {
  margin: 0;
  color: rgba(246, 242, 235, 0.84);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  word-break: break-word;
}

.case-details dd a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #FF7BA8;
  transition: color 0.2s ease;
}

.case-details dd a:hover {
  color: #fff;
}

.case-details__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.case-details__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: rgba(246, 242, 235, 0.6);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.case-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 0 5px;
}

.case-share__label {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.case-share__btn:hover {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.case-share__btn.is-copied {
  border-color: rgba(14, 122, 86, 0.2);
  background: #E9F6F1;
  color: #0E7A56;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.case-gallery {
  scroll-margin-top: 88px;
  padding: clamp(76px, 9vw, 126px) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}

.case-gallery__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.case-gallery__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 6px;
}

.case-gallery__aside p {
  max-width: 300px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.case-gallery__count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-gallery__count::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

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

.case-gallery__grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-gallery__grid--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-gallery__grid--cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.case-gallery__grid--cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.case-shot {
  margin: 0;
}

.case-gallery--single .wrap {
  width: min(1600px, calc(100% - 80px));
}

.case-gallery__grid--single {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 38px);
}

.case-single {
  margin: 0;
}

.case-single img {
  display: block;
  width: 100%;
  max-width: 1600px;
  height: auto;
  margin-inline: auto;
  border-radius: 18px;
  background: var(--cream);
}

.case-shot__link {
  display: block;
}

.case-shot__media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.case-shot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.85s var(--ease), filter 0.5s ease;
}

.case-shot__link:hover .case-shot__media img {
  transform: scale(1.035);
  filter: brightness(0.88);
}

.case-shot__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 12, 0.14), transparent 24%, transparent 65%, rgba(8, 7, 12, 0.55));
  opacity: 0.7;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.case-shot__link:hover .case-shot__shade {
  opacity: 1;
}

.case-shot__num {
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(8, 7, 12, 0.5);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.case-shot__open {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.case-shot__open .ic {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.case-shot__link:hover .case-shot__open,
.case-shot__link:focus-visible .case-shot__open {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Next case
   -------------------------------------------------------------------------- */

.case-next {
  padding: clamp(70px, 8vw, 110px) 0;
  background: var(--ink);
  color: var(--cream);
}

.case-next__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr) 70px;
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
  margin-top: 34px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background: var(--ink-2);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--ease);
}

.case-next__card:hover {
  border-color: rgba(215, 35, 99, 0.5);
  background: #17131F;
  transform: translateY(-3px);
}

.case-next__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ink-3);
  aspect-ratio: 4 / 3;
}

.case-next__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.case-next__card:hover .case-next__media img {
  transform: scale(1.04);
}

.case-next__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(8, 7, 12, 0.4));
}

.case-next__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.case-next__kicker {
  color: var(--magenta);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-next__title {
  max-width: 640px;
  font-size: clamp(26px, 3.1vw, 44px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.case-next__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: rgba(246, 242, 235, 0.6);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.case-next__card:hover .case-next__link {
  color: var(--cream);
}

.case-next__arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}

.case-next__card:hover .case-next__arrow {
  border-color: var(--primary);
  background: var(--primary);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.case-cta {
  padding: clamp(70px, 8vw, 112px) 0;
  background: var(--cream);
}

.case-cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 86px) clamp(24px, 5vw, 80px);
  border-radius: 34px;
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(255, 95, 158, 0.55), transparent 55%),
    radial-gradient(90% 120% at 90% 100%, rgba(123, 77, 255, 0.65), transparent 60%),
    linear-gradient(120deg, #D72363, #A93BFF 55%, #3155FF);
  color: #fff;
  text-align: center;
  box-shadow: 0 45px 100px -50px rgba(123, 77, 255, 0.65);
}

.case-cta__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 75%);
}

.case-cta__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 60%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 60%);
  transform: translateX(-50%);
  filter: blur(30px);
  pointer-events: none;
}

.case-cta__mark {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 18px;
  font-size: 20px;
}

.case-cta__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-cta__title {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.case-cta__text {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 20px auto 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.case-cta .case-btn {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.case-footer {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
  background: var(--ink);
  color: var(--cream);
}

.case-footer__top {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 0.9fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.case-brand--footer {
  align-self: start;
}

.case-brand--footer span {
  font-size: 14px;
}

.case-footer__top > p {
  max-width: 300px;
  color: rgba(246, 242, 235, 0.58);
  font-size: 11px;
  line-height: 1.7;
}

.case-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.case-footer__nav a {
  color: rgba(246, 242, 235, 0.58);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.case-footer__nav a:hover {
  color: var(--magenta);
}

.case-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.case-footer__contact a {
  color: rgba(246, 242, 235, 0.58);
  font-size: 10px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.case-footer__contact a:hover {
  color: var(--cream);
}

.case-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  color: rgba(246, 242, 235, 0.52);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.case-footer__since {
  margin-left: auto;
}

.case-footer__top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: rgba(246, 242, 235, 0.6);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.case-footer__top-btn:hover {
  color: var(--cream);
}

.case-footer__word {
  overflow: hidden;
  margin: 10px 0 -2.4vw;
  color: transparent;
  font-size: 17.5vw;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.72;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  user-select: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.case-lightbox {
  width: min(1180px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #08070C;
  color: var(--cream);
  box-shadow: 0 60px 160px -40px rgba(0, 0, 0, 0.9);
}

.case-lightbox::backdrop {
  background: rgba(7, 5, 12, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.case-lightbox[open] {
  display: flex;
  flex-direction: column;
}

.case-lightbox__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-lightbox__counter {
  color: rgba(246, 242, 235, 0.55);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.case-lightbox__hint {
  margin-left: auto;
  color: rgba(246, 242, 235, 0.55);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.case-lightbox__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.case-lightbox__close:hover {
  background: var(--cream);
  color: var(--ink);
}

.case-lightbox__figure {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 0;
  padding: 16px 76px 20px;
}

.case-lightbox__figure img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

.case-lightbox__figure figcaption {
  color: rgba(246, 242, 235, 0.65);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.case-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(8, 7, 12, 0.55);
  color: var(--cream);
  cursor: pointer;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.case-lightbox__nav:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.case-lightbox__nav--prev {
  left: 14px;
}

.case-lightbox__nav--next {
  right: 14px;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .wrap,
  .case-gallery--single .wrap {
    width: calc(100% - 64px);
  }

  .case-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: 46px;
  }

  .case-hero__title {
    font-size: clamp(44px, 5.8vw, 72px);
  }

  .case-overview__grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 48px;
  }

  .case-details {
    padding: 22px 20px 19px;
  }

  .case-details dl > div {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 1020px) {
  .case-nav {
    display: none;
  }

  .case-menu-btn {
    display: grid;
  }

  .case-hero {
    padding-top: 126px;
  }

  .case-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .case-hero__cover {
    width: min(100%, 560px);
    margin-left: auto;
  }

  .case-hero__cover img {
    aspect-ratio: 4 / 4.2;
  }

  .case-overview__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .case-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    align-items: start;
  }

  .case-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.45);
  }

  .case-gallery__head {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .case-gallery__aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .case-gallery__aside p {
    max-width: 460px;
  }

  .case-next__card {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) 56px;
  }

  .case-footer__top {
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .wrap,
  .case-gallery--single .wrap {
    width: calc(100% - 40px);
  }

  .case-header__inner {
    height: 68px;
  }

  .case-mobile-nav {
    top: 68px;
  }

  .case-header__cta span {
    display: none;
  }

  .case-header__cta {
    width: 38px;
    padding: 0;
  }

  .case-hero {
    padding: 112px 0 28px;
  }

  .case-hero__title {
    font-size: clamp(40px, 10.4vw, 58px);
    letter-spacing: -0.055em;
  }

  .case-hero__lede {
    margin-top: 22px;
    font-size: 15px;
  }

  .case-crumbs {
    margin-bottom: 26px;
  }

  .case-hero__meta {
    gap: 16px 26px;
    margin-top: 30px;
    padding-top: 20px;
  }

  .case-hero__meta > div {
    min-width: 76px;
  }

  .case-hero__meta-wide {
    flex-basis: 100%;
  }

  .case-hero__actions {
    margin-top: 28px;
  }

  .case-btn {
    min-height: 48px;
    padding: 0 18px;
    font-size: 10.5px;
  }

  .case-hero__cover {
    width: 100%;
  }

  .case-hero__cover-frame {
    border-radius: 18px;
  }

  .case-hero__cover img {
    aspect-ratio: 4 / 4.3;
  }

  .case-hero__foot {
    margin-top: 38px;
  }

  .case-hero__index {
    display: none;
  }

  .case-label {
    font-size: 8px;
  }

  .case-h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .case-overview {
    padding: 70px 0;
  }

  .case-overview__grid {
    margin-top: 34px;
  }

  .case-overview__main .case-h2 {
    margin-bottom: 26px;
  }

  .case-prose {
    font-size: 15px;
  }

  .case-prose > p:first-child {
    font-size: 18px;
  }

  .case-aside {
    grid-template-columns: 1fr;
  }

  .case-share {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .case-gallery {
    padding: 70px 0;
  }

  .case-gallery__head {
    margin-bottom: 34px;
  }

  .case-gallery__aside {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .case-shot__media {
    border-radius: 14px;
  }

  .case-next {
    padding: 64px 0;
  }

  .case-next__card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px 12px 20px;
    border-radius: 20px;
  }

  .case-next__media {
    border-radius: 13px;
  }

  .case-next__copy {
    padding: 0 6px;
  }

  .case-next__arrow {
    position: absolute;
    right: 26px;
    bottom: 22px;
    width: 44px;
    height: 44px;
  }

  .case-next__link {
    margin-bottom: 2px;
  }

  .case-cta {
    padding: 64px 0;
  }

  .case-cta__panel {
    padding: 46px 22px;
    border-radius: 24px;
  }

  .case-cta__title {
    font-size: clamp(32px, 8.6vw, 44px);
  }

  .case-cta__text {
    font-size: 12px;
  }

  .case-footer {
    padding-top: 48px;
  }

  .case-footer__top {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 34px;
  }

  .case-footer__top > p {
    max-width: 340px;
  }

  .case-footer__nav,
  .case-footer__contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px 18px;
  }

  .case-footer__bottom {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 17px 0;
  }

  .case-footer__since {
    margin-left: 0;
  }

  .case-footer__word {
    font-size: 26vw;
    margin-bottom: -1vw;
  }

  .case-lightbox {
    width: 96vw;
    max-height: 94vh;
    border-radius: 14px;
  }

  .case-lightbox__figure {
    padding: 12px 12px 18px;
  }

  .case-lightbox__figure img {
    max-height: 68vh;
  }

  .case-lightbox__nav {
    top: auto;
    bottom: 14px;
    width: 40px;
    height: 40px;
    transform: none;
  }

  .case-lightbox__nav--prev {
    left: 14px;
  }

  .case-lightbox__nav--next {
    right: 14px;
  }

  .case-lightbox__hint {
    display: none;
  }

  .js [data-reveal] {
    transform: translateY(18px);
  }
}

@media (max-width: 480px) {
  .case-brand span {
    font-size: 12px;
  }

  .case-header__right {
    gap: 8px;
  }

  .case-lang a {
    min-width: 27px;
    height: 23px;
    font-size: 8px;
  }

  .case-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .case-btn {
    width: 100%;
  }

  .case-hero__cover figcaption span:last-child {
    display: none;
  }

  .case-details {
    padding: 20px 17px 17px;
  }

  .case-details dl > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .case-share {
    flex-direction: column;
    align-items: stretch;
  }

  .case-share__btn {
    justify-content: center;
  }

  .case-footer__bottom > span:first-child {
    flex-basis: 100%;
  }

  .case-lightbox__bar {
    padding: 10px 12px;
  }
}

@media (max-width: 1180px) {
  .case-gallery__grid--cols-5,
  .case-gallery__grid--cols-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .case-gallery__grid--cols-4,
  .case-gallery__grid--cols-5,
  .case-gallery__grid--cols-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .case-gallery__grid--cols-2,
  .case-gallery__grid--cols-3,
  .case-gallery__grid--cols-4,
  .case-gallery__grid--cols-5,
  .case-gallery__grid--cols-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-single img {
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .case-gallery__grid--cols-2,
  .case-gallery__grid--cols-3,
  .case-gallery__grid--cols-4,
  .case-gallery__grid--cols-5,
  .case-gallery__grid--cols-6 {
    grid-template-columns: 1fr;
  }
}

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

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

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

/* No-JS: keep the content readable and the navigation available. */
.no-js .case-menu-btn {
  display: none;
}

.no-js .case-nav {
  display: flex;
}

@media (max-width: 1020px) {
  .no-js .case-nav {
    display: none;
  }
}

/* Case-study layout refinements. */
.case-hero__title {
  font-size: clamp(32px, 4.2vw, 40pt);
}

.case-overview {
  padding-top: 30px;
  padding-bottom: 30px;
}

.case-prose > p:first-child {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: normal;
}

.case-gallery {
  padding-top: 35px;
  padding-bottom: 35px;
}

/* Case-study CTA: shared UnicornStudio scene over the existing gradient. */
.case-cta__panel {
  isolation: isolate;
}

.case-cta__unicorn {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  opacity: 1;
  mix-blend-mode: screen;
  filter: brightness(1.9) saturate(1.6) contrast(1.15);
}

.case-cta__unicorn canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  transform: scaleY(1.625);
  transform-origin: center center;
}

html.motion-off .case-cta__unicorn {
  opacity: 0 !important;
  visibility: hidden;
}

/* Keep the case hero footer close to the hero content. */
.case-hero__foot {
  margin-top: 5px;
}

/* Next-case section: constrain vertical spacing. */
.case-next {
  padding-top: 42px;
  padding-bottom: 42px;
}

/* Case CTA: constrain vertical section spacing only. */
.case-cta {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* Match the home page's floating dark navigation dock. */
.case-header {
  padding: 14px 0 0;
  border: 0;
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: padding 0.4s var(--ease);
}

.case-header.is-scrolled {
  padding-top: 9px;
  border: 0;
  background: transparent !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.case-header__inner {
  height: 74px;
  padding: 0 11px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: linear-gradient(118deg, rgba(17, 13, 26, 0.88) 0%, rgba(9, 7, 14, 0.72) 100%);
  box-shadow: 0 26px 70px -36px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  transition: height 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.case-header.is-scrolled .case-header__inner {
  height: 64px;
  background: linear-gradient(118deg, rgba(15, 12, 22, 0.95) 0%, rgba(8, 7, 13, 0.85) 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 52px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.case-brand {
  gap: 12px;
}

.case-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  filter: drop-shadow(0 4px 12px rgba(215, 35, 99, 0.24));
}

.case-brand span {
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.case-nav {
  gap: 3px;
}

.case-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 999px;
  color: rgba(246, 242, 235, 0.62);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  transition: color 0.3s ease, background 0.3s ease;
}

.case-nav a::before {
  content: '';
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.9;
}

.case-nav a::after {
  display: none;
}

.case-nav a:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.07);
}

.case-header__right {
  gap: 12px;
}

.case-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.case-lang a {
  width: 34px;
  height: 34px;
  min-width: 0;
  border: 1px solid rgba(215, 35, 99, 0.7);
  border-radius: 50%;
  color: #FFA4C8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.case-lang a:hover {
  border-color: #FF5F9E;
  background: rgba(215, 35, 99, 0.14);
  color: var(--cream);
}

.case-lang a.is-active {
  background: rgba(215, 35, 99, 0.2);
  border-color: var(--primary);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 95, 158, 0.18);
}

.case-header__cta {
  min-height: 46px;
  gap: 12px;
  padding: 0 8px 0 20px;
  border: 0;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 38px -18px rgba(215, 35, 99, 0.7);
}

.case-header__cta svg {
  width: 30px;
  height: 30px;
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.4s var(--ease);
}

.case-header__cta:hover {
  border: 0;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 24px 48px -18px rgba(169, 59, 255, 0.58);
}

.case-header__cta:hover svg {
  transform: rotate(45deg);
}

.case-menu-btn {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.case-menu-btn svg {
  display: none;
}

.case-menu-btn::before,
.case-menu-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cream);
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease);
}

.case-menu-btn::before { top: 20px; }
.case-menu-btn::after { top: 27px; }

@media (max-width: 1024px) {
  .case-header {
    padding-top: 10px;
  }

  .case-header__inner {
    height: 64px;
    padding: 0 9px 0 16px;
    border-radius: 18px;
  }

  .case-header.is-scrolled .case-header__inner {
    height: 60px;
  }

  .case-nav {
    display: none;
  }

  .case-header__cta {
    display: none;
  }

  .case-menu-btn {
    display: grid;
  }

  .case-mobile-nav {
    top: 74px;
  }
}

:root {
  --gradient-brand: linear-gradient(115deg, #D72363 0%, #A93BFF 52%, #3155FF 100%);
}
