/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("assets/fonts/NeueHaasDisplayRoman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("assets/fonts/NeueHaasDisplayMediu.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Misto";
  src: url("assets/fonts/Misto.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Modelista Signature";
  src: url("assets/fonts/Modelistasignature-ownAV.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kharkiv Tone";
  src: url("assets/fonts/Kharkiv Tone 04.10.2020.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --blue: #0500ff;
  --gray: #888888;
  --light-bg: #f4f4f4;
  --font: "Inter Tight", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Grid */
  --gutter: 20px;
  --grid-width: 1372px; /* 12×96 + 11×20 */

  /* Responsive spacing (mobile defaults) */
  --margin: 24px;
  --section-gap: 72px;
}

@media (min-width: 768px) {
  :root {
    --section-gap: 120px;
  }
}

@media (min-width: 1024px) {
  :root {
    --margin: 34px;
    --section-gap: 140px;
  }
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html.lenis {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 104px;
  z-index: 900;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.82) 18%,
    rgba(255, 255, 255, 0.64) 40%,
    rgba(255, 255, 255, 0.36) 68%,
    rgba(255, 255, 255, 0.12) 88%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 30%,
    rgba(0, 0, 0, 0.58) 62%,
    rgba(0, 0, 0, 0.18) 86%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 30%,
    rgba(0, 0, 0, 0.58) 62%,
    rgba(0, 0, 0, 0.18) 86%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

body:has(nav.has-bg:not(.hidden))::before {
  opacity: 1;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   UTILITY
   ============================================================ */
.desk-br {
  display: none;
}

@media (min-width: 1024px) {
  .desk-br {
    display: block;
  }
}

@media (min-width: 768px) {
  .mob-br {
    display: none;
  }
}

/* ------------------------------------------------------------
   REVEAL — scroll-triggered text entrance (tech-studio dialect)
   Classes (apply in markup):
     .reveal        → labels, headlines, section H2/H3 (blur + 6px rise)
     .reveal-group  → parent; its direct children stagger in 40ms apart
     .reveal-num    → numeric badges, counters ("01/") — scale 0.88→1
     .reveal-h1     → hero H1 one-time signature (letter-spacing collapse)
   Optional per-element:
     style="--reveal-delay: 50ms"   delay this element's reveal
   JS (inline snippet, see README in chat) toggles .is-in on intersect.
------------------------------------------------------------ */
.reveal,
.reveal-block,
.reveal-group > *,
.reveal-num {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal {
  filter: blur(6px);
  transform: translateY(6px);
  transition: opacity 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-block {
  transform: translateY(var(--reveal-rise, 8px));
  transition: opacity var(--reveal-dur, 500ms) cubic-bezier(0.2, 0.8, 0.2, 1),
    transform var(--reveal-dur, 500ms) cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-group > * {
  transform: translateY(4px);
  transition: opacity 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--reveal-i, 0) * 40ms);
}

.reveal-num {
  transform: scale(0.88);
  transition: opacity 450ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-h1 {
  letter-spacing: var(--reveal-lspace, -0.08em);
  transition: letter-spacing var(--reveal-dur, 600ms)
    cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in,
.reveal-block.is-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.reveal-group.is-in > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-num.is-in {
  opacity: 1;
  transform: scale(1);
}

.reveal-h1.is-in {
  letter-spacing: normal;
}

/* Staged child — animates when its .reveal-block or .reveal ancestor gains .is-in.
   Use for e.g. metadata tables that should follow a label+paragraph reveal. */
.reveal-staged {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 100ms);
}
.reveal-block.is-in .reveal-staged,
.reveal.is-in .reveal-staged {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-block,
  .reveal-group > *,
  .reveal-num,
  .reveal-h1,
  .reveal-staged {
    opacity: 1;
    filter: none;
    transform: none;
    letter-spacing: normal;
    transition: none;
  }
}

/* ============================================================
   NAV — mobile base (2-col, hamburger visible)
   ============================================================ */
nav {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  width: auto;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 12px 16px;
  box-sizing: border-box;
  gap: 0;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    transform 0.3s ease;
}

nav.hidden {
  transform: translateY(-120%);
  pointer-events: none;
}

nav.has-bg {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo {
  grid-column: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0;
  transition: color 0.3s ease;
}

nav.dark .logo {
  color: #000000;
}

.nav-label,
.nav-links li a,
.nav-cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.nav-cta {
  color: var(--white);
}

.nav-label,
.nav-links li a,
.nav-cta {
  opacity: 1;
}

.nav-links li a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.logo,
.nav-links li a {
  will-change: transform;
}

.logo:hover,
nav.dark .logo:hover,
.nav-links li a:hover {
  color: var(--blue);
  opacity: 1;
}

nav:not(.has-bg) .logo:hover,
nav:not(.has-bg) .nav-links li a:hover {
  color: var(--white);
  opacity: 1;
}

/* Mobile: hide label, links, CTA; show hamburger */
.nav-label,
.nav-actions,
.nav-links,
.nav-cta {
  display: none;
}

.nav-label {
  grid-column: 6;
}

.nav-links {
  grid-column: 9 / span 3;
  list-style: none;
  gap: 40px;
}

.nav-cta {
  grid-column: 12;
  justify-self: end;
  border: 1px solid var(--white);
  padding: 10px 24px;
  width: fit-content;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.2s, color 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-cta::before {
  content: "";
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 0;
  height: 0;
  background: var(--blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.9s cubic-bezier(0.33, 1, 0.68, 1), height 0.9s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: -1;
  pointer-events: none;
}

.nav-cta:hover {
  color: var(--white);
  border-color: var(--blue);
}

.nav-cta:hover::before {
  width: 400px;
  height: 400px;
}

nav:not(.has-bg) .nav-cta:hover {
  color: var(--blue);
  border-color: var(--white);
}

nav:not(.has-bg) .nav-cta::before {
  background: var(--white);
}

.nav-hamburger {
  display: flex;
  grid-column: 2;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0;
  padding: 8px 0;
  transition: opacity 0.2s;
  align-items: center;
  line-height: 1;
}

.nav-hamburger::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  line-height: 1;
  display: block;
  margin-left: 10px;
}

.nav-hamburger:hover {
  opacity: 0.5;
}

nav.has-bg .nav-hamburger {
  color: var(--black);
}

nav.has-bg .nav-hamburger::after {
  background: var(--black);
}

@media (max-width: 1023px) {
  nav.has-bg .logo {
    color: var(--black);
  }
}

/* NAV — desktop */
@media (min-width: 1024px) {
  nav {
    display: flex;
    align-items: center;
    gap: 0;
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 14px 24px;
  }

  nav.has-bg {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body::before {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 14px 24px 14px 32px;
    margin-block: -14px;
    margin-right: -24px;
    transition:
      background 0.3s ease,
      backdrop-filter 0.3s ease;
  }

  nav.has-bg .nav-actions {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav-links,
  .nav-cta {
    display: flex;
  }

  nav.has-bg .nav-links li a,
  nav.has-bg .nav-cta {
    color: var(--black);
  }

  nav.has-bg .nav-cta {
    border-color: rgba(0, 0, 0, 0.5);
  }

  nav.has-bg .nav-links li a:hover {
    color: var(--blue);
  }

  nav.has-bg .nav-cta::before {
    background: var(--blue);
  }

  nav.has-bg .nav-cta:hover {
    color: var(--white);
    border-color: var(--blue);
  }

  .nav-links {
    gap: 32px;
    margin: 0;
    padding: 0;
  }

  .nav-cta {
    margin-left: 40px;
  }

  .nav-hamburger {
    display: none;
  }
}

@media (min-width: 1200px) {
  .nav-links {
    gap: 40px;
  }
}

/* ============================================================
   HERO — mobile base
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8, 8, 21, 0.85) 0%,
      rgba(8, 8, 21, 0.45) 20%,
      rgba(8, 8, 21, 0) 50%
    ),
    linear-gradient(
      135deg,
      rgba(8, 8, 21, 0.72) 0%,
      rgba(8, 8, 21, 0.35) 30%,
      rgba(8, 8, 21, 0) 58%
    );
  z-index: 1;
  pointer-events: none;
}

.hero-info {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--margin);
  right: var(--margin);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  z-index: 2;
}

.hero-info-block--left {
  grid-column: 1;
}

.hero-info-block--right {
  grid-column: 2;
  justify-self: end;
}

.hero-info-block p {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  white-space: nowrap;
  text-transform: uppercase;
}

.hero-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  font-family: "Inter Tight", sans-serif;
  font-size: calc((100vw - 16px) / 3);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.85;
  color: var(--white);
  white-space: normal;
  word-break: keep-all;
  text-align: left;
  width: 100%;
  padding: 0 16px 0 0;
  box-sizing: border-box;
  margin: 0;
  text-box-trim: trim-end;
  text-box-edge: cap alphabetic;
  color: transparent;
  background: rgba(255, 255, 255, var(--name-opacity, 0.5));
  -webkit-background-clip: text;
  background-clip: text;
}

/* HERO — tablet (600px+): single-line name */
@media (min-width: 600px) {
  .hero-name {
    font-size: calc((100vw - 48px) / 5.6);
    white-space: nowrap;
    text-align: center;
    padding: 0 var(--margin);
  }
}

/* HERO — desktop (1024px+) */
@media (min-width: 1024px) {
  .hero-video {
    object-position: left center;
  }

  .hero-overlay {
    display: block;
  }

  .hero-info {
    left: 0;
    right: 0;
    padding: 0 var(--margin);
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero-info-block--left {
    grid-column: 5;
  }

  .hero-info-block--right {
    grid-column: 8;
    justify-self: start;
  }

  .hero-name {
    font-size: 17.15vw;
    white-space: nowrap;
    text-align: center;
    padding: 0 var(--margin);
  }
}

@media (min-width: 1200px) {
  .hero-info-block--left {
    grid-column: 6;
  }

  .hero-info-block--right {
    grid-column: 9;
  }
}

/* ============================================================
   WAI — mobile/tablet block + hero (desktop) overlay
   ============================================================ */
.wai-headline {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: 0;
  margin: 0;
}

.wai-jump {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-top: 32px;
  text-decoration: none;
  width: fit-content;
}

.wai-jump span {
  opacity: 1;
}

.wai-arrow-img {
  display: block;
  width: 145px;
  height: 44px;
  margin-top: -5px;
}

.wai-notes {
  position: absolute;
  width: 49.39%;
  right: 10.67%;
  bottom: 16.43%;
  height: auto;
  pointer-events: none;
}


/* Hero WAI overlay — all breakpoints */
.hero-wai {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(var(--nav-h, 55px) + 34px);
  left: var(--margin);
  right: var(--margin);
  z-index: 3;
  color: var(--white);
  pointer-events: none;
}


.hero-wai-headline {
  color: var(--white);
  font-size: 20px;
  width: 100%;
}


.hero-wai-jump {
  color: var(--white);
  margin-top: 32px;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-wai-headline {
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .hero-wai {
    top: calc(var(--nav-h, 55px) + 34px);
    left: var(--margin);
    right: auto;
  }

  .hero-wai-headline {
    font-size: 20px;
    max-width: 360px;
  }

  .hero-wai-jump {
    margin-top: 48px;
  }
}

@media (min-width: 1200px) {
  .hero-wai {
    left: var(--margin);
  }
}

@media (min-width: 1440px) {
  .hero-wai-headline {
    font-size: 28px;
    max-width: 500px;
  }
}

/* ============================================================
   CASES — mobile base
   ============================================================ */
.cases {
  background: var(--white);
  color: var(--black);
  margin-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  scroll-margin-top: 60px;
}

.case-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "label"
    "image"
    "bottom";
  min-height: auto;
}

.case-item--no-label {
  grid-template-rows: auto auto;
  grid-template-areas:
    "image"
    "bottom";
  margin-top: 48px;
}

.case-section-label {
  grid-area: label;
  align-self: start;
  padding: 0 var(--margin);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0;
}

.case-bottom {
  grid-area: bottom;
  align-self: end;
  padding: 24px var(--margin) 0;
  display: flex;
  flex-direction: column;
}

.case-title {
  margin: 0;
  width: 290px;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: 0;
  text-wrap: balance;
}

.case-title + .case-desc {
  margin-top: 24px;
}

.keep-exploring-title + .keep-exploring-desc {
  margin-top: 16px;
}

.case-desc {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: pretty;
  color: var(--black);
  margin-top: 16px;
  max-width: 430px;
}

.case-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.2s, color 0.2s;
}

.case-link:hover {
  opacity: 1;
  color: #3638FF;
}

.case-arrow-img {
  display: block;
  width: 110px;
  height: 44px;
  margin-top: -5px;
}

.case-image {
  grid-area: image;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin: 0 var(--margin);
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.case-image-link {
  display: contents;
}

.case-image-link > .case-image {
  cursor: pointer;
}

.case-image picture {
  display: block;
  overflow: hidden;
}

.case-image img {
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .case-image-link:hover .case-image img,
  .case-image-link:focus-visible .case-image img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-image img {
    transition: none;
  }
  .case-image-link:hover .case-image img,
  .case-image-link:focus-visible .case-image img {
    transform: none;
  }
}

/* CASES — desktop */
@media (min-width: 1024px) {
  .cases {
    margin-top: 150px;
  }

  .case-item {
    grid-template-columns: 344px 1fr;
    column-gap: 38px;
    grid-template-areas:
      "label image"
      "bottom image";
    grid-template-rows: auto 1fr;
  }

  .case-item--no-label {
    grid-template-areas: "bottom image";
    grid-template-rows: 1fr;
    margin-top: 34px;
  }

  .case-section-label {
    padding: 0 20px 0 var(--margin);
    margin-bottom: 0;
    align-self: start;
  }

  .case-bottom {
    padding: 0 20px 0 var(--margin);
  }

  .case-desc {
    margin-top: 24px;
  }

  .case-link {
    margin-top: 48px;
  }

  .case-image {
    aspect-ratio: auto;
    overflow: visible;
    margin: 0;
    margin-right: var(--margin);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .case-image img {
    width: calc(100vw * 1024 / 1440);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1024 / 650;
    object-fit: contain;
  }
}

/* ============================================================
   SKILLS / WHAT CAN I DO FOR YOU — mobile base
   ============================================================ */
.skills {
  background: #0d08c5;
  color: var(--white);
  padding: 24px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.skills-left-wrap {
  grid-column: 1;
  padding: 0 var(--margin) 64px;
  max-width: 560px;
}

.skills-left {
  padding: 0;
  width: 100%;
}

.skills-label {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0;
  display: block;
  margin-bottom: 16px;
}

.skills-headline {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--white);
  letter-spacing: 0;
}

.skills-items {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 328px));
  gap: 24px;
  align-self: start;
  justify-content: start;
  min-width: 0;
  overflow-x: clip;
  padding: 0 var(--margin);
}

.skills-item {
  container-type: inline-size;
  background: #0d08c5;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.skills-item--white {
  background: var(--white);
  align-items: center;
  justify-content: center;
  border-left: none;
}

.skills-illus {
  width: 65%;
  height: auto;
  object-fit: contain;
  display: block;
}

img[src="assets/buildings.svg"].skills-illus {
  width: 52%;
}

img[src="assets/violin.svg"].skills-illus {
  width: 65%;
}

@media (min-width: 1200px) {
  img[src="assets/violin.svg"].skills-illus {
    width: 41.6%;
  }
}

/* Illustration animation — stroke jitter via JS */
.globe-svg,
.violin-svg,
.buildings-svg,
.plan-svg {
  display: block;
}

.skills-item-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skills-num {
  font-family: var(--font);
  font-size: clamp(18px, 7.5cqi, 24px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0;
}

.skills-title {
  font-family: var(--font);
  font-size: clamp(20px, 10cqi, 24px);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--white);
  letter-spacing: 0;
}

.skills-desc {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0;
}

.skills-note {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0;
}

/* SKILLS — single-column (boxes stack) */
@media (max-width: 599px) {
  .skills-left-wrap {
    padding-bottom: 40px;
  }
}

/* SKILLS — tablet */
@media (min-width: 768px) {
  .skills-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px var(--gutter);
  }

  .skills-item {
    max-width: 328px;
  }
}

/* SKILLS — desktop */
@media (min-width: 1200px) {
  .skills {
    padding: 34px 0;
  }

  .skills-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    padding: 0 var(--margin);
  }

  .skills-headline {
    font-size: 24px;
  }
}

@media (min-width: 1200px) {
  .skills-left-wrap {
    grid-column: 1 / 6;
    grid-row: 1;
    align-self: stretch;
    position: relative;
    z-index: 1;
    padding: 0;
  }

  .skills-items {
    grid-column: 7 / 13;
    grid-row: 1;
    align-self: stretch;
    grid-template-columns: 1fr 1fr;
    gap: 64px 20px;
    padding: 0;
  }

  .skills-item {
    max-width: 448px;
  }

  .skills-title {
    font-size: clamp(24px, 10cqi, 32px);
  }

  .skills-desc {
    font-size: clamp(16px, 3.3cqi + 5px, 20px);
  }
}

@media (min-width: 1024px) {
  .skills-headline {
    font-size: clamp(24px, calc(0.962vw + 14.15px), 28px);
  }
}

/* SKILLS — desktop sticky */
@media (min-width: 1200px) {
  .skills-left {
    position: sticky;
    top: 34px;
    transition: top 0.3s ease;
  }

  nav:not(.hidden) ~ .skills .skills-left {
    top: calc(var(--nav-h, 55px) + 34px);
  }
}

/* ============================================================
   CONTACT — mobile base
   ============================================================ */
.contact-footer-wrap {
  margin-top: var(--section-gap);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .contact-footer-wrap {
    margin-top: 0;
  }
}

.contact {
  background: var(--white);
  color: var(--black);
  padding: 24px var(--margin) 80px;
  flex: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.contact-label {
  display: block;
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.4;
}

.contact-content {
  grid-column: 1;
  margin-top: 8px;
}

.contact-headline {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: 0;
}

.contact-marked {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.contact-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-50%);
  display: block;
  object-fit: fill;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 24px;
  column-gap: 32px;
  margin-top: 40px;
}

.contact-cta {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0;
  border: 1px solid rgba(0, 0, 0, 0.5);
  padding: 12px 32px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.2s, color 0.8s cubic-bezier(0.33, 1, 0.68, 1);
  width: 100%;
  text-align: center;
}

.contact-cta::before {
  content: "";
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 0;
  height: 0;
  background: var(--blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.9s cubic-bezier(0.33, 1, 0.68, 1), height 0.9s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: -1;
  pointer-events: none;
}

.contact-cta:hover {
  color: var(--white);
  border-color: var(--blue);
}

.contact-cta:hover::before {
  width: 1200px;
  height: 1200px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  transition: opacity 0.2s, color 0.2s;
}

.contact-link:last-child {
  margin-left: 0;
}

.contact-link:hover {
  color: #0d08c5;
}

.contact-link:hover .contact-arrow {
  filter: brightness(0) saturate(100%) invert(8%) sepia(99%) saturate(7461%) hue-rotate(247deg) brightness(96%) contrast(118%);
}

.contact-arrow {
  display: block;
  width: 22px;
  height: 21px;
  flex-shrink: 0;
  object-fit: contain;
  overflow: visible;
  transition: filter 0.2s;
}

/* mobile/tablet: flex column, bio visible beside/below image */
.contact-photo {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  width: 100%;
  margin-top: 72px;
}

.contact-photo-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 328;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-photo-inner > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-bio-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.contact-bio-card p {
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.1;
  color: rgba(0, 0, 0, 0.5);
  margin: 0;
}


/* CONTACT — tablet */
@media (min-width: 768px) {
  .contact {
    padding-top: 120px;
  }

  .contact-headline {
    max-width: 560px;
  }

  .contact-cta {
    width: auto;
  }

  .contact-actions {
    column-gap: 48px;
    justify-content: flex-start;
  }

  .contact-link:last-child {
    margin-left: 0;
  }

  .contact {
    padding-bottom: 120px;
  }

  .contact-photo {
    flex-direction: row;
    align-items: stretch;
    margin-top: 120px;
    width: 100%;
  }

  .contact-photo-inner {
    width: calc(50vw - var(--margin) - 20px);
    flex-shrink: 0;
  }

  .contact-bio-card {
    flex: 1;
    min-width: 0;
  }
}

/* CONTACT — desktop */
@media (min-width: 1024px) {
  .contact-footer-wrap {
    min-height: auto;
  }

  .contact {
    padding: 140px var(--margin);
    min-height: 70vh;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .contact-right {
    grid-column: 7 / 13;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    max-width: 560px;
    align-self: center;
  }

  .contact-label {
    width: auto;
    margin-bottom: 12px;
  }

  .contact-content {
    margin-top: 0;
  }

  .contact-headline {
    max-width: 625px;
  }

  .contact-actions {
    flex-wrap: nowrap;
    column-gap: 24px;
    margin-top: 40px;
  }

  /* desktop: revert to block with absolute hover card */
  .contact-photo {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 390 / 328;
    grid-column: 2 / 6;
    grid-row: 1;
    margin-top: 0;
    width: 390px;
    max-width: 100%;
    align-self: center;
  }

  .contact-photo-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .contact-bio-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
    pointer-events: none;
  }

  .contact-bio-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0;
    transition: opacity 200ms ease 180ms; /* delayed exit — after text fades */
  }

  .contact-photo:hover .contact-bio-card {
    pointer-events: auto;
  }

  .contact-photo:hover .contact-bio-card::before {
    opacity: 1;
    transition: opacity 200ms ease; /* immediate enter */
  }

  .contact-bio-card p {
    position: relative;
    color: var(--white);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 250ms ease, transform 250ms ease; /* quick exit, no delay */
  }

  .contact-photo:hover .contact-bio-card p {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 150ms; /* both paragraphs enter together */
  }
}

@media (min-width: 1024px) {
  .contact-headline {
    font-size: clamp(24px, calc(0.962vw + 14.15px), 28px);
  }
}

@media (min-width: 1200px) {
  .contact-actions {
    column-gap: 48px;
  }
}

@media (min-width: 1440px) {
  .contact-grid {
    width: var(--grid-width);
    max-width: calc(100vw - (var(--margin) * 2));
    margin: 0 auto;
  }
}

/* ============================================================
   FOOTER — mobile base (flexbox wrap)
   ============================================================ */
.site-footer {
  margin: 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  color: var(--black);
}

.site-footer-logo {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--black);
  text-decoration: none;
}

.site-footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0;
}

.site-footer-links {
  list-style: none;
  display: none;
  gap: 40px;
}

.site-footer-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-footer-links a:hover {
  opacity: 0.4;
}

.site-footer-top {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-footer-top:hover {
  color: #0d08c5;
}

/* FOOTER — tablet */
@media (min-width: 768px) {
  .site-footer-copy {
    width: auto;
    white-space: nowrap;
  }

  .site-footer-links {
    display: flex;
    gap: 24px;
  }
}

/* FOOTER — desktop */
@media (min-width: 1024px) {
  .site-footer {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    padding: 14px 24px;
  }

  .site-footer-logo {
    grid-column: 1;
  }

  .site-footer-copy {
    grid-column: 11;
    justify-self: end;
    font-size: 14px;
    width: auto;
    white-space: nowrap;
    margin-right: 40px;
  }

  .site-footer-links {
    grid-column: 9 / span 3;
    display: flex;
    gap: 32px;
    justify-content: start;
  }

  .site-footer-top {
    grid-column: 12;
    font-size: 14px;
    justify-self: end;
  }
}

@media (min-width: 1200px) {
  .site-footer-links {
    gap: 40px;
  }
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.menu-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  z-index: 2000;
  background: var(--white);
  color: var(--black);
  flex-direction: column;
  padding: 24px;
  box-sizing: border-box;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.4s ease-in-out,
    visibility 0.4s ease-in-out;
}

.menu-overlay.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  visibility: hidden;
  pointer-events: none;
  transition:
    background 0.4s ease-in-out,
    backdrop-filter 0.4s ease-in-out,
    -webkit-backdrop-filter 0.4s ease-in-out,
    visibility 0.4s ease-in-out;
}

.menu-overlay-backdrop.is-open {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.menu-overlay-logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  color: var(--black);
  text-decoration: none;
}

.menu-overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0;
  line-height: 1;
  padding: 8px 0;
  gap: 10px;
}

.menu-close-dot {
  box-sizing: border-box;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  border: 1px solid black;
  flex-shrink: 0;
}

.menu-overlay-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 32px;
  margin-top: 48px;
  padding-bottom: 80px;
}

.menu-overlay-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
}

.menu-overlay-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
}

.menu-overlay-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  border: 1px solid var(--black);
  padding: 12px 20px;
  height: 45px;
  letter-spacing: 0;
}

.menu-overlay-externals {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-overlay-external {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
}

.arrow-icon {
  display: inline-block;
  width: 22px;
  height: 21px;
  flex-shrink: 0;
  object-fit: fill;
}

/* ============================================================
   CASE STUDY — HERO
   ============================================================ */
.case-hero {
  background: var(--white);
  color: var(--black);
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--margin);
}

.case-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  opacity: 0.5;
  white-space: nowrap;
}

.case-hero-title {
  font-family: var(--font);
  font-size: 38px;
  font-weight: 500;
  line-height: 0.8;
  text-transform: lowercase;
}

.case-hero + .scene1,
.case-hero + .case-full-img--square-mob {
  margin-top: 24px;
}

.case-title-mask-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.case-hero-title .case-title-mask-word {
  overflow: clip;
  overflow-clip-margin: 0.34em;
}

.case-hero-title.case-title-mask--done .case-title-mask-word {
  overflow: visible;
}

.case-title-mask-word-inner {
  display: inline-block;
  will-change: transform;
}

.case-title-mask-char {
  display: inline-block;
  will-change: transform;
}

@media (min-width: 1024px) {
  .case-hero-grid {
    margin-left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    align-items: end;
  }

  .case-hero-label {
    grid-column: 1 / span 2;
    align-self: end;
    font-size: 16px;
    opacity: 0.7;
  }

  .case-hero-title {
    grid-column: 5 / -1;
    font-size: clamp(60px, 6.1vw, 88px);
  }
}

@media (min-width: 1200px) {
  .case-hero-title {
    grid-column: 6 / -1;
  }
}

.case-full-img {
  display: block;
  width: 100%;
  height: auto;
}

.case-full-img--square-mob .case-full-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.case-full-img--curtain {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 85% center;
}

@media (min-width: 1024px) {
  .case-full-img--curtain {
    aspect-ratio: auto;
    object-fit: initial;
    object-position: initial;
  }
}

@media (min-width: 1024px) {
  .case-full-img--square-mob .case-full-img {
    aspect-ratio: auto;
    object-fit: initial;
  }
}

picture.case-full-img--gap,
.case-full-img--gap {
  display: block;
  margin-top: 72px;
}

@media (min-width: 1024px) {
  .case-full-img--gap {
    margin-top: 200px;
  }
}

/* ============================================================
   SCENE 1 — BACKGROUND + BROWSER OVERLAY
   ============================================================ */
.scene1 {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dacfcc;
}

.scene1-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene1-browser {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 48px);
  height: auto;
}

@media (min-width: 1024px) {
  .scene1 {
    aspect-ratio: 1440 / 900;
  }

  .scene1-browser {
    width: 75%;
  }
}

/* ---- Before / After ---- */

.before-after {
  background: #f1f4f9;
  padding: 120px var(--margin);
}

@media (max-width: 767px) {
  .before-after {
    padding: 24px var(--margin) 72px;
  }
}

.before-after-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.before-after-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.before-col {
  order: 1;
}

.after-col {
  order: 2;
}

.after-col:nth-child(2) {
  margin-top: 24px;
}

.before-after-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--black);
}

.before-after-img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .before-after-img-wrap {
    width: 75%;
  }
}

.before-after-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.before-after-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.sensitive-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.sensitive-icon {
  width: 42px;
  height: auto;
  margin-bottom: 12px;
}

.sensitive-title {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--black);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.sensitive-desc {
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--black);
  letter-spacing: 1px;
  max-width: 380px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.sensitive-btn {
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  background: none;
  border: 1.4px solid rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.2s;
}

.sensitive-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
  .before-after-col:nth-child(3) .sensitive-overlay {
    display: none;
  }
}

@media (min-width: 768px) {
  .before-after-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: 48px;
  }

  .before-col,
  .after-col {
    order: unset;
  }

  .after-col:nth-child(2) {
    margin-top: 0;
  }

  .before-col:nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1;
  }

  .after-col:nth-child(2) {
    grid-column: 7 / 13;
    grid-row: 1;
  }

  .before-col:nth-child(3) {
    grid-column: 1 / 7;
    grid-row: 2;
  }

  .after-col:nth-child(4) {
    grid-column: 7 / 13;
    grid-row: 2;
  }
}

/* ============================================================
   CASE STUDY — PROBLEM & GOALS
   ============================================================ */

.case-prob-goals {
  background: var(--white);
  color: var(--black);
  padding: 34px var(--margin) 72px;
}

.case-prob-goals-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.case-prob-goals-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 560px;
}

.case-prob-goals-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-prob-goals-label {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.5;
}

.case-prob-goals-title {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.case-prob-goals-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-prob-goals-item {
  display: flex;
  align-items: flex-start;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.6;
}

.case-prob-goals-num {
  flex-shrink: 0;
  width: 50px;
}

@media (min-width: 1024px) {
  .case-prob-goals {
    padding-bottom: 200px;
  }

  .case-prob-goals-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
  }

  .case-prob-goals-col:first-child {
    grid-column: 1 / 7;
  }

  .case-prob-goals-col:last-child {
    grid-column: 7 / 13;
  }
}

/* ============================================================
   CASE STUDY — USER PERSONA
   ============================================================ */
.case-persona {
  display: flex;
  flex-direction: column;
}

.case-persona-card {
  background: #4f3a3a;
  color: #ffffff;
  padding: 24px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.case-persona-card .case-overview-label {
  color: #ffffff;
}

.case-persona-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-persona-name-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-persona-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 40px;
  line-height: normal;
  text-transform: uppercase;
  margin: 0;
}

.case-persona-desc,
.case-persona-goal {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
}

@media (max-width: 1023px) {
  .case-persona-desc {
    max-width: 500px;
  }
}

.case-persona-goals {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-persona-quote {
  width: 42px;
  height: 32px;
}

.case-persona-goals-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-persona-photo {
  overflow: hidden;
}

.case-persona-photo img {
  display: block;
  width: 140%;
  margin-left: -20%;
  height: auto;
}

@media (min-width: 1024px) {
  .case-persona {
    position: relative;
  }

  .case-persona-card {
    position: absolute;
    left: 34px;
    top: 34px;
    width: 344px;
    padding: 32px;
    border-radius: 16px;
    background: rgba(79, 58, 58, 0.9);
    z-index: 1;
  }

  .case-persona-photo {
    position: static;
    overflow: visible;
  }

  .case-persona-photo img {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
}

/* ============================================================
   CASE STUDY — YOUR ORDER
   ============================================================ */
.case-your-order {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.case-your-order-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.case-your-order-card {
  position: absolute;
  left: 27.78%;
  top: 21.11%;
  width: 44.44%;
  height: auto;
}

@media (min-width: 1024px) {
  .case-your-order {
    aspect-ratio: auto;
    overflow: visible;
  }

  .case-your-order-bg {
    position: static;
    width: 100%;
    height: auto;
    object-fit: fill;
  }

  .case-your-order-card {
    left: 2.36vw;
    top: 17.29vw;
    width: 24.86vw;
    height: auto;
  }
}

/* ============================================================
   CASE STUDY — USER FLOW MAPPING
   ============================================================ */
.case-flow {
  background: var(--white);
  color: var(--black);
  padding: 24px var(--margin) 80px;
}

.case-flow-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.case-flow-desc {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
}

.case-flow-img {
  margin-top: 48px;
}

.case-flow-img img {
  display: block;
  width: 100%;
  height: auto;
}


@media (min-width: 1024px) {
  .case-flow {
    padding-top: 34px;
  }

  .case-flow-img {
    margin-top: 64px;
    overflow: visible;
  }

  .case-flow-img img {
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
    min-width: 0;
  }
}

/* ============================================================
   CASE STUDY — WIREFRAMING & INTERACTION DESIGN
   ============================================================ */
.case-wireframe {
  background: #F5F2F3;
  color: var(--black);
  padding: 24px var(--margin) 72px;
}

.case-wireframe-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin-bottom: 60px;
}

.case-wireframe-desc {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
}

.case-wireframe-grid {
  columns: 2;
  gap: 11px;
}

.case-wireframe-grid img {
  display: block;
  width: 100%;
  height: auto;
  break-inside: avoid;
  margin-bottom: 11px;
}

@media (min-width: 1024px) {
  .case-wireframe {
    padding: 34px var(--margin) 120px;
  }

  .case-wireframe-grid {
    columns: 4;
    gap: 11px;
  }

  .case-wireframe-grid img {
    margin-bottom: 11px;
  }
}

/* ============================================================
   CASE STUDY — PRELIMINARY IA & WIREFRAMING
   ============================================================ */

.case-ia {
}

.case-ia-grid {
  display: flex;
  flex-direction: column;
}

.case-ia-left {
  background: #060d2d;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-ia-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px var(--margin) 0;
  max-width: 594px;
}

.case-ia-desc {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.8;
}

.case-ia-img {
  display: block;
  width: 100%;
  height: auto;
}

.case-ia-left .case-ia-img {
  padding: 34px 24px 24px;
}

.case-ia-right {
  overflow: hidden;
}

@media (min-width: 768px) {
  .case-ia-grid {
    flex-direction: row;
  }

  .case-ia-left,
  .case-ia-right {
    width: 50%;
    flex-shrink: 0;
  }

  .case-ia-right .case-ia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 1024px) {
  .case-ia-left .case-ia-img {
    padding: 0 34px 34px;
  }
}

/* ============================================================
   CASE STUDY — CONCEPT DEVELOPMENT
   ============================================================ */

.case-concept {
  background: var(--white);
  color: var(--black);
  padding: 24px var(--margin) 72px;
}

.case-concept-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.case-concept-desc {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.6;
}

.case-concept-sketches {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-concept-sketch {
  overflow: hidden;
  border-radius: 8px;
}

.case-concept-sketch img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .case-concept {
    padding-bottom: 0;
  }


  .case-concept-sketches {
    flex-direction: row;
    gap: 31px;
    margin-left: calc(-1 * var(--margin));
    margin-right: calc(-1 * var(--margin));
    padding: 0 var(--margin);
  }

  .case-concept-sketch {
    padding: 120px 0;
  }

  .case-concept-sketch--1 {
    flex: 592;
  }

  .case-concept-sketch--2 {
    flex: 742;
  }
}

/* ---- Card Design Iterations ---- */

.case-cards {
  background: #f1f4f9;
  padding: 24px var(--margin) 120px;
}

.case-cards-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.case-cards-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--black);
}

.case-cards-label--final {
  display: none;
  text-align: right;
}

.case-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 16px;
}

.case-cards-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 19px rgba(6, 29, 96, 0.1);
}

@media (min-width: 768px) {
  .case-cards {
    padding: 120px;
  }

  .case-cards-grid {
    display: flex;
    gap: 20px;
  }

  .case-cards-label--final {
    display: block;
  }

  .case-cards-item {
    flex: 1;
  }
}

/* ---- Button Design & Colour Palette ---- */

.case-btn-colour {
  display: flex;
  flex-direction: column;
}

.case-btn-colour-col {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.case-btn-colour-col--dark {
  background: #060d2d;
}

.case-btn-colour-col--light {
  background: #bfccea;
}

.case-btn-colour-label {
  position: absolute;
  top: 34px;
  left: 34px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  text-transform: uppercase;
  opacity: 0.7;
  color: white;
  z-index: 1;
}

.case-btn-colour-label--dark {
  color: var(--black);
}

.case-btn-colour-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-btn-colour-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: auto;
}

.case-btn-colour-colours {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
}

@media (max-width: 767px) {
  .case-btn-colour-overlay {
    width: 78%;
  }
}

@media (min-width: 768px) {
  .case-btn-colour {
    flex-direction: row;
  }

  .case-btn-colour-col {
    flex: 1;
  }
}

/* ---- Wave Typography ---- */

.case-wave-typo {
  background: #ffffff;
  color: var(--black);
  padding: 80px var(--margin);
}

.case-wave-typo-tag {
  font-family: "Onest", sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  color: #3638ff;
  display: block;
  margin-bottom: 16px;
}

.case-wave-typo-heading {
  font-family: "Kharkiv Tone", sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 32px;
}

.case-wave-typo-blue {
  color: #3638ff;
}

.case-wave-typo-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
  max-width: 441px;
}

.case-wave-typo-desc {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  opacity: 0.5;
  color: var(--black);
}

.case-wave-typo-btn {
  height: 48px;
  width: auto;
}

@media (min-width: 768px) {
  .case-wave-typo {
    padding: 140px var(--margin) 120px;
  }

  .case-wave-typo-tag {
    font-size: 20px;
  }

  .case-wave-typo-heading {
    font-size: 36px;
  }

  .case-wave-typo-body {
    margin-left: auto;
  }
}

@media (min-width: 1024px) {
  .case-wave-typo {
    --typo-h-size: clamp(36px, 3.33vw, 48px);
  }

  .case-wave-typo-top {
    position: relative;
  }

  .case-wave-typo-tag {
    position: absolute;
    /* Tag scales with heading at the original 20:48 ratio; top offset follows
       so tag cap-top stays aligned with heading first-line cap at every size. */
    font-size: calc(var(--typo-h-size) * 5 / 12);
    top: calc(var(--typo-h-size) * 0.0625);
    left: 0;
    margin-bottom: 0;
  }

  .case-wave-typo-heading {
    font-size: var(--typo-h-size);
    text-indent: calc((100% - var(--gutter) * 11) / 12 * 5 + var(--gutter) * 5);
  }

  .case-wave-typo-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .case-wave-typo-top {
    grid-column: 1 / -1;
  }

  .case-wave-typo-body {
    grid-column: 6 / 13;
    margin-left: 0;
  }
}

/* ============================================================
   CASE STUDY — SUBSCRIPTION / FUNDRAISER
   ============================================================ */
.case-wave-sub {
  position: relative;
}

.case-wave-sub-wave {
  display: block;
  width: 89.4%;
  height: auto;
  margin-top: 32px;
  margin-bottom: -6.25vw;
  margin-left: 16.75%;
  position: relative;
  z-index: 2;
}

.case-wave-sub-bg {
  background: url("assets/Wave/subscription%20background.svg") repeat;
  background-size: cover;
  padding: 0 10.42% 80px;
  position: relative;
}

.case-wave-sub-comment {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  text-transform: uppercase;
  color: #000000;
  opacity: 0.5;
  padding-top: 16px;
}

.case-wave-sub-inner {
  position: relative;
}

.case-wave-sub-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.case-wave-sub-progress {
  position: absolute;
  left: 37.2%;
  bottom: -30px;
  --fill: 0%;
}

.sub-progress-row {
  display: flex;
  align-items: flex-end;
}

.sub-percent-wrap {
  position: relative;
  display: inline-block;
  height: 15.1vw;
}

.sub-percent-stroke,
.sub-percent-fill {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  display: inline-block;
  height: 15.1vw;
  font-family: "Kharkiv Tone", sans-serif;
  font-weight: 400;
  font-size: 20.14vw;
  line-height: 14.4vw;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.sub-percent-stroke {
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1px white;
}

.sub-percent-fill {
  color: white;
  -webkit-text-stroke: 1px white;
  clip-path: inset(calc(100% - var(--fill)) 0 0 0);
}

.sub-fill-line {
  position: absolute;
  left: 0;
  width: 300%;
  clip-path: inset(0 0 0 20px);
  bottom: var(--fill);
  height: 1px;
  background: white;
  pointer-events: none;
}

.sub-drone-wrap {
  position: relative;
  width: 19.1vw;
  flex-shrink: 0;
  align-self: center;
  margin-left: 12px;
}

.sub-drone-outline {
  width: 100%;
  aspect-ratio: 271 / 123;
  background: url("assets/Wave/drone%20to%20fill.svg") no-repeat center /
    contain;
}

.sub-drone-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 271 / 123;
  background: url("assets/Wave/drone%20to%20fill%20filled.svg") no-repeat
    center / contain;
  clip-path: inset(calc(100% - var(--fill)) 0 0 0);
}

.case-wave-sub-stats {
  color: #ffffff;
  white-space: nowrap;
  margin-bottom: 8px;
}

.case-wave-sub-raised,
.case-wave-sub-amount {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .case-wave-sub-raised,
  .case-wave-sub-amount {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  .case-wave-sub-raised,
  .case-wave-sub-amount {
    font-size: 24px;
  }
}

/* ============================================================
   CASE STUDY — PROJECT OVERVIEW
   ============================================================ */
.case-overview {
  background: var(--white);
  color: var(--black);
  padding: 24px var(--margin) 0;
}

.case-overview--po {
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  .case-overview--po {
    padding-bottom: 120px;
  }
}

.case-overview-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-overview-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

.case-label-dot {
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--black);
}


.case-label-dot--light {
  background: var(--white);
}

.case-overview-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.case-overview-desc {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.case-overview-meta {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-meta-row {
  display: flex;
  gap: 10px;
}

.case-meta-row dt {
  font-weight: 400;
  opacity: 0.6;
  width: 100px;
  flex-shrink: 0;
}

.case-meta-row dd {
  font-weight: 500;
}

@media (max-width: 374px) {
  .case-overview-meta {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .case-overview-desc {
    max-width: 540px;
  }
}

@media (min-width: 1024px) {
  .case-overview {
    padding-top: 34px;
  }

  .case-concept {
    padding-top: 34px;
  }

  .case-ia-text {
    padding-top: 34px;
  }

  .case-overview-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
  }

  .case-overview-grid {
    gap: 16px;
  }

  .case-overview-label {
    grid-column: 1 / -1;
  }

  .case-meta-row {
    gap: 48px;
  }

  .case-overview-body {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    flex-direction: unset;
  }

  .case-overview-desc {
    grid-column: 1 / span 6;
    max-width: 540px;
    padding-right: 60px;
  }

  .case-overview-meta {
    grid-column: 7 / -1;
  }
}

@media (min-width: 1200px) {
  .case-overview-desc {
    max-width: 560px;
  }

  .case-meta-row {
    gap: 64px;
  }
}

.case-inspiration {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-top: 48px;
  padding-left: 5%;
}

@media (min-width: 1024px) {
  .case-inspiration {
    margin-top: 24px;
    margin-bottom: 140px;
  }
}

.case-inspiration picture {
  display: block;
  width: 70%;
  max-width: 1009px;
  position: relative;
  z-index: 1;
}

.case-inspiration img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .case-inspiration picture {
    width: 97%;
  }
}

.case-inspiration-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--black);
  opacity: 0.2;
  z-index: 0;
}

.case-inspiration-line:nth-child(1) {
  top: 33.4%;
}

.case-inspiration-line:nth-child(2) {
  bottom: 22.2%;
}

/* ============================================================
   CASE STUDY — TYPOGRAPHY & COLOUR
   ============================================================ */
.case-typo {
  background: rgba(191, 170, 166, 0.32);
  color: var(--black);
  padding: 24px var(--margin) 24px;
  margin-top: 72px;
}

.case-typo-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.case-typo-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-typo-desktop {
  display: flex;
  justify-content: center;
}

.case-typo-desktop picture,
.case-typo-desktop img {
  display: block;
  width: 100%;
  height: auto;
}

.case-typo-mobile {
  display: none;
}

.case-typo-cta {
  margin-top: 24px;
  align-self: flex-end;
  width: 100%;
  max-width: 172px;
}

.case-typo-arrow {
  display: block;
  width: 44% !important;
  max-width: 76px !important;
  height: auto !important;
  margin-left: auto;
  object-fit: contain;
}

.case-typo-cta-text {
  font-family: var(--font);
  font-weight: 600;
  font-size: min(1.6vw, 23px);
  line-height: 1.2;
  text-transform: uppercase;
  color: #b70600;
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .case-typo {
    padding: 34px var(--margin) 120px;
    margin-top: 120px;
  }

  .case-typo-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: var(--gutter);
  }

  .case-typo-text {
    grid-column: 1 / span 6;
    grid-row: 1;
    gap: 16px;
  }

  .case-typo-text .case-overview-desc {
    max-width: 540px;
  }

  .case-typo-desktop {
    grid-column: 2 / span 7;
    grid-row: 2;
    margin-top: 120px;
  }

  .case-typo-desktop picture,
  .case-typo-desktop img {
    width: 100%;
  }

  .case-typo-mobile {
    display: flex;
    flex-direction: column;
    grid-column: 10 / span 2;
    grid-row: 1 / span 2;
    padding-top: 45px;
    justify-content: space-between;
  }

  .case-typo-mobile > img {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 1200px) {
  .case-typo-text .case-overview-desc {
    max-width: 560px;
  }
}

/* ============================================================
   LANDING — TYPOGRAPHY SHOWCASE
   ============================================================ */
.landing-typo {
  display: flex;
  flex-direction: column;
  color: var(--black);
}

.landing-typo-left {
  padding: 0 var(--margin) 48px;
  display: flex;
  flex-direction: column;
}

.landing-typo-heading {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.5;
  padding-top: 58px;
}

.landing-typo-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.landing-typo-item {
  display: flex;
  flex-direction: column;
}

/* Mobile reorder: Neue Haas → Modelista → Misto */
.landing-typo-item--neue {
  order: 1;
}
.landing-typo-item--modelista {
  order: 2;
}
.landing-typo-item--misto {
  order: 3;
}

.landing-typo-num {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 8px;
}

.landing-typo-label {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.5;
}

.landing-typo-sample {
  font-size: 36px;
  line-height: 1.1;
  margin-top: 8px;
}

.landing-typo-sample--neue {
  font-family: "Neue Haas Grotesk", sans-serif;
}

.landing-typo-sample--misto {
  font-family: "Misto", sans-serif;
}

.landing-typo-sample--modelista {
  font-family: "Modelista Signature", cursive;
  letter-spacing: -0.01em;
}

.landing-typo-right {
  background: #ebe4e2;
}

.landing-typo-right img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 768px) {
  .landing-typo {
    flex-direction: row;
  }

  .landing-typo-left {
    flex: none;
    justify-content: center;
  }

  .landing-typo-right {
    flex: none;
    width: 50%;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .landing-typo-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
  }
}

@media (min-width: 1024px) {
  .landing-typo-left {
    flex: 1;
    padding: 97px;
    max-width: 50%;
  }

  .landing-typo-heading {
    font-size: 16px;
    padding-top: 0;
  }

  .landing-typo-items {
    gap: 36px;
    margin-top: 24px;
  }

  /* Desktop order: Neue Haas → Misto → Modelista */
  .landing-typo-item--neue {
    order: 1;
  }
  .landing-typo-item--misto {
    order: 2;
  }
  .landing-typo-item--modelista {
    order: 3;
  }

  .landing-typo-num {
    font-size: 16px;
  }

  .landing-typo-label {
    font-size: 16px;
  }

  .landing-typo-sample {
    font-size: clamp(36px, -33px + 6.73vw, 64px);
    margin-top: clamp(18px, -16.5px + 3.37vw, 32px);
  }

  .landing-typo-right {
    max-width: 50%;
  }

  .landing-typo-right img {
    height: auto;
  }
}

/* ============================================================
   SCENE — CLOTHES / DESKTOP ANIMATION
   ============================================================ */
.scene-clothes {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-clothes-back {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  object-fit: cover;
  filter: blur(2px);
}

.scene-clothes-overlay {
  position: absolute;
  inset: 0;
  background: rgba(254, 241, 225, 0.1);
}

.scene-clothes-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  margin: 0;
  font-family: "Misto", sans-serif;
  font-size: 7.7vw;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
  text-transform: capitalize;
  text-box: trim-both cap alphabetic;
}

@media (min-width: 768px) {
  .scene-clothes-logo {
    font-size: 44px;
  }
}

.scene-clothes-desktop {
  position: relative;
  width: 71%;
  aspect-ratio: 1352 / 938;
  margin-left: auto;
  margin-right: 7%;
  margin-top: 12%;
  background: url("assets/Landing/long%20page%20for%20scroll.webp") top / 100%
    auto no-repeat;
  animation: clothes-scroll 14s cubic-bezier(0.1, 0.6, 0.3, 1) 0.5s infinite;
  animation-play-state: paused;
}

.scene-clothes.is-visible .scene-clothes-desktop {
  animation-play-state: running;
}

@keyframes clothes-scroll {
  0% {
    background-position: 0 0%;
  }
  12.5% {
    background-position: 0 13.11%;
  }
  25% {
    background-position: 0 26.23%;
  }
  37.5% {
    background-position: 0 39.34%;
  }
  50% {
    background-position: 0 52.46%;
  }
  62.5% {
    background-position: 0 65.57%;
  }
  75% {
    background-position: 0 78.69%;
  }
  87.5% {
    background-position: 0 91.8%;
  }
  100% {
    background-position: 0 100%;
  }
}

@media (min-width: 1024px) {
  .scene-clothes {
    aspect-ratio: 1440 / 810;
  }

  .scene-clothes-logo {
    top: 34px;
    left: 34px;
  }

  .scene-clothes-desktop {
    width: 47%;
    margin-top: 0;
  }
}

/* ============================================================
   COLOUR PALETTE
   ============================================================ */
.colour-palette {
  background: var(--white);
  color: var(--black);
  padding: 72px var(--margin);
}

.colour-palette-heading {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 24px;
  text-align: left;
}

.colour-palette-cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.colour-palette-card {
  position: relative;
  overflow: hidden;
  width: 330px;
  max-width: 100%;
}

.colour-palette-card:nth-child(even) {
  align-self: flex-end;
}

.colour-palette-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(0.8);
  transition: filter 0.4s ease;
}

@media (max-width: 1023px) {
  .colour-palette-card.is-visible img {
    filter: grayscale(0%) contrast(1);
  }
}

@media (min-width: 1024px) {
  .colour-palette-card:hover img {
    filter: grayscale(0%) contrast(1);
  }
}

.colour-palette-circle {
  position: absolute;
  bottom: 12%;
  left: 8%;
  width: 208px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  font-size: 17.8px;
  line-height: 1.1;
  box-sizing: border-box;
  background: transparent;
  color: transparent;
  transition: color 0.15s ease-out;
}

.colour-palette-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease-in 0s;
  z-index: 0;
}

@media (min-width: 1024px) {
  .colour-palette-card:hover .colour-palette-circle--red,
  .colour-palette-card:hover .colour-palette-circle--black {
    color: #fff;
    transition: color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
  }

  .colour-palette-card:hover .colour-palette-circle--white {
    color: var(--black);
    transition: color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
  }

  .colour-palette-card:hover .colour-palette-circle::before {
    transform: scale(1.1);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
  }
}

@media (max-width: 1023px) {
  .colour-palette-card.is-visible .colour-palette-circle--red,
  .colour-palette-card.is-visible .colour-palette-circle--black {
    color: #fff;
    transition: color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
  }

  .colour-palette-card.is-visible .colour-palette-circle--white {
    color: var(--black);
    transition: color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
  }

  .colour-palette-card.is-visible .colour-palette-circle::before {
    transform: scale(1.1);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
  }
}

.colour-palette-circle--red::before {
  background: #b70600;
}

.colour-palette-circle--white::before {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.colour-palette-circle--black::before {
  background: #000;
}

.colour-palette-name {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 400;
  opacity: 0.5;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.colour-palette-values {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.colour-palette-row {
  display: flex;
  gap: 14px;
  font-family: "Neue Haas Grotesk", sans-serif;
  white-space: nowrap;
}

.colour-palette-key {
  font-weight: 600;
  min-width: 2em;
}

@media (min-width: 1024px) {
  .colour-palette {
    padding: 140px var(--margin);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .colour-palette-heading {
    font-size: 16px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 1022px;
  }

  .colour-palette-cards {
    flex-direction: row;
    gap: 16px;
    width: 100%;
    max-width: 1022px;
  }

  .colour-palette-card {
    flex: 1;
    width: auto;
  }

  .colour-palette-card:nth-child(even) {
    align-self: auto;
  }
}

@media (min-width: 1302px) {
  .colour-palette {
    padding: 140px;
  }

  .colour-palette-heading,
  .colour-palette-cards {
    max-width: none;
  }
}

/* ============================================================
   PRICE LIST
   ============================================================ */
.price-list {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.price-list-bg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 40% center;
}

.price-list-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--margin);
}

.price-list-heading {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 24px;
  text-align: left;
  width: 100%;
}

.price-list-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.price-list-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.5);
}

.price-list-row--active {
  color: #fff;
  position: relative;
}

.price-list-row--last {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.price-list-service {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 400;
  font-size: 12px;
  width: 42%;
}

.price-list-duration {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-size: 10px;
  width: 25%;
}

.price-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 33%;
}

.price-list-format {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-size: 10px;
}

.price-list-price {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 400;
  font-size: 12px;
}

.price-list-cursor {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 84px;
  height: 84px;
  top: 50%;
  right: 33px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #b70600;
  z-index: 10;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
}

.price-list-cursor .price-list-cta-inner {
  opacity: 1;
}

.price-list-cursor .price-list-cta-arrow {
  width: 14px;
  height: 14px;
}

.price-list-cursor .price-list-cta-text {
  font-size: 7px;
}

.price-list-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 73%;
}

.price-list-cta-arrow {
  width: 10px;
  height: 10px;
}

.price-list-cta-text {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 500;
  font-size: 5px;
  text-transform: uppercase;
  line-height: 1.2;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .price-list-heading {
    font-size: 14px;
  }

  .price-list-row {
    padding: 20px 0;
  }

  .price-list-service {
    font-size: 24px;
  }

  .price-list-duration {
    font-size: 16px;
  }

  .price-list-format {
    font-size: 16px;
  }

  .price-list-price {
    font-size: 24px;
  }

  .price-list-cursor {
    width: 170px;
    height: 170px;
    right: 90px;
  }

  .price-list-cursor .price-list-cta-arrow {
    width: 28px;
    height: 28px;
  }

  .price-list-cursor .price-list-cta-text {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .price-list-bg {
    aspect-ratio: 2880 / 1764;
  }

  .price-list-content {
    justify-content: center;
    padding: 120px var(--margin);
    max-width: 1312px;
    margin: 0 auto;
  }

  .price-list-heading {
    font-size: 14px;
    text-align: left;
    margin-bottom: 24px;
  }

  .price-list-row {
    padding: 20px 0;
  }

  .price-list-service {
    font-size: 24px;
  }

  .price-list-duration {
    font-size: 16px;
  }

  .price-list-format {
    font-size: 16px;
  }

  .price-list-price {
    font-size: 24px;
  }

  /* Default state: all rows dimmed, first row active only on mobile */
  .price-list-row--active {
    color: rgba(255, 255, 255, 0.5);
    position: static;
  }

  /* Row hover: full opacity */
  .price-list-row.is-hovered {
    color: #fff;
  }

  /* Floating cursor / CTA */
  .price-list-cursor {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 16px;
    height: 16px;
    right: auto;
    bottom: auto;
    border-radius: 50%;
    background: #b70600;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition:
      width 0.3s ease,
      height 0.3s ease,
      opacity 0.2s ease;
    text-decoration: none;
    color: #fff;
    box-sizing: border-box;
    will-change: transform, width, height;
  }

  .price-list-cursor .price-list-cta-inner {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .price-list-cursor .price-list-cta-arrow {
    width: 28px;
    height: 28px;
  }

  .price-list-cursor .price-list-cta-text {
    font-size: 14px;
  }

  /* Section hovered: show dot, hide real cursor */
  .price-list.is-tracking {
    cursor: none;
  }

  .price-list.is-tracking .price-list-cursor {
    opacity: 1;
  }

  /* Expanded state when over the table */
  .price-list-cursor.is-in-table {
    width: 170px;
    height: 170px;
  }

  .price-list-cursor.is-in-table .price-list-cta-inner {
    opacity: 1;
    transition-delay: 0.1s;
  }
}

/* ============================================================
   ABOUT & PUBLICATIONS
   ============================================================ */
.about-pub {
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.about-pub-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-pub-bg {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about-pub-bg {
    aspect-ratio: auto;
    object-fit: initial;
  }
}

.about-pub-mockup {
  position: absolute;
  width: 58%;
  height: auto;
}

@media (min-width: 1024px) {
  .about-pub-mockup {
    width: 38.86%;
  }
}

@media (min-width: 768px) {
  .about-pub {
    flex-direction: row;
  }

  .about-pub-col {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .about-pub {
    gap: 34px;
    padding: 34px;
  }
}

/* ============================================================
   RED BAG MOCKUP
   ============================================================ */
.red-bag-section img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .red-bag-section img {
    aspect-ratio: auto;
  }
}

/* ============================================================
   ACTIVE PROJECTS
   ============================================================ */
.active-projects {
  background: #ebe4e2;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--margin);
}

.active-projects-inner {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 1000 / 655;
  position: relative;
  background: var(--white);
  overflow: hidden;
  container-type: inline-size;
}

/* ---- Label ---- */
.active-projects-label {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.1cqi;
  text-transform: uppercase;
  color: var(--black);
  position: absolute;
  top: 2.5%;
  left: 1.4%;
}

.active-projects-body {
  position: absolute;
  inset: 0;
}

/* ---- Service list ---- */
.active-projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.22cqi;
  position: absolute;
  top: 10.4%;
  left: 1.4%;
}

.active-projects-item {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 500;
  font-size: 2.78cqi;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  line-height: 1.2;
}

.active-projects-item.is-active {
  color: var(--black);
}

.active-projects-item {
  transition: color 0.5s ease;
}

/* Line above active item */
.active-projects-body::before {
  content: "";
  position: absolute;
  left: 1.4%;
  top: var(--line-top, 16.5%);
  width: 63%;
  height: 1px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: top 0.6s ease;
}

/* ---- Right side ---- */
.active-projects-right {
  position: absolute;
  top: 10.4%;
  right: 1.3%;
  width: 48.1%;
  height: 87%;
}

.active-projects-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.active-projects-img.is-active {
  opacity: 1;
}

/* ---- CTA circle ---- */
.active-projects-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13.9cqi;
  height: 13.9cqi;
  border-radius: 50%;
  background: #b70600;
  text-decoration: none;
  color: #fff;
  position: absolute;
  z-index: 2;
  top: var(--cta-top, 36.8%);
  left: 41.7%;
  transition: top 0.6s ease;
}

.active-projects-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 73%;
}

.active-projects-cta-arrow {
  width: 2.3cqi;
  height: 2.3cqi;
  margin-bottom: -5%;
  --fill-0: white;
}

.active-projects-cta-text {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.1cqi;
  text-transform: uppercase;
  line-height: 1.2;
  align-self: flex-start;
  display: none;
}

.active-projects-cta-text.is-active {
  display: block;
}

/* ---- Description ---- */
.active-projects-desc {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.39cqi;
  line-height: 1.1;
  color: var(--black);
  position: absolute;
  top: 19%;
  left: 41.7%;
  width: 22.7%;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.active-projects-desc.is-active {
  opacity: 1;
  transition: opacity 1.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.active-projects-desc[data-slide="1"] {
  top: 62%;
}

@media (min-width: 1024px) {
  .active-projects {
    aspect-ratio: auto;
    padding: 120px var(--margin);
  }
}

/* ============================================================
   FITTING ROOM
   ============================================================ */
.fitting-room {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.fitting-room-bg {
  display: block;
  width: 110%;
  height: auto;
  margin-left: -10%;
}
.fitting-room-spread {
  position: absolute;
  top: 50%;
  left: calc(50% + 8%);
  transform: translate(-50%, -50%);
  width: 45%;
  height: auto;
}

/* ============================================================
   KEEP EXPLORING
   ============================================================ */
.keep-exploring {
  padding: 80px var(--margin) 120px;
}
.keep-exploring-label {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  color: #3638ff;
  margin-bottom: 32px;
}
.keep-exploring-image picture {
  display: block;
  overflow: hidden;
}
.keep-exploring-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .keep-exploring-right:has(.case-link:hover) .keep-exploring-image img,
  .keep-exploring-right:has(.case-link:focus-visible) .keep-exploring-image img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .keep-exploring-image img {
    transition: none;
  }
  .keep-exploring-right:has(.case-link:hover) .keep-exploring-image img,
  .keep-exploring-right:has(.case-link:focus-visible) .keep-exploring-image img {
    transform: none;
  }
}
.keep-exploring-info {
  margin-top: 24px;
}
.keep-exploring-desc {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: pretty;
  color: var(--black);
  margin-top: 16px;
  max-width: 430px;
}
.keep-exploring-info .case-link {
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .keep-exploring {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 20px;
    align-items: start;
    padding: 120px var(--margin) 120px;
  }
  .keep-exploring-label {
    grid-column: 1 / 6;
    grid-row: 1;
    margin-bottom: 0;
  }
  .keep-exploring-right {
    grid-column: 5 / 13;
    grid-row: 1;
    display: flex;
    gap: 34px;
    align-items: start;
  }
  .keep-exploring-image {
    flex: 0 1 420px;
    min-width: 0;
  }
  .keep-exploring-image img {
    width: 100%;
    height: auto;
  }
  .keep-exploring-info {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    flex: 0 0 auto;
    max-width: 275px;
  }
  .keep-exploring-desc {
    margin-top: 16px;
    max-width: 275px;
  }

  .keep-exploring--landing .keep-exploring-info,
  .keep-exploring--landing .keep-exploring-desc {
    max-width: 300px;
  }

  .keep-exploring-info .case-link {
    margin-top: auto;
  }
}

@media (min-width: 1200px) {
  .keep-exploring-right {
    grid-column: 6 / 13;
    gap: 48px;
  }
}

/* ============================================================
   LANDING FOOTER
   ============================================================ */
.landing-footer-links {
  display: none;
}
.landing-footer-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
  letter-spacing: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  transition: color 0.2s;
}
.landing-footer-link:hover {
  color: #0d08c5;
}
.landing-footer-link .arrow-icon {
  width: 22px;
  height: 21px;
  transition: filter 0.2s;
}
.landing-footer-link:hover .arrow-icon {
  filter: brightness(0) saturate(100%) invert(8%) sepia(99%) saturate(7461%) hue-rotate(247deg) brightness(96%) contrast(118%);
}

@media (min-width: 768px) {
  .landing-footer-links {
    display: flex;
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  .landing-footer {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gutter);
    padding: 14px 24px;
  }
  .landing-footer .site-footer-logo {
    grid-column: 1;
  }
  .landing-footer .site-footer-copy {
    grid-column: 5;
    font-size: 14px;
    width: auto;
    white-space: nowrap;
  }
  .landing-footer .landing-footer-links {
    grid-column: 8 / span 3;
    display: flex;
    gap: 40px;
    justify-content: start;
  }
  .landing-footer .site-footer-top {
    grid-column: 12;
    font-size: 14px;
    justify-self: end;
  }
}

@media (min-width: 1200px) {
  .landing-footer .site-footer-copy {
    grid-column: 6;
  }
  .landing-footer .landing-footer-links {
    grid-column: 9 / span 3;
  }
}


.progress-widget {
  --progress-color: white;
  --progress-font-size: 20.14vw;
  --progress-svg-width: calc(var(--progress-font-size) * 1.39);
  --progress-height: calc(var(--progress-font-size) * 0.731);
}

.progress-target,
#current {
  display: block;
  font-size: 16px;
  line-height: 11px;
  color: var(--progress-color);
  text-align: right;
  width: 100%;
  display: none;
}

#current {
  line-height: 17px;
}

.percent-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  --fill: 0%;
  height: var(--progress-height);
}

.case-wave-sub-photo > img {
  display: block;
  width: 100%;
  height: auto;
  margin-right: -55.56vw;
}

.drone-stroke {
  display: block;
  background-image: url("assets/Wave/drone to fill.svg");
}
.drone-fill {
  background-image: url("assets/Wave/drone to fill filled.svg");
}
.drone-stroke,
.drone-fill {
  width: 19.1vw;
  aspect-ratio: 273 / 125;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.percent-number {
  display: flex;
  gap: 1.667vw;
  padding-right: 0.833vw;
  box-sizing: border-box;
  align-items: flex-start;
}

.percent-svg {
  height: var(--progress-height);
  width: var(--progress-svg-width);
  flex-shrink: 0;
  overflow: visible;
}

.percent-stroke {
  font-family: "Kharkiv Tone", sans-serif;
  font-weight: 400;
  font-size: var(--progress-font-size);
  letter-spacing: -0.03em;
  fill: none;
  stroke: var(--progress-color);
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.percent-fill {
  font-family: "Kharkiv Tone", sans-serif;
  font-weight: 400;
  font-size: var(--progress-font-size);
  letter-spacing: -0.03em;
  fill: var(--progress-color);
  stroke: none;
}

.drone-wrap {
  position: relative;
  width: 19.1vw;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 3.68vw;
}

.drone-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  clip-path: inset(100% 0 0 0); /* initial: hidden; JS overrides on animation */
}

.fill-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--fill);
  height: 1px;
  background: var(--progress-color);
  pointer-events: none;
  transform: translateY(1px);
  clip-path: inset(0 0 0 15px);
}

.fill-line-top {
  display: none;
  height: 1px;
  background: var(--progress-color);
  pointer-events: none;
}

.raised-label {
  position: absolute;
  top: 11px;
  left: calc(var(--progress-svg-width) + 1.667vw); /* left edge of drone-wrap */
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 1.25vw; /* 18px at 1440 */
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--progress-color);
  pointer-events: none;
}

.progress-widget {
  padding-bottom: 1.979vw; /* 28.5px at 1440 */
  margin-left: -10px;
}

@media (min-width: 1024px) {
  .percent-stroke {
    stroke-width: 2;
  }

  .drone-stroke {
    background-image: url("assets/Wave/drone to fill 2px.svg");
  }

  .fill-line {
    height: 2px;
  }
}


/* ============================================================
   CASE STUDY — USER TESTING
   ============================================================ */

.case-wave-ut {
  background: #bfccea;
  color: var(--black);
  padding: 24px var(--margin) 120px;
  /* overlap 1px with .case-wave-sub above to hide a sub-pixel white gap
     on mobile caused by its SVG-only background without a solid fallback */
  margin-top: -1px;
}

.case-wave-ut-header {
  margin-bottom: 60px;
}

.case-wave-ut-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.case-wave-ut-intro {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
}

.case-wave-ut-cards {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.case-wave-ut-before-label {
  line-height: 1;
  margin-bottom: 24px;
}

.case-wave-ut-card-img {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 4px;
  margin-bottom: 32px;
}

.case-wave-ut-card-img img {
  display: block;
  width: 100%;
  height: auto;
}

.case-wave-ut-img-before,
.case-wave-ut-img-after {
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.case-wave-ut-img-after {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.case-wave-ut-card--show-after .case-wave-ut-img-before { opacity: 0; }
.case-wave-ut-card--show-after .case-wave-ut-img-after { opacity: 1; }

.case-wave-ut-before-label {
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.case-wave-ut-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.case-wave-ut-findings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-wave-ut-finding {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-wave-ut-finding-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.9;
}

.case-wave-ut-finding-text {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
  max-width: 340px;
}

@media (min-width: 768px) {
  .case-wave-ut {
    padding: 24px var(--margin) 140px;
  }

  .case-wave-ut-header {
    max-width: 560px;
    margin-bottom: 60px;
  }

  .case-wave-ut-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 40px;
  }

  .case-wave-ut-card:nth-child(n+2) {
    padding-top: 40px;
  }

  .case-wave-ut-card:nth-child(n+2) .case-wave-ut-before-label {
    display: none;
  }

  .case-wave-ut-card-img {
    margin-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .case-wave-ut {
    padding: 34px var(--margin) 140px;
  }

  .case-wave-ut-header {
    margin-bottom: 80px;
  }

  .case-wave-ut-card:nth-child(n+2) {
    padding-top: 40px;
  }

  .case-wave-ut-cards {
    gap: 0 7.64vw; /* 110px at 1440 */
  }

  .case-wave-ut-num {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .case-wave-ut-finding-label {
    font-size: 16px;
  }

  .case-wave-ut-card-img {
    margin-bottom: 48px;
  }
}

@media (min-width: 1200px) {
  .case-wave-ut-cards {
    gap: 0 110px;
  }
}

/* ============================================================
   CASE STUDY — TEHNOHATA USER TESTING
   ============================================================ */

.case-tehno-ut {
  background: #D1C8C8;
  color: var(--black);
  padding: 24px var(--margin) 120px;
}

.case-tehno-ut-header {
  margin-bottom: 60px;
}

.case-tehno-ut-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.case-tehno-ut-intro {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
  margin-top: 16px;
}

.case-tehno-ut-cards {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.case-tehno-ut-card-img {
  position: relative;
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.case-tehno-ut-img-before,
.case-tehno-ut-img-after {
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.case-tehno-ut-img-after {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.case-tehno-ut-card--show-after .case-tehno-ut-img-before {
  opacity: 0;
}

.case-tehno-ut-card--show-after .case-tehno-ut-img-after {
  opacity: 1;
}

.case-tehno-ut-before-label {
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.case-tehno-ut-card-img img {
  display: block;
  width: 100%;
  height: auto;
}

.case-tehno-ut-before-label {
  line-height: 1;
  margin-bottom: 24px;
}

.case-tehno-ut-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 20px;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.case-tehno-ut-findings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-tehno-ut-finding {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-tehno-ut-finding-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.9;
}

.case-tehno-ut-finding-text {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
  max-width: 340px;
}

@media (min-width: 768px) {
  .case-tehno-ut-header {
    max-width: 560px;
    margin-bottom: 60px;
  }

  .case-tehno-ut-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 40px;
  }

  .case-tehno-ut-card:nth-child(n+2) {
    padding-top: 40px;
  }

  .case-tehno-ut-card:nth-child(n+2) .case-tehno-ut-before-label {
    display: none;
  }

  .case-tehno-ut-card-img {
    margin-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .case-tehno-ut {
    padding: 34px var(--margin) 140px;
  }

  .case-tehno-ut-header {
    margin-bottom: 80px;
  }

  .case-tehno-ut-cards {
    gap: 0 7.64vw;
  }

  .case-tehno-ut-num {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .case-tehno-ut-finding-label {
    font-size: 16px;
  }

  .case-tehno-ut-card-img {
    margin-bottom: 48px;
  }
}

@media (min-width: 1200px) {
  .case-tehno-ut-cards {
    gap: 0 110px;
  }
}

/* ============================================================
   CASE STUDY — TEHNOHATA PRODUCT PAGE SOLUTION
   ============================================================ */

.case-tehno-product {
  position: relative;
  display: grid;
}

.case-tehno-product-bg {
  grid-area: 1 / 1;
}

.case-tehno-product-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.case-tehno-product-content {
  grid-area: 1 / 1;
  z-index: 1;
  padding: 24px var(--margin) 0;
  color: var(--white);
}

.case-tehno-product-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-tehno-product .case-overview-label {
  color: var(--white);
}

.case-tehno-product-desc {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.case-tehno-product-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .case-tehno-product {
    overflow: hidden;
  }

  .case-tehno-product-bg {
    position: absolute;
    inset: 0;
  }

  .case-tehno-product-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
  }

  .case-tehno-product-content {
    padding: 34px var(--margin) 250px;
  }

  .case-tehno-product-header {
    max-width: 512px;
  }

  .case-tehno-product-img {
    border-radius: 10px;
  }
}

@media (min-width: 1024px) {
  .case-tehno-product-content {
    padding: 40px var(--margin) 182px;
  }

  .case-tehno-product-img {
    width: 69.44%;
    margin: 72px auto 0;
    border-radius: 16px;
  }
}

/* ============================================================
   CASE STUDY — TEHNOHATA PRODUCT CATALOGUE
   ============================================================ */

.case-tehno-catalogue {
  background: #E7E7E7;
  color: var(--black);
  padding: 24px;
}

.case-tehno-catalogue-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-tehno-catalogue-desc {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
}

.case-tehno-catalogue-compare {
  margin-top: 48px;
}

.case-tehno-catalogue-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-tehno-catalogue-col:first-child {
  max-width: 66%;
}

.case-tehno-catalogue-col--after {
  margin-top: 24px;
  margin-right: -24px;
}

.case-tehno-catalogue-col-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-tehno-catalogue-col-label {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  opacity: 0.5;
}

.case-tehno-catalogue-swipe {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: var(--margin);
}

.case-tehno-catalogue-col-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.case-tehno-catalogue-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-right: 24px;
}

.case-tehno-catalogue-scroll::-webkit-scrollbar {
  display: none;
}

.case-tehno-catalogue-scroll .case-tehno-catalogue-col-img {
  width: 138%;
  min-width: 138%;
}

@media (min-width: 768px) {
  .case-tehno-catalogue-header {
    max-width: 560px;
  }

  .case-tehno-catalogue-compare {
    display: grid;
    grid-template-columns: 1062fr 2718fr;
    gap: 40px;
    margin-top: 80px;
  }

  .case-tehno-catalogue-col:first-child {
    max-width: none;
  }

  .case-tehno-catalogue-col--after {
    margin-top: 0;
    margin-right: 0;
  }

  .case-tehno-catalogue-swipe {
    display: none;
  }

  .case-tehno-catalogue-col-img {
    border-radius: 12px;
  }

  .case-tehno-catalogue-scroll {
    overflow-x: visible;
    padding-right: 0;
  }

  .case-tehno-catalogue-scroll .case-tehno-catalogue-col-img {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 1024px) {
  .case-tehno-catalogue {
    margin: 34px;
    padding: 34px;
  }

  .case-tehno-catalogue-compare {
    margin-top: 120px;
  }
}

/* ============================================================
   CASE STUDY — TEHNOHATA PAYMENT PLANS
   ============================================================ */

.case-tehno-payment {
  color: var(--black);
  padding: var(--margin);
  max-width: calc(1100px + 2 * 150px);
  margin: 0 auto;
}

/* On mobile, force the section to a 1:1 ratio. aspect-ratio auto-adjusts
   the vertical space needed across viewport widths, equivalent to adding
   equal extra top/bottom padding to center the content. */
@media (max-width: 767px) {
  .case-tehno-payment {
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.case-tehno-payment .case-overview-label {
  display: none;
  max-width: 380px;
  align-items: flex-start;
  line-height: 1.3;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .case-tehno-payment .case-overview-label {
    display: flex;
    margin-bottom: 24px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .case-tehno-payment .case-overview-label {
    font-size: 16px;
  }
}

.case-tehno-payment .case-label-dot {
  align-self: flex-start;
  margin-top: 4px;
}

.case-tehno-payment-img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .case-tehno-payment-img {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .case-tehno-payment {
    padding: 72px;
    padding-bottom: 122px;
  }
}

@media (min-width: 1024px) {
  .case-tehno-payment {
    padding: 150px;
    padding-bottom: 200px;
  }
}

/* ============================================================
   CASE STUDY — TEHNOHATA CHECKOUT MOCKUP
   ============================================================ */

.case-tehno-checkout-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   CASE STUDY — TEHNOHATA PRODUCT CARDS
   ============================================================ */

.case-tehno-cards {
  padding: 24px var(--margin) 24px;
  color: var(--black);
}

.case-tehno-cards-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.case-tehno-cards-desc {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
}

.case-tehno-cards-grid {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-tehno-cards-photo {
  display: block;
  width: 100%;
  height: auto;
}

.case-tehno-cards-right {
  background: #E7E7E7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--margin);
  aspect-ratio: 1 / 1;
  min-width: 0;
}

.case-tehno-cards-svg {
  display: block;
  width: 100%;
  height: auto;
}

.case-tehno-carousel-wrap {
  width: 100%;
  overflow: visible;
}

.case-tehno-carousel {
  width: 596px;
  position: relative;
  transform-origin: top left;
  clip-path: inset(0 0 -200px 0);
}

.case-tehno-carousel-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 10px;
  margin-bottom: 10px;
}

.case-tehno-carousel-header-icon {
  width: 16.5px;
  height: 16.5px;
}

.case-tehno-carousel-header-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--black);
}

.case-tehno-carousel-track-area {
  position: relative;
  padding-left: 10px;
}

.case-tehno-carousel-track {
  display: flex;
  gap: 3.5px;
  overflow: visible;
}

.case-tehno-carousel-card-slot {
  flex-shrink: 0;
  zoom: 0.5053;
  height: 343px;
  overflow: visible;
}

.case-tehno-carousel-card {
  width: 144px;
  flex-shrink: 0;
  background: white;
  border: 0.42px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  padding: 6.8px;
  display: flex;
  flex-direction: column;
  gap: 6.8px;
}

.case-tehno-carousel-card-img {
  width: 100%;
  height: 107px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-tehno-carousel-card-img img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.case-tehno-carousel-card-img--tall img {
  width: 28px;
  height: 79px;
}

.case-tehno-carousel-card-img--wide img {
  width: 86px;
  height: 35px;
}

.case-tehno-carousel-card-info {
  display: flex;
  flex-direction: column;
  gap: 3.4px;
}

.case-tehno-carousel-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-tehno-carousel-card-ratings {
  display: flex;
  gap: 3.4px;
  align-items: center;
}

.case-tehno-carousel-card-rating {
  display: flex;
  align-items: center;
  gap: 1.7px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 5.9px;
  color: rgba(29, 30, 28, 0.5);
}

.case-tehno-carousel-card-colors {
  display: flex;
  gap: 1.3px;
  align-items: center;
}

.case-tehno-carousel-color {
  width: 5px;
  height: 5px;
  border-radius: 1.7px;
  background: var(--color);
}

.case-tehno-carousel-color.is-active {
  width: 6.8px;
  height: 6.8px;
  border: 0.42px solid black;
  border-radius: 3.3px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-tehno-carousel-color.is-active::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 1.7px;
  background: var(--color);
}

.case-tehno-carousel-card-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 6.8px;
  line-height: 1.1;
  color: black;
}

.case-tehno-carousel-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.case-tehno-carousel-card-price {
  font-family: var(--font);
  font-weight: 600;
  font-size: 8.5px;
  color: black;
}

.case-tehno-carousel-card-cart {
  width: 10px;
  height: 10px;
}

/* Positioned parents for icons and hover images */
.case-tehno-carousel-card-slot .case-tehno-interior-product {
  position: relative;
  width: 285px;
  height: 343px;
}

.case-tehno-carousel-card-slot .case-tehno-interior-product-inner {
  padding: 13.4px;
  gap: 24px;
}

.case-tehno-carousel-card-slot .case-tehno-interior-product-info {
  justify-content: flex-start;
  gap: 12px;
}

.case-tehno-carousel-card-slot .case-tehno-interior-product-img {
  position: relative;
}

/* Hover elements: hidden by default */
.case-tehno-hover-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transition: opacity 500ms ease-out;
}

.case-tehno-hover-icons img {
  width: 24px;
  height: 24px;
}

.case-tehno-hover-icons img:first-child {
  width: 20px;
  height: 20px;
}

.case-tehno-hover-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 500ms ease-out;
  pointer-events: none;
}

.case-tehno-product-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 500ms ease, max-height 500ms ease;
}

.case-tehno-product-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.3;
  color: var(--black);
}

.case-tehno-product-spec-row span:last-child {
  font-weight: 600;
  color: var(--black);
}

/* Hover active state */
.case-tehno-carousel-card-slot .case-tehno-interior-product {
  transition: box-shadow 500ms ease-out, height 500ms ease-out;
}

.case-tehno-carousel-card-slot.is-hovered .case-tehno-interior-product {
  height: 433px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.case-tehno-carousel-card-slot.is-hovered .case-tehno-hover-icons {
  opacity: 1;
}

.case-tehno-carousel-card-slot.is-hovered .case-tehno-hover-img {
  opacity: 1;
}

.case-tehno-carousel-card-slot.is-hovered .case-tehno-interior-product-img img:not(.case-tehno-hover-img) {
  opacity: 0;
}

.case-tehno-carousel-card-slot.is-hovered .case-tehno-product-specs {
  max-height: 90px;
  margin-top: 0;
  opacity: 1;
  transition: max-height 400ms ease 100ms, opacity 400ms ease 100ms;
}

.case-tehno-carousel-fade {
  display: none;
}

.case-tehno-carousel-cta {
  width: 111px;
  height: 174px;
  flex-shrink: 0;
  margin-left: -115px;
  position: relative;
  z-index: 1;
  background: var(--black);
  border-radius: 10px;
  border-right: 0.52px solid rgba(255, 255, 255, 0.15);
  border-bottom: 0.52px solid rgba(255, 255, 255, 0.15);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-tehno-carousel-cta::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 1px;
  bottom: 1px;
  width: 28px;
  background: linear-gradient(to left, white, transparent);
  pointer-events: none;
}

.case-tehno-carousel-cta-text {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  color: white;
  line-height: normal;
}

.case-tehno-carousel-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
}

.case-tehno-carousel-cta-btn img {
  width: 10px;
  height: 10px;
  margin-left: 5%;
}

.case-tehno-carousel-arrow {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--black);
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.case-tehno-carousel-arrow img {
  width: 10px;
  height: 10px;
}

.case-tehno-carousel-arrow--prev {
  left: 0;
  top: calc(174px / 2 - 10px);
}

.case-tehno-carousel-arrow--next {
  left: 441px;
  top: calc(174px / 2 - 10px);
}

@media (min-width: 768px) {
  .case-tehno-cards {
    padding-bottom: 24px;
  }

  .case-tehno-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .case-tehno-cards-photo {
    height: 100%;
    object-fit: cover;
  }

  .case-tehno-cards-right {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .case-tehno-cards {
    padding: 34px var(--margin) 34px;
  }

  .case-tehno-cards-grid {
    margin-top: 72px;
  }
}

@media (min-width: 1200px) {
  .case-tehno-cards-right {
    padding: 0 56px;
  }
}


/* ============================================================
   CASE STUDY — TEHNOHATA POPULAR CATEGORIES
   ============================================================ */

.case-tehno-popular-photo {
  display: block;
  width: 100%;
  height: auto;
}

.case-tehno-popular-left {
  background: #4B4048;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px var(--margin);
}

.case-tehno-popular-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  width: 100%;
  transition: grid-template-columns 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.case-tehno-popular-card {
  background: rgba(246, 246, 246, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* 15.1px gap & padding at 1440 */
  gap: 1.05vw;
  padding: 1.05vw;
  /* 82.5px * 1.2 = 99px at 1440 */
  height: 6.189vw;
  min-width: 0;
  color: #F6F6F6;
  border: 1px solid rgba(246, 246, 246, 0.2);
  transition: background 0.6s ease, border-color 0.6s ease, color 0.6s ease, height 0.6s ease, margin 0.6s ease;
}

.case-tehno-popular-card--active {
  background: #F6F6F6;
  border-color: #F6F6F6;
  color: #D50000;
  /* 6.189vw * 1.3 = 8.046vw, extra = 1.857vw, half = 0.929vw */
  height: 8.046vw;
  margin-top: -0.929vw;
  margin-bottom: -0.929vw;
  z-index: 1;
}

.case-tehno-popular-card--active .case-tehno-popular-label {
  color: #000;
  font-size: 0.681vw;
}

.case-tehno-popular-card--active .case-tehno-popular-icon {
  width: 2.457vw;
  height: 2.457vw;
}

.case-tehno-popular-card--rect {
  border-radius: 1.01vw;
  transition: background 0.6s ease, border-color 0.6s ease, color 0.6s ease, height 0.6s ease, margin 0.6s ease, border-radius 0.6s ease;
}

.case-tehno-popular-card--pill {
  border-radius: 9999px;
  transition: background 0.6s ease, border-color 0.6s ease, color 0.6s ease, height 0.6s ease, margin 0.6s ease;
}

.case-tehno-popular-icon {
  display: block;
  width: 1.89vw;
  height: 1.89vw;
  overflow: visible;
  transition: width 0.6s ease, height 0.6s ease;
}

.case-tehno-popular-label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.524vw;
  color: #F6F6F6;
  text-align: center;
  white-space: nowrap;
  transition: color 0.6s ease, font-size 0.6s ease;
}

@media (max-width: 767px) {
  .case-tehno-popular-left {
    padding: 32px;
    aspect-ratio: 1 / 1;
  }

  .case-tehno-popular-cards {
    width: 100%;
  }

  .case-tehno-popular-card {
    gap: 2.1vw;
    padding: 2.1vw;
    height: 14.969vw;
  }

  .case-tehno-popular-card--rect {
    border-radius: 2.02vw;
  }

  .case-tehno-popular-icon {
    width: 3.78vw;
    height: 3.78vw;
  }

  .case-tehno-popular-label {
    font-size: 1.05vw;
  }

  .case-tehno-popular-card--active {
    height: 19.458vw;
    margin-top: -2.245vw;
    margin-bottom: -2.245vw;
    z-index: 1;
  }

  .case-tehno-popular-card--active .case-tehno-popular-icon {
    width: 4.914vw;
    height: 4.914vw;
  }

  .case-tehno-popular-card--active .case-tehno-popular-label {
    font-size: 1.365vw;
  }
}

@media (min-width: 768px) {
  .case-tehno-popular {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .case-tehno-popular-left {
    order: -1;
    padding: 0 32px;
  }

  .case-tehno-popular-photo {
    height: 100%;
    object-fit: cover;
  }
}

@media (min-width: 1200px) {
  .case-tehno-popular-left {
    padding: 0 56px;
  }
}

/* ============================================================
   CASE STUDY — TEHNOHATA INTERIOR FILTER
   ============================================================ */

@media (max-width: 767px) {
  .case-tehno-interior {
    aspect-ratio: 1 / 1;
  }
  .case-tehno-interior-inner {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
}

.case-tehno-interior {
  background: #4b4048;
  padding: var(--margin);
}

@media (min-width: 768px) {
  .case-tehno-interior {
    padding: 72px;
    padding-bottom: 122px;
  }
}

@media (min-width: 1024px) {
  .case-tehno-interior {
    padding: 150px;
    padding-bottom: 200px;
  }
}

.case-tehno-interior-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.case-tehno-interior-label {
  display: none;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1.3;
  color: white;
  opacity: 0.6;
  max-width: 380px;
}

@media (min-width: 768px) {
  .case-tehno-interior-label {
    display: flex;
    margin-bottom: 24px;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .case-tehno-interior-label {
    font-size: 16px;
  }
}

.case-tehno-interior-label .case-label-dot {
  background: white;
  align-self: flex-start;
  margin-top: 4px;
}

.case-tehno-interior-content-wrap {
  overflow: hidden;
}

.case-tehno-interior-content {
  width: 1100px;
  position: relative;
}

.case-tehno-interior-panels {
  display: flex;
  gap: 6px;
  height: 644px;
}

.case-tehno-interior-card {
  background: #e7e7e7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
}

.case-tehno-interior-card-title {
  font-family: var(--font);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.1;
  color: var(--black);
  max-width: 360px;
  margin-bottom: 25px;
}

.case-tehno-interior-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.case-tehno-interior-tag {
  font-family: var(--font);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  border-radius: 22px;
  background: white;
  color: rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  padding: 8px 13px 7px;
  border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.case-tehno-interior-tag.is-hover {
  border-color: rgba(75, 64, 72, 0.6);
  color: rgba(75, 64, 72, 0.6);
}

.case-tehno-interior-tag.is-active {
  background: #4b4048;
  color: white;
  border-color: transparent;
}

.case-tehno-interior-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.case-tehno-interior-card-hint {
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.7);
  max-width: 175px;
  display: flex;
  gap: 8px;
}

.case-tehno-interior-card-dot {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.5;
}

.case-tehno-interior-product-clip {
  width: 270px;
  height: 326px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 19px;
}

.case-tehno-interior-product {
  background: white;
  border: 0.795px solid rgba(0, 0, 0, 0.15);
  border-radius: 19px;
  width: 270px;
  height: 326px;
}

.case-tehno-interior-product-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12.72px;
  gap: 12.72px;
  height: 100%;
  border-radius: 6px;
}

.case-tehno-interior-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.case-tehno-interior-product-img img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: opacity 500ms ease-out;
}

.case-tehno-interior-product-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  flex: 1;
  justify-content: flex-end;
}

.case-tehno-interior-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-tehno-interior-product-meta-left {
  display: flex;
  align-items: center;
  gap: 6.36px;
}

.case-tehno-interior-product-reviews {
  display: flex;
  align-items: center;
  gap: 3.18px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 11.13px;
  line-height: 13px;
  color: rgba(29, 30, 28, 0.5);
}

.case-tehno-interior-product-reviews svg {
  width: 12.72px;
  height: 12.72px;
  opacity: 0.5;
}

.case-tehno-interior-product-reviews span {
  transform: translateY(1px);
}

.case-tehno-interior-product-colors {
  display: flex;
  gap: 2.38px;
  align-items: center;
  width: 36.56px;
  height: 12.72px;
}

.case-tehno-interior-color {
  width: 9.54px;
  height: 9.54px;
  border-radius: 1.59px;
  background: var(--color);
}

.case-tehno-interior-color.is-active {
  width: 13px;
  height: 13px;
  border: 1px solid black;
  border-radius: 3px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-tehno-interior-color.is-active::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--color);
  flex-shrink: 0;
}

.case-tehno-interior-product-name {
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  color: black;
}

.case-tehno-interior-product-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.case-tehno-interior-price {
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  line-height: 19px;
  color: black;
}

.case-tehno-interior .case-tehno-interior-product-info {
  gap: 6px;
}

.case-tehno-interior .case-tehno-interior-cart-btn {
  display: flex;
  padding: 6px;
}

.case-tehno-interior-cart-btn img {
  display: block;
  width: 20px;
  height: 20px;
}

.case-tehno-interior-photo {
  border-radius: 13px;
  overflow: hidden;
  position: relative;
}

.case-tehno-interior-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-tehno-interior-photo-overlay {
  position: absolute;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.case-tehno-interior-photo-text {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: white;
  max-width: 162px;
}

.case-tehno-interior-photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.case-tehno-interior-photo-btn img {
  display: block;
  width: 24px;
  height: 24px;
  margin-left: 5%;
}

.case-tehno-interior-card,
.case-tehno-interior-photo {
  flex: 1 1 0%;
  max-width: 50%;
}

.case-tehno-interior-card {
  min-height: 644px;
}

.case-tehno-interior-photo > img {
  height: 100%;
}


/* ============================================================
   CASE STUDY — TEHNOHATA CROISSANTS & MOCKUPS
   ============================================================ */

.case-tehno-mockups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: var(--margin);
}

@media (min-width: 768px) {
  .case-tehno-mockups {
    grid-template-columns: 1fr 1fr;
  }
}

.case-tehno-mockups-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================================
   CASE STUDY — TEHNOHATA HOMEPAGE
   ============================================================ */

.case-tehno-homepage {
  background: #D1C8C8;
  padding: 24px var(--margin) 72px;
  padding-right: 0;
}

.case-tehno-homepage-header {
  max-width: 560px;
  color: var(--black);
  padding-right: var(--margin);
}

.case-tehno-homepage-desc {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  color: var(--black);
  opacity: 0.6;
  margin-top: 16px;
}

.case-tehno-homepage-mockups {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 40px;
}

.case-tehno-homepage-mockups img:first-child {
  display: block;
  width: calc(626 / 1440 * 100vw);
  height: auto;
}

.case-tehno-homepage-mockups img:last-child {
  display: block;
  width: calc(587 / 1440 * 100vw);
  height: auto;
}

@media (min-width: 1024px) {
  .case-tehno-homepage {
    padding-bottom: 140px;
  }

  .case-tehno-homepage-mockups {
    gap: 56px;
    margin-top: 100px;
  }
}


/* ============================================================
   CASE STUDY — TEHNOHATA SPLIT (QUESTION FORM + MOBILE MOCKUP)
   ============================================================ */

.case-tehno-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.case-tehno-split img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .case-tehno-split {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   CASE STUDY — TEHNOHATA ZOOM ANIMATION
   ============================================================ */

.case-tehno-zoom {
  overflow: hidden;
  background: #E7E7E7;
  contain: layout style paint;
}

@media (min-width: 1024px) {
  .case-tehno-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.case-tehno-zoom-picture {
  display: block;
  width: 100%;
}

.case-tehno-zoom-atlas {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(0, 0, 0) scale(1.05);
  transform-origin: 50% 50%;
  will-change: transform;
}

@media (max-width: 1023px) {
  .case-tehno-zoom-picture {
    position: relative;
    aspect-ratio: 6660 / 7278;
    overflow: hidden;
  }

  .case-tehno-zoom-atlas {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: 100%;
  }
}


/* ============================================================
   CASE STUDY — CAROUSEL SHOWCASE
   ============================================================ */

.case-wave-carousel {
  background: #060d2d;
  overflow: hidden;
  position: relative;
  /* mobile/tablet: square */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
}

.case-wave-carousel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: plus-lighter;
  transform: rotate(180deg);
  pointer-events: none;
}

.case-wave-carousel-track {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13vw;
  will-change: transform;
}

.case-wave-carousel-slide {
  flex: none;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 850 / 511;
  width: 56vw;
  transform: scale(1.1);
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* mobile: +20% on slide widths and gaps */
@media (max-width: 767px) {
  .case-wave-carousel-track { gap: 15.6vw; }  /* 13 × 1.2 */
  .case-wave-carousel-slide { width: 67.2vw; } /* 56 × 1.2 */
}

.case-wave-carousel-slide.is-center {
  transform: scale(1.28);
}

.case-wave-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 1024px) {
  .case-wave-carousel {
    aspect-ratio: auto;
    display: block;
    padding: 10.69vw 0;
  }

  .case-wave-carousel-track {
    gap: 8vw;
  }

  .case-wave-carousel-slide {
    width: 50.14vw;
    transform: scale(1);
  }

  .case-wave-carousel-slide.is-center {
    transform: scale(1.18);
  }
}

/* ============================================================
   CASE STUDY — IMAGES & NUMBERS BUILD TRUST
   ============================================================ */

.case-wave-in {
  background: #f1f4f9;
  position: relative;
  height: calc(260px + 102vw);
  overflow: hidden;
}

.case-wave-in-header {
  position: absolute;
  top: var(--margin);
  left: var(--margin);
  right: var(--margin);
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--black);
  z-index: 4;
}

.case-wave-in-desc {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
}

.case-wave-in-img {
  position: absolute;
  width: 75vw; /* 270/360 */
  height: auto;
}

.case-wave-in-img--1 {
  left: 6.67vw; /* 24/360 */
  top: 190px; /* header-bottom (~150px) + 40px gap */
  z-index: 2;
}

.case-wave-in-img--2 {
  left: 18.33vw; /* 66/360 */
  top: calc(170px + 46.11vw); /* img--1 top + Figma offset - 20px */
  z-index: 1;
}

/* marquee */
.case-wave-in-marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(220px + 102vw);
  height: 40px;
  background: #3638ff;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 3;
}

.case-wave-in-marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: wave-marquee 15s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.case-wave-in-marquee.is-visible .case-wave-in-marquee-track {
  animation-play-state: running;
}

.case-wave-in-marquee-track span {
  font-family: "Kharkiv Tone", sans-serif;
  font-size: 19px;
  line-height: 1;
  transform: translateY(2px);
  color: white;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.case-wave-in-marquee-track img {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

@keyframes wave-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .case-wave-in {
    height: calc(280px + 102vw);
  }

  .case-wave-in-img--1 {
    top: 210px; /* header-bottom (~150px) + 60px gap */
  }

  .case-wave-in-img--2 {
    top: calc(190px + 46.11vw);
  }

  .case-wave-in-marquee {
    top: calc(240px + 102vw);
  }
}

@media (min-width: 1024px) {
  .case-wave-in {
    --in-anchor: calc(var(--margin) + var(--in-header-h, 99px) + 56px);
    height: calc(var(--in-anchor) + 55.69vw);
  }

  .case-wave-in-header {
    top: var(--margin);
    width: 38.89vw; /* 560/1440 */
    right: auto;
  }

  .case-wave-in-img {
    width: 57.71vw; /* 831/1440 */
  }

  .case-wave-in-img--1 {
    left: 6.11vw; /* 88/1440 */
    top: calc(var(--in-anchor) + 8.06vw);
    z-index: 2;
  }

  .case-wave-in-img--2 {
    left: 36.18vw; /* 521/1440 */
    top: var(--in-anchor);
    z-index: 1;
  }

  .case-wave-in-marquee {
    top: calc(var(--in-anchor) + 43.47vw);
    height: 2.78vw; /* 40/1440 */
  }

  .case-wave-in-marquee-track {
    gap: 2.43vw; /* 35/1440 */
  }

  .case-wave-in-marquee-track span {
    font-size: 1.6vw; /* 23/1440 */
    line-height: 1;
    transform: translateY(2px);
  }

  .case-wave-in-marquee-track img {
    height: 1.88vw; /* 27/1440 */
  }
}


/* WAVE IN MEDIA
   All sizes use calc(Xvw * var(--s)) so the mockup + animation scale as
   one unit. --s: 1 on mobile (full-width inside a 1:1 square); --s: 0.8
   on tablet/desktop (smaller mockup inside the 16:9 background).
   Using actual scaled dimensions (not transform: scale) keeps text crisp
   during animation and avoids subpixel clip drift. */
.case-wave-media {
  --s: 1;
  position: relative;
  height: 56.25vw;                            /* 810/1440 */
  overflow: hidden;
}

@media (max-width: 767px) {
  .case-wave-media {
    --s: 1.5;                                 /* enlarge mockup on mobile */
    height: auto;
    aspect-ratio: 1 / 1;                      /* square background on mobile */
  }
}

@media (min-width: 768px) {
  .case-wave-media { --s: 0.8; }
}

.case-wave-media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-wave-media-img {
  /* image canvas includes ~7.5% shadow padding; element is scaled so the
     visible browser mockup renders at 850×596 (at s=1) */
  position: absolute;
  left: 50%;
  top: 50%;
  /* card sits at 45.87% of image; shadow pads the bottom */
  transform: translate(-50%, -45.87%);
  width: calc(69.463vw * var(--s));
  height: auto;
}

/* overlay matches the mockup's bounding box so header/track follow the
   mockup as the section aspect changes (mobile = 1:1). */
.case-wave-media-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45.87%);
  width: calc(69.463vw * var(--s));
  height: calc(51.723vw * var(--s));          /* 69.463 × 2181/2929 */
  pointer-events: none;
  color: #fff;
}

.case-wave-media-header {
  position: absolute;
  /* offsets relative to the mockup's top/sides */
  top: calc(5.502vw * var(--s));
  left: calc(6.61vw * var(--s));
  right: calc(6.61vw * var(--s));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-wave-media-label {
  font-family: "Onest", sans-serif;
  font-weight: 500;
  font-size: calc(0.833vw * var(--s));        /* 12/1440 */
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.case-wave-media-arrows {
  width: calc(4.236vw * var(--s));            /* 61/1440 */
  height: calc(2.014vw * var(--s));           /* 29/1440 */
  display: block;
}

.case-wave-media-track {
  position: absolute;
  /* offsets relative to the mockup's top/left/right */
  top: calc(12.85vw * var(--s));
  left: calc(11.471vw * var(--s));            /* visible card left + 90 from mockup edge */
  /* clip at the inner image's right edge: PNG canvas x=2709 of 2929 */
  right: calc(5.216vw * var(--s));
  display: flex;
  gap: calc(0.625vw * var(--s));              /* 9/1440 */
  overflow: hidden;
}

.case-wave-media-card {
  flex: 0 0 auto;
  position: relative;
  width: calc(13.472vw * var(--s));           /* 194/1440 */
  height: calc(22.222vw * var(--s));          /* 320/1440 */
  padding: calc(0.972vw * var(--s));          /* 14/1440 */
  background: #fff;
  color: #000;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease-out;
}

.case-wave-media-card-title {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: calc(1.25vw * var(--s));         /* 18/1440 */
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #000;
}

.case-wave-media-card-date {
  margin: calc(0.833vw * var(--s)) 0 0 0;     /* 12px gap */
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: calc(0.833vw * var(--s));        /* 12/1440 */
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #9a9a9a;
}

.case-wave-media-card-logo {
  margin-top: auto;
  width: auto;
  height: calc(1.389vw * var(--s));           /* 20/1440 */
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
}

/* DEFENDERS */
.case-wave-defenders {
  display: flex;
  flex-direction: column;
}

.case-wave-defenders-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.case-wave-defenders-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-wave-defenders-photo-overlay {
  position: absolute;
  inset: 0;
  background: #1d1e92;
  opacity: 0.2;
  mix-blend-mode: multiply;
}

.case-wave-defenders-info {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: url("assets/Wave/defenders%20background.svg") center / cover no-repeat;
}

.case-wave-defenders-pattern {
  display: none;
}

.case-wave-defenders-card {
  position: absolute;
  top: 11.94%; /* 43/360 */
  left: 50%;
  transform: translateX(-50%);
  width: 46.11%; /* 166/360 */
  height: auto;
}

@media (min-width: 768px) {
  .case-wave-defenders {
    flex-direction: row;
  }

  .case-wave-defenders-photo {
    aspect-ratio: auto;
    width: 50%;
    height: 50vw; /* 720/1440 */
    order: 2;
  }

  .case-wave-defenders-info {
    aspect-ratio: auto;
    width: 50%;
    height: 50vw;
    order: 1;
  }

  .case-wave-defenders-card {
    top: 14.72%; /* 106/720 */
    width: 42.08%; /* 303/720 */
  }
}

/* FUNDRAISER CARDS */
.case-wave-fundraiser {
  padding: var(--margin);
  padding-bottom: 72px;
}

.case-wave-fundraiser-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  color: var(--black);
}

.case-wave-fundraiser-desc {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
}

.case-wave-fundraiser-cards {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  margin-top: 40px;
}

.case-wave-fundraiser-card {
  width: 72.22%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  container-type: inline-size;
  position: relative;
}

.case-wave-fundraiser-card:first-child {
  align-self: flex-start;
}

.case-wave-fundraiser-card > .progress-widget {
  --progress-font-size: 35.61cqi;
  width: 100%;
  margin-left: 0;
  padding-bottom: 0;
  transform: translateY(4cqi);
}

.case-wave-fundraiser-card .percent-number {
  gap: 3.42cqi;
  padding-right: 1.71cqi;
}

.case-wave-fundraiser-card .percent-stroke {
  stroke-width: 1.5px;
}

.case-wave-fundraiser-card .progress-target {
  display: block;
  width: 20.7cqi;
  margin-left: auto;
  text-align: left;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 3.28cqi;
  line-height: 2.25cqi;
  letter-spacing: -0.03em;
  padding-right: 3.48cqi;
  margin-right: 1.02cqi;
}

.case-wave-fundraiser-card .fill-line-top {
  display: block;
  height: 1.5px;
  margin-bottom: -1.1cqi;
}

.case-wave-fundraiser-card .raised-label {
  top: auto;
  left: auto;
  right: 1.02cqi;
  width: 20.7cqi;
  text-align: left;
  font-size: 3.28cqi;
}

/* translateY in cqi so label-to-fill-line offset scales proportionally
   at every card size. Desktop (488px card) is the model: card 1 was
   84% of label height ≈ 3.031cqi; card 2 was 3px ≈ 0.615cqi. */
.case-wave-fundraiser-card:first-child .raised-label {
  transform: translateY(3.031cqi);
}

.case-wave-fundraiser-card:last-child .raised-label {
  transform: translateY(0.615cqi);
}

.case-wave-fundraiser-card .percent-svg {
  margin-left: -1.84cqi;
}

.case-wave-fundraiser-card .fill-line {
  height: 1.5px;
  clip-path: none;
  transform: none;
}

@media (min-width: 768px) {
  .case-wave-fundraiser {
    position: relative;
    padding: var(--margin);
    padding-bottom: 120px;
  }

  .case-wave-fundraiser-cards {
    flex-direction: row;
    justify-content: flex-end;
    gap: 4.10vw;
    margin-top: 120px;
  }

  .case-wave-fundraiser-card:first-child {
    align-self: auto;
  }

  .case-wave-fundraiser-card {
    width: 33.89vw;
  }
}

/* STAND WITH US */
.case-wave-stand {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.case-wave-stand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-wave-stand-header {
  display: none;
}

@media (min-width: 768px) {
  .case-wave-stand {
    aspect-ratio: auto;
    height: 74.31vw; /* 1070/1440 */
  }
}

@media (min-width: 1024px) {
  .case-wave-stand-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: var(--margin);
    left: var(--margin);
    max-width: 560px;
    color: white;
  }

  .case-wave-stand-desc {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.2;
    opacity: 0.8;
  }

  .case-wave-stand .case-overview-label {
    color: white;
  }

  .case-wave-stand .case-label-dot {
    background: white;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .case-wave-stand-img {
    width: 112%;
    height: 108%;
    object-position: left top;
  }
}

/* WAVE FOOTER */
.case-wave-footer {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-top: -1px;
}

.case-wave-footer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.8);
}

.case-wave-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #0f1e3d;
  mix-blend-mode: color;
  z-index: 1;
  pointer-events: none;
}

.case-wave-footer-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: auto;
  z-index: 2;
}

@media (min-width: 768px) {
  .case-wave-footer {
    aspect-ratio: 16 / 9;
  }

  .case-wave-footer-img {
    width: 62.5vw; /* 900/1440 */
  }
}

/* FRONTLINE UNITS — static composition, both screens scale together */
.case-wave-frontline {
  position: relative;
  width: 100%;
  background: #f1f4f9;
  overflow: hidden;
  aspect-ratio: 1440 / 808;
  font-family: var(--font);
  color: #060d2d;
}

.case-wave-frontline-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 808px;
  transform: scale(calc(100vw / 1440px));
  transform-origin: top left;
}

@media (max-width: 767px) {
  .case-wave-frontline {
    aspect-ratio: 1 / 1;
  }

  .case-wave-frontline-inner {
    top: calc((100vw - 56.1111vw) / 2);
  }
}

.case-wave-frontline-desktop {
  position: absolute;
  top: 72px;
  left: 72px;
  width: 908px;
  height: 568px;
  background: #ffffff;
  box-sizing: border-box;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.case-wave-frontline-mobile {
  position: absolute;
  top: 232px; /* 72 (frame top) + 160 offset */
  left: 1140px; /* 72 + 908 (frame width) + 160 gap */
  width: 227px;
  height: 504px;
  background: #ffffff;
  box-sizing: border-box;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-wave-frontline-mobile .fl-cell--label {
  margin-bottom: 10px;
}
.case-wave-frontline-mobile .fl-cell--info {
  margin-bottom: 20px;
}

.fl-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.case-wave-frontline-desktop .fl-chev-cell {
  padding: 0;
}

.case-wave-frontline-desktop .fl-cell::after,
.case-wave-frontline-desktop .fl-cell::before {
  content: "";
  position: absolute;
  background: rgba(54, 56, 255, 0.45);
}
.case-wave-frontline-desktop .fl-cell::after {
  right: 0;
  top: calc(50% - 77px);
  height: 154px;
  width: 1px;
}
.case-wave-frontline-desktop .fl-cell::before {
  bottom: 0;
  left: calc(50% - 77px);
  width: 154px;
  height: 1px;
}
.case-wave-frontline-desktop .fl-cell--last-col::after,
.case-wave-frontline-desktop .fl-cell--count::after {
  display: none;
}
.case-wave-frontline-desktop .fl-cell--last-row::before,
.case-wave-frontline-desktop .fl-cell--count::before {
  display: none;
}

/* Info spans 2 cols — render TWO bottom dividers aligned with col 4 and col 5 centers */
.case-wave-frontline-desktop .fl-cell--info::before,
.case-wave-frontline-desktop .fl-cell--info::after {
  content: "";
  position: absolute;
  bottom: 0;
  top: auto;
  right: auto;
  height: 1px;
  width: 154px;
  background: rgba(54, 56, 255, 0.45);
  display: block;
}
.case-wave-frontline-desktop .fl-cell--info::before {
  left: calc(25% - 77px);
}
.case-wave-frontline-desktop .fl-cell--info::after {
  left: calc(75% - 77px);
}

/* Label */
.fl-cell--label {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3638ff;
}
.fl-cell--label p {
  margin: 0;
}
.case-wave-frontline-desktop .fl-cell--label {
  font-size: 12px;
  line-height: 1.2;
  padding: 8px;
}
.case-wave-frontline-mobile .fl-cell--label {
  font-size: 9px;
  line-height: 1.2;
  padding: 0;
}

/* Info block (heading + description) */
.fl-cell--info {
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.case-wave-frontline-desktop .fl-cell--info {
  grid-column: span 2;
  gap: 10px;
  padding: 8px 8px 27px 37px;
}
.case-wave-frontline-mobile .fl-cell--info {
  padding: 0;
  gap: 6px;
}

.fl-heading {
  margin: 0;
  font-family: "Kharkiv Tone", sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #060d2d;
}
.case-wave-frontline-desktop .fl-heading {
  font-size: 30px;
}
.case-wave-frontline-mobile .fl-heading {
  font-size: 20px;
}

.fl-desc {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  color: rgba(6, 13, 45, 0.7);
}
.case-wave-frontline-desktop .fl-desc,
.case-wave-frontline-mobile .fl-desc {
  font-size: 10px;
  line-height: 1.2;
}
.case-wave-frontline-desktop .fl-desc {
  max-width: 250px;
}

/* Chevrons */
.fl-img {
  width: 154px;
  height: 154px;
  object-fit: contain;
  display: block;
}
.case-wave-frontline-mobile .fl-cell--chevron-m {
  flex: 1 1 0;
  padding: 0;
}

/* +184 counter */
.fl-cell--count {
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 0;
}
.fl-cell--count {
  padding: 8px 8px 0 8px;
}
.fl-plus {
  display: block;
  color: #3638ff;
  flex-shrink: 0;
  width: auto;
  height: 36px;
}
.fl-count-num {
  font-family: "Kharkiv Tone", sans-serif;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #3638ff;
  white-space: nowrap;
}
.fl-count-num {
  font-size: 40px;
}
.fl-count-label {
  margin: 0;
  font-family: "Kharkiv Tone", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #3638ff;
}
.fl-count-label {
  font-size: 15px;
}

.fl-count-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.case-wave-frontline-mobile .fl-cell--count {
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 40px;
  padding: 8px 8px 8px 8px;
}
.case-wave-frontline-mobile .fl-count-bottom {
  align-items: center;
}

.fl-cell--empty {
  /* placeholder to preserve grid flow */
}

/* Chevron cells with overlaid default + hover images */
.fl-chev-cell {
  display: grid;
  place-items: center;
}
.fl-chev-cell .fl-img {
  grid-area: 1 / 1;
  transform-origin: center center;
}
/* Default: visible when inactive. On enter-active: instantly hide. On
   exit-active: comes back after hover has finished shrinking. */
/* Single-image zoom: scale the default image up when active. No
   cross-fade between two artworks — purely transform-driven. */
.fl-chev-cell .fl-img--default {
  opacity: 1;
  transform: scale(1);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 300ms ease-out;
}
.fl-chev-cell.is-active .fl-img--default {
  transform: scale(1.2);
  opacity: 0.1;
}
/* Hover artwork no longer used — keep markup for future re-use. */
.fl-chev-cell .fl-img--hover {
  display: none;
}

/* Text label overlaid on the chevron, appears on active. */
.fl-chev-text {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
  font-family: "Kharkiv Tone", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #060d2d;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease-out;
}
.fl-chev-cell.is-active .fl-chev-text {
  opacity: 1;
}

/* Mobile scroller: visible window of 2 chevrons, stack translates up on tick */
.fl-mobile-scroller {
  flex: 1 1 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.fl-mobile-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}
.case-wave-frontline-mobile .fl-mobile-scroller {
  flex: 0 0 auto;
  height: 308px; /* 2 × 154 cell height */
}
.case-wave-frontline-mobile .fl-mobile-track > * {
  flex-shrink: 0;
  width: 100%;
  height: 154px;
}
.case-wave-frontline-mobile .fl-chev-cell--m {
  padding: 0;
}
.case-wave-frontline-mobile .fl-chev-cell--m .fl-img {
  width: 154px;
  height: 154px;
  max-width: 100%;
}
.case-wave-frontline-mobile .fl-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CONTACT FORM */
.case-wave-contact {
  display: flex;
  flex-direction: column-reverse;
}

.case-wave-contact-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.case-wave-contact-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-wave-contact-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
}

.case-wave-contact-form {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: url("assets/Wave/contact%20background.svg") center / cover no-repeat;
}

.case-wave-contact-bg {
  display: none;
}

.case-wave-contact-label {
  display: none;
}

.case-wave-contact-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: auto;
}

@media (min-width: 768px) {
  .case-wave-contact {
    flex-direction: row;
  }

  .case-wave-contact-photo {
    aspect-ratio: auto;
    width: 50%;
    height: 50vw; /* 720/1440 */
  }

  .case-wave-contact-cta {
    width: 62.78%; /* 452/720 */
  }

  .case-wave-contact-form {
    aspect-ratio: auto;
    width: 50%;
    height: 50vw;
  }

  .case-wave-contact-label {
    display: block;
    position: absolute;
    top: var(--margin);
    left: var(--margin);
    font-family: var(--font-mono);
    font-size: 16px;
    text-transform: uppercase;
    color: var(--black);
    opacity: 0.7;
    z-index: 2;
  }

  .case-wave-contact-card {
    width: 60.97%; /* 439/720 */
    top: 50%;
  }
}

/* LONG SPREADS */
.case-wave-spreads {
  display: flex;
  gap: 24px;
  padding: 72px 24px;
  background: #bfccea;
}

.case-wave-spreads-img {
  flex: 1;
  width: 0;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .case-wave-spreads {
    gap: 48px;
    padding: 120px 48px;
  }
}

@media (min-width: 1024px) {
  .case-wave-spreads {
    gap: 64px;
    padding: 120px 64px;
  }
}

@media (min-width: 1200px) {
  .case-wave-spreads {
    gap: 80px;
    padding: 120px 80px;
  }
}

/* PHONE SCREENS */
.case-wave-phones {
  background: #f1f4f9;
  padding: 72px 24px;
}

.case-wave-phones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.case-wave-phones-img {
  width: 35.58%;
  height: auto;
}

.case-wave-phones-img:nth-child(3) {
  margin-left: auto;
}

@media (min-width: 768px) {
  .case-wave-phones {
    padding: 120px 5.45vw;
  }

  .case-wave-phones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 3.96vw;
    align-items: start;
  }

  .case-wave-phones-img {
    width: 100%;
  }

  .case-wave-phones-img:nth-child(3) {
    margin-left: 0;
  }

  .case-wave-phones-img--tall {
    margin-top: 6.11vw;
  }
}

/* RESULTS & KEY LEARNINGS */
.case-wave-results {
  padding: 34px var(--margin) 100px;
  max-width: 580px;
  color: var(--black);
}

@media (min-width: 1024px) {
  .case-wave-results {
    padding-bottom: 180px;
  }
}

.case-wave-results-label {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}

.case-wave-results-heading {
  font-family: var(--font);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.case-wave-results-body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.2;
  opacity: 0.6;
}

/* ZOOM ANIMATION */
.case-wave-zoom {
  overflow: hidden;
  background: #bfccea;
  contain: layout style paint;
}

@media (min-width: 1024px) {
  .case-wave-zoom {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.case-wave-zoom-grid {
  padding: 8px;
  transform: translate3d(0px, 0px, 0) scale(5);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.case-wave-zoom-stage {
  position: relative;
  width: 100%;
}

.case-wave-zoom-picture {
  display: block;
  width: 100%;
}

.case-wave-zoom-composite {
  width: 100%;
  height: auto;
  display: block;
}

.case-wave-zoom-overlay {
  display: none;
  position: absolute;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .case-wave-zoom-overlay {
    display: block;
  }
}

/* SPEC CARDS */
.case-wave-specs {
  display: flex;
  flex-direction: column;
}

.case-wave-specs-phone {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.case-wave-specs-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-wave-specs-cards {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #060d2d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 34px;
}

.case-wave-specs-label {
  display: none;
}

.case-wave-specs-card {
  width: 69%;
  height: auto;
}

@media (min-width: 768px) {
  .case-wave-specs {
    flex-direction: row;
  }

  .case-wave-specs-phone {
    aspect-ratio: auto;
    width: 50%;
    height: 50vw;
  }

  .case-wave-specs-cards {
    aspect-ratio: auto;
    width: 50%;
    height: 50vw;
    gap: 24px;
    padding: 34px;
  }

  .case-wave-specs-label {
    display: block;
    position: absolute;
    top: 34px;
    left: 34px;
    font-family: var(--font-mono);
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
  }

  .case-wave-specs-card {
    width: 68.82%;
  }
}

/* ============================================================
   CASE COVER — flip-book hover animation (Wave)
   ============================================================ */
.case-cover {
  position: relative;
  display: block;
}

.case-cover,
.case-cover picture {
  width: 100%;
  height: 100%;
}

@media (min-width: 1024px) {
  .case-cover,
  .case-cover picture {
    width: auto;
    height: auto;
  }
}

.case-frames {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 400ms ease;
  pointer-events: none;
}

.case-frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.case-frames img:nth-child(1)  { animation-delay: 0ms; }
.case-frames img:nth-child(2)  { animation-delay: 400ms; }
.case-frames img:nth-child(3)  { animation-delay: 800ms; }
.case-frames img:nth-child(4)  { animation-delay: 1200ms; }
.case-frames img:nth-child(5)  { animation-delay: 1600ms; }
.case-frames img:nth-child(6)  { animation-delay: 2000ms; }
.case-frames img:nth-child(7)  { animation-delay: 2400ms; }
.case-frames img:nth-child(8)  { animation-delay: 2800ms; }
.case-frames img:nth-child(9)  { animation-delay: 3200ms; }
.case-frames img:nth-child(10) { animation-delay: 3600ms; }

@keyframes case-frame-cycle {
  0%, 9.999% { opacity: 1; }
  10%, 100%  { opacity: 0; }
}

@media (hover: hover) and (pointer: fine) {
  .case-cover > picture img {
    will-change: filter;
  }

  .case-cover:hover > picture img,
  .case-image-link:focus-visible .case-cover > picture img {
    filter: blur(12px);
    transition: filter 300ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .case-cover:hover .case-frames,
  .case-image-link:focus-visible .case-frames {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  .case-cover:hover .case-frames img,
  .case-image-link:focus-visible .case-frames img {
    animation-name: case-frame-cycle;
    animation-duration: 4000ms;
    animation-timing-function: steps(1, end);
    animation-iteration-count: infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-cover:hover > picture img,
  .case-image-link:focus-visible .case-cover > picture img {
    filter: none;
  }
  .case-frames img { animation: none !important; }
}
