:root {
  --white: #ffffff;
  --black: #050505;
  --hero-dark: #07070b;
  --section-gray: #f3f3f6;
  --border: #e8e8ee;
  --text-muted: #616171;
  --tag-bg: #e8e8ee;
  --estatest: #fc336b;
  --mikraot: #fadf59;
  --wizard: #7c3aed;
  --wizard-visual-bg: #f3f3f6;
  --wizard-splash-bg: #6366f1;
  --stop-the-timer: #ff4d57;
  --stop-the-timer-visual-bg: #111111;
  --accent: #6bff51;
  --nav-offset: 120px;
  --nav-morph-duration: 0.55s;
  --nav-morph-ease: cubic-bezier(0.45, 0, 0.15, 1);
  --nav-collapse-duration: 0.15s;
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
}

/* Play / WIP links — hidden in production; visible on localhost or ?dev=1 */
html:not(.ns-dev) [data-ns-dev-only] {
  display: none !important;
}

/* Keep gutter reserved on the homepage so splash unlock never shifts layout */
@media (min-width: 801px) {
  html:has(.ns-home-page) {
    scrollbar-gutter: stable;
  }
}

/* Navy under the lifting sheet — home only (play/cv stay white).
   On mobile keep html/body white so browser chrome / overscroll stay white. */
html:has(.ns-home__page-lift) {
  background: #1e3a8a;
}

@media (max-width: 800px) {
  html:has(.ns-home__page-lift) {
    background: #ffffff;
  }
}

html:has(.ns-home-page.is-splash),
html:has(.ns-home-page.is-splash-done) {
  overflow: hidden;
}

html.ns-skip-splash:has(.ns-home-page) {
  overflow: visible;
}

/* Returning from a case study — never flash the splash / empty home */
html.ns-skip-splash .ns-home__splash {
  display: none !important;
}

html.ns-skip-splash .ns-home-page.is-splash,
html.ns-skip-splash .ns-home-page.is-splash-done {
  overflow: visible;
  height: auto;
  overscroll-behavior: auto;
}

html.ns-skip-splash .ns-home-enter {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

html.i18n-pending body {
  visibility: hidden;
}

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

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: var(--nav-offset);
}

.site {
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

/* Navigation */
.nav {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 100;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 76px;
  padding-block: 6px;
  padding-inline: 12px 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 500px;
  border: 1px solid transparent;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

body:has(.site--project) .nav {
  height: 56px;
  padding-block: 4px;
  padding-inline: 10px 8px;
  gap: 8px;
  transition:
    height var(--nav-morph-duration) var(--nav-morph-ease),
    padding var(--nav-morph-duration) var(--nav-morph-ease),
    gap var(--nav-morph-duration) var(--nav-morph-ease),
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.nav--scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--border);
}

.nav__home {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.nav__avatar {
  width: 52px;
  height: 68px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
}

body:has(.site--project) .nav .nav__avatar {
  transition: width var(--nav-morph-duration) var(--nav-morph-ease), height var(--nav-morph-duration) var(--nav-morph-ease);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__expandable {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__cta {
  flex-shrink: 0;
}

body:has(.site--project) .nav .nav__cta {
  transition:
    height var(--nav-morph-duration) var(--nav-morph-ease),
    padding var(--nav-morph-duration) var(--nav-morph-ease),
    font-size var(--nav-morph-duration) var(--nav-morph-ease),
    min-width var(--nav-morph-duration) var(--nav-morph-ease);
}

/* Compact nav on project pages - avatar + Let's Talk, expands on hover */
body:has(.site--project) .nav .nav__avatar {
  width: 40px;
  height: 52px;
}

body:has(.site--project) .nav .nav__cta {
  height: 40px;
  min-width: 0;
  padding: 8px 12px 8px 14px;
  font-size: 15px;
}

body:has(.site--project) .nav .nav__expandable {
  max-width: 0;
  opacity: 0;
  gap: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-width var(--nav-morph-duration) var(--nav-morph-ease),
    opacity calc(var(--nav-morph-duration) * 0.65) var(--nav-morph-ease),
    gap var(--nav-morph-duration) var(--nav-morph-ease);
}

body:has(.site--project) .nav .nav__expandable .nav__link {
  transform: translateX(-10px);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform var(--nav-morph-duration) var(--nav-morph-ease);
  transition-delay: 0ms;
}

body:has(.site--project) .nav:is(:hover, :focus-within) {
  height: 76px;
  padding-block: 6px;
  padding-inline: 12px 10px;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--border);
}

body:has(.site--project) .nav:is(:hover, :focus-within) .nav__avatar {
  width: 52px;
  height: 68px;
}

body:has(.site--project) .nav:is(:hover, :focus-within) .nav__cta {
  height: 48px;
  min-width: 60px;
  padding: 12px 12px 12px 16px;
  font-size: 16px;
}

body:has(.site--project) .nav:is(:hover, :focus-within) .nav__expandable {
  max-width: 360px;
  opacity: 1;
  gap: 16px;
  pointer-events: auto;
  overflow: visible;
}

body:has(.site--project) .nav:is(:hover, :focus-within) .nav__expandable .nav__link {
  transform: translateX(0);
}

body:has(.site--project) .nav:is(:hover, :focus-within) .nav__expandable .nav__link:nth-child(1) {
  transition-delay: 40ms;
}

body:has(.site--project) .nav:is(:hover, :focus-within) .nav__expandable .nav__link:nth-child(2) {
  transition-delay: 70ms;
}

body:has(.site--project) .nav:is(:hover, :focus-within) .nav__expandable .nav__link:nth-child(3) {
  transition-delay: 100ms;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 39px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

@media (hover: hover) {
  .nav__link:hover {
    background: var(--border);
    transform: translateY(-1px);
  }
}

.nav__link--button {
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

/* CV download modal */
body.cv-modal-open {
  overflow: hidden;
}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cv-modal[hidden] {
  display: none;
}

.cv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.45);
  backdrop-filter: blur(4px);
}

.cv-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.cv-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.cv-modal__close svg {
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .cv-modal__close:hover {
    background: var(--border);
    color: var(--black);
  }
}

.cv-modal__title {
  margin: 0 0 8px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 500;
}

.cv-modal__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

.cv-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-modal__label {
  font-size: 14px;
  font-weight: 500;
}

.cv-modal__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  color: var(--black);
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.cv-modal__input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.08);
}

.cv-modal__error {
  margin: 0;
  font-size: 14px;
  color: #c62828;
}

.cv-modal__submit {
  width: 100%;
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  height: 48px;
  padding: 12px 16px 12px 16px;
  border: none;
  border-radius: 39px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn--dark {
  background: var(--black);
  color: var(--white);
  padding-right: 12px;
}

.btn--dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--outline {
  background: #ffffff;
  color: var(--black);
  border: 1px solid var(--border);
  padding-right: 12px;
}

@media (hover: hover) {
  .btn--outline:hover {
    transform: translateY(-1px);
    background: var(--border);
    box-shadow: none;
  }
}

.btn--light {
  background: var(--white);
  color: var(--black);
}

.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  color: var(--black);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 200ms ease,
    visibility 200ms ease,
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
  .back-to-top:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .back-to-top--visible {
    transform: none;
  }
}

@media (max-width: 900px) {
  .back-to-top {
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 16px;
  padding-bottom: 0;
  background: #ffffff;
}

.hero__frame {
  position: relative;
  height: min(1064px, calc(100vh - 32px));
  min-height: 480px;
  border-radius: 30px;
  background: var(--hero-dark);
  overflow: hidden;
}

/* Morphing gradient - adapted from https://github.com/baunov/gradients-bg */
.hero__gradient {
  --hero-color-bg1: rgb(7, 7, 11);
  --hero-color-bg2: rgb(10, 12, 28);
  --hero-color1: 44, 85, 245;
  --hero-color2: 73, 59, 169;
  --hero-color3: 42, 66, 190;
  --hero-color4: 120, 80, 220;
  --hero-color5: 30, 120, 255;
  --hero-circle-size: 80%;
  --hero-blending: hard-light;
  --hero-ease: cubic-bezier(0.45, 0.05, 0.55, 0.95);

  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(40deg, var(--hero-color-bg1), var(--hero-color-bg2));
}

.hero__gradient svg {
  position: absolute;
  width: 0;
  height: 0;
}

.hero__gradients {
  filter: url(#hero-goo) blur(40px);
  width: 100%;
  height: 100%;
}

.hero__blob {
  position: absolute;
  mix-blend-mode: var(--hero-blending);
  opacity: 1;
}

.hero__blob--1 {
  background: radial-gradient(
    circle at center,
    rgba(var(--hero-color1), 0.75) 0,
    rgba(var(--hero-color1), 0) 50%
  );
  width: var(--hero-circle-size);
  height: var(--hero-circle-size);
  top: calc(50% - var(--hero-circle-size) / 2);
  left: calc(50% - var(--hero-circle-size) / 2);
  transform-origin: center center;
  animation: hero-move-vertical 32s var(--hero-ease) infinite;
  animation-delay: -4s;
}

.hero__blob--2 {
  background: radial-gradient(
    circle at center,
    rgba(var(--hero-color2), 0.75) 0,
    rgba(var(--hero-color2), 0) 50%
  );
  width: var(--hero-circle-size);
  height: var(--hero-circle-size);
  top: calc(50% - var(--hero-circle-size) / 2);
  left: calc(50% - var(--hero-circle-size) / 2);
  transform-origin: calc(50% - 400px);
  animation: hero-move-circle 26s var(--hero-ease) reverse infinite;
  animation-delay: -9s;
}

.hero__blob--3 {
  background: radial-gradient(
    circle at center,
    rgba(var(--hero-color3), 0.75) 0,
    rgba(var(--hero-color3), 0) 50%
  );
  width: var(--hero-circle-size);
  height: var(--hero-circle-size);
  top: calc(50% - var(--hero-circle-size) / 2 + 200px);
  left: calc(50% - var(--hero-circle-size) / 2 - 500px);
  transform-origin: calc(50% + 400px);
  animation: hero-move-circle 44s var(--hero-ease) infinite;
  animation-delay: -18s;
}

.hero__blob--4 {
  background: radial-gradient(
    circle at center,
    rgba(var(--hero-color4), 0.65) 0,
    rgba(var(--hero-color4), 0) 50%
  );
  width: var(--hero-circle-size);
  height: var(--hero-circle-size);
  top: calc(50% - var(--hero-circle-size) / 2);
  left: calc(50% - var(--hero-circle-size) / 2);
  transform-origin: calc(50% - 200px);
  animation: hero-move-horizontal 38s var(--hero-ease) infinite;
  animation-delay: -12s;
  opacity: 0.7;
}

.hero__blob--5 {
  background: radial-gradient(
    circle at center,
    rgba(var(--hero-color5), 0.75) 0,
    rgba(var(--hero-color5), 0) 50%
  );
  width: calc(var(--hero-circle-size) * 2);
  height: calc(var(--hero-circle-size) * 2);
  top: calc(50% - var(--hero-circle-size));
  left: calc(50% - var(--hero-circle-size));
  transform-origin: calc(50% - 800px) calc(50% + 200px);
  animation: hero-move-circle 22s var(--hero-ease) infinite;
  animation-delay: -6s;
}

@keyframes hero-move-circle {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes hero-move-vertical {
  0% {
    transform: translateY(-35%);
  }

  50% {
    transform: translateY(35%);
  }

  100% {
    transform: translateY(-35%);
  }
}

@keyframes hero-move-horizontal {
  0% {
    transform: translateX(-35%) translateY(-6%);
  }

  50% {
    transform: translateX(35%) translateY(6%);
  }

  100% {
    transform: translateX(-35%) translateY(-6%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__blob--1,
  .hero__blob--2,
  .hero__blob--3,
  .hero__blob--4,
  .hero__blob--5 {
    animation: none;
  }

  .hero__chip-dot {
    animation: none;
    opacity: 1;
    transform: none;
    box-shadow: 0 0 10px rgba(107, 255, 81, 0.55);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 120px 64px 64px;
  color: var(--white);
}

.hero__intro {
  max-width: 780px;
  font-family: "Rubik", system-ui, sans-serif;
}

.hero__status {
  margin: 0 0 16px;
  font-size: clamp(36px, calc(12px + 3.8vw), 60px);
  line-height: 1.2;
}

.hero__status .hero__chip {
  margin: 0;
  translate: none;
  font-size: 0.44em;
  vertical-align: baseline;
}

.hero__statement {
  margin: 0;
  max-width: 780px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(36px, calc(12px + 3.8vw), 60px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero__word {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.hero__cta-line {
  display: inline-block;
  white-space: nowrap;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0.12em;
  padding: 0.33em 0.66em;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.44em;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  translate: 0 -0.06em;
}

.hero__chip--status {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.hero__chip-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: hero-chip-dot-pulse 2s ease-in-out infinite;
}

@keyframes hero-chip-dot-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.88);
    box-shadow: 0 0 4px rgba(107, 255, 81, 0.25);
  }

  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 8px rgba(107, 255, 81, 0.95),
      0 0 18px rgba(107, 255, 81, 0.55),
      0 0 32px rgba(107, 255, 81, 0.25);
  }
}

.hero__chip--link {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.hero__chip--link:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.hero__chip--cta {
  border: 1px solid transparent;
  background: var(--white);
  color: var(--black);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.hero__chip--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18);
}

.hero__chip-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Work section */
.work {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 0 16px 0;
  background: transparent;
}

.work__frame {
  background: #f3f3f6;
  border-radius: 30px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 581px));
  gap: 16px;
  width: 100%;
  max-width: 1178px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 32px;
  background: transparent;
  cursor: default;
  transition: background-color 200ms ease;
}

.work-card__visual {
  position: relative;
  height: 356px;
  border-radius: 28px;
  overflow: hidden;
}

.work-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

@media (hover: hover) {
  .work-card:hover {
    background: var(--border);
  }

  .work-card:hover .work-card__visual img {
    transform: scale(1.1);
  }
}

.work-card__visual--estatest {
  background: var(--estatest);
}

.work-card__visual--mikraot {
  background: var(--mikraot);
}

.work-card__visual--wizard {
  background: var(--wizard-visual-bg);
}

.work-card__visual--stop-the-timer {
  background: var(--stop-the-timer-visual-bg);
}

.work-card__visual--empty {
  background: var(--white);
}

.work-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.work-card__title {
  margin: 0 0 4px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
}

.work-card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: var(--tag-bg);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* CTA */
.cta {
  padding: 24px 48px;
  background: #ffffff;
}

.cta__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 87px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 32px;
}

.cta__text {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* CV */
.cv {
  padding: 24px 48px 0;
  background: #ffffff;
}

.cv__frame {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 32px;
}

.cv__intro {
  flex: 1 1 280px;
  max-width: 520px;
}

.cv__title {
  margin: 0 0 12px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.cv__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.cv__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 240px;
}

.cv__skills li {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
}

.cv__download {
  flex-shrink: 0;
}

/* Footer */
.footer {
  margin: 0 48px 24px;
  min-height: 320px;
  padding: 48px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 32px;
  color: var(--black);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  height: 100%;
  min-height: 224px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer__title {
  margin: 0 0 16px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.footer__bio {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer__cta {
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}

.footer__contact a {
  color: var(--text-muted);
  transition: color 150ms ease;
}

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

.footer__copy {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switch__sep {
  color: var(--border);
  user-select: none;
}

.lang-btn {
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 150ms ease;
}

/* Hebrew label keeps Rubik even when the page is in English */
.lang-btn[data-lang="he"] {
  font-family: "Rubik", system-ui, sans-serif;
}

.lang-btn:hover {
  color: var(--black);
}

.lang-btn.is-active {
  color: var(--black);
}

.footer--compact {
  min-height: auto;
  padding: 32px 48px;
}

.footer--compact .footer__inner {
  min-height: 0;
  gap: 0;
}

.footer--compact .footer__bottom {
  padding-top: 0;
  border-top: none;
}

/* Project pages */
.site--project {
  padding-top: 136px;
  --project-gap: 96px;
  --project-gap-inner: 40px;
  --project-accent: var(--estatest);
}

.site--project--mikraot {
  --project-accent: #74a702;
  --ns-accent: #74a702;
}

.site--project--wizard {
  --project-accent: var(--wizard);
}

.site--project--stop-the-timer {
  --project-accent: var(--stop-the-timer);
}

.site--project--mikraot .project-voices__card--lead {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(116, 167, 2, 0.28) 0%, transparent 55%),
    var(--black);
}

.project-cover__visual--mikraot {
  background: var(--mikraot);
}

.project-header__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
}

.project-header__mark--wizard {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

.project-cover__visual--wizard {
  background: var(--wizard-visual-bg);
}

.project-panel--magic {
  padding-inline: 48px;
  background: #ffffff;
  overflow: visible;
  --magic-sticky-pad: 72px;
}

@media (min-width: 901px) {
  .site--project--wizard,
  .site--project--wizard.jw-case,
  .site--project--wizard.ns-case {
    overflow-x: visible;
  }

  .magic-layers-canva__visual {
    justify-content: center;
  }

  .magic-layers-canva__canvas {
    justify-content: center;
    padding: 0;
  }

  .magic-layers__scene-wrap {
    align-items: center;
    margin-inline: auto;
  }

  .magic-layers__stage {
    margin-inline: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

.magic-layers-scroll {
  position: relative;
}

.magic-layers-scroll__track {
  height: 360vh;
}

.magic-layers-scroll__sticky {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100dvh;
  height: 100dvh;
  padding: var(--magic-sticky-pad) 0;
  overflow: visible;
}

.magic-layers-scroll.is-manual .magic-layers-scroll__track {
  height: auto;
}

.magic-layers-scroll.is-manual .magic-layers-scroll__sticky {
  position: relative;
  top: auto;
  height: auto;
  padding: 0;
}

.magic-layers-scroll.is-manual .magic-layers-demo__controls--fallback {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.magic-layers-scroll.is-manual .magic-layers-canva__visual {
  min-height: 0;
  justify-content: center;
}

.magic-layers-scroll.is-manual .magic-layers__stage {
  width: min(100%, 380px);
  margin-inline: auto;
}

.magic-layers-scroll.is-manual .magic-layers-canva__step.is-active .magic-layers-canva__step-text {
  max-height: 240px;
}

.magic-layers-canva {
  width: min(100%, 1178px);
  margin-inline: auto;
  overflow: visible;
}

.magic-layers-canva--pinned {
  width: min(100%, 1178px);
}

.magic-layers-canva__title {
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: left;
  color: var(--black);
}

.magic-layers-canva__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
}

.magic-layers-canva--pinned .magic-layers-canva__canvas {
  min-height: 0;
}

.magic-layers-canva__steps {
  display: flex;
  flex-direction: column;
}

.magic-layers-canva__step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.magic-layers-canva__step:first-of-type {
  border-top: none;
  padding-top: 0;
}

.magic-layers-canva__step-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
}

.magic-layers-canva__step-title {
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #98a2b3;
  transition: color 0.25s ease;
}

.magic-layers-canva__step-text {
  max-height: 0;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;
}

.magic-layers-canva__step.is-active .magic-layers-canva__step-title {
  color: var(--black);
}

.magic-layers-canva__step.is-active .magic-layers-canva__step-text {
  max-height: 120px;
  opacity: 1;
}

.magic-layers-canva__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  min-height: calc(100dvh - var(--magic-sticky-pad) * 2);
  overflow: visible;
}

.magic-layers-canva__canvas {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 0;
  padding: 0 0 0 24px;
  overflow: visible;
  background: transparent;
}

.magic-layers__scene-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 36px;
  width: min(100%, 560px);
  position: relative;
}

.magic-layers__step-caption {
  display: none;
  margin: 0;
  min-height: 1.3em;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--black);
}

.magic-layers__scroll-hint {
  display: none;
}

.magic-layers__layer-rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: center;
  width: auto;
  max-height: 0;
  padding: 0 8px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s,
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.magic-layers__layer-rail.is-visible {
  max-height: 104px;
  padding: 8px 8px 20px;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.magic-layers__rail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 6px;
  border: 1.5px solid rgba(16, 24, 40, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.06),
    0 8px 20px rgba(16, 24, 40, 0.06);
}

.magic-layers__rail-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.magic-layers__rail-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.magic-layers__stage {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 560px);
  aspect-ratio: 2048 / 1536;
  margin-inline: 0 0;
  margin-left: auto;
  transform: none;
  transform-style: flat;
  overflow: visible;
  will-change: auto;
}

.magic-layers__foreground {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: center center;
  pointer-events: none;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.magic-layers__foreground .magic-layers__layer,
.magic-layers__foreground .magic-layers__selection {
  pointer-events: none;
}

.magic-layers__foreground .magic-layers__hit {
  pointer-events: all;
}

.magic-layers__frame-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 20px;
  background: #ffffff;
  transform: none;
  transform-origin: center bottom;
  transform-style: preserve-3d;
  clip-path: inset(0 round 20px);
  isolation: isolate;
  will-change: transform;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.04),
    0 10px 28px rgba(17, 24, 39, 0.06);
}

.magic-layers__card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.magic-layers__layer[data-layer-id="handlebar"] {
  z-index: 2;
  pointer-events: none;
}

.magic-layers__layer[data-layer-id="left-hand"] {
  z-index: 4;
  pointer-events: none;
}

.magic-layers__layer[data-layer-id="right-hand"] {
  z-index: 5;
  pointer-events: none;
}

.magic-layers__layer[data-layer-id="left-hand"] .magic-layers__hit,
.magic-layers__layer[data-layer-id="right-hand"] .magic-layers__hit,
.magic-layers__layer[data-layer-id="handlebar"] .magic-layers__hit {
  pointer-events: all;
}

.magic-layers__layer[data-layer-id="left-hand"],
.magic-layers__layer[data-layer-id="right-hand"],
.magic-layers__layer[data-layer-id="handlebar"] {
  filter: none;
  transition: filter 0.35s ease;
}

.magic-layers__stage[data-exploded="true"] .magic-layers__layer[data-layer-id="left-hand"],
.magic-layers__stage[data-exploded="true"] .magic-layers__layer[data-layer-id="right-hand"],
.magic-layers__stage[data-exploded="true"] .magic-layers__layer[data-layer-id="handlebar"] {
  filter: drop-shadow(0 16px 36px rgba(17, 24, 39, 0.16));
}

.magic-layers__stage[data-exploded="true"] .magic-layers__layer.is-active[data-layer-id="left-hand"],
.magic-layers__stage[data-exploded="true"] .magic-layers__layer.is-active[data-layer-id="right-hand"],
.magic-layers__stage[data-exploded="true"] .magic-layers__layer.is-active[data-layer-id="handlebar"] {
  filter: drop-shadow(0 18px 40px rgba(17, 24, 39, 0.2));
}

.magic-layers__card-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.magic-layers__layer {
  transform-style: preserve-3d;
}

.magic-layers__selection {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  visibility: hidden;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.magic-layers__selection[data-layer-id="left-hand"] {
  z-index: 6;
}

.magic-layers__selection[data-layer-id="right-hand"] {
  z-index: 7;
}

.magic-layers__selection[data-layer-id="handlebar"] {
  z-index: 8;
}

.magic-layers__selection.is-visible,
.magic-layers__selection.is-exiting {
  visibility: visible;
}

.magic-layers__selection-box {
  stroke: #0d99ff;
  stroke-width: 1.75;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.magic-layers__selection.is-visible .magic-layers__selection-box {
  opacity: 1;
}

.magic-layers__selection.is-exiting .magic-layers__selection-box {
  opacity: 0;
}

.magic-layers__stage[data-selection-mode="all"] .magic-layers__selection.is-visible .magic-layers__selection-box {
  opacity: 0.92;
}

.magic-layers__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-style: preserve-3d;
}

.magic-layers__box,
.magic-layers__handles,
.magic-layers__handle {
  display: none;
}

.magic-layers__error {
  margin: 0;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.magic-layers-demo__slider-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.magic-layers-demo__slider {
  width: 100%;
  accent-color: var(--project-accent);
}

.project-header {
  padding: 0 48px calc(var(--project-gap) / 2);
  background: #ffffff;
}


.project-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.project-header__desc {
  margin: 0 0 40px;
  font-size: 18px;
  color: var(--text-muted);
}

.project-header__split {
  display: flex;
  flex-direction: column;
  gap: 24px;
  --project-header-radius: 40px;
}

.project-meta {
  padding: 32px 24px;
  border-radius: var(--project-header-radius, 40px);
  background: var(--section-gray);
}

.project-meta__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-meta__row {
  display: flex;
  gap: 8px;
  margin: 0;
}

.project-meta__label {
  flex: 0 0 128px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.project-meta__values {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

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

.project-meta__divider {
  height: 1px;
  background: var(--border);
}

.project-meta__stat {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}

.project-cover__visual {
  width: 100%;
  margin: 0;
  border-radius: var(--project-header-radius, 28px);
  overflow: hidden;
  background: var(--project-accent);
  aspect-ratio: 533 / 356;
}

.project-cover__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-cover__visual.project-cover__visual--wizard {
  background: var(--wizard-visual-bg);
}

.project-cover__visual.project-cover__visual--wizard img {
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .project-header__split {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }

  .project-meta {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    padding: 32px 40px;
  }

  .project-meta__list {
    width: 100%;
  }

  .project-header__split .project-cover__visual {
    flex: 0 0 auto;
    width: min(380px, 34%);
    height: auto;
    align-self: auto;
  }
}

.project-header__inner {
  max-width: 1178px;
  margin: 0 auto;
}

/* Estatest brief header */
.project-header--brief .project-back {
  margin-bottom: 40px;
}

.project-header__markline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.project-header__logo--estatest {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.project-header__logo--stop-the-timer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
}

.project-header__kicker {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}

.project-header__headline {
  margin: 0 0 40px;
  max-width: 14ch;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.project-header__brief {
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  margin-bottom: 48px;
}

.project-brief-meta {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px 24px;
  border-radius: 32px;
  background: var(--section-gray);
}

.project-brief-meta__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-brief-meta__row {
  display: flex;
  gap: 8px;
  margin: 0;
}

.project-brief-meta__label {
  flex: 0 0 96px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.project-brief-meta__values {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}

.project-brief-meta__values--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.project-brief-meta__divider {
  height: 1px;
  background: var(--border);
}

.project-brief-meta__stat {
  flex: 1;
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}

.project-brief-meta__stat--compact {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.project-brief-story {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
}

.project-brief-story__title {
  margin: 0 0 8px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.project-brief-story__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-header__stage-wrap {
  position: relative;
}

.project-header__stage-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 6% -6%;
  background: radial-gradient(ellipse 72% 62% at 50% 48%, rgba(252, 51, 107, 0.2) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.project-header__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  background: var(--project-accent);
  box-shadow: 0 24px 64px rgba(252, 51, 107, 0.16);
  animation: project-header-stage-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.project-header__stage img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes project-header-stage-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .project-header__headline {
    max-width: none;
  }

  .project-header__brief {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .project-brief-meta {
    padding: 28px 20px;
    border-radius: 24px;
  }


  .project-header__stage {
    border-radius: 24px;
  }
}

@media (min-width: 1024px) {
  .project-brief-meta {
    padding: 32px 28px;
  }

  .project-brief-meta__label {
    flex-basis: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-header__stage {
    animation: none;
  }
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 150ms ease;
}

.project-back svg {
  width: 16px;
  height: 16px;
}

@media (hover: hover) {
  .project-back:hover {
    color: var(--black);
  }
}

.project-header__logo {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.project-header__logo--app {
  border-radius: 14px;
}

.project-header__title {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.project-body__inner {
  max-width: 1178px;
  margin: 0 auto;
}

.project-body--tight {
  padding-top: 32px;
}

.project-v2__mark {
  padding: 56px 48px 0;
}

.project-v2__mark .project-body__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
  text-align: center;
}

.project-v2__divider {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.project-v2__divider::before,
.project-v2__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.project-v2__badge {
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: #fff;
}

.project-v2__lead {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.project-v2 > .project-body--tight {
  padding-top: 40px;
}

.project-v2-insights {
  padding-top: 0;
}

.project-v2-insights__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin-bottom: 32px;
}

.project-v2-insights__head > .project-block__eyebrow,
.project-v2-insights__head > .project-block__title,
.project-v2-insights__head > .project-block__text {
  margin: 0;
}

.project-insights--v2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.project-v2-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-v2-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: #ffffff;
}

.project-v2-card__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-v2-card__label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--project-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-v2-card__title {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.project-v2-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-v2-card__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  margin-top: auto;
}

.project-v2-card__phone .project-screens__device--compact {
  max-width: 220px;
  width: 100%;
}

.project-v2-card__caption {
  margin: 12px 0 0;
  width: 100%;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

.project-block__eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--project-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-block--highlight {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: transparent;
}

.project-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.project-insights__item {
  margin: 0;
}

.project-insights__title {
  margin: 0 0 8px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.project-insights__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-canvas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.project-canvas__cell {
  margin: 0;
  padding: 24px;
  border-right: 1px solid var(--border);
}

.project-canvas__cell:last-child {
  border-right: none;
}

.project-canvas__label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--project-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-canvas__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-competitors__lead {
  max-width: 560px;
  margin-bottom: 28px;
}

.project-competitors {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.project-competitors__item {
  border-bottom: 1px solid var(--border);
}

.project-competitors__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.project-competitors__link:hover {
  color: var(--project-accent);
}

.project-competitors__link:hover .project-competitors__name::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.project-competitors__name {
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.project-competitors__name::after {
  content: "↗";
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  opacity: 0.35;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.project-competitors__meta {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.testimonial-wall {
  padding: calc(var(--project-gap) / 2) 48px;
  background:
    radial-gradient(circle at 1px 1px, rgba(17, 24, 39, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    #ffffff;
  color: var(--black);
}

.testimonial-wall__inner {
  max-width: 1178px;
  margin: 0 auto;
}

.testimonial-wall__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.testimonial-wall__eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--project-accent);
}

.testimonial-wall__title {
  margin: 0;
  max-width: 16ch;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--black);
}

.testimonial-wall__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.testimonial-wall__stage {
  position: relative;
  max-height: min(720px, 72vh);
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}

.testimonial-wall__masonry {
  columns: 4;
  column-gap: 14px;
}

.testimonial-wall__card {
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--section-gray);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.testimonial-wall__quote {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--black);
}

.testimonial-wall__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.testimonial-wall__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: #ffffff;
  color: var(--black);
}

.testimonial-wall__channel {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-voices__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.project-voices__head > .project-block__eyebrow,
.project-voices__head > .project-block__title,
.project-voices__head > .project-voices__lead {
  margin: 0;
}

.project-voices__lead {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-voices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-voices__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 100%;
  padding: 28px;
  border-radius: 24px;
  background: var(--section-gray);
}

.project-voices__card--lead {
  grid-column: 1 / -1;
  padding: 40px 44px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(252, 51, 107, 0.22) 0%, transparent 55%),
    var(--black);
  color: var(--white);
}

.project-voices__quote {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.project-voices__quote::before,
.project-voices__quote::after {
  font-family: "Rubik", system-ui, sans-serif;
  font-weight: 600;
  line-height: 0;
}

.project-voices__quote::before {
  content: "\201C";
  margin-right: 0.06em;
  color: var(--project-accent);
}

.project-voices__quote::after {
  content: "\201D";
  margin-left: 0.04em;
}

.project-voices__card--lead .project-voices__quote::after {
  color: rgba(255, 255, 255, 0.72);
}

.project-voices__card--lead .project-voices__quote {
  max-width: 28ch;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.project-voices__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.project-voices__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.project-voices__card:not(.project-voices__card--lead) .project-voices__badge {
  background: #ffffff;
  color: var(--black);
}

.project-voices__channel {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.project-voices__card:not(.project-voices__card--lead) .project-voices__channel {
  color: var(--text-muted);
}

.project-research__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.project-research__head > .project-block__eyebrow,
.project-research__head > .project-block__title,
.project-research__head > .project-research__lead {
  margin: 0;
}

.project-research__lead {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-research__methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 40px;
}

.project-research__methods--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}

.project-v1 {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 100%;
}

.project-v1__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.project-v1__intro .project-block__title {
  margin: 0;
}

.project-v1__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-v1__head > .project-block__eyebrow,
.project-v1__head > .project-v1__lead {
  margin: 0;
}

.project-v1__meta {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.project-v1__lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-v1-flow {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 8px 0 0;
}

.project-v1-flow__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.project-v1-flow__block--solo {
  grid-column: 1 / -1;
}

.project-v1-quotes {
  margin-top: 16px;
}

.ns-case__evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}

.ns-case__evidence figure {
  margin: 0;
}

.ns-case__evidence img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: #f3f3f3;
  box-shadow: rgba(0, 0, 0, 0.08) 0 0 0 1px;
  cursor: zoom-in;
}

.ns-case__evidence figcaption {
  margin-top: 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ns-soft, #a6a6a6);
}

.jw-lightbox__img--fluid {
  width: auto !important;
  height: auto !important;
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
}

@media (max-width: 720px) {
  .ns-case__evidence {
    grid-template-columns: 1fr;
  }
}

.project-v1-flow__block,
.project-v1-flow__ship {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.project-v1-flow__ship {
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  border-radius: 24px;
  background: var(--section-gray);
}

.project-v1-flow__label {
  margin: 0;
  width: 100%;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
}

.project-v1-flow__ship .project-v1-flow__label {
  text-align: center;
}

.project-v1-flow__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.project-v1-flow__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.project-v1-flow__figure img {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.project-v1-flow__phones {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.project-v1-flow__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.project-v1-flow__phone .project-screens__device {
  width: 100%;
  max-width: 220px;
}

.project-v1-flow__phone .project-screens__device img {
  display: block;
  width: 100%;
  height: auto;
}

.project-v1-flow__screen-label {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-muted);
  text-align: center;
}

.project-research-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-research-evidence__item {
  margin: 0;
}

.project-research-evidence__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.project-research-evidence__caption {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.project-onboarding__screens--2 {
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: start;
  max-width: 480px;
}

.project-research__method {
  margin: 0;
  padding: 24px;
  border-radius: 20px;
  background: var(--section-gray);
}

.project-research__method-value {
  display: block;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}

.project-research__method-label {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.project-research__impact {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.project-research__impact-title {
  margin: 0 0 8px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-research__impact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-research__impact-item {
  margin: 0;
}

.project-research__impact-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--project-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-research__impact-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-section-head {
  margin-bottom: 32px;
}

.project-section-head__desc {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.project-body__inner--narrow {
  max-width: 560px;
}

.journey-map__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--project-gap-inner);
}

.journey-map__head > .project-block__title,
.journey-map__head > .journey-map__subtitle {
  margin: 0;
}

.journey-map__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}

.journey-map__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -8px;
  padding: 0 8px 4px;
}

.journey-map {
  min-width: 720px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
}

.journey-map__stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 20px;
  margin-left: 88px;
  padding: 0;
  list-style: none;
}

.journey-map__stage {
  padding: 12px 8px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
  background: var(--project-accent);
  border-radius: 8px;
}

.journey-map__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.journey-map__row {
  display: grid;
  grid-template-columns: 88px repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.journey-map__row:last-child {
  border-bottom: 1px solid var(--border);
}

.journey-map__label {
  display: flex;
  align-items: flex-start;
  padding: 16px 12px 16px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
}

.journey-map__cell {
  padding: 16px 12px;
  border-left: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.journey-map__cell ul {
  margin: 0;
  padding: 0 0 0 14px;
}

.journey-map__cell li + li {
  margin-top: 6px;
}

.journey-map__cell--quote p {
  margin: 0;
  font-style: italic;
  color: var(--black);
}

.journey-map__row--emotion {
  align-items: stretch;
}

.journey-map__row--emotion .journey-map__label {
  align-items: center;
}

.journey-map__chart {
  grid-column: 2 / -1;
  padding: 12px 16px 8px;
  border-left: 1px solid var(--border);
}

.journey-map__chart-plot {
  position: relative;
  height: 72px;
}

.journey-map__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.journey-map__line {
  stroke: var(--project-accent);
  stroke-width: 2.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.journey-map__chart.is-animated .journey-map__line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.9s cubic-bezier(0.45, 0, 0.15, 1);
}

.journey-map__dots {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  pointer-events: none;
}

.journey-map__dot-cell {
  position: relative;
  display: block;
  height: 100%;
}

.journey-map__dot {
  position: absolute;
  top: var(--y);
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2.5px solid var(--project-accent);
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.journey-map__chart.is-animated .journey-map__dot-cell:nth-child(1) .journey-map__dot {
  animation: journey-map-dot 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 0.35s forwards;
}

.journey-map__chart.is-animated .journey-map__dot-cell:nth-child(2) .journey-map__dot {
  animation: journey-map-dot 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 0.65s forwards;
}

.journey-map__chart.is-animated .journey-map__dot-cell:nth-child(3) .journey-map__dot {
  animation: journey-map-dot 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 0.95s forwards;
}

.journey-map__chart.is-animated .journey-map__dot-cell:nth-child(4) .journey-map__dot {
  animation: journey-map-dot 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 1.25s forwards;
}

.journey-map__chart.is-animated .journey-map__dot-cell:nth-child(5) .journey-map__dot {
  animation: journey-map-dot 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 1.55s forwards;
}

@keyframes journey-map-dot {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.journey-map__feelings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.journey-map__feelings li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(4px);
}

.journey-map__chart.is-animated .journey-map__feelings li:nth-child(1) {
  animation: journey-map-label 0.4s ease 0.5s forwards;
}

.journey-map__chart.is-animated .journey-map__feelings li:nth-child(2) {
  animation: journey-map-label 0.4s ease 0.75s forwards;
}

.journey-map__chart.is-animated .journey-map__feelings li:nth-child(3) {
  animation: journey-map-label 0.4s ease 1s forwards;
}

.journey-map__chart.is-animated .journey-map__feelings li:nth-child(4) {
  animation: journey-map-label 0.4s ease 1.25s forwards;
}

.journey-map__chart.is-animated .journey-map__feelings li:nth-child(5) {
  animation: journey-map-label 0.4s ease 1.5s forwards;
}

@keyframes journey-map-label {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.journey-map__mobile {
  display: none;
}

.journey-map__mobile-graph {
  margin-bottom: 28px;
}

.journey-map__mobile-graph .journey-map__chart {
  grid-column: auto;
  padding: 0;
  border: 0;
}

.journey-map__mobile-graph .journey-map__chart-plot {
  height: 52px;
}

.journey-map__mobile-graph .journey-map__feelings {
  margin-top: 6px;
  gap: 4px;
}

.journey-map__mobile-graph .journey-map__feelings li {
  font-size: 11px;
}

.journey-map__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey-map__timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
}

.journey-map__timeline-step:last-child {
  padding-bottom: 0;
}

.journey-map__timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  inset-inline-start: 7px;
  width: 1px;
  height: calc(100% - 6px);
  background: var(--border);
}

.journey-map__timeline-marker {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  justify-self: center;
  border-radius: 50%;
  background: var(--project-accent);
  box-shadow: 0 0 0 3px #ffffff;
  position: relative;
  z-index: 1;
}

.journey-map__timeline-title {
  margin: 0 0 4px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--black);
}

.journey-map__timeline-steps {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.journey-map__timeline-quote {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-muted);
}

.project-ux {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.project-ux__media {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.project-ux-showcase {
  margin: 0;
  max-width: 320px;
  margin-inline: auto;
}

.project-ux-showcase--video {
  position: relative;
  max-width: none;
  overflow: hidden;
  border-radius: 16px;
  background-color: #fc336b;
  aspect-ratio: 16 / 9;
}

.project-ux-showcase__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-list--compact li {
  padding: 10px 0 10px 20px;
  font-size: 15px;
}

.project-media {
  border-radius: 28px;
  overflow: hidden;
  background: var(--section-gray);
}

.project-media--video {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin-inline: auto;
  border: 1px solid var(--border);
}

.project-media__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  background: linear-gradient(180deg, #f3f3f6 0%, #ececf1 100%);
}

.project-media__icon {
  width: 48px;
  height: 48px;
  opacity: 0.45;
}

.project-media__label {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.project-media__hint {
  margin: 0;
  max-width: 22ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.project-onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

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

.site--project .cta {
  padding: calc(var(--project-gap) / 2) 48px;
}

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

.project-onboarding__screens--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-onboarding--avatar {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: flex-start;
}

.project-onboarding--avatar .project-onboarding__copy {
  max-width: 720px;
}

.project-onboarding__screens--5 {
  display: flex;
  gap: 16px;
  width: 100%;
  direction: rtl;
}

.project-onboarding__screens--5 .project-onboarding__screen {
  flex: 1 1 0;
  min-width: 0;
  direction: ltr;
}

.project-assets {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.project-assets--minimal {
  gap: 28px;
  width: 100%;
}

.project-asset-sheet {
  margin: 0;
  width: 100%;
}

.project-asset-sheet img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--section-gray);
}

.project-asset-sheet figcaption {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.project-assets--tiles {
  gap: 24px;
  width: 100%;
}

.project-assets--strip {
  gap: 28px;
}

.project-assets__chapter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--section-gray);
}

.project-assets__chapter-title {
  margin: 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.site--project--mikraot .project-assets--strip .project-avatar-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.site--project--mikraot .project-assets--strip .project-avatar-grid--layers,
.site--project--mikraot .project-assets--strip .project-avatar-grid--hair,
.site--project--mikraot .project-assets--strip .project-avatar-grid--illus,
.site--project--mikraot .project-assets--strip .project-avatar-grid--poses,
.site--project--mikraot .project-assets--strip .project-avatar-grid--uniforms {
  grid-template-columns: none;
  width: 100%;
}

.site--project--mikraot .project-assets--strip .project-avatar-tile {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.site--project--mikraot .project-assets--strip .project-avatar-tile--wide {
  flex-basis: 144px;
  grid-column: auto;
}

.site--project--mikraot .project-assets--strip .project-avatar-tile__frame,
.site--project--mikraot .project-assets--strip .project-avatar-tile__frame--hair,
.site--project--mikraot .project-assets--strip .project-avatar-tile__frame--uniform,
.site--project--mikraot .project-assets--strip .project-avatar-tile__frame--wide {
  aspect-ratio: auto;
  width: 100%;
  height: 72px;
  padding: 6px;
  background: #fff;
}

.site--project--mikraot .project-assets--strip .project-avatar-tile img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.site--project--mikraot .project-assets--strip .project-avatar-tile__label {
  min-height: 2.6em;
  margin-top: 4px;
}

.site--project--mikraot .project-assets--strip .project-avatar-group {
  gap: 8px;
}

.site--project--mikraot .project-assets--strip .project-avatar-group__title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.site--project--mikraot .project-assets--tiles .project-avatar-grid {
  gap: 8px;
}

.site--project--mikraot .project-assets--tiles .project-avatar-grid--layers,
.site--project--mikraot .project-assets--tiles .project-avatar-grid--hair,
.site--project--mikraot .project-assets--tiles .project-avatar-grid--illus,
.site--project--mikraot .project-assets--tiles .project-avatar-grid--poses,
.site--project--mikraot .project-assets--tiles .project-avatar-grid--uniforms {
  grid-template-columns: repeat(6, 72px);
  max-width: none;
  width: fit-content;
}

.site--project--mikraot .project-assets--tiles .project-avatar-tile__frame {
  padding: 5px;
  border-radius: 10px;
}

.site--project--mikraot .project-assets--tiles .project-avatar-tile__frame--hair,
.site--project--mikraot .project-assets--tiles .project-avatar-tile__frame--uniform {
  padding: 4px;
}

.site--project--mikraot .project-assets--tiles .project-avatar-tile__label {
  font-size: 10px;
  margin-top: 4px;
}

.site--project--mikraot .project-assets--tiles .project-avatar-group {
  gap: 8px;
}

.site--project--mikraot .project-assets--tiles .project-avatar-group__title {
  font-size: 12px;
}

.project-avatar-tile--wide {
  grid-column: span 2;
}

.project-avatar-tile__frame--wide {
  aspect-ratio: 653 / 370;
}

.project-asset-sheet--narrow {
  max-width: 521px;
}

.project-competitors--compact {
  max-width: 480px;
}

.project-assets__copy {
  max-width: 720px;
}

.project-avatar-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.project-avatar-grid--layers {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 660px;
}

.project-avatar-grid--hair {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 480px;
}

.project-avatar-grid--illus,
.project-avatar-grid--poses {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 660px;
}

.project-avatar-grid--uniforms {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 660px;
}

.project-avatar-tile__frame--uniform {
  aspect-ratio: 228 / 232;
}

.project-avatar-tile {
  margin: 0;
  min-width: 0;
}

.project-avatar-tile__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 16px;
  background: var(--section-gray);
}

.project-avatar-tile__frame--hair {
  aspect-ratio: 150 / 186;
  padding: 8px;
}

.project-avatar-tile img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-avatar-tile__label {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-muted);
  text-align: center;
}

.project-avatar-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-avatar-group__title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.project-ux-showcase .project-screens__caption {
  margin-top: 20px;
}

.iphone-mock {
  width: min(100%, 304px);
  margin-inline: auto;
}

.iphone-mock__frame {
  position: relative;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(160deg, #48484a 0%, #1d1d1f 38%, #2c2c2e 100%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.iphone-mock__btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #5a5a5c, #2a2a2c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.iphone-mock__btn--action {
  top: 108px;
  left: -2px;
  height: 28px;
}

.iphone-mock__btn--volume-up {
  top: 148px;
  left: -2px;
  height: 48px;
}

.iphone-mock__btn--volume-down {
  top: 206px;
  left: -2px;
  height: 48px;
}

.iphone-mock__btn--power {
  top: 168px;
  right: -2px;
  height: 72px;
}

.iphone-mock__screen {
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  background: #000000;
  box-shadow: inset 0 0 0 1px var(--border);
}

.iphone-mock__island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 2;
  width: 104px;
  height: 30px;
  border-radius: 18px;
  background: #000000;
  transform: translateX(-50%);
  pointer-events: none;
}

.iphone-mock__scroll {
  max-height: min(620px, 72vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.iphone-mock__scroll::-webkit-scrollbar {
  display: none;
}

.iphone-mock__scroll:focus-visible {
  outline: 2px solid var(--project-accent);
  outline-offset: -2px;
}

.iphone-mock__scroll img,
.iphone-mock__screen > img,
.iphone-mock__screen > video {
  display: block;
  width: 100%;
  height: auto;
}

.iphone-mock__fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 56px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.project-media--screen {
  aspect-ratio: auto;
  max-width: 320px;
  margin-inline: auto;
  border: none;
  background: transparent;
}

.project-media--screen .project-screens__device {
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
}

.project-onboarding__screen {
  margin: 0;
}

.project-onboarding__copy .project-block__title {
  max-width: 18ch;
}

.project-flow {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.project-flow__step {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.project-flow__step:last-child {
  padding-bottom: 0;
}

.project-flow__label {
  display: block;
  margin-bottom: 6px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.project-flow__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

.project-panel {
  padding: calc(var(--project-gap) / 2) 16px;
  background: #ffffff;
}

.project-panel__frame {
  max-width: 1178px;
  margin: 0 auto;
  padding: 56px;
  background: #f3f3f6;
  border-radius: 30px;
}

.project-panel__hero {
  border-radius: 28px;
  overflow: hidden;
  background: var(--project-accent);
}

.project-panel__hero img {
  display: block;
  width: 100%;
  height: auto;
}

.project-body {
  padding: calc(var(--project-gap) / 2) 48px;
  background: #ffffff;
}

.project-body__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  max-width: 1178px;
  margin: 0 auto;
}

.project-body__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-block__title {
  margin: 0 0 20px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
}

.project-block__eyebrow + .project-block__title {
  margin-top: 0;
}

.project-block__title:has(+ .project-voices__lead),
.project-block__title:has(+ .project-research__lead),
.project-block__title:has(+ .project-block__text.project-competitors__lead) {
  margin-bottom: 8px;
}

.project-block--highlight > .project-block__title {
  margin-bottom: 20px;
}

.project-onboarding__copy > .project-block__title,
.project-assets__copy > .project-block__title {
  margin-bottom: 8px;
}

.project-block__text {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

.project-block__text:last-child {
  margin-bottom: 0;
}

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

.project-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.project-list li:last-child {
  border-bottom: none;
}

.project-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--project-accent);
  transform: translateY(-50%);
}

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

.project-screens--store {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Stop the Timer — story page */
.project-header--story {
  padding-bottom: 0;
}

.project-header--story .project-back {
  margin-bottom: 0;
}

.project-header--story .project-case-hero__top,
.project-header--story .jw-case__toolbar {
  margin-bottom: 40px;
}

.stt-story-hero {
  max-width: 720px;
  padding-bottom: 16px;
}

.stt-story-hero__title {
  margin: 0 0 20px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stt-story-hero__lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
}

.stt-story-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stt-story-hero__badges li {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--section-gray);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.stt-story {
  display: block;
}

.stt-chapter {
  padding: clamp(56px, 8vw, 88px) 48px;
  background: #ffffff;
}

.stt-chapter--alt {
  background: var(--section-gray);
}

.stt-chapter__inner {
  max-width: 1178px;
  margin: 0 auto;
}

.stt-chapter__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 44%);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.stt-chapter__copy--center {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.stt-chapter__title {
  margin: 0 0 20px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.stt-chapter__text {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}

.stt-chapter__text:last-child {
  margin-bottom: 0;
}

.stt-chapter__stat {
  margin: 0 0 20px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--project-accent);
}

.stt-chapter__media {
  margin: 0;
}

.stt-chapter__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.stt-chapter__media--phone {
  max-width: 320px;
  margin-inline: auto;
}

.stt-chapter__media--phone .project-screens__device {
  border: none;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.stt-chapter__caption {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.stt-chapter__screens {
  margin-top: 8px;
}

.stt-chapter__avatars {
  margin-top: 48px;
}

@media (max-width: 900px) {
  .stt-chapter {
    padding-inline: 16px;
  }

  .stt-chapter__inner--split,
  .stt-chapter__inner--split.stt-chapter__inner--reverse {
    grid-template-columns: 1fr;
  }

  .stt-chapter__inner--reverse .stt-chapter__media {
    order: -1;
  }

  .stt-chapter__copy--center {
    text-align: start;
    margin-bottom: 32px;
  }
}

.project-stt-art {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  background: var(--section-gray);
  border: 1px solid var(--border);
}

.project-stt-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Jesse Warren–style case study (Figma reference) */
.jw-case {
  --jw-prose: 700px;
  --jw-grid: 720px;
  --jw-phone: 300px;
  --jw-hero: min(var(--jw-phone), 68vw);
  --jw-media-gap: 16px;
  --jw-media-radius: 22px;
  --jw-media-radius-sm: 14px;
  --jw-media-block: 40px;
  --jw-phone-shadow:
    0 0.6px 1.1px rgba(0, 0, 0, 0.09),
    0 2.3px 4.1px rgba(0, 0, 0, 0.09),
    0 10px 18px rgba(0, 0, 0, 0.09);
  --jw-muted: #4f4f4f;
  --jw-line: #e0e0e0;
  --jw-band: #f5f5f5;
  --jw-tint: #fafafa;
  --jw-card: #f7f5f0;
  --jw-meta-bg: #fcfcfc;
  font-family: "Inter", system-ui, sans-serif;
  color: #1f1f1f;
  background: #ffffff;
}

.site--project.jw-case {
  padding-top: 0;
}

.jw-case__hero-gray {
  background: var(--jw-band);
}

.jw-case__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(136px + 16px) 48px 0;
  box-sizing: border-box;
  direction: ltr;
}

.jw-case__toolbar .project-back {
  margin-bottom: 0;
  margin-inline-end: auto;
  flex-shrink: 0;
}

.jw-case__intro-band {
  padding: 32px 32px 48px;
}

.jw-case__intro-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: var(--jw-prose);
  margin: 0 auto;
  text-align: center;
}

.jw-case__intro-icon {
  opacity: 0.5;
  border-radius: 6px;
}

.jw-case__intro-kicker {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.5);
}

.jw-case__intro-question {
  margin: 0;
  max-width: var(--jw-prose);
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.24;
  color: #1f1f1f;
}

.jw-case__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  max-width: 660px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jw-case__tags li {
  padding: 4px 10px;
  border-radius: 9px;
  background: rgba(128, 128, 128, 0.09);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.03);
  font-size: 12px;
  line-height: 1;
  color: #808080;
}

.jw-case__intro-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: rgba(0, 0, 0, 0.4);
}

.jw-case__intro-chevron {
  display: block;
  animation: jw-case-scroll-hint 1.8s ease-in-out infinite;
}

@keyframes jw-case-scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(7px);
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jw-case__intro-chevron {
    animation: none;
    opacity: 0.5;
  }
}

.jw-case__hero-shot {
  position: relative;
  padding: 32px 24px 56px;
  background: linear-gradient(var(--jw-band) 48%, #ffffff 48%);
}

.jw-case__hero-shot-card {
  width: 100%;
  max-width: var(--jw-hero);
  margin: 0 auto;
  border-radius: var(--jw-media-radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--jw-phone-shadow);
}

.jw-case__hero-shot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.jw-case__lead-block {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.jw-case__prose {
  width: 100%;
  max-width: var(--jw-prose);
}

.jw-case__prose--center {
  margin-inline: auto;
}

.jw-case__title {
  margin: 0 0 20px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(48px, 7vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #000000;
}

.jw-case__deck {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.32;
  color: #333333;
}

.jw-case__deck-muted {
  color: #6e6e6e;
}

.jw-case__body {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.62;
  color: #333333;
}

.jw-case__body:last-child {
  margin-bottom: 0;
}

.jw-case__highlight {
  --jw-marker-gradient: linear-gradient(
    to right,
    rgba(255, 234, 0, 0.28) 62%,
    rgba(255, 234, 0, 0.08) 88%,
    rgba(0, 0, 0, 0) 100%
  );
  background-image: var(--jw-marker-gradient);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.jw-case__highlight.is-marked {
  animation: jw-case-marker-sweep 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.jw-case__highlight--soft {
  --jw-marker-gradient: linear-gradient(
    to right,
    rgba(255, 234, 0, 0.22) 62%,
    rgba(255, 234, 0, 0.06) 88%,
    rgba(0, 0, 0, 0) 100%
  );
}

[dir="rtl"] .jw-case__highlight {
  --jw-marker-gradient: linear-gradient(
    to left,
    rgba(255, 234, 0, 0.28) 62%,
    rgba(255, 234, 0, 0.08) 88%,
    rgba(0, 0, 0, 0) 100%
  );
  background-position: 100% 0;
}

[dir="rtl"] .jw-case__highlight--soft {
  --jw-marker-gradient: linear-gradient(
    to left,
    rgba(255, 234, 0, 0.22) 62%,
    rgba(255, 234, 0, 0.06) 88%,
    rgba(0, 0, 0, 0) 100%
  );
}

@keyframes jw-case-marker-sweep {
  from {
    background-size: 0% 100%;
  }

  to {
    background-size: 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jw-case__highlight.is-marked {
    animation: none;
    background-size: 100% 100%;
  }
}

.jw-case__meta {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  grid-template-rows: auto 1px auto;
  width: 100%;
  max-width: var(--jw-grid);
  border: 1px solid var(--jw-line);
  border-radius: 16px;
  background: var(--jw-meta-bg);
  overflow: hidden;
}

.jw-case__meta-cell {
  padding: 20px;
}

.jw-case__meta-cell--role {
  grid-column: 1;
  grid-row: 1;
}

.jw-case__meta-cell--team {
  grid-column: 3;
  grid-row: 1;
}

.jw-case__meta-cell--time {
  grid-column: 1;
  grid-row: 3;
}

.jw-case__meta-cell--impact {
  grid-column: 3;
  grid-row: 3;
}

.jw-case__meta-cell-head {
  display: block;
}

.jw-case__meta-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.jw-case__meta-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #1f1f1f;
}

.jw-case__meta-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.jw-case__meta-cell-copy {
  flex: 1;
  min-width: 0;
}

.jw-case__meta-label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #000000;
}

.jw-case__meta-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: #000000;
}

.jw-case__meta-rule {
  margin: 0 0 20px;
  border: 0;
  border-top: 1px solid var(--jw-line);
  opacity: 0.52;
}

.jw-case__meta-person {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.jw-case__meta-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 34px;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.jw-case__meta-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: #1f1f1f;
}

.jw-case__meta-role,
.jw-case__meta-value {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #4f4f4f;
}

.jw-case__meta-desc,
.jw-case__meta-list {
  margin: 0;
  font-size: 14px;
  line-height: 1.47;
  color: rgba(0, 0, 0, 0.61);
}

.jw-case__meta-stat {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.47;
  color: #1f1f1f;
}

.jw-case__meta-delivered-label {
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #4f4f4f;
}

.jw-case__meta-list {
  padding-left: 18px;
}

.jw-case__meta-list li {
  margin-bottom: 6px;
}

.jw-case__meta-list li:last-child {
  margin-bottom: 0;
}

.jw-case__meta::before {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 3;
  background: var(--jw-line);
}

.jw-case__meta::after {
  content: "";
  grid-column: 1 / span 3;
  grid-row: 2;
  background: var(--jw-line);
}

.jw-case__rule {
  border: 0;
  border-top: 1px solid var(--jw-line);
  margin: 0;
}

.jw-case__rule--full {
  width: 100%;
}

.jw-case__rule--prose {
  width: min(var(--jw-prose), calc(100% - 48px));
  margin-inline: auto;
}

.jw-case__rule--block {
  margin-block: 56px;
}

.jw-case__rule--block + .jw-case__subsection {
  margin-top: 0;
}

.jw-case__section {
  padding: 72px 24px;
}

.jw-case__section--tint {
  background: var(--jw-tint);
}

.jw-case__section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: var(--jw-prose);
  margin: 0 auto 18px;
}

.jw-case__section-title {
  flex: 1;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(32px, 4.5vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.jw-case__section-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #999999;
}

.jw-case__section-mark--logo {
  background: none;
  overflow: hidden;
  border-radius: 6px;
}

.jw-case__intro-icon--wizard,
.jw-case__section-mark--wizard {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
}

.jw-case__intro-icon--wizard {
  width: 24px;
  height: 24px;
  opacity: 1;
}

.jw-case__section-mark--wizard {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.jw-case__magic-band {
  padding: 72px 24px 0;
}

.jw-case__subsection--magic-intro {
  margin-top: 48px;
  margin-bottom: 0;
}

.jw-case .project-panel--magic-case {
  padding: 40px 24px 0;
  background: #ffffff;
  --magic-sticky-pad: 56px;
}

.jw-case .project-panel--magic-case .magic-layers-canva {
  width: min(100%, var(--jw-grid));
}

.jw-case .project-panel--magic-case .magic-layers-canva__step {
  border-top-color: var(--jw-line);
}

.jw-case .project-panel--magic-case .magic-layers-canva__step-label {
  font-size: 13px;
  color: var(--jw-muted);
}

.jw-case .project-panel--magic-case .magic-layers-canva__step-title {
  font-family: inherit;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #98a2b3;
}

.jw-case .project-panel--magic-case .magic-layers-canva__step.is-active .magic-layers-canva__step-title {
  color: #1f1f1f;
}

.jw-case .project-panel--magic-case .magic-layers-canva__step-text {
  font-size: 16px;
  line-height: 1.62;
  color: var(--jw-muted);
}

.jw-case .project-panel--magic-case .magic-layers-canva__step.is-active .magic-layers-canva__step-text {
  max-height: 140px;
}

.jw-case .project-panel--magic-case .magic-layers-canva__grid {
  gap: clamp(24px, 4vw, 48px);
}

.jw-case .project-panel--magic-case + .jw-case__rule + .jw-case__section {
  padding-top: 48px;
}

.jw-case__section-mark--logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jw-case__subsection {
  max-width: var(--jw-prose);
  margin: 64px auto 0;
}

.jw-case__subsection:first-of-type {
  margin-top: 48px;
}

.jw-case__subsection:has(+ .jw-case__assets-scroll) {
  margin-bottom: 48px;
}

.jw-case__h4 {
  margin: 0 0 16px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: #1f1f1f;
  text-align: center;
}

.jw-case__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--jw-muted);
}

.jw-case__text:last-child {
  margin-bottom: 0;
}

.jw-case__quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--jw-grid);
  margin: var(--jw-media-block) auto 0;
  padding: 0;
  list-style: none;
}

.jw-case__quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 24px;
  border-radius: 12px;
  background: var(--jw-card);
  box-shadow:
    0 0.6px 0.6px -1.25px rgba(0, 0, 0, 0.18),
    0 2.3px 2.3px -2.5px rgba(0, 0, 0, 0.16),
    0 10px 10px -3.75px rgba(0, 0, 0, 0.06);
}

.jw-case__quote-card blockquote {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.62;
  color: var(--jw-muted);
}

.jw-case__quote-card footer hr {
  margin: 0 0 12px;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.jw-case__quote-card footer p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
}

.jw-case__quote-emoji {
  font-size: 40px;
  line-height: 1;
}

.jw-case__figure {
  margin: var(--jw-media-block) auto 0;
  max-width: var(--jw-grid);
}

.jw-case__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--jw-media-radius-sm);
}

.jw-case__figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  color: var(--jw-muted);
}

.jw-case__figure--wide {
  max-width: var(--jw-grid);
}

.jw-case__figure--trend {
  max-width: 240px;
}

.jw-case__figure--phone {
  max-width: var(--jw-hero);
}

.jw-case__figure--hero {
  max-width: var(--jw-grid);
}

.jw-case__figure--bleed {
  max-width: none;
  margin: 0;
}

.jw-case__figure--bleed img {
  border-radius: 0;
  max-height: 420px;
  object-fit: cover;
}

.jw-case__phone {
  width: var(--jw-hero);
  max-width: 100%;
  margin-inline: auto;
  border-radius: calc(var(--jw-media-radius) + 6px);
  overflow: hidden;
  box-shadow: var(--jw-phone-shadow);
}

.jw-case__phone img {
  display: block;
  width: 100%;
  height: auto;
}

.jw-case__stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.jw-case__stat-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.jw-case__stat-value {
  margin: 0;
  font-size: clamp(28px, 4vw, 37px);
  line-height: 1;
  color: #1f1f1f;
}

.jw-case__stat-label {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--jw-muted);
}

.jw-case__pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: var(--jw-grid);
  margin: 32px auto 0;
}

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

.jw-case__hero-shot-card--brand {
  background: var(--mikraot);
  padding: 32px 24px;
}

.jw-case__hero-shot-card--brand img {
  width: min(420px, 88%);
  height: auto;
  box-shadow: none;
  border-radius: 0;
}

.jw-case__pillar {
  border: 1px solid var(--jw-line);
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
}

.jw-case__section--tint .jw-case__pillar {
  background: var(--jw-tint);
}

.jw-case__pillar header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--jw-line);
}

.jw-case__pillar h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #000000;
}

.jw-case__pillar p {
  margin: 0;
  padding: 16px 32px 24px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--jw-muted);
}

.jw-case__summary {
  max-width: var(--jw-prose);
  margin: 48px auto 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.62;
  color: #1f1f1f;
  text-align: center;
}

.jw-case__screen-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--jw-media-gap);
  max-width: 100%;
  margin: var(--jw-media-block) auto 0;
  padding-inline: 24px;
  box-sizing: border-box;
}

.jw-case__screen-row figure {
  width: var(--jw-hero);
  margin: 0;
  text-align: center;
}

.jw-case__screen-row img {
  display: block;
  width: var(--jw-hero);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--jw-media-radius);
  box-shadow: var(--jw-phone-shadow);
}

.jw-case__zoom-trigger {
  cursor: zoom-in;
}

.jw-case__zoom-trigger:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

body.jw-lightbox-open {
  overflow: hidden;
}

.jw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.jw-lightbox[hidden] {
  display: none;
}

.jw-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.88);
  cursor: pointer;
}

.jw-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 72px 24px 32px;
  box-sizing: border-box;
  pointer-events: none;
}

.jw-lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: auto;
  max-width: none;
  margin: 0;
  pointer-events: auto;
}

.jw-lightbox__img {
  display: block;
  flex: 0 0 auto;
  max-width: none;
  max-height: none;
  object-fit: fill;
  border-radius: var(--jw-media-radius);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 40px 80px rgba(0, 0, 0, 0.24);
  background: #ffffff;
}

.jw-lightbox__caption {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.jw-lightbox__close {
  position: fixed;
  z-index: 2;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.15s ease;
}

.jw-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.jw-lightbox__close svg {
  width: 18px;
  height: 18px;
}

.jw-lightbox__caption[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .jw-lightbox__dialog {
    padding-top: 80px;
  }
}

.jw-case__screen-row figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--jw-muted);
}

.jw-case__screen-row--hub {
  margin-bottom: 0;
}

.jw-case__assets {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: var(--jw-media-block) auto 0;
  max-width: var(--jw-grid);
}

.jw-case__assets-scroll {
  --stt-asset-card: clamp(96px, 12vw, 170px);
  --stt-asset-gap: 12px;
  --stt-assets-bg: #f7f7f7;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  background: var(--stt-assets-bg);
}

.jw-case__assets-scroll-track {
  height: 280vh;
}

.jw-case__assets-scroll.is-static .jw-case__assets-scroll-track {
  height: auto;
}

.jw-case__assets-scroll-sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100dvh;
  height: 100dvh;
  padding: 8px clamp(16px, 3vw, 48px) 40px;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
}

.jw-case__assets-scroll.is-static .jw-case__assets-scroll-sticky {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  padding: 0 24px 8px;
  overflow: visible;
}

.jw-case__assets-marquee {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--stt-asset-gap);
  width: 100%;
  max-width: none;
  height: min(78vh, 560px);
  box-sizing: border-box;
}

.jw-case__assets-col {
  display: flex;
  flex: 0 0 var(--stt-asset-card);
  flex-direction: column;
  gap: var(--stt-asset-gap);
  width: var(--stt-asset-card);
  min-width: 0;
  will-change: transform;
}

.jw-case__assets-scroll.is-static .jw-case__assets-marquee {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  justify-content: center;
  height: auto;
  gap: var(--stt-asset-gap);
  will-change: auto;
}

.jw-case__assets-scroll.is-static .jw-case__assets-col {
  flex: none;
  width: auto;
  max-width: none;
  will-change: auto;
  transform: none !important;
}

.jw-case__assets-col--offset {
  padding-top: 40px;
}

.jw-case__asset-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--stt-asset-card);
  padding: 10px;
  box-sizing: border-box;
}

.jw-case__asset-card .project-avatar-tile__frame {
  width: 100%;
  aspect-ratio: 1;
  padding: 8px;
  border: 0;
  background: transparent;
}

.jw-case__asset-card .project-avatar-tile__frame--lottie {
  overflow: hidden;
  padding: 6px;
}

.jw-case__asset-card .project-avatar-tile__frame--lottie .stt-lottie {
  transform: scale(0.78);
  transform-origin: center center;
}

.jw-case__asset-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  margin-inline: auto;
  object-fit: contain;
}

.jw-case__assets-scroll-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: min(42vh, 280px);
  pointer-events: none;
  z-index: 2;
}

.jw-case__assets-scroll-fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--stt-assets-bg) 0%, rgba(247, 247, 247, 0) 100%);
}

.jw-case__assets-scroll-fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--stt-assets-bg) 0%, rgba(247, 247, 247, 0) 100%);
}

.jw-case__assets-scroll.is-static .jw-case__assets-scroll-fade {
  display: none;
}

.jw-case__assets .project-avatar-group__title {
  font-size: 12px;
  font-weight: 500;
  color: var(--jw-muted);
}

.jw-case .project-avatar-grid--stt-illus {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 600px;
  gap: 8px;
}

.jw-case .project-avatar-grid--stt-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 330px;
  gap: 8px;
}

.jw-case .project-avatar-grid--stt-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 440px;
  gap: 8px;
}

.jw-case .project-avatar-grid--stt {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 390px;
  gap: 6px;
}

.jw-case .project-avatar-tile__frame {
  padding: 6px;
  border-radius: var(--jw-media-radius-sm);
  background: #ffffff;
  border: 1px solid var(--jw-line);
}

.jw-case .project-avatar-tile__frame--lottie {
  position: relative;
  overflow: hidden;
  padding: 4px;
}

.jw-case .project-avatar-tile__frame--lottie .stt-lottie {
  transform: scale(0.78);
  transform-origin: center center;
}

.jw-case .project-avatar-tile__frame--lottie.is-replayable {
  cursor: pointer;
}

.jw-case .stt-lottie,
.jw-case .stt-confetti {
  width: 100%;
  height: 100%;
  min-height: 56px;
}

.jw-case .stt-lottie svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.jw-case .stt-confetti {
  position: relative;
  overflow: hidden;
}

.jw-case .stt-confetti__origin {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0;
  height: 0;
}

.jw-case .stt-confetti__particle {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}

.jw-case .stt-confetti__fallback {
  display: block;
  width: 100%;
  height: auto;
}

.jw-case .stt-confetti.is-playing .stt-confetti__fallback {
  display: none;
}

.jw-case .stt-confetti--static .stt-confetti__fallback {
  display: block;
}

.jw-case__store-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--jw-media-gap);
  max-width: 100%;
  margin: var(--jw-media-block) auto 0;
  padding-inline: 24px;
  box-sizing: border-box;
}

.jw-case__store-strip img {
  display: block;
  width: var(--jw-hero);
  max-width: 100%;
  height: auto;
  flex: 0 0 var(--jw-hero);
  border-radius: var(--jw-media-radius);
  box-shadow: var(--jw-phone-shadow);
}

.jw-case__logo-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.jw-case__store-strip + .jw-case__logo-row {
  margin-top: 20px;
}

.jw-case__logo-row img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96px;
}

@media (max-width: 900px) {
  .jw-case__toolbar {
    padding-top: 16px;
    padding-inline: 16px;
  }

  .jw-case__toolbar .project-back {
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    background: var(--section-gray);
    color: var(--black);
  }

  .jw-case__toolbar .project-back span {
    display: none;
  }

  .jw-case__toolbar .project-back svg {
    width: 20px;
    height: 20px;
  }

  .jw-case__meta {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .jw-case__meta::before,
  .jw-case__meta::after {
    display: none;
  }

  .jw-case__meta-cell--role,
  .jw-case__meta-cell--team,
  .jw-case__meta-cell--time,
  .jw-case__meta-cell--impact {
    grid-column: 1;
    grid-row: auto;
    border-bottom: 1px solid var(--jw-line);
  }

  .jw-case__meta-cell--impact {
    border-bottom: 0;
  }

  .jw-case__quote-grid,
  .jw-case__stat-row,
  .jw-case__pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jw-case__pillar-grid--3 {
    grid-template-columns: 1fr;
  }

  .jw-case .project-avatar-grid--stt-illus {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jw-case .project-avatar-grid--stt-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jw-case .project-avatar-grid--stt {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 240px;
  }

  .jw-case__section-head {
    align-items: flex-start;
  }

  .jw-case__rule--block {
    margin-block: 40px;
  }

  .jw-case__assets-scroll {
    --stt-asset-card: clamp(68px, 20vw, 88px);
    --stt-asset-gap: 8px;
    margin-top: 0;
  }

  .jw-case__assets-scroll-track {
    height: auto;
  }

  .jw-case__assets-scroll-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding: 16px 0 24px;
    overflow: visible;
  }

  .jw-case__assets-marquee {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    gap: var(--stt-asset-gap);
    padding-inline: 24px;
    box-sizing: border-box;
  }

  .jw-case__assets-col {
    display: contents;
    will-change: auto;
    transform: none !important;
  }

  .jw-case__assets-scroll-fade {
    display: none;
  }

  .jw-case__asset-card {
    min-height: 0;
    aspect-ratio: 1;
    padding: 6px;
  }

  .jw-case__asset-card .project-avatar-tile__frame--lottie .stt-lottie {
    transform: scale(0.68);
  }

  .jw-case__assets-col--offset {
    padding-top: 0;
  }

  .jw-case__h4,
  .jw-case__summary {
    text-align: start;
  }

  .jw-case__magic-band {
    padding-top: 48px;
    padding-inline: 16px;
  }

  .jw-case .project-panel--magic-case {
    padding-inline: 16px;
    padding-top: 32px;
    --magic-sticky-pad: 48px;
  }
}

.project-cover__visual--stop-the-timer {
  background: var(--stop-the-timer-visual-bg);
}

.project-cover__visual--stop-the-timer img {
  object-fit: cover;
}

.project-screens__item {
  margin: 0;
}

.project-screens__device {
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
}

.project-screens__device img {
  display: block;
  width: 100%;
  height: auto;
}

.project-screens__caption {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.project-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: #ffffff;
}

.project-card__title {
  margin: 0 0 8px;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.project-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.project-next {
  padding: calc(var(--project-gap) / 2) 48px;
  background: #ffffff;
}

.project-next__inner {
  max-width: 1178px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 32px;
}

.project-next__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.project-next__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 150ms ease;
}

@media (hover: hover) {
  .project-next__link:hover {
    opacity: 0.65;
  }
}

.project-next__name {
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 500;
}

.project-next__desc {
  font-size: 14px;
  color: var(--text-muted);
}

.work-card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .work__grid {
    grid-template-columns: 1fr;
    max-width: 581px;
  }

  .project-screens {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .project-screens--store {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .project-body__grid,
  .project-body__grid--3 {
    grid-template-columns: 1fr;
  }

  .testimonial-wall__masonry {
    columns: 2;
  }

  .project-ux {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-ux__media {
    justify-content: center;
  }

  .project-ux__copy .project-block__title {
    max-width: none;
  }

  .magic-layers-scroll__track {
    height: 300vh;
  }

  .magic-layers-scroll__sticky {
    --magic-sticky-pad: 56px;
    min-height: 100dvh;
    height: 100dvh;
    padding: var(--magic-sticky-pad) 0;
  }

  .magic-layers-canva__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .magic-layers-canva__visual {
    min-height: calc(100dvh - var(--magic-sticky-pad) * 2);
    justify-content: center;
  }

  .magic-layers-canva--pinned .magic-layers-canva__canvas {
    min-height: 0;
  }

  .magic-layers-canva__canvas {
    min-height: 0;
    padding: 0;
    justify-content: center;
  }

  .magic-layers__scene-wrap {
    width: min(100%, 100%);
    align-items: center;
  }

  .magic-layers__stage {
    width: min(100%, 100%);
    margin-inline: auto;
  }

  .project-panel--magic {
    padding-inline: 16px;
    padding-top: 8px;
  }

  .magic-layers-scroll.is-manual .magic-layers__stage {
    width: min(100%, min(78vw, 320px));
  }

  .magic-layers-scroll.is-manual .magic-layers-canva__grid {
    gap: 24px;
  }

  .project-panel--magic .project-panel__frame {
    padding: 24px 20px;
  }

  .project-onboarding {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-onboarding__copy .project-block__title {
    max-width: none;
  }

  .project-insights {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-v2-cards {
    grid-template-columns: 1fr;
  }

  .project-voices {
    grid-template-columns: 1fr;
  }

  .testimonial-wall {
    padding-left: 16px;
    padding-right: 16px;
  }

  .testimonial-wall__masonry {
    columns: 1;
  }

  .testimonial-wall__stage {
    max-height: none;
    mask-image: none;
  }

  .project-research__methods,
  .project-research__impact-list {
    grid-template-columns: 1fr;
  }

  .project-research-evidence {
    grid-template-columns: 1fr;
  }

  .project-v1-flow__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-v1-flow__ship {
    padding: 24px 20px;
  }

  .project-v1-flow__phones {
    flex-wrap: wrap;
    gap: 20px;
  }

  .project-onboarding__screens--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .project-voices__card--lead {
    padding: 32px 28px;
  }

  .project-voices__card--lead .project-voices__quote {
    max-width: none;
  }

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

  .project-canvas__cell:nth-child(2n) {
    border-right: none;
  }

  .project-canvas__cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .nav {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100% - 32px);
    min-height: 0;
    height: 56px;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    padding-block: 4px;
    padding-inline: 10px 8px;
  }

  .nav__expandable {
    display: none;
  }

  .nav__links {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .nav__avatar {
    width: 44px;
    height: 44px;
  }

  .nav__cta {
    height: 40px;
    min-width: 0;
    padding: 8px 12px 8px 14px;
    font-size: 15px;
  }

  body:has(.site--project) .nav {
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100% - 32px);
    margin-inline: auto;
    height: 56px;
    flex-wrap: nowrap;
    padding-block: 4px;
    padding-inline: 10px 8px;
  }

  body:has(.site--project) .nav:is(:hover, :focus-within) {
    height: 56px;
    padding-block: 4px;
    padding-inline: 10px 8px;
    gap: 8px;
  }

  body:has(.site--project) .nav .nav__avatar,
  body:has(.site--project) .nav:is(:hover, :focus-within) .nav__avatar {
    width: 44px;
    height: 44px;
  }

  body:has(.site--project) .nav:is(:hover, :focus-within) .nav__cta {
    height: 40px;
    min-width: 0;
    padding: 8px 12px 8px 14px;
    font-size: 15px;
  }

  body:has(.site--project) .nav:is(:hover, :focus-within) .nav__expandable {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
  }

  .site,
  .site--project {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    padding: 0 0 24px;
  }

  .site--project {
    padding-top: 32px;
  }

  .hero__frame {
    height: auto;
    min-height: 0;
    border-radius: 0 0 40px 40px;
  }

  .hero__gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.18) 28%,
      transparent 52%
    );
    pointer-events: none;
  }

  .hero__content {
    align-items: flex-start;
    height: auto;
    min-height: 0;
    padding-top: max(40px, calc(env(safe-area-inset-top, 0px) + 32px));
    padding-bottom: max(64px, calc(env(safe-area-inset-top, 0px) + 32px));
    padding-inline: 28px;
  }

  .project-header,
  .project-body,
  .testimonial-wall,
  .project-panel,
  .project-next,
  .project-v2__mark,
  .site--project .cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-v2__mark {
    padding-top: 40px;
  }

  .project-onboarding__screens,
  .project-onboarding__screens--3,
  .project-onboarding__screens--4 {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .project-onboarding__screens--5 {
    display: flex;
    flex-direction: row;
    direction: rtl;
    gap: 12px;
    max-width: none;
    margin-inline: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .project-onboarding__screens--5 .project-onboarding__screen {
    flex: 0 0 min(72vw, 280px);
    scroll-snap-align: start;
  }

  .project-avatar-grid--layers,
  .project-avatar-grid--uniforms,
  .project-avatar-grid--illus,
  .project-avatar-grid--poses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 360px;
  }

  .site--project--mikraot .project-assets--tiles .project-avatar-grid--layers,
  .site--project--mikraot .project-assets--tiles .project-avatar-grid--hair,
  .site--project--mikraot .project-assets--tiles .project-avatar-grid--illus,
  .site--project--mikraot .project-assets--tiles .project-avatar-grid--poses,
  .site--project--mikraot .project-assets--tiles .project-avatar-grid--uniforms {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 6px;
  }

  .site--project--mikraot .project-assets--tiles .project-avatar-tile {
    min-width: 0;
  }

  .site--project--mikraot .project-assets--tiles .project-avatar-tile__frame {
    padding: 3px;
    border-radius: 8px;
  }

  .site--project--mikraot .project-assets--tiles .project-avatar-tile__frame--hair,
  .site--project--mikraot .project-assets--tiles .project-avatar-tile__frame--uniform {
    padding: 2px;
  }

  .site--project--mikraot .project-assets--tiles .project-avatar-tile__label {
    font-size: 9px;
    margin-top: 3px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ns-case__visual-assets,
  .ns-case__visual-assets .project-assets__chapter,
  .ns-case__visual-assets .project-avatar-group {
    min-width: 0;
    max-width: 100%;
  }

  .ns-case__visual-assets .project-assets__chapter {
    overflow-x: clip;
  }

  .site--project--mikraot .project-assets--strip .project-avatar-tile {
    flex-basis: 64px;
  }

  .site--project--mikraot .project-assets--strip .project-avatar-tile--wide {
    flex-basis: 128px;
  }

  .site--project--mikraot .project-assets--strip .project-avatar-tile__frame,
  .site--project--mikraot .project-assets--strip .project-avatar-tile__frame--hair,
  .site--project--mikraot .project-assets--strip .project-avatar-tile__frame--uniform,
  .site--project--mikraot .project-assets--strip .project-avatar-tile__frame--wide {
    height: 64px;
    padding: 5px;
  }

  .project-assets__chapter {
    padding: 16px 14px;
  }

  .project-avatar-grid--hair {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 280px;
  }

  .project-block--highlight {
    padding: 24px 20px;
  }

  .project-canvas {
    grid-template-columns: 1fr;
  }

  .project-canvas__cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .project-canvas__cell:last-child {
    border-bottom: none;
  }

  .project-panel__frame {
    padding: 32px 20px;
  }

  .project-header__split {
    gap: 16px;
    --project-header-radius: 28px;
  }

  .project-meta {
    padding: 24px 20px;
  }

  .project-meta__row {
    flex-direction: column;
    gap: 8px;
  }

  .project-meta__label {
    flex-basis: auto;
  }

  .project-meta__values--grid {
    grid-template-columns: 1fr;
  }

  .site--project {
    --project-gap: 72px;
    --project-gap-inner: 32px;
  }

  .hero__status {
    margin-bottom: 12px;
  }

  .hero__status .hero__chip,
  .hero__chip {
    font-size: 0.44em;
    padding: 0.33em 0.66em;
    border-radius: 999px;
  }

  .hero__cta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2em 0.15em;
    white-space: normal;
    margin-top: 0.35em;
  }

  .hero__chip {
    margin: 0.12em 0.1em;
  }

  .work {
    margin-top: 0;
    padding: 0 16px 0;
  }

  .work__frame {
    padding: 24px 16px;
  }

  .work-card {
    padding: 16px;
  }

  .work-card__visual {
    height: auto;
    aspect-ratio: 533 / 356;
  }

  .cta {
    padding: 16px;
  }

  .cta__frame {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px;
  }

  .cv {
    padding: 16px 16px 0;
  }

  .cv__frame {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }

  .footer {
    margin: 0 16px 16px;
    padding: 32px 24px;
    min-height: auto;
  }

  .footer__top {
    flex-direction: column;
  }

  .project-back {
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    background: var(--section-gray);
    color: var(--black);
  }

  .project-back span {
    display: none;
  }

  .project-back svg {
    width: 20px;
    height: 20px;
  }

  .magic-layers-scroll__track {
    height: 200vh;
  }

  .magic-layers-scroll {
    overflow-x: visible;
    overflow-y: visible;
  }

  .magic-layers-scroll__sticky {
    --magic-sticky-pad-top: 12px;
    --magic-sticky-pad-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    min-height: 100dvh;
    height: 100dvh;
    padding: var(--magic-sticky-pad-top) 0 var(--magic-sticky-pad-bottom);
    flex-direction: column;
    align-items: stretch;
    overflow-x: visible;
    overflow-y: visible;
  }

  .magic-layers-canva {
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .magic-layers-canva__grid {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    position: relative;
    align-content: stretch;
    align-items: stretch;
    justify-items: center;
    gap: 0;
    width: 100%;
    direction: ltr;
  }

  .magic-layers-canva__steps {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 100%;
    padding-inline: 20px;
    padding-top: 0;
  }

  .magic-layers-canva__title {
    margin-bottom: 0;
    font-size: clamp(22px, 6vw, 30px);
    text-align: center;
  }

  .magic-layers-canva__step {
    display: none;
  }

  .magic-layers-canva__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    overflow: visible;
    touch-action: pan-y;
    --magic-visual-gutter: 28px;
    padding-inline: var(--magic-visual-gutter);
    padding-top: clamp(30px, 5vh, 36px);
    box-sizing: border-box;
  }

  .magic-layers-canva__visual::before,
  .magic-layers-canva__visual::after {
    content: "";
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    pointer-events: none;
  }

  .magic-layers-canva__canvas {
    flex-shrink: 0;
    width: min(92%, 360px);
    max-width: none;
    aspect-ratio: 2048 / 1536;
    min-height: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    overflow: visible;
  }

  .magic-layers__scene-wrap {
    width: 100%;
    max-width: 100%;
    align-items: center;
    margin-inline: auto;
    overflow: visible;
  }

  .magic-layers__stage {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2048 / 1536;
    height: auto;
    margin-inline: auto;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }

  .magic-layers__foreground {
    transform-origin: center center;
    perspective-origin: center center;
  }

  .magic-layers__step-caption {
    display: block;
    flex-shrink: 0;
    width: 100%;
    padding-inline: 20px;
    margin-top: 8px;
    min-height: 0;
  }

  .magic-layers__scroll-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0 20px;
    font-family: "Rubik", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.38);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 280ms ease, transform 280ms ease, color 280ms ease;
  }

  .magic-layers__scroll-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .magic-layers__scroll-hint.is-emphasized {
    color: rgba(0, 0, 0, 0.52);
  }

  .magic-layers__scroll-hint-chevron {
    display: block;
    animation: jw-case-scroll-hint 1.8s ease-in-out infinite;
  }

  @media (prefers-reduced-motion: reduce) {
    .magic-layers__scroll-hint-chevron {
      animation: none;
      opacity: 0.55;
    }

    .magic-layers__scroll-hint {
      transition: none;
    }
  }

  .magic-layers__layer-rail {
    display: none;
  }

  .project-panel--magic {
    padding-inline: 0;
    padding-top: 8px;
    padding-bottom: 0;
    overflow: visible;
  }

  .site--project--wizard:has(.project-panel--magic),
  .site--project--wizard.jw-case:has(.project-panel--magic) {
    overflow-x: clip;
  }

  .journey-map__scroll {
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }

  .journey-map {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .journey-map__mobile {
    display: block;
  }

  .journey-map__desktop {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav__link {
    padding: 8px 12px;
    font-size: 14px;
    height: 40px;
  }

  .btn {
    height: 40px;
    font-size: 14px;
  }

  .nav__avatar {
    width: 48px;
    height: 48px;
  }

  .tag {
    font-size: 14px;
  }

  .hero__content {
    padding-top: max(32px, calc(env(safe-area-inset-top, 0px) + 24px));
    padding-bottom: max(52px, calc(env(safe-area-inset-top, 0px) + 24px));
    padding-inline: 20px;
  }

  .hero__chip {
    margin: 0.14em 0.08em;
  }
}

/* Cross-page view transitions (native - GPU-smooth smart-animate morph) */
@view-transition {
  navigation: auto;
}

.nav {
  view-transition-name: site-nav;
}

.nav__home {
  view-transition-name: nav-avatar;
}

.nav__expandable {
  view-transition-name: nav-expandable;
}

.nav__cta {
  view-transition-name: nav-cta;
}

::view-transition-group(site-nav),
::view-transition-group(nav-avatar),
::view-transition-group(nav-cta),
::view-transition-group(nav-expandable) {
  animation-duration: var(--nav-morph-duration);
  animation-timing-function: var(--nav-morph-ease);
}

::view-transition-old(nav-expandable) {
  animation: nav-expandable-morph-out var(--nav-morph-duration) var(--nav-morph-ease) both;
}

@keyframes nav-expandable-morph-out {
  to {
    opacity: 0;
    filter: blur(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  .journey-map__line {
    stroke-dashoffset: 0;
    transition: none;
  }

  .journey-map__dot,
  .journey-map__feelings li {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: none;
  }

  .journey-map__feelings li {
    transform: none;
  }

  .nav,
  .nav__home,
  .nav__expandable,
  .nav__cta {
    view-transition-name: none;
  }
}

/* Narrative case study (Madhurima-inspired) */
.ns-case {
  --ns-bg: #fdfdfd;
  --ns-ink: #111111;
  --ns-muted: #5d5d5d;
  --ns-soft: #a6a6a6;
  --ns-line: #e8e8e8;
  --ns-accent: #059c2d;
  --ns-hero: #dedee6;
  /* Match home shell so case content sits in the same centered column */
  --ns-rail: 248px;
  --ns-content: 800px;
  --ns-gap: 0px;
  --ns-shell: 1128px;
  background: var(--ns-bg);
  color: var(--ns-ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
}

.site--project.ns-case {
  padding-top: 0;
  max-width: none;
}

.ns-case__shell {
  display: grid;
  grid-template-columns: var(--ns-rail) minmax(0, var(--ns-content)) var(--ns-rail);
  column-gap: 40px;
  justify-content: center;
  justify-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 100px 40px 120px;
  box-sizing: border-box;
  overflow: visible;
}

.ns-case__shell--tail {
  padding-top: 0;
}

.ns-case__rail {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 0;
  width: var(--ns-rail);
  max-width: var(--ns-rail);
  grid-column: 1;
  justify-self: end;
}

.ns-case__rail--spacer {
  visibility: hidden;
  pointer-events: none;
  grid-column: 1;
}

.ns-case__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #807e7e;
  text-decoration: none;
}

.ns-case__back:hover {
  color: var(--ns-ink);
}

.ns-case__toc {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ns-case__toc a {
  font-size: 16px;
  line-height: 1.2;
  color: var(--ns-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ns-case__toc a:hover,
.ns-case__toc a.is-active {
  color: var(--ns-ink);
}

.ns-case__content {
  min-width: 0;
  width: 100%;
  max-width: var(--ns-content);
  padding-bottom: 24px;
  grid-column: 2;
  justify-self: center;
}

.ns-case__hero {
  margin-bottom: 40px;
}

.ns-case__eyebrow {
  margin: 0 0 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ns-muted);
}

.ns-case__title {
  margin: 0 0 24px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ns-ink);
}

.ns-case__hero-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--ns-hero);
  aspect-ratio: 16 / 10;
}

.ns-case__hero-media.ns-work__visual--stt {
  background: #f5efe7;
  aspect-ratio: 16 / 10;
  margin-bottom: 0;
}

.ns-case__hero-media.ns-work__visual--stt .ns-device-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding-block: 28px;
  background: #f5efe7;
}

.ns-case__hero-media.ns-work__visual--stt .ns-phone {
  width: min(26%, 220px);
}

/*
  Video sequence: phone #1 (home) and #3 (after crop) — slight lift to optical center.
  Mid-clip riser crop stays untouched.
*/
.ns-case__hero-media.ns-work__visual--stt .ns-device-stage:not(.is-phone-riser) > .ns-phone {
  translate: 0 -6%;
}

.ns-case__hero-media.ns-work__visual--stt .ns-device-stage.is-phone-riser > .ns-phone {
  translate: none;
}

@media (max-width: 860px) {
  .ns-case__hero-media.ns-work__visual--stt .ns-device-stage:not(.is-phone-riser) > .ns-phone {
    translate: 0 -8%;
  }
}

.ns-case__hero-media.ns-work__visual--estatest,
.ns-case__hero-media.project-cover__visual--estatest {
  background-color: #fc336b;
  aspect-ratio: 16 / 9;
}

.ns-case__hero-media > img,
.ns-case__hero-media > .ns-case__hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Device stage — realistic PNG frame + live video (Madhurima-style) */
.ns-device-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #f5efe7;
  aspect-ratio: 16 / 11;
  padding-block: 28px;
  transition: background-color 560ms ease;
}

.ns-device-stage.is-phone-out {
  background: #f5efe7;
}

.ns-device-stage.is-phone-out .ns-phone {
  opacity: 0;
  transform: scale(1) translateY(0);
  filter: none;
  pointer-events: none;
}

/* Hero crop — cropped phone (STT ~0:06–0:09): fade + rise, no morph */
.ns-device-stage.is-phone-riser {
  --ns-phone-rise-y: 42%;
  --ns-phone-rise-from-y: 58%;
  --ns-phone-rise-scale: 1.46;
}

.ns-work__visual--device .ns-device-stage.is-phone-riser {
  --ns-phone-rise-y: 38%;
  --ns-phone-rise-from-y: 54%;
  --ns-phone-rise-scale: 1.4;
}

.ns-device-stage .ns-phone {
  transition: opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ns-device-stage.is-stt-fade-out .ns-phone {
  opacity: 0;
}

.ns-device-stage.is-phone-riser .ns-phone {
  transform-origin: 50% 100%;
  transform: translateY(var(--ns-phone-rise-y)) scale(var(--ns-phone-rise-scale));
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.2));
  opacity: 1;
}

.ns-device-stage.is-phone-riser.is-phone-riser-armed .ns-phone {
  transition: none;
  transform: translateY(var(--ns-phone-rise-from-y)) scale(var(--ns-phone-rise-scale));
  opacity: 0;
}

.ns-device-stage.is-phone-riser.is-phone-riser-exit .ns-phone {
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 860ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(var(--ns-phone-rise-from-y)) scale(var(--ns-phone-rise-scale));
  opacity: 0;
}

.ns-device-stage.is-phone-riser:not(.is-phone-riser-armed):not(.is-phone-riser-exit) .ns-phone {
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 860ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ns-device-stage.is-phone-riser.is-stt-fade-out .ns-phone {
  transition: opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ns-work:hover .ns-work__visual--device .ns-device-stage.is-phone-riser .ns-phone {
  transform: translateY(var(--ns-phone-rise-y)) scale(var(--ns-phone-rise-scale));
}

.stt-touch {
  position: absolute;
  z-index: 6;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.72), rgba(210, 210, 210, 0.42) 42%, rgba(140, 140, 140, 0.28) 72%, rgba(110, 110, 110, 0.2));
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  will-change: left, top, transform, opacity;
}

.stt-touch.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition:
    opacity 220ms ease,
    transform 180ms ease;
}

.stt-touch.is-moving {
  transition:
    left 700ms cubic-bezier(0.22, 1, 0.36, 1),
    top 700ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 180ms ease;
}

.stt-touch.is-pressing {
  transform: translate(-50%, -50%) scale(0.78);
  transition: transform 140ms ease;
}

.stt-stop-btn {
  --stt-btn-scale: 0.92;
  --stt-btn-outer: calc(250px * var(--stt-btn-scale));
  --stt-btn-face: calc(208.333px * var(--stt-btn-scale));
  --stt-btn-depth: calc(14px * var(--stt-btn-scale));
  --stt-btn-front: #246b54;
  --stt-btn-depth-color: #0e3129;
  --stt-btn-glow-shadow: rgba(20, 74, 61, 0.3);
  position: absolute;
  z-index: 4;
  /* Physical left/top + translate(-50%) — logical inset breaks centering in RTL */
  top: 50%;
  left: 50%;
  width: var(--stt-btn-outer);
  height: calc(var(--stt-btn-face) + var(--stt-btn-depth) + 10px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stt-stop-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.stt-stop-btn.is-exit {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.stt-stop-btn[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
}

.stt-stop-btn.is-red {
  --stt-btn-front: #892121;
  --stt-btn-depth-color: #310e0e;
  --stt-btn-glow-shadow: rgba(137, 33, 33, 0.3);
}

.stt-stop-btn__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: var(--stt-btn-outer);
  height: var(--stt-btn-outer);
  border-radius: 50%;
  background: #f9f3e9;
  box-shadow: 0 4px 13px var(--stt-btn-glow-shadow);
  pointer-events: none;
}

.stt-stop-btn__stack {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: var(--stt-btn-face);
  height: calc(var(--stt-btn-face) + var(--stt-btn-depth));
  transform: translateX(-50%);
  pointer-events: none;
}

.stt-stop-btn__depth {
  position: absolute;
  left: 0;
  top: var(--stt-btn-depth);
  width: var(--stt-btn-face);
  height: var(--stt-btn-face);
  border-radius: 50%;
  background: var(--stt-btn-depth-color);
}

.stt-stop-btn__face {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--stt-btn-face);
  height: var(--stt-btn-face);
  border-radius: 50%;
  background: var(--stt-btn-front);
  box-shadow: 0 -3px 23px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
  transition:
    transform 140ms cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 140ms ease;
}

.stt-stop-btn.is-pressed .stt-stop-btn__face {
  transform: translateY(var(--stt-btn-depth));
  box-shadow: inset 0 6px 4px rgba(0, 0, 0, 0.25);
  transition-duration: 140ms;
}

.stt-stop-btn:not(.is-pressed) .stt-stop-btn__face {
  transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
  transition-duration: 320ms;
}

.stt-stop-btn__label {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: calc(40px * var(--stt-btn-scale));
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #ffffff;
  text-transform: uppercase;
  user-select: none;
}

.ns-phone {
  position: relative;
  z-index: 1;
  width: min(30%, 248px);
  aspect-ratio: 1310 / 2710;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.22));
  opacity: 1;
  transform: scale(1) translateY(0);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 560ms ease;
}

/* Screen hole: 1206×2622 inside 1310×2710 (Figma iPhone 17 Pro Silver) */
.ns-phone__screen {
  position: absolute;
  top: 1.85%;
  right: 4.35%;
  bottom: 1.85%;
  left: 4.35%;
  overflow: hidden;
  border-radius: 14.5% / 6.7%;
  background: #000000;
  transform: translateZ(0);
}

.ns-phone__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  border-radius: inherit;
}

.ns-phone__screen--mikraot-seq .ns-phone__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.ns-phone__screen--mikraot-seq .ns-phone__video.is-active {
  opacity: 1;
  z-index: 1;
}

.ns-phone__screen-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  border-radius: inherit;
}

.ns-phone__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  .ns-device-stage {
    aspect-ratio: 3 / 4;
    padding-block: 20px;
  }

  .stt-stop-btn {
    --stt-btn-scale: 0.58;
  }

  .ns-phone {
    width: min(52%, 220px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-phone,
  .stt-stop-btn,
  .stt-stop-btn__face,
  .ns-device-stage {
    transition: none;
  }

  .ns-device-stage.is-phone-out .ns-phone {
    filter: none;
  }

  .ns-device-stage.is-phone-riser .ns-phone {
    transition: none;
    transform: translateY(var(--ns-phone-rise-y)) scale(var(--ns-phone-rise-scale));
    opacity: 1;
  }
}

.ns-case__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 48px;
  padding: 0;
}

.ns-case__meta dt {
  margin: 0 0 8px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ns-soft);
}

.ns-case__meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ns-ink);
}

.ns-case__section {
  margin-bottom: 64px;
  scroll-margin-top: 40px;
}

.ns-case__journey {
  margin-top: 28px;
}

.ns-case__journey .journey-map {
  border-color: var(--ns-line, var(--border));
}

.ns-case__journey .journey-map__stage {
  color: #ffffff;
  background: var(--ns-ink);
}

.ns-case__journey .journey-map__label,
.ns-case__journey .journey-map__cell,
.ns-case__journey .journey-map__feelings li {
  color: var(--ns-ink);
}

.ns-case__journey .journey-map__cell--quote p {
  color: var(--ns-muted);
}

.ns-case__label {
  margin: 0 0 20px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ns-soft);
}

.ns-case__kicker {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ns-ink);
}

.ns-case__lead,
.ns-case__body {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ns-muted);
}

.ns-case__body strong {
  font-weight: 600;
  color: var(--ns-ink);
}

.ns-case__lead {
  font-size: 19px;
  color: var(--ns-ink);
}

.ns-case__heading {
  margin: 0 0 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 2vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ns-ink);
}

.ns-case__section--tldr {
  margin-bottom: 56px;
}

.ns-case__tldr {
  padding: 24px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.08) 0 0 0 1px;
  box-sizing: border-box;
}

.ns-case__tldr-label {
  margin: 0 0 12px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ns-muted);
}

.ns-case__tldr-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ns-muted);
}

.ns-case__metrics {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ns-case__metrics--row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 0;
}

.ns-case__metrics--row > li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ns-case__metric-value {
  margin: 0 0 6px;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ns-accent);
}

.ns-case__metrics--row .ns-case__metric-value {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.ns-case__metric-value span {
  margin-inline-end: 4px;
}

.ns-case__metric-value--text {
  font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: -0.02em;
}

.ns-case__metrics--row .ns-case__metric-value--text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.ns-case__metric-label {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ns-muted);
}

.ns-case__metrics--row .ns-case__metric-label {
  max-width: none;
  font-size: 16px;
  line-height: 1.4;
  color: #5d5d5d;
}

.ns-case__flow {
  padding: 24px 0;
  border-top: 1px solid var(--ns-line);
}

.ns-case__flow:last-child {
  border-bottom: 1px solid var(--ns-line);
}

.ns-case__flow-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ns-ink);
}

.ns-case__flow-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ns-muted);
}

/* Stacked solution rows — media left + copy right (Madhurima / Framer pattern) */
.ns-case__flow-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 34px;
  padding-bottom: 40px;
}

.ns-case__flow-block {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin: 0;
}

/* Media placeholders — fill later with real images / video */
.ns-case__slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  margin: 0;
  padding: 28px 24px;
  border: 1px dashed color-mix(in srgb, var(--ns-ink, #111) 18%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--ns-ink, #111) 3%, transparent);
  color: var(--ns-muted, #5d5d5d);
}

.ns-case__slot--hero {
  margin-top: 28px;
  min-height: 320px;
  justify-content: center;
  background: #111111;
  border-color: color-mix(in srgb, #fff 16%, transparent);
  color: #c8c8c8;
}

.ns-case__slot--hero .ns-case__slot-tag {
  color: #ff4d57;
}

.ns-case__slot--hero .ns-case__slot-title {
  color: #f5f5f5;
}

.ns-case__slot--flow {
  flex: 0 0 auto;
  width: min(440px, calc(58% - 20px));
  aspect-ratio: 16 / 10;
  justify-content: center;
  min-height: 0;
  background: #f3f3f6;
}

.ns-case__slot--wide,
.ns-case__slot--chart,
.ns-case__slot--grid {
  margin-top: 28px;
  max-width: 640px;
  min-height: 180px;
  justify-content: center;
}

.ns-case__slot--chart {
  min-height: 220px;
}

.ns-case__slot--grid {
  min-height: 240px;
}

.ns-case__slot-tag {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ns-soft, #a6a6a6);
}

.ns-case__slot-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ns-ink, #111);
}

.ns-case__slot-note {
  margin: 0;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.45;
  color: inherit;
}

.ns-case__flow-copy {
  flex: 1 1 0;
  min-width: 0;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0;
}

.ns-case__flow-block .ns-case__flow-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ns-ink, #0d0d0d);
}

.ns-case__flow-block .ns-case__flow-text {
  margin: 0;
  max-width: none;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ns-muted, #5d5d5d);
}

.ns-case__flow-media {
  position: relative;
  flex: 0 0 auto;
  width: min(440px, calc(58% - 20px));
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--wizard-visual-bg, #f3f3f6);
}

/* Madhurima solution stages — STT only */
.site--project--stop-the-timer .ns-case__flow-media {
  width: min(376px, calc(48% - 16px));
  aspect-ratio: 1;
  border-radius: 20px;
  background: #f5efe7;
}

.site--project--mikraot .ns-case__flow-media--device {
  width: min(376px, calc(48% - 16px));
  aspect-ratio: 1;
  border-radius: 20px;
  background: var(--mikraot, #fadf59);
}

.site--project--estatest .ns-case__flow-media--device {
  width: min(376px, calc(48% - 16px));
  aspect-ratio: 1;
  border-radius: 20px;
  background: color-mix(in srgb, var(--estatest, #fc336b) 14%, #fff);
}

/* V1 stages stay blue so the shipped era reads apart from pink V2 flows */
.site--project--estatest #v1 .ns-case__flow-media--device {
  background: #d7e6ff;
}

.site--project--estatest #v2 .ns-case__flow-media--device {
  background: color-mix(in srgb, var(--estatest, #fc336b) 14%, #fff);
}

.site--project--estatest .ns-case__label--v1 {
  color: #2f6fed;
}

.site--project--estatest .ns-case__label--v2,
.site--project--estatest .ns-case__era-divider-label {
  color: var(--estatest, #fc336b);
}

.site--project--estatest .ns-case__section--v1 {
  border-top: 2px solid #d7e6ff;
  padding-top: 48px;
}

.site--project--estatest .ns-case__section--v2 {
  border-top: 2px solid color-mix(in srgb, var(--estatest, #fc336b) 35%, #fff);
  padding-top: 48px;
}

.ns-case__era-divider {
  margin: 56px 0 8px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--ns-line, #e8e8e8);
}

.ns-case__era-divider-label {
  margin: 0 0 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ns-case__era-divider-text {
  margin: 0;
  max-width: 42rem;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ns-ink, #111);
}

.site--project--estatest .ns-case__marketing-frame {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(47, 111, 237, 0.1);
  min-width: 0;
}

.site--project--estatest .ns-case__marketing-frame--banner > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.site--project--estatest .ns-case__marketing-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin: 28px 0 36px;
}

.site--project--estatest .ns-case__marketing-frame--video {
  align-items: flex-start;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  /* Keep video card tight — don't stretch to banner height */
  align-self: start;
}

.site--project--estatest .ns-case__marketing-frame--banner {
  justify-content: flex-start;
  align-self: start;
}

.site--project--estatest .ns-case__marketing-video {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  margin-inline: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #0b1220;
  box-shadow: none;
}

.site--project--estatest .ns-case__marketing-video .ns-case__flow-poster,
.site--project--estatest .ns-case__marketing-video .ns-case__flow-video {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0;
  border-radius: inherit;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center;
  transform: none !important;
  box-shadow: none;
  background: transparent;
}

.site--project--estatest .ns-case__marketing-video .ns-case__flow-poster {
  z-index: 3;
  opacity: 1;
  transition: opacity 450ms cubic-bezier(0.33, 0, 0.2, 1);
}

.site--project--estatest .ns-case__marketing-frame--video.is-video-playing .ns-case__flow-poster,
.site--project--estatest .ns-case__marketing-video.is-video-playing .ns-case__flow-poster {
  opacity: 0;
  pointer-events: none;
}

.site--project--estatest .ns-case__marketing-video .ns-case__flow-video {
  z-index: 2;
}

.site--project--estatest .ns-case__marketing-frame figcaption {
  flex: 0 0 auto;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.35;
  text-align: start;
  color: var(--ns-soft, #888);
}

@media (max-width: 700px) {
  .site--project--estatest .ns-case__marketing-pair {
    grid-template-columns: 1fr;
  }

  .site--project--estatest .ns-case__marketing-video {
    width: min(220px, 100%);
  }

  .site--project--estatest .ns-case__marketing-frame--video {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
  }
}

.ns-case__flow-media .ns-case__flow-poster,
.ns-case__flow-media .ns-case__flow-video {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  display: block;
  width: 86%;
  height: auto;
  max-height: 86%;
  aspect-ratio: 16 / 10;
  margin: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  object-position: center center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ns-case__flow-media .ns-case__flow-poster {
  z-index: 3;
  opacity: 1;
  transition: opacity 450ms cubic-bezier(0.33, 0, 0.2, 1);
}

.ns-case__flow-media.is-video-playing .ns-case__flow-poster {
  opacity: 0;
}

.ns-case__flow-media .ns-case__flow-video {
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}

/* STT flow phones — Madhurima-style: square stage, phone centered */
.ns-case__flow-media--device {
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 28px;
  box-sizing: border-box;
  background: #f5efe7;
  aspect-ratio: 1;
  overflow: hidden;
}

.ns-case__flow-media--device .ns-phone--flow {
  justify-self: center;
  width: min(188px, calc(100% - 40px));
  height: auto;
  max-height: none;
  max-width: 188px;
  aspect-ratio: 1310 / 2710;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.18));
}

.ns-case__flow-media--device .ns-phone__screen .ns-case__flow-poster,
.ns-case__flow-media--device .ns-phone__screen .ns-case__flow-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  object-fit: cover;
  object-position: center center;
  transform: none;
  pointer-events: none;
}

.ns-case__flow-media--device .ns-phone__screen .ns-case__flow-poster {
  z-index: 3;
  opacity: 1;
  transition: opacity 450ms cubic-bezier(0.33, 0, 0.2, 1);
}

.ns-case__flow-media--device.is-video-playing .ns-phone__screen .ns-case__flow-poster {
  opacity: 0;
}

.ns-case__flow-media--device .ns-phone__screen .ns-case__flow-video {
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Compact illustration marquee — same square stage as phone flows */
.ns-case__flow-media--illus {
  display: block;
  background: #f5efe7;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 22px;
  box-sizing: border-box;
}

.ns-case__illus-marquee {
  display: flex;
  gap: 10px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.ns-case__illus-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  will-change: transform;
  animation: ns-illus-scroll 22s linear infinite;
}

.ns-case__illus-col--alt {
  animation-duration: 28s;
  animation-direction: reverse;
}

.ns-case__illus-col img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .ns-case__illus-col,
  .ns-case__illus-col--alt {
    animation: none;
    transform: none;
  }

  .ns-case__illus-marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-y: auto;
  }
}

@keyframes ns-illus-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@media (max-width: 860px) {
  .ns-case__flow-media--device .ns-phone--flow {
    width: min(170px, calc(100% - 36px));
    max-width: 170px;
  }

  .site--project--estatest .ns-case__flow-media--device,
  .site--project--mikraot .ns-case__flow-media--device {
    width: min(376px, 100%);
    max-width: 376px;
  }
}

@media (max-width: 720px) {
  .ns-case__flow-media--device,
  .ns-case__flow-media--illus {
    aspect-ratio: 1;
  }

  .ns-case__flow-media--device {
    padding: 20px;
  }

  .ns-case__flow-media--device .ns-phone--flow {
    width: min(150px, calc(100% - 40px));
    max-width: 150px;
  }

  .site--project--stop-the-timer .ns-case__flow-media--device .ns-phone--flow {
    width: min(148px, calc(100% - 40px));
    max-width: 148px;
  }
}

#solution .ns-case__kicker {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ns-ink, #0d0d0d);
}

@media (max-width: 860px) {
  .ns-case__flow-block {
    flex-direction: column;
    gap: 16px;
  }

  .ns-case__flow-media,
  .ns-case__slot--flow {
    width: min(440px, 100%);
    max-width: 440px;
  }

  .site--project--stop-the-timer .ns-case__flow-media {
    width: 100%;
    max-width: none;
  }

  .ns-case__flow-copy {
    max-width: none;
  }

  /*
    Flow squares only (#solution phones) — absolute center.
    Use transform (not `translate`) so it wins over `.ns-phone { transform: ... }`.
    Does NOT touch the hero video phone.
  */
  .ns-case__flow-media--device {
    position: relative;
    display: block;
  }

  .ns-case__flow-media--device .ns-phone--flow {
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    height: auto;
    margin: 0;
    translate: none;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 720px) {
  .ns-case__slot--hero {
    min-height: 240px;
  }

  .ns-case__flow-stack {
    gap: 40px;
  }

  .ns-case__flow-media,
  .ns-case__slot--flow {
    max-width: none;
  }
}

.ns-case__quotes {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ns-case__quotes blockquote {
  position: relative;
  margin: 0 0 10px;
  padding-inline-start: 1.2em;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(19px, 2.1vw, 24px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ns-ink, #0d0d0d);
}

.ns-case__quotes blockquote::before {
  content: "“";
  position: absolute;
  inset-inline-start: 0;
  top: -0.08em;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: normal;
  font-size: 1.45em;
  line-height: 1;
  color: var(--ns-soft, #a6a6a6);
}

.ns-case__quotes--framed {
  gap: 16px;
}

.ns-case__quotes--framed > li {
  margin: 0;
  padding: 22px 24px 18px;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  background: #fafafa;
}

.ns-case__quotes--framed blockquote {
  margin: 0 0 12px;
}

.ns-case__quotes--stack {
  gap: 0;
}

.ns-case__quotes--stack > li {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ns-case__quotes--stack > li:first-child {
  padding-top: 8px;
}

.ns-case__quotes--stack > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ns-case__quotes--stack blockquote {
  margin: 0 0 10px;
}

.ns-case__quote-meta {
  margin: 0;
  padding-inline-start: 1.2em;
  font-size: 13px;
  color: var(--ns-soft, #a6a6a6);
}

.ns-case__quote-source {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}

.ns-case__quote-source:hover {
  color: var(--ns-ink, #111111);
  text-decoration-color: currentColor;
}

.ns-case__heading--quiet {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ns-case__body--tight {
  max-width: 36em;
  margin-bottom: 0;
}

.ns-case__subhead {
  margin: 48px 0 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ns-ink, #0d0d0d);
}

.ns-case__viz {
  margin: 28px 0 0;
  padding: 0;
  max-width: 640px;
}

.ns-case__viz:has(.ns-case__viz-card--matrix) {
  max-width: 760px;
}

.ns-case__viz-card {
  --viz-bg: #f3f3f6;
  --viz-card: #ffffff;
  --viz-a: #6366f1;
  --viz-b: #34d399;
  --viz-c: #38bdf8;
  --viz-d: #a78bfa;
  background: var(--viz-bg);
  border-radius: 16px;
  padding: 28px 24px;
}

.ns-case__viz-title {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  color: #7a7a7a;
}

.ns-case__viz-cap {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ns-soft, #a6a6a6);
}

.ns-case__viz-compare {
  display: grid;
  grid-template-columns: minmax(88px, 120px) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  background: var(--viz-card);
  border-radius: 12px;
  padding: 22px 24px 20px;
}

.ns-case__viz-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  height: 140px;
}

.ns-case__viz-bar {
  display: block;
  width: 28px;
  height: var(--bar, 50%);
  border-radius: 8px 8px 4px 4px;
}

.ns-case__viz-bar--a {
  background: var(--viz-a);
}

.ns-case__viz-bar--b {
  background: var(--viz-b);
}

.ns-case__viz-legend {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ns-case__viz-legend dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.ns-case__viz-legend dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ns-case__viz-legend strong,
.ns-case__viz-legend--stack dd {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  line-height: 1;
}

.ns-case__viz-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f0f0;
  font-size: 11px;
  font-weight: 500;
  color: #8a8a8a;
}

.ns-case__viz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ns-case__viz-dot--a { background: var(--viz-a, #6366f1); }
.ns-case__viz-dot--b { background: var(--viz-b, #34d399); }
.ns-case__viz-dot--c { background: var(--viz-c, #38bdf8); }
.ns-case__viz-dot--d { background: var(--viz-d, #a78bfa); }

.ns-case__viz-card--donut {
  --viz-a: #34d399;
  --viz-b: #f59e0b;
  --viz-c: #38bdf8;
  --viz-d: #a78bfa;
}

.ns-case__viz-donut {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--viz-card);
  border-radius: 12px;
  padding: 22px 24px;
}

.ns-case__viz-donut-ring {
  --a: 40;
  --b: 28;
  --c: 18;
  --d: 14;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    var(--viz-a) 0 calc(var(--a) * 1%),
    var(--viz-c) calc(var(--a) * 1%) calc((var(--a) + var(--b)) * 1%),
    var(--viz-d) calc((var(--a) + var(--b)) * 1%) calc((var(--a) + var(--b) + var(--c)) * 1%),
    var(--viz-b) calc((var(--a) + var(--b) + var(--c)) * 1%) 100%
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 28px), #000 calc(100% - 27px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 28px), #000 calc(100% - 27px));
  margin: 0 auto;
}

.ns-case__viz-legend--stack {
  gap: 14px;
}

.ns-case__viz-legend--stack dd {
  margin-inline-start: 16px;
  font-size: 22px;
}

.ns-case__viz-card--matrix {
  --viz-focus: #d1fae5;
  --viz-focus-ink: #059669;
  padding: 22px 18px 18px;
}

.ns-case__matrix-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0 0 18px;
  padding: 0 0 14px;
  /* Align with matrix columns (row-label 88px + column gap 10px) */
  padding-inline-start: calc(88px + 10px);
  position: relative;
  box-sizing: border-box;
}

.ns-case__matrix-stages::before {
  content: "";
  position: absolute;
  /* Line runs from first-dot center → last-dot center (logical for RTL) */
  inset-inline-start: calc(88px + 10px + (100% - 88px - 10px - 30px) / 8);
  inset-inline-end: calc((100% - 88px - 10px - 30px) / 8);
  top: 6px;
  height: 2px;
  background: #e5e5e5;
}

.ns-case__matrix-stages span {
  position: relative;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #8a8a8a;
  padding-top: 22px;
}

.ns-case__matrix-stages span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: #d4d4d4;
  border: 2px solid #f3f3f6;
  box-sizing: border-box;
  z-index: 1;
}

.ns-case__matrix-stages span.is-focus {
  color: var(--viz-focus-ink, #059669);
}

.ns-case__matrix-stages span.is-focus::before {
  background: var(--viz-focus-ink, #059669);
}

.ns-case__matrix-grid {
  display: grid;
  grid-template-columns: 88px repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: stretch;
}

.ns-case__matrix-row-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-inline-end: 4px;
}

.ns-case__matrix-row-label strong {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.ns-case__matrix-row-label span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.ns-case__matrix-grid > p {
  margin: 0;
  padding: 12px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #5d5d5d;
  background: #fff;
  border-radius: 10px;
}

.ns-case__matrix-stage-tag {
  display: none;
}

.ns-case__matrix-grid > p.is-focus {
  background: var(--viz-focus, #d1fae5);
  color: #065f46;
  font-weight: 500;
}

@media (max-width: 720px) {
  .ns-case__viz-compare,
  .ns-case__viz-donut {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ns-case__viz-bars {
    height: 110px;
    justify-content: flex-start;
  }

  .ns-case__viz-card--matrix {
    padding: 18px 14px 14px;
  }

  /* Horizontal stage strip is unreadable on narrow screens — stages live on each card */
  .ns-case__matrix-stages {
    display: none;
  }

  .ns-case__matrix-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ns-case__matrix-row-label {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    padding: 16px 2px 4px;
  }

  .ns-case__matrix-row-label:first-child {
    padding-top: 0;
  }

  .ns-case__matrix-row-label strong {
    font-size: 14px;
  }

  .ns-case__matrix-grid > p {
    --matrix-rail-x: 7px;
    --matrix-dot: 12px;
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 12px 12px 12px 28px;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 10px;
  }

  /* Vertical connector between stage cards (stops at group boundaries) */
  .ns-case__matrix-grid > p::before {
    content: "";
    position: absolute;
    inset-inline-start: var(--matrix-rail-x);
    top: 0;
    bottom: -8px;
    width: 2px;
    background: #e5e5e5;
    z-index: 0;
  }

  .ns-case__matrix-row-label + p::before {
    top: calc(12px + 0.35em);
  }

  .ns-case__matrix-grid > p:has(+ .ns-case__matrix-row-label)::before,
  .ns-case__matrix-grid > p:last-child::before {
    bottom: auto;
    height: calc(12px + 0.35em + var(--matrix-dot));
  }

  .ns-case__matrix-stage-tag {
    display: block;
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "DM Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-transform: uppercase;
    color: #8a8a8a;
  }

  .ns-case__matrix-stage-tag::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(-28px + var(--matrix-rail-x) - (var(--matrix-dot) / 2) + 1px);
    top: 0.2em;
    width: var(--matrix-dot);
    height: var(--matrix-dot);
    border-radius: 50%;
    background: #d4d4d4;
    border: 2px solid #f3f3f6;
    box-sizing: border-box;
  }

  .ns-case__matrix-grid > p.is-focus .ns-case__matrix-stage-tag {
    color: var(--viz-focus-ink, #059669);
  }

  .ns-case__matrix-grid > p.is-focus .ns-case__matrix-stage-tag::before {
    background: var(--viz-focus-ink, #059669);
  }
}

.ns-case__research-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ns-line, #e8e8ee);
}

.ns-case__research-points li {
  padding: 18px 0;
  border-bottom: 1px solid var(--ns-line, #e8e8ee);
}

.ns-case__research-point-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ns-ink, #0d0d0d);
}

.ns-case__research-point-text {
  margin: 0;
  max-width: 38em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ns-muted, #5d5d5d);
}

.ns-case__quotes-label {
  margin: 40px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--ns-line, #e8e8e8);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ns-soft, #a6a6a6);
}

.ns-case__quotes--reddit {
  gap: 22px;
  margin-top: 0;
}

.ns-case__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.ns-case__pillars article {
  padding: 18px 16px;
  border: 1px solid var(--ns-line);
  border-radius: 12px;
  background: #fff;
}

.ns-case__pillars h3 {
  margin: 0 0 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ns-ink);
}

.ns-case__pillars p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ns-muted);
}

.ns-case__competitors {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--ns-line);
}

.ns-case__competitors > li {
  border-bottom: 1px solid var(--ns-line);
}

.ns-case__competitor {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.ns-case__competitor:hover,
.ns-case__competitor:focus-visible {
  color: var(--project-accent, var(--ns-accent));
}

.ns-case__competitor:focus-visible {
  outline: 2px solid var(--project-accent, var(--ns-accent));
  outline-offset: 4px;
}

.ns-case__competitor-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ns-ink);
  transition: color 160ms ease;
}

.ns-case__competitor:hover .ns-case__competitor-name,
.ns-case__competitor:focus-visible .ns-case__competitor-name {
  color: inherit;
}

.ns-case__competitor-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ns-soft);
  transition: color 160ms ease;
}

.ns-case__competitor:hover .ns-case__competitor-meta,
.ns-case__competitor:focus-visible .ns-case__competitor-meta {
  color: inherit;
}

.ns-case__competitor-arrow {
  display: inline-block;
  transition: transform 160ms ease;
}

.ns-case__competitor:hover .ns-case__competitor-arrow,
.ns-case__competitor:focus-visible .ns-case__competitor-arrow {
  transform: translate(2px, -2px);
}

.ns-case__goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-top: 36px;
}

.ns-case__goal-rows {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}

.ns-case__goal-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: center;
}

.ns-case__goal-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 220px;
  border-radius: 22px;
  overflow: hidden;
}

.ns-case__goal-visual img {
  width: min(68%, 148px);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

.ns-case__goal-visual--tap {
  background: #ffe3e6;
}

.ns-case__goal-visual--loop {
  background: #fff0d6;
}

.ns-case__goal-visual--brand {
  background: #ece6ff;
}

.ns-case__goal-pair {
  display: grid;
  gap: 22px;
}

.ns-case__goal-text {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ns-ink);
}

.ns-case__goal-row .ns-case__goal-text {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ns-case__goal-tag {
  margin: 0;
  font-size: 13px;
  color: var(--ns-soft);
}

.ns-case__ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.ns-case__ba-card {
  padding: 20px 18px;
  border-radius: 12px;
  background: #f3f3f3;
}

.ns-case__ba-card--after {
  background: #e8f6ef;
}

.ns-case__ba-label {
  margin: 0 0 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ns-soft);
}

.ns-case__ba-card--after .ns-case__ba-label {
  color: var(--ns-accent);
}

.ns-case__ba-card--after .ns-case__ba-text {
  font-weight: 500;
}

.ns-case__ba-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ns-ink);
}

/* Cute before → after shift (STT process) */
.ns-case__shift {
  list-style: none;
  margin: 28px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ns-case__shift-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  margin: 0;
  padding: 16px 16px;
  border-radius: 14px;
  background: #f7f4ef;
}

.ns-case__shift-from,
.ns-case__shift-to {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.ns-case__shift-from {
  color: var(--ns-muted, #5d5d5d);
}

.ns-case__shift-to {
  color: var(--ns-ink, #111);
  font-weight: 500;
}

.ns-case__shift-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--stop-the-timer, #ff4d57);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 720px) {
  .ns-case__shift-step {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: start;
  }

  .ns-case__shift-arrow {
    justify-self: start;
    transform: rotate(90deg);
  }
}

/* Non-card before → after (Estatest and similar) */
.ns-case__change {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 40em;
  margin: 28px 0 0;
}

.ns-case__change-item {
  padding-inline-start: 16px;
  border-inline-start: 2px solid #e4e4e4;
}

.ns-case__change-item--after {
  border-inline-start-color: var(--ns-accent, #1e3a8a);
}

.ns-case__change-label {
  margin: 0 0 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ns-soft, #a6a6a6);
}

.ns-case__change-item--after .ns-case__change-label {
  color: var(--ns-accent, #1e3a8a);
}

.ns-case__change-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ns-ink, #0d0d0d);
}

.ns-case__decisions {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  counter-reset: ns-decision;
}

.ns-case__decisions > li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 16px;
  counter-increment: ns-decision;
}

.ns-case__decisions > li::before {
  content: counter(ns-decision);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ns-soft);
  padding-top: 3px;
}

.ns-case__decisions h3 {
  margin: 0;
  grid-column: 2;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ns-ink);
}

.ns-case__decisions p {
  margin: 0;
  grid-column: 2;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ns-muted);
}

/* STT assemble — Madhurima-scale media (full-width cards, large pairs) */
.site--project--stop-the-timer.ns-case {
  --stt-shot: 244px;
  --stt-shot-radius: 20px;
  --stt-card: #f3f3f3;
}

.ns-case__media-card {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 32px 0 8px;
  padding: 40px 28px;
  box-sizing: border-box;
  border-radius: 20px;
  background: var(--stt-card, #f3f3f3);
}

.ns-case__media-card--cream {
  background: #f5efe7;
}

.ns-case__media-card .ns-case__figure {
  margin: 0;
  max-width: min(280px, 56%);
}

.ns-case__media-card .ns-case__figure img,
.ns-case__media-card .ns-case__figure video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.ns-case__media-card .ns-case__figure--phone img,
.ns-case__media-card .ns-case__figure--phone video {
  border-radius: 28px;
}

.ns-case__media-card figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--ns-muted, #5d5d5d);
}

.ns-case__figure {
  margin: 28px 0 8px;
  padding: 0;
}

.ns-case__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #111;
}

.ns-case__figure figcaption {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ns-muted, #5d5d5d);
}

.ns-case__figure--wide {
  width: 100%;
  max-width: none;
  margin: 32px 0 8px;
}

.ns-case__figure--wide img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: transparent;
  border-radius: 16px;
}

/* Before / after — half content each (~388px like Madhurima) */
.ns-case__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0 8px;
  align-items: stretch;
}

.ns-case__pair .ns-case__figure {
  margin: 0;
  width: 100%;
  max-width: none;
}

.ns-case__pair .ns-case__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  background: #111;
  border-radius: 16px;
}

.ns-case__pair .ns-case__figure:last-child img {
  border-radius: 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.ns-case .stt-stores {
  margin: 16px 0 8px;
}

/* Screen + App Store rows — large equal tiles across content width */
.ns-case .jw-case__screen-row {
  --jw-hero: var(--stt-shot, 244px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 8px;
  padding-inline: 0;
  justify-content: stretch;
}

.ns-case .jw-case__screen-row figure {
  width: 100%;
  margin: 0;
}

.ns-case .jw-case__screen-row img {
  width: 100%;
  height: auto;
  border-radius: var(--stt-shot-radius, 20px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.ns-case .jw-case__screen-row figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ns-muted, #5d5d5d);
}

.ns-case .jw-case__store-strip.ns-case__store-strip,
.ns-case__store-strip {
  --jw-hero: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 8px;
  padding-inline: 0;
  justify-content: stretch;
}

.ns-case__store-strip--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
}

.ns-case .jw-case__store-strip img {
  width: 100% !important;
  flex: none !important;
  max-width: none;
  height: auto;
  border-radius: var(--stt-shot-radius, 20px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .ns-case__pair {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ns-case .jw-case__screen-row,
  .ns-case .jw-case__store-strip.ns-case__store-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ns-case__store-strip--compact {
    grid-template-columns: 1fr 1fr;
  }

  .ns-case__media-card {
    padding: 28px 18px;
  }

  .ns-case__media-card .ns-case__figure {
    max-width: min(220px, 70%);
  }
}

.ns-case__media {
  margin: 20px 0 8px;
  overflow: hidden;
  border-radius: 14px;
  background: #f3f3f3;
  line-height: 0;
}

.ns-case__media img {
  display: block;
  width: 100%;
  height: auto;
}

.ns-case__media--sketch {
  max-width: 220px;
  margin: 0;
}

.ns-case__media--v1-sketch {
  margin: 32px 0 8px;
  max-width: none;
}

.ns-case__media--v1-sketch img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #f4f4f6;
}

.ns-case__media--v1-sketch figcaption {
  margin-top: 12px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ns-soft);
}

.ns-case__v1-arc {
  display: flex;
  align-items: flex-end;
  gap: 20px 28px;
  margin: 28px 0 36px;
  padding: 24px 0;
  border-top: 1px solid var(--ns-line);
  border-bottom: 1px solid var(--ns-line);
}

.ns-case__v1-arc-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ns-case__v1-arc-step--ship {
  flex: 1;
}

.ns-case__v1-arc-label {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ns-soft);
}

.ns-case__v1-arc-connector {
  flex: 0 0 auto;
  align-self: center;
  margin-bottom: 28px;
  font-size: 22px;
  line-height: 1;
  color: var(--ns-soft);
}

.ns-case__v1-arc-screens {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.ns-case__v1-arc-screens figure {
  margin: 0;
  width: 120px;
}

.ns-case__v1-arc-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.ns-case__v1-arc-screens figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ns-soft);
  text-align: center;
}

html[dir="rtl"] .ns-case__v1-arc-connector {
  transform: scaleX(-1);
}

.ns-case__screen-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px 28px;
  margin: 28px 0 36px;
}

.ns-case__screen-grid--start {
  justify-content: flex-start;
}

.ns-case__screen-carousel {
  position: relative;
  margin: 28px 0 36px;
}

.ns-case__screen-carousel::before,
.ns-case__screen-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 34px;
  width: min(88px, 28%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ns-case__screen-carousel::before {
  inset-inline-start: 0;
  background: linear-gradient(
    to inline-end,
    rgb(253, 253, 253) 0%,
    rgba(253, 253, 253, 0.82) 42%,
    rgba(253, 253, 253, 0) 100%
  );
}

.ns-case__screen-carousel::after {
  inset-inline-end: 0;
  background: linear-gradient(
    to inline-start,
    rgb(253, 253, 253) 0%,
    rgba(253, 253, 253, 0.82) 42%,
    rgba(253, 253, 253, 0) 100%
  );
}

.ns-case__screen-carousel.is-can-prev::before,
.ns-case__screen-carousel.is-can-next::after {
  opacity: 1;
}

.ns-case__screen-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ns-case__screen-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.ns-case__screen-carousel-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding-block: 2px;
  padding-inline: 2px;
}

.ns-case__screen-carousel-track figure {
  margin: 0;
  width: 176px;
  flex: 0 0 176px;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.ns-case__screen-carousel-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ns-ink);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.ns-case__screen-carousel-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ns-case__screen-carousel-btn--prev {
  inset-inline-start: 10px;
}

.ns-case__screen-carousel-btn--next {
  inset-inline-end: 10px;
}

.ns-case__screen-carousel-btn:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.14);
}

.ns-case__screen-carousel-btn:focus-visible {
  outline: 2px solid var(--ns-ink);
  outline-offset: 2px;
}

.ns-case__screen-grid figure,
.ns-case__asset-strip figure {
  margin: 0;
  width: min(100%, 176px);
  text-align: center;
}

.ns-case__screen-grid img,
.ns-case__screen-grid video,
.ns-case__asset-strip img,
.ns-case__screen-carousel-track img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 402 / 874;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  background: #f3f3f3;
  box-shadow: rgba(0, 0, 0, 0.08) 0 0 0 1px;
}

.ns-case__screen-grid figcaption,
.ns-case__asset-strip figcaption,
.ns-case__screen-carousel-track figcaption {
  margin-top: 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ns-soft);
}

.ns-case__screen-video {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 28px 0 36px;
}

.ns-case__screen-video .ns-phone--inline {
  width: min(100%, 220px);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.14));
}

.ns-case__screen-video figcaption {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ns-soft);
}

.ns-case__asset-strip {
  margin-top: 28px;
}

.ns-case__asset-label {
  margin: 8px 0 14px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ns-soft);
}

.ns-case__asset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  margin: 0 0 36px;
}

.ns-case__asset-grid figure {
  margin: 0;
  width: 96px;
  text-align: center;
}

.ns-case__asset-frame {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: #f3f3f3;
  box-shadow: rgba(0, 0, 0, 0.06) 0 0 0 1px;
  overflow: hidden;
}

.ns-case__asset-frame img {
  display: block;
  width: 78%;
  height: auto;
  object-fit: contain;
}

.ns-case__asset-grid figcaption {
  margin-top: 8px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ns-soft);
}

.ns-case__visual-assets {
  margin-top: 8px;
  margin-bottom: 12px;
}

.ns-case__visual-assets .project-assets__chapter {
  margin-top: 28px;
}

.ns-case__visual-assets .project-assets__chapter:first-child {
  margin-top: 12px;
}

.ns-case__visual-assets .project-assets__chapter-title {
  margin-bottom: 16px;
  color: var(--ns-ink);
}

.ns-case__visual-assets .project-avatar-group {
  margin-bottom: 28px;
}

.ns-case__sep {
  margin: 48px 0 56px;
  padding: 0;
  max-width: 640px;
}

.ns-case__sep img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.ns-case .magic-layers-scroll--inline {
  width: 100%;
  max-width: 760px;
  overflow: visible;
}

.ns-case .magic-layers-scroll--inline .magic-layers-scroll__track {
  height: 280vh;
}

.ns-case .magic-layers-scroll--inline .magic-layers-scroll__sticky {
  position: sticky;
  top: 88px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: min(78vh, 640px);
  height: min(78vh, 640px);
  padding: 24px 0 40px;
  overflow: visible;
}

.ns-case .magic-layers-canva--inline {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: visible;
}

.ns-case .magic-layers-canva--inline .magic-layers-canva__visual {
  min-height: 0;
  height: 100%;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: auto;
  overflow: visible;
}

.ns-case .magic-layers-canva--inline .magic-layers-canva__canvas {
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  overflow: visible;
}

.ns-case .magic-layers-canva--inline .magic-layers__scene-wrap {
  width: min(100%, 520px);
  align-items: center;
  margin-inline: auto;
  overflow: visible;
}

.ns-case .magic-layers-canva--inline .magic-layers__stage {
  width: min(100%, 500px);
  margin-inline: auto;
  overflow: visible;
  touch-action: pan-y;
}

.ns-case .magic-layers-canva--inline .magic-layers__hit {
  touch-action: pan-y;
}

.ns-case .magic-layers-canva--inline .magic-layers-canva__steps[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .ns-case .magic-layers-scroll--inline .magic-layers-scroll__track {
    height: 240vh;
  }

  .ns-case .magic-layers-scroll--inline .magic-layers-scroll__sticky {
    top: 64px;
    min-height: min(70vh, 540px);
    height: min(70vh, 540px);
    padding: 16px 0 28px;
  }

  .ns-case .magic-layers-canva--inline .magic-layers-canva__canvas {
    padding: 28px 16px;
  }

  .ns-case .magic-layers-canva--inline .magic-layers__scene-wrap,
  .ns-case .magic-layers-canva--inline .magic-layers__stage {
    width: min(100%, 360px);
  }
}


.ns-case__demo-intro {
  display: grid;
  grid-template-columns: var(--ns-rail) minmax(0, var(--ns-content)) var(--ns-rail);
  column-gap: 40px;
  justify-content: center;
  justify-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0 auto 8px;
  padding-inline: 40px;
  box-sizing: border-box;
}

.ns-case__demo-intro > * {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: var(--ns-content);
}

.ns-case .project-panel--magic {
  background: var(--ns-bg);
}

.ns-case .magic-layers-canva__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.ns-case .magic-layers-canva__step-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
}

.ns-case__reflect {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ns-case__reflect h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  color: var(--ns-ink);
}

.ns-case__reflect p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ns-muted);
}

.ns-case__cta-banner {
  display: block;
  margin: 56px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--ns-line, #e8e8e8);
  border-radius: 8px;
  background: #f9f9f9;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ns-case__cta-banner:hover {
  border-color: color-mix(in srgb, var(--project-accent, var(--ns-accent, #111)) 35%, var(--ns-line, #e8e8e8));
  background: #f5f5f5;
}

.ns-case__cta-banner-kicker {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--project-accent, var(--ns-accent, #ff4d57));
}

.ns-case__cta-banner-text {
  display: block;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ns-ink, #111);
}

.site--project--stop-the-timer .ns-case__cta-banner {
  --stt-brand-green: #246b54;
}

.site--project--stop-the-timer .ns-case__cta-banner:hover {
  border-color: color-mix(in srgb, var(--stt-brand-green) 35%, var(--ns-line, #e8e8e8));
}

.site--project--stop-the-timer .ns-case__cta-banner-kicker {
  color: var(--stt-brand-green);
}

.ns-case__more {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--ns-line);
}

.ns-case__more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

/* Mini home-style work cards in Also check out */
.ns-case__more-grid .ns-work__visual {
  margin-bottom: 12px;
  border-radius: 10px;
}

.ns-case__more-grid .ns-work__eyebrow {
  margin-bottom: 4px;
  font-size: 11px;
}

.ns-case__more-grid .ns-work__title {
  font-size: 15px;
  line-height: 1.3;
  white-space: normal;
}

.ns-case__more-grid .ns-work__visual--device .ns-phone {
  width: min(38%, 148px);
}

.ns-case__more-grid .ns-work__visual--device .ns-device-stage {
  padding-block: 14px;
}

.ns-case__more-grid .ns-work__visual--wizard.ns-work__visual--video .ns-work__poster,
.ns-case__more-grid .ns-work__visual--wizard.ns-work__visual--video .ns-work__video {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ns-case__more-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.ns-case__more-thumb {
  aspect-ratio: 388 / 263;
  margin: 0 0 4px;
  overflow: hidden;
  border: 1px solid var(--ns-line, #e8e8e8);
  border-radius: 8px;
  background: #f3f3f3;
}

.ns-case__more-thumb img,
.ns-case__more-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ns-case__more-card:hover .ns-case__more-thumb img,
.ns-case__more-card:hover .ns-case__more-thumb video {
  transform: scale(1.03);
}

.ns-case__more-card:hover .ns-case__more-title {
  color: var(--project-accent, var(--ns-accent));
}

.ns-case__more-link {
  display: block;
  padding: 24px 0;
  border-bottom: 1px solid var(--ns-line);
  text-decoration: none;
  color: inherit;
}

.ns-case__more-link:hover .ns-case__more-name {
  color: var(--ns-accent);
}

.ns-case__more-eyebrow {
  display: block;
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ns-muted, #5d5d5d);
}

.ns-case__more-name {
  display: block;
  margin-bottom: 6px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ns-ink);
  transition: color 0.2s ease;
}

.ns-case__more-title {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ns-ink, #0d0d0d);
  transition: color 0.2s ease;
}

.ns-case__more-desc {
  display: block;
  font-size: 15px;
  color: var(--ns-muted);
}

.ns-case__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
}

.ns-case__cta {
  font-size: 16px;
  font-weight: 500;
  color: var(--ns-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ns-case__cta:hover {
  color: var(--ns-accent);
}

@media (max-width: 720px) {
  .ns-case__more-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.stt-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
}

.stt-stores__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ns-ink, #111);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(20, 20, 20, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.stt-stores__link:hover {
  color: var(--ns-accent, #6b50ff);
  text-decoration-color: currentColor;
}

/* Match home: keep centered content column, collapse rail when tight */
@media (max-width: 1100px) {
  .ns-case {
    --ns-rail: 180px;
    --ns-content: min(800px, 100%);
    --ns-shell: 100%;
  }

  .ns-case__shell,
  .ns-case__demo-intro {
    grid-template-columns: var(--ns-rail) minmax(0, var(--ns-content)) var(--ns-rail);
    width: 100%;
    max-width: none;
    padding-inline: 24px;
    column-gap: 24px;
  }

  .ns-case__content,
  .ns-case__demo-intro > * {
    max-width: 800px;
  }
}

@media (max-width: 980px) {
  .ns-case {
    --ns-rail: auto;
    --ns-content: 100%;
    --ns-shell: 100%;
  }

  .ns-case__shell {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 20px 20px 72px;
  }

  .ns-case__shell--tail {
    padding-top: 0;
  }

  .ns-case__rail {
    position: relative;
    top: auto;
    width: auto;
    max-width: none;
    gap: 16px;
    margin-bottom: 20px;
    padding-top: 0;
    grid-column: 1;
    justify-self: start;
  }

  .ns-case__rail--spacer {
    display: none;
  }

  .ns-case__toc {
    display: none;
  }

  .ns-case__demo-intro {
    display: block;
    width: 100%;
    max-width: none;
    padding-inline: 20px;
  }

  .ns-case__demo-intro > * {
    grid-column: auto;
    max-width: none;
  }

  .ns-case__content {
    max-width: none;
    width: 100%;
    grid-column: 1;
  }

  .ns-case__meta,
  .ns-case__pillars,
  .ns-case__goals,
  .ns-case__ba {
    grid-template-columns: 1fr;
  }

  .ns-case__goal-row {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px 20px;
  }

  .ns-case__goal-visual {
    max-width: 120px;
    border-radius: 16px;
  }

  .ns-case__goal-visual img {
    width: min(72%, 88px);
  }

  .ns-case__goal-row .ns-case__goal-text {
    font-size: clamp(18px, 5vw, 22px);
  }

  .ns-case__goal-pair {
    gap: 16px;
  }

  .ns-case__v1-arc {
    flex-direction: column;
    align-items: stretch;
  }

  .ns-case__v1-arc-connector {
    align-self: flex-start;
    margin: 0;
    transform: rotate(90deg);
  }

  html[dir="rtl"] .ns-case__v1-arc-connector {
    transform: rotate(90deg);
  }

  .ns-case__media--sketch {
    max-width: 200px;
  }

  .ns-case__screen-grid figure {
    width: min(100%, 152px);
  }

  .ns-case__screen-carousel-track figure {
    width: 152px;
    flex-basis: 152px;
  }

  .ns-case__tldr {
    padding: 22px 18px 18px;
  }

  .ns-case__metrics--row {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 980px) {
  html:has(.ns-case),
  html:has(.ns-home-page),
  body:has(.ns-case),
  body:has(.ns-home-page) {
    overflow-x: clip;
  }
}

@media (max-width: 900px) {
  .ns-case .project-panel--magic {
    padding-inline: 0;
  }
}

/* Homepage — Madhurima-style two-column shell */
.ns-home-page {
  --ns-bg: #ffffff;
  --ns-ink: #0d0d0d;
  --ns-muted: #5d5d5d;
  --ns-soft: #a6a6a6;
  --ns-line: #e8e8e8;
  --ns-accent: #1e3a8a;
  --ns-home-rail: 248px;
  --ns-home-content: 800px;
  --ns-home-gap: 0px;
  --ns-home-shell: 1128px;
  --ns-home-pad-top: 100px;
  margin: 0;
  background: var(--ns-bg);
  color: var(--ns-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

/* Home with footer reveal: navy behind the lifting white sheet */
.ns-home-page:has(.ns-home__page-lift) {
  background: #1e3a8a;
}

@media (max-width: 800px) {
  .ns-home-page:has(.ns-home__page-lift) {
    background: #ffffff;
  }

  .ns-home-page:has(.ns-home__page-lift) .ns-home {
    background: #1e3a8a;
  }
}

.ns-home-page .nav {
  display: none;
}

.ns-home-page.is-splash,
.ns-home-page.is-splash-done {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

.ns-home-page.is-splash .ns-home,
.ns-home-page.is-splash-done .ns-home {
  /* Keep content painting under the splash so assets load, but never show unfinished UI. */
  pointer-events: none;
}

.ns-home__splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  /* Wipe plane owns the blue — keep this clear so the diagonal edge can reveal the page */
  background: transparent;
  color: #ffffff;
  pointer-events: auto;
}

.ns-home__splash-wipe {
  position: absolute;
  /* Oversized so a diagonal slide never leaves gaps at the corners */
  inset: -75%;
  overflow: hidden;
  background: #1e3a8a;
  /* Local +X after rotate(45deg) ≈ screen diagonal TL → BR */
  transform: rotate(45deg) translate3d(0, 0, 0);
  transition: transform 1.15s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.ns-home-page.is-splash-done .ns-home__splash {
  pointer-events: none;
}

.ns-home-page.is-splash-done .ns-home__splash-wipe {
  transform: rotate(45deg) translate3d(145%, 0, 0);
}

/*
  Same size as the wipe. Counters the wipe travel so the brand stays
  screen-centered while overflow:hidden on the wipe clips it away.
*/
.ns-home__splash-stable {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, 0, 0);
  transition: transform 1.15s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.ns-home-page.is-splash-done .ns-home__splash-stable {
  transform: translate3d(-145%, 0, 0);
}

.ns-home__splash-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 28px);
  padding: 40px 24px;
  /* Upright inside the rotated wipe — locked in place via .splash-stable */
  transform: rotate(-45deg) translateZ(0);
  opacity: 0;
  backface-visibility: hidden;
}

.ns-home__splash.is-brand-ready .ns-home__splash-core {
  opacity: 1;
}

.ns-home__splash-names {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.42em;
  text-align: center;
}

.ns-home__splash-name {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #ffffff;
  min-height: 1em;
}

.ns-home__splash-photo {
  position: relative;
  display: block;
  width: clamp(72px, 9vw, 112px);
  aspect-ratio: 1351 / 1855;
  flex-shrink: 0;
}

.ns-home__splash-photo-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.ns-home__splash-photo-img--default {
  /* Always fully opaque underneath — prevents blue flash / flicker */
  opacity: 1;
  z-index: 0;
}

.ns-home__splash-photo-img--hover {
  opacity: 0;
  z-index: 1;
}

/* Only the hover layer animates on top of a stable default */
.ns-home__splash.is-brand-ready .ns-home__splash-photo-img--hover {
  animation: ns-splash-photo-hover 2.4s ease-in-out infinite;
}

@keyframes ns-splash-photo-hover {
  0%,
  18% {
    opacity: 0;
  }

  40%,
  68% {
    opacity: 1;
  }

  90%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-home__splash-wipe,
  .ns-home__splash-stable {
    transition: none;
  }

  .ns-home__splash.is-brand-ready .ns-home__splash-photo-img--hover {
    animation: none;
    opacity: 0;
  }

  .ns-home-page.is-splash-done .ns-home__splash {
    opacity: 0;
    visibility: hidden;
  }

  .ns-home-page.is-splash-done .ns-home__splash-wipe {
    transform: rotate(45deg) translate3d(0, 0, 0);
  }

  .ns-home-page.is-splash-done .ns-home__splash-stable {
    transform: translate3d(0, 0, 0);
  }
}

.ns-home__shell {
  display: grid;
  grid-template-columns: var(--ns-home-rail) var(--ns-home-content);
  column-gap: var(--ns-home-gap);
  justify-content: start;
  width: min(100%, var(--ns-home-shell));
  max-width: var(--ns-home-shell);
  margin: 0 auto;
  padding: var(--ns-home-pad-top) 40px 80px;
  box-sizing: border-box;
}

.ns-home__rail {
  position: sticky;
  top: var(--ns-home-pad-top);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  width: var(--ns-home-rail);
  max-width: var(--ns-home-rail);
  padding-top: 0;
  text-align: start;
  /* top is overridden in JS near end-of-work so the rail exits with the last title */
  will-change: top;
}

.ns-home__avatar {
  position: relative;
  display: block;
  width: calc(76px * 1351 / 1855);
  height: 76px;
  flex-shrink: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.ns-home__avatar-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  backface-visibility: hidden;
}

.ns-home__avatar-img--default {
  opacity: 1;
  z-index: 0;
}

.ns-home__avatar-img--hover {
  opacity: 0;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.ns-home__avatar:hover,
.ns-home__avatar:focus-visible {
  transform: scale(1.1);
}

.ns-home__avatar:hover .ns-home__avatar-img--hover,
.ns-home__avatar:focus-visible .ns-home__avatar-img--hover {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ns-home__avatar,
  .ns-home__avatar-img--hover {
    transition: none;
  }

  .ns-home__avatar:hover,
  .ns-home__avatar:focus-visible {
    transform: none;
  }
}

.ns-home__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ns-home__nav a,
.ns-home__nav-btn {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ns-soft);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
}

.ns-home__nav a.is-active,
.ns-home__nav a:hover,
.ns-home__nav-btn:hover {
  color: var(--ns-accent);
  font-weight: 600;
}

.ns-home__nav a.is-active {
  font-weight: 600;
  color: var(--ns-ink);
}

.ns-home__nav a.is-active:hover {
  color: var(--ns-accent);
}

.ns-home__lang {
  margin-top: 8px;
}

.ns-home__lang .lang-btn {
  font-size: 13px;
  color: var(--ns-soft);
}

.ns-home__lang .lang-btn:hover {
  color: var(--ns-accent);
}

.ns-home__lang .lang-btn.is-active {
  color: var(--ns-ink);
}

.ns-home__lang .lang-btn.is-active:hover {
  color: var(--ns-accent);
}

.ns-home__content {
  min-width: 0;
  width: 100%;
  max-width: var(--ns-home-content);
}

.ns-home__intro {
  margin: 0 0 80px;
  padding: 0;
  max-width: none;
}

/* Comfortable gap; mild first-project peek only on tall desktops */
body[data-page="index"] .ns-home__intro {
  margin-bottom: clamp(72px, 9vh, 112px);
}

@media (min-width: 801px) and (min-height: 960px) {
  body[data-page="index"] .ns-home__intro {
    margin-bottom: 0;
    min-height: calc(100svh - var(--ns-home-pad-top) - 560px);
    box-sizing: border-box;
  }
}

.ns-home__intro-lead {
  margin: 0 0 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ns-ink);
}

.ns-home__role {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-style: italic;
  color: var(--ns-muted);
  cursor: default;
}

.ns-home__intro-body {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ns-muted);
  max-width: 62ch;
}

.ns-home__intro-body:last-child {
  margin-bottom: 0;
}

.ns-home__work,
.ns-home__about {
  scroll-margin-top: 24px;
}

.ns-home__work {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin: 0 0 96px;
  padding: 0;
  max-width: none;
}

.ns-work {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ns-work__visual {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}

.ns-work__status {
  position: absolute;
  z-index: 6;
  top: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 10px 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #111111;
  pointer-events: none;
  white-space: nowrap;
}

.ns-work__status-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
}

.ns-work__status--live .ns-work__status-dot {
  animation: ns-work-live-pulse 1.8s ease-out infinite;
}

.ns-work__status--was-live {
  color: #334155;
  background: rgba(255, 255, 255, 0.86);
}

.ns-work__status--was-live .ns-work__status-dot {
  background: #94a3b8;
  box-shadow: none;
}

@keyframes ns-work-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-work__status--live .ns-work__status-dot {
    animation: none;
  }
}

.ns-work__visual img,
.ns-work__visual .ns-work__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-work__visual .ns-work__video,
.ns-case__hero-media > .ns-case__hero-video,
.project-ux-showcase__video,
[data-ns-scroll-video] {
  opacity: 0;
  visibility: hidden;
  transition: opacity 560ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ns-work__visual .ns-work__video.is-playing,
.ns-case__hero-media > .ns-case__hero-video.is-playing,
.project-ux-showcase__video.is-playing,
[data-ns-scroll-video].is-playing {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .ns-work__visual .ns-work__video.is-playing,
  .ns-case__hero-media > .ns-case__hero-video.is-playing,
  .project-ux-showcase__video.is-playing,
  [data-ns-scroll-video].is-playing {
    transition: none;
  }
}

.ns-work:hover .ns-work__visual img:not(.ns-phone__frame):not(.ns-work__poster) {
  transform: scale(1.03);
}

.ns-work:hover .ns-work__visual--video {
  transform: none;
}

.ns-work:hover .ns-work__visual--video .ns-work__poster,
.ns-work:hover .ns-work__visual--video .ns-work__video,
.ns-work:hover .ns-work__visual--video .ns-work__video.is-playing {
  transform: none;
}

.ns-work__visual--estatest {
  background-color: var(--estatest);
}

.ns-work__visual--video,
.project-ux-showcase--video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #fc336b;
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-work__visual--video .ns-work__poster,
.project-ux-showcase--video .ns-work__poster,
.ns-work__visual--video .ns-work__video,
.ns-work__visual--video .ns-case__hero-video,
.project-ux-showcase--video .project-ux-showcase__video,
.ns-work__visual--video [data-ns-scroll-video],
.project-ux-showcase--video [data-ns-scroll-video] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.ns-work__visual--video .ns-work__poster,
.project-ux-showcase--video .ns-work__poster {
  z-index: 3;
  opacity: 1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transition: opacity 450ms cubic-bezier(0.33, 0, 0.2, 1);
  will-change: opacity;
}

.ns-work__visual--video.is-video-playing .ns-work__poster,
.project-ux-showcase--video.is-video-playing .ns-work__poster {
  opacity: 0;
}

/* Video stays fully painted under the poster — only the poster dissolves */
.ns-work__visual--video .ns-work__video,
.ns-work__visual--video .ns-case__hero-video,
.project-ux-showcase--video .project-ux-showcase__video,
.ns-work__visual--video [data-ns-scroll-video],
.project-ux-showcase--video [data-ns-scroll-video] {
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .ns-work__visual--video .ns-work__poster,
  .project-ux-showcase--video .ns-work__poster {
    transition: none;
  }

  .ns-work__visual--video.is-video-playing .ns-work__poster,
  .project-ux-showcase--video.is-video-playing .ns-work__poster {
    opacity: 0;
  }
}

.ns-work__visual--mikraot {
  background: var(--mikraot);
}

.ns-work__visual--wizard {
  background: #f4edf8;
}

.ns-work__visual--wizard.ns-work__visual--video {
  background: #f4edf8;
}

.ns-work__visual--wizard.ns-work__visual--video .ns-work__poster,
.ns-work__visual--wizard.ns-work__visual--video .ns-work__video {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 84%;
  height: auto;
  max-height: 84%;
  aspect-ratio: 1920 / 1008;
  object-fit: cover;
  object-position: center center;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Login framing: keep the top chrome in frame (was cropping the header) */
.ns-work__visual--wizard.ns-work__visual--video .ns-work__poster,
.ns-work__visual--wizard.ns-work__visual--video [data-wizard-seq-video="login"] {
  object-position: center 14%;
}

.ns-work:hover .ns-work__visual--wizard.ns-work__visual--video .ns-work__poster,
.ns-work:hover .ns-work__visual--wizard.ns-work__visual--video .ns-work__video,
.ns-work:hover .ns-work__visual--wizard.ns-work__visual--video .ns-work__video.is-playing {
  transform: translate(-50%, -50%) scale(1.02);
}

/* Override the generic video !important paint rules so only the active seq layer shows */
.ns-work__visual--wizard[data-wizard-home-seq] .ns-work__video {
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 1;
  pointer-events: none;
}

.ns-work__visual--wizard[data-wizard-home-seq] .ns-work__video.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2;
}

/* Mini splash — same diagonal wipe grammar as the homepage splash */
.ns-wiz-mini-splash {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: transparent;
}

.ns-wiz-mini-splash.is-gone {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.ns-wiz-mini-splash__wipe {
  position: absolute;
  inset: -75%;
  overflow: hidden;
  background: var(--wizard-splash-bg);
  transform: rotate(45deg) translate3d(0, 0, 0);
  transition:
    transform 1.15s cubic-bezier(0.65, 0, 0.35, 1),
    filter 1.15s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 1.15s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
}

.ns-wiz-mini-splash.is-done .ns-wiz-mini-splash__wipe {
  transform: rotate(45deg) translate3d(145%, 0, 0);
  filter: blur(8px);
}

.ns-wiz-mini-splash__stable {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, 0, 0);
  transition:
    transform 1.15s cubic-bezier(0.65, 0, 0.35, 1),
    filter 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
}

.ns-wiz-mini-splash.is-done .ns-wiz-mini-splash__stable {
  transform: translate3d(-145%, 0, 0);
  filter: blur(14px);
  opacity: 0;
}

.ns-wiz-mini-splash__core {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg) translateZ(0);
  backface-visibility: hidden;
}

/* Beat `.ns-work__visual img { width/height: 100% }` so the mark stays sized + centered */
.ns-wiz-mini-splash .ns-wiz-mini-splash__logo {
  position: relative;
  inset: auto;
  top: auto;
  left: auto;
  display: block;
  width: 52px;
  height: auto;
  max-width: 52px;
  max-height: 44px;
  aspect-ratio: 121 / 101;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ns-wiz-mini-splash__wipe,
  .ns-wiz-mini-splash__stable {
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .ns-wiz-mini-splash.is-done .ns-wiz-mini-splash__wipe {
    transform: rotate(45deg) translate3d(0, 0, 0);
    filter: none;
    opacity: 0;
  }

  .ns-wiz-mini-splash.is-done .ns-wiz-mini-splash__stable {
    transform: translate3d(0, 0, 0);
    filter: none;
    opacity: 0;
  }
}

.ns-case__hero-media.ns-work__visual--wizard.ns-work__visual--video {
  background: #f4edf8;
  aspect-ratio: 16 / 10;
}

.ns-case__hero-media.ns-work__visual--wizard.ns-work__visual--video .ns-work__poster,
.ns-case__hero-media.ns-work__visual--wizard.ns-work__visual--video .ns-case__hero-video {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 84%;
  height: auto;
  max-height: 84%;
  aspect-ratio: 1920 / 1008;
  object-fit: cover;
  object-position: center center;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%);
}

.ns-work__visual--task-popup {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7e9ef;
}

.ns-work__visual--task-popup img:not(.ns-work__poster),
.ns-work__visual--task-popup:not(.ns-work__visual--video) img {
  display: block;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ns-work__visual--task-popup.ns-work__visual--video {
  display: block;
}

.ns-work__visual--task-popup.ns-work__visual--video .ns-work__poster,
.ns-work__visual--task-popup.ns-work__visual--video .ns-work__video,
.task-popup-case__hero.ns-work__visual--video .ns-work__poster,
.task-popup-case__hero.ns-work__visual--video .ns-case__hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transform: scale(1.14);
  transform-origin: center center;
}

.ns-work:hover .ns-work__visual--task-popup:not(.ns-work__visual--video) img {
  transform: scale(1.025);
}

.ns-work:hover .ns-work__visual--task-popup.ns-work__visual--video .ns-work__poster,
.ns-work:hover .ns-work__visual--task-popup.ns-work__visual--video .ns-work__video {
  transform: scale(1.14);
}

.ns-work__visual--stt {
  background: #f5efe7;
}

.task-popup-case {
  --ns-accent: #3288e6;
  --project-accent: #3288e6;
  --ns-hero: #e7e9ef;
}

.task-popup-case .ns-case__section {
  margin-bottom: 48px;
}

.task-popup-case .ns-case__body {
  margin-bottom: 14px;
}

.task-popup-case .ns-case__heading {
  margin-bottom: 12px;
}

.task-popup-case .ns-case__label {
  margin-bottom: 14px;
}

.task-popup-case__hero {
  position: relative;
  display: block;
  background: #e7e9ef;
  text-decoration: none;
}

.task-popup-case__hero > img:not(.ns-work__poster) {
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  padding: 0;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-popup-case__hero:hover > img:not(.ns-work__poster) {
  transform: scale(1.018);
}

.task-popup-case__hero-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #26292b;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(38, 41, 43, 0.12);
  pointer-events: none;
}

.task-popup-case__issues {
  margin-top: 12px;
  gap: 8px;
}

.task-popup-case__issues > li {
  margin: 0;
  padding: 0;
}

.task-popup-case__issues blockquote {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0;
  font-size: 16px;
  line-height: 1.45;
}

.task-popup-ba {
  display: grid;
  gap: 40px;
  margin-top: 12px;
}

.task-popup-flow {
  margin-top: 24px;
  padding: 20px 18px;
  border: 1px solid var(--ns-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fafafa 0%, #fff 48%, #fafafa 100%);
}

.task-popup-flow__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.task-popup-flow__node {
  width: auto;
  max-width: 520px;
  padding: 12px 16px;
  border: 1px solid var(--ns-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.task-popup-flow__node--start,
.task-popup-flow__node--end {
  border-color: #d7d7d7;
}

.task-popup-flow__node--accent {
  background: #f5f5f5;
}

.task-popup-flow__node--group-title {
  width: 100%;
  margin-bottom: 12px;
}

.task-popup-flow__node--step {
  width: auto;
  min-width: 0;
  padding: 12px 12px;
}

.task-popup-flow__index {
  display: block;
  margin-bottom: 4px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ns-soft);
}

.task-popup-flow__label {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ns-ink);
}

.task-popup-flow__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ns-muted);
}

.task-popup-flow__arrow {
  display: grid;
  place-items: center;
  width: 100%;
  height: 20px;
}

.task-popup-flow__arrow span {
  display: block;
  width: 1px;
  height: 12px;
  background: #bdbdbd;
  position: relative;
}

.task-popup-flow__arrow span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #9a9a9a;
  border-bottom: 1.5px solid #9a9a9a;
  transform: translateX(-50%) rotate(45deg);
}

.task-popup-flow__group {
  width: 100%;
  align-self: stretch;
  padding: 14px 12px 12px;
  border: 1px dashed #d4d4d4;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.task-popup-flow__ia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}

.task-popup-flow__h-arrow {
  display: grid;
  place-items: center;
  width: 16px;
  align-self: center;
}

.task-popup-flow__h-arrow span {
  display: block;
  width: 12px;
  height: 1px;
  background: #bdbdbd;
  position: relative;
}

.task-popup-flow__h-arrow span::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #9a9a9a;
  border-bottom: 1.5px solid #9a9a9a;
  transform: translateY(-50%) rotate(-45deg);
}

.task-popup-flow__branch-label {
  margin: 2px 0 8px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ns-soft);
  text-align: center;
}

.task-popup-flow__branches {
  width: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.task-popup-flow__branches .task-popup-flow__node {
  width: auto;
}

.task-popup-arch {
  list-style: none;
  margin: 28px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--ns-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px 10px;
  align-items: start;
}

.task-popup-arch__node {
  margin: 0;
  min-width: 0;
}

.task-popup-arch__index {
  display: block;
  margin-bottom: 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ns-soft);
}

.task-popup-arch__name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ns-ink);
}

.task-popup-arch__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ns-muted);
}

.task-popup-arch__edge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding-top: 28px;
}

.task-popup-arch__arrow {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ns-line);
  position: relative;
}

.task-popup-arch__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--ns-soft);
  border-bottom: 1px solid var(--ns-soft);
  transform: translateY(-50%) rotate(-45deg);
}

.task-popup-ba__pair {
  margin: 0;
}

.ns-compare {
  --ns-compare-bg: #f2f4fa;
  margin: 40px 0 8px;
}

.ns-compare__stage {
  --compare: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ns-compare-bg);
  aspect-ratio: 1920 / 1128;
  box-shadow: rgba(0, 0, 0, 0.08) 0 0 0 1px;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.ns-compare__img {
  display: block;
  max-width: none;
  pointer-events: none;
}

.ns-compare__img--after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.ns-compare__before {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--compare)) 0 0);
}

.ns-compare__img--before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.ns-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare);
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.ns-compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -50%);
}

.ns-compare__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ns-compare__badge--before {
  inset-inline-start: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #5d5d5d;
}

.ns-compare__badge--after {
  inset-inline-end: 14px;
  background: var(--ns-accent, #3288e6);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(50, 136, 230, 0.35);
}

.ns-compare__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.ns-compare__range:focus-visible {
  opacity: 1;
  outline: 2px solid var(--ns-accent, #3288e6);
  outline-offset: -2px;
}

@media (max-width: 720px) {
  .ns-compare {
    margin-bottom: 28px;
  }

  .ns-compare__knob {
    width: 36px;
    height: 36px;
  }

  .ns-compare__badge {
    top: 10px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .ns-compare__badge--before {
    inset-inline-start: 10px;
  }

  .ns-compare__badge--after {
    inset-inline-end: 10px;
  }
}

.task-popup-ba__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ns-ink);
}

.task-popup-ba__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.task-popup-ba__side {
  margin: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.task-popup-ba__badge {
  display: block;
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.task-popup-ba__badge--before {
  color: #b42318;
}

.task-popup-ba__badge--after {
  color: #067647;
}

.task-popup-ba__frame {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 470 / 300;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #f8f8f8;
  line-height: 0;
}

.task-popup-ba__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.task-popup-ba__side figcaption {
  margin: 0;
}

.task-popup-ba__side figcaption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ns-muted);
}

.task-popup-case__prototype {
  padding: 32px;
  border-radius: 12px;
  background: #f2f6fc;
}

.task-popup-case__prototype-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #3288e6;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.task-popup-case__prototype-link:hover {
  background: #2477ce;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .task-popup-case__hero-link {
    display: none;
  }

  .task-popup-case__prototype {
    padding: 24px 20px;
  }

  .task-popup-ba {
    gap: 36px;
  }

  .task-popup-ba__title {
    font-size: 18px;
  }

  .task-popup-ba__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .task-popup-ba__frame {
    aspect-ratio: 16 / 10;
  }

  .task-popup-ba__side figcaption p {
    font-size: 13px;
  }

  .task-popup-flow {
    padding: 20px 14px;
  }

  .task-popup-flow__ia {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .task-popup-flow__h-arrow {
    width: auto;
    height: 18px;
  }

  .task-popup-flow__h-arrow span {
    width: 1px;
    height: 14px;
  }

  .task-popup-flow__h-arrow span::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%) rotate(45deg);
  }

  .task-popup-flow__branches {
    grid-template-columns: 1fr;
  }

  .task-popup-arch {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .task-popup-arch__edge {
    min-height: 0;
    padding: 4px 0 16px;
    justify-content: flex-start;
  }

  .task-popup-arch__arrow {
    width: 1px;
    height: 24px;
  }

  .task-popup-arch__arrow::after {
    top: auto;
    bottom: 0;
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }

  .task-popup-arch__node + .task-popup-arch__edge + .task-popup-arch__node {
    padding-top: 4px;
  }
}

.ns-work__visual--device .ns-device-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding-block: 20px;
  background: transparent;
  pointer-events: none;
}

.ns-work__visual--device .ns-phone {
  width: min(24%, 204px);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 560ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 560ms ease;
}

.ns-work:hover .ns-work__visual--device .ns-phone {
  transform: scale(1.03) translateY(0);
}

.ns-work__visual--stt .ns-device-stage {
  background: #f5efe7;
}

.ns-work__visual--stt .stt-stop-btn {
  cursor: inherit;
}

.ns-work__eyebrow {
  margin: 0 0 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ns-muted);
}

.ns-work__title {
  margin: 0;
  max-width: none;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ns-ink);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ns-work:hover .ns-work__title {
  color: var(--ns-accent);
}

.ns-home__about {
  margin: 0 0 64px;
  padding: 0;
  max-width: none;
}

.ns-home__about-label {
  margin: 0 0 14px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #807e7e;
}

.ns-home__about-text {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ns-ink);
  max-width: 36ch;
}

.ns-home__about-text a {
  color: var(--ns-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ns-home__about-text a:hover {
  color: var(--ns-accent);
}

.ns-home__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--ns-line);
  max-width: none;
}

.ns-home__footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.ns-home__footer-label {
  margin: 0 0 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ns-soft);
}

.ns-home__footer-value {
  margin: 0;
  font-size: 15px;
  color: var(--ns-ink);
}

.ns-home__copy {
  margin: 0;
  font-size: 13px;
  color: var(--ns-soft);
}

.ns-home__footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ns-home__footer-lang .lang-btn {
  font-size: 13px;
  color: var(--ns-soft);
}

.ns-home__footer-lang .lang-btn:hover {
  color: var(--ns-ink);
}

.ns-home__footer-lang .lang-btn.is-active {
  color: var(--ns-ink);
}

.ns-home__footer-lang .lang-switch__sep {
  color: var(--ns-soft);
  opacity: 0.55;
}

/* Homepage entrance — profile → tabs → projects (opacity only, after wipe) */
.ns-home-enter {
  --ns-enter-delay: 0ms;
  opacity: 0;
  pointer-events: none;
}

.ns-home__avatar.ns-home-enter {
  --ns-enter-delay: 0ms;
}

.ns-home__nav.ns-home-enter {
  --ns-enter-delay: 90ms;
}

.ns-home__lang.ns-home-enter {
  --ns-enter-delay: 150ms;
}

.ns-home__intro.ns-home-enter {
  --ns-enter-delay: 200ms;
}

.ns-work.ns-home-enter:nth-child(1) {
  --ns-enter-delay: 280ms;
}

.ns-work.ns-home-enter:nth-child(2) {
  --ns-enter-delay: 360ms;
}

.ns-work.ns-home-enter:nth-child(3) {
  --ns-enter-delay: 440ms;
}

.ns-work.ns-home-enter:nth-child(4) {
  --ns-enter-delay: 520ms;
}

.ns-home__about.ns-home-enter {
  --ns-enter-delay: 600ms;
}

.ns-home__footer.ns-home-enter {
  --ns-enter-delay: 660ms;
}

.ns-home-page.is-home-enter .ns-home-enter {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.45s ease var(--ns-enter-delay);
}

@media (prefers-reduced-motion: reduce) {
  .ns-home-enter,
  .ns-home-page.is-home-enter .ns-home-enter {
    opacity: 1;
    transition: none;
    pointer-events: auto;
  }
}

@media (max-width: 1100px) {
  .ns-home-page {
    --ns-home-rail: 200px;
    --ns-home-content: min(800px, 100%);
    --ns-home-shell: 100%;
  }

  .ns-home__shell {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-inline: 32px;
    grid-template-columns: var(--ns-home-rail) minmax(0, 1fr);
  }

  .ns-home__content {
    max-width: 800px;
  }
}

@media (max-width: 800px) {
  .ns-home-page {
    --ns-home-rail: auto;
    --ns-home-content: 100%;
    --ns-home-shell: 100%;
    --ns-home-gap: 0px;
  }

  .ns-home__splash-core {
    gap: 18px;
  }

  .ns-home__shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    padding: 24px 20px 64px;
  }

  .ns-home__rail {
    position: relative;
    top: auto;
    width: auto;
    max-width: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-bottom: 36px;
  }

  .ns-home__content {
    max-width: none;
    width: 100%;
  }

  .ns-home__avatar {
    width: calc(60px * 1351 / 1855);
    height: 60px;
  }

  .ns-home__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .ns-home__lang {
    margin-top: 0;
    width: 100%;
  }

  .ns-home__intro {
    margin-bottom: 64px;
  }

  .ns-home__work {
    gap: 48px;
    margin-bottom: 64px;
  }

  .ns-work__title {
    max-width: none;
    white-space: normal;
  }

  .ns-home__about-text {
    max-width: none;
  }

  /* Index + CV: sticky equal-spaced nav + avatar above content */
  body[data-page="index"] .ns-home__shell,
  body[data-page="cv"] .ns-home__shell {
    display: flex;
    flex-direction: column;
    padding: 0 20px 64px;
  }

  body[data-page="index"] .ns-home__rail,
  body[data-page="cv"] .ns-home__rail {
    display: contents;
    margin-bottom: 0;
  }

  body[data-page="index"] .ns-home__nav,
  body[data-page="cv"] .ns-home__nav {
    order: 1;
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    width: calc(100% + 40px);
    margin: 0 -20px 8px;
    padding: max(12px, env(safe-area-inset-top, 0px)) 20px 12px;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(13, 13, 13, 0.06);
  }

  body[data-page="index"] .ns-home__nav a,
  body[data-page="index"] .ns-home__nav-btn,
  body[data-page="cv"] .ns-home__nav a,
  body[data-page="cv"] .ns-home__nav-btn {
    flex: 1 1 0;
    text-align: center;
  }

  body[data-page="index"] .ns-home__avatar,
  body[data-page="cv"] .ns-home__avatar {
    order: 2;
    align-self: flex-start;
    width: calc(72px * 1351 / 1855);
    height: 72px;
    margin: 20px 0 18px;
  }

  body[data-page="index"] .ns-home__content,
  body[data-page="cv"] .ns-home__content {
    order: 3;
  }

  body[data-page="index"] .ns-home__intro {
    margin-top: 0;
    margin-bottom: clamp(56px, 8vh, 88px);
    min-height: 0;
  }

  body[data-page="cv"] .ns-cv__header {
    margin-top: 0;
  }
}

/* ── Play page: Figma Container 800×… → 2×388 cols + 24px gap ── */
/* Keep home shell vars (--ns-home-content: 800, shell: 1128, gap: 0)
   so the side rail stays in the exact same place as Work. */
.ns-play-page {
  --ns-play-col-gap: 24px;
  --ns-play-card-gap: 10px;
  --ns-play-radius: 8px;
}

.ns-play-page .ns-home__rail {
  position: sticky;
  top: var(--ns-home-pad-top);
  align-self: start;
}

.ns-play__content {
  max-width: var(--ns-home-content); /* 800px — matches Figma */
  width: 100%;
}

.ns-play__grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ~388px each inside 800px */
  column-gap: var(--ns-play-col-gap);
  align-items: start;
  margin: 0 0 96px;
  width: 100%;
}

.ns-play__col {
  display: flex;
  flex-direction: column;
  gap: var(--ns-play-col-gap);
  min-width: 0;
}

.ns-play__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--ns-play-card-gap);
  margin: 0;
  color: inherit;
  text-decoration: none;
}

a.ns-play__card:focus-visible {
  outline: 2px solid var(--ns-ink, #111);
  outline-offset: 4px;
  border-radius: 4px;
}

.ns-play__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--ns-play-radius);
  background: #ececeb;
}

.ns-play__media img,
.ns-play__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Variable media heights from Figma (388-wide refs) */
.ns-play__media--landscape {
  aspect-ratio: 388 / 263;
}

.ns-play__media--wide {
  aspect-ratio: 388 / 279;
}

.ns-play__media--short {
  aspect-ratio: 388 / 223;
}

.ns-play__media--mid {
  aspect-ratio: 388 / 345;
}

.ns-play__media--square {
  aspect-ratio: 388 / 350;
}

.ns-play__media--portrait {
  aspect-ratio: 388 / 382;
}

.ns-play__media--tall {
  aspect-ratio: 388 / 405;
}

.ns-play__media--xtall {
  aspect-ratio: 388 / 487;
}

.ns-play__title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: -0.01em;
  color: #0d0d0d;
}

.ns-play__meta {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  color: #5d5d5d;
}

@media (max-width: 820px) {
  .ns-play-page {
    --ns-home-content: 100%;
  }

  .ns-play__content {
    max-width: none;
  }

  .ns-play__grid {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }
}

/* ── CV page (Madhurima-style résumé) ── */
.ns-cv-page .ns-home__rail {
  position: sticky;
  top: var(--ns-home-pad-top);
  align-self: start;
}

.ns-cv__content {
  max-width: var(--ns-home-content);
  width: 100%;
}

.ns-cv__header {
  margin: 0 0 48px;
}

.ns-cv__name {
  margin: 0 0 16px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ns-ink);
}

.ns-cv__bio {
  margin: 0 0 20px;
  max-width: 62ch;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ns-muted);
}

.ns-cv__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #3f3f3f;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 160ms ease, color 160ms ease;
}

.ns-cv__download:hover {
  color: var(--ns-ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.ns-cv__download:focus-visible {
  outline: 2px solid var(--ns-ink);
  outline-offset: 3px;
}

.ns-cv__download-icon {
  flex-shrink: 0;
  display: block;
  width: 16px;
  height: 16px;
  color: #5d5d5d;
}

.ns-cv__download:hover .ns-cv__download-icon {
  color: var(--ns-ink);
}

.ns-cv__block {
  margin: 0 0 40px;
}

.ns-cv__heading {
  margin: 0 0 18px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ns-ink);
}

.ns-cv__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ns-cv__contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ns-cv__contact-label {
  flex: 0 0 144px;
  width: 144px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #3f3f3f;
}

.ns-cv__contact-value {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #3f3f3f;
  text-decoration: none;
}

a.ns-cv__contact-value:hover {
  color: var(--ns-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ns-cv__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ns-cv__row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: baseline;
}

.ns-cv__org,
.ns-cv__role,
.ns-cv__dates {
  font-size: 16px;
  line-height: 1.35;
  color: var(--ns-ink);
}

.ns-cv__org--link {
  color: var(--ns-accent);
  text-decoration: none;
}

.ns-cv__org--link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ns-cv__row--open .ns-cv__org,
.ns-cv__row--open .ns-cv__role {
  color: var(--ns-muted);
}

.ns-cv__dates {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ns-soft);
  white-space: nowrap;
  text-align: end;
}

@media (max-width: 820px) {
  .ns-cv__contact-label {
    flex-basis: 100px;
    width: 100px;
  }

  .ns-cv__row {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }

  .ns-cv__org {
    grid-column: 1 / -1;
  }

  .ns-cv__role {
    grid-column: 1;
  }

  .ns-cv__dates {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Page sheet that lifts to reveal the note footer underneath */
.ns-home__page-lift {
  position: relative;
  z-index: 2;
  background: var(--ns-bg, #ffffff);
  border-radius: 0 0 36px 36px;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 28px 80px rgba(15, 23, 42, 0.16);
}

/* ── Home note footer (Madhurima-style, navy) ── */
.ns-note-footer {
  --ns-note-bg: #1e3a8a;
  --ns-note-ink: #f9f9f9;
  --ns-note-soft: rgba(255, 255, 255, 0.6);
  position: sticky;
  bottom: 0;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 28px 40px 24px;
  box-sizing: border-box;
  background: var(--ns-note-bg);
  color: var(--ns-note-ink);
  display: flex;
  flex-direction: column;
  min-height: min(380px, 52vh);
}

.ns-note-footer.is-enter .ns-note-footer__meta,
.ns-note-footer.is-enter .ns-note-footer__socials,
.ns-note-footer.is-enter .ns-note-footer__bottom {
  opacity: 0;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.ns-note-footer.is-enter .ns-note-footer__meta {
  transform: translate3d(0, 28px, 0);
  transition-delay: 0.04s;
}

.ns-note-footer.is-enter .ns-note-footer__socials {
  transform: translate3d(0, 44px, 0);
  transition-delay: 0.16s;
}

.ns-note-footer.is-enter .ns-note-footer__bottom {
  transform: translate3d(0, 16px, 0);
  transition-delay: 0.28s;
}

.ns-note-footer.is-inview .ns-note-footer__meta,
.ns-note-footer.is-inview .ns-note-footer__bottom {
  opacity: 1;
  transform: none;
}

.ns-note-footer.is-inview .ns-note-footer__socials {
  opacity: 1;
}

.ns-note-footer__inner {
  width: min(100%, 1100px);
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0;
  min-height: 0;
}

.ns-note-footer__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  align-self: start;
}

.ns-note-footer__meta-right {
  text-align: end;
}

.ns-note-footer__meta-label {
  margin: 0 0 4px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ns-note-soft);
  text-transform: uppercase;
}

.ns-note-footer__meta-value {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ns-note-ink);
}

.ns-note-footer__meta-value--live {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.ns-note-footer__sky {
  display: inline-flex;
  color: var(--ns-note-ink);
}

.ns-note-footer__socials {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(100%, 420px);
  margin: 0;
  min-height: 0;
  align-self: center;
  /* Nudge the tiles slightly above true center */
  transform: translateY(-18px);
}

.ns-note-footer.is-inview .ns-note-footer__socials {
  transform: translateY(-18px);
}

.ns-note-footer__tile {
  display: grid;
  place-items: center;
  width: min(26vw, 112px);
  aspect-ratio: 1;
  margin-inline: -8px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ns-note-bg) 82%, #000);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 200ms ease, background-color 200ms ease;
}

.ns-note-footer__tile--1 {
  transform: rotate(9deg);
}

.ns-note-footer__tile--2 {
  transform: rotate(-9deg);
}

.ns-note-footer__tile:hover {
  background: #111;
}

.ns-note-footer__tile--1:hover {
  transform: rotate(9deg) translateY(-4px) scale(1.03);
}

.ns-note-footer__tile--2:hover {
  transform: rotate(-9deg) translateY(-4px) scale(1.03);
}

.ns-note-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  align-self: end;
  justify-self: center;
}

.ns-note-footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--ns-note-soft);
}

.ns-note-footer__lang .lang-btn {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

.ns-note-footer__lang .lang-btn:hover {
  color: rgba(255, 255, 255, 0.78);
}

.ns-note-footer__lang .lang-btn.is-active {
  color: rgba(255, 255, 255, 0.92);
}

.ns-note-footer__lang .lang-btn.is-active:hover {
  color: #ffffff;
}

.ns-note-footer__lang .lang-switch__sep {
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 820px) {
  .ns-home__page-lift {
    border-radius: 0 0 24px 24px;
  }

  .ns-note-footer {
    padding: 24px 20px max(20px, env(safe-area-inset-bottom, 0px));
    min-height: min(340px, 48vh);
  }

  .ns-note-footer__socials,
  .ns-note-footer.is-inview .ns-note-footer__socials {
    transform: translateY(-12px);
  }

  .ns-note-footer__tile {
    width: min(28vw, 96px);
    margin-inline: -6px;
    border-width: 2px;
    border-radius: 14px;
  }

  .ns-note-footer__tile svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-home__page-lift {
    border-radius: 0;
    box-shadow: none;
  }

  .ns-note-footer {
    position: relative;
  }

  .ns-note-footer.is-enter .ns-note-footer__meta,
  .ns-note-footer.is-enter .ns-note-footer__socials,
  .ns-note-footer.is-enter .ns-note-footer__bottom {
    opacity: 1;
    transition: none;
    will-change: auto;
  }

  .ns-note-footer.is-enter .ns-note-footer__meta,
  .ns-note-footer.is-enter .ns-note-footer__bottom {
    transform: none;
  }

  .ns-note-footer.is-enter .ns-note-footer__socials,
  .ns-note-footer.is-inview .ns-note-footer__socials {
    transform: translateY(-18px);
  }

  .ns-note-footer__tile,
  .ns-note-footer__tile:hover {
    transform: none;
  }
}

/* 404 — sticker face on splash blue */
.ns-404-page {
  margin: 0;
  min-height: 100dvh;
  background: #1e3a8a;
  color: #ffffff;
  font-family: "DM Sans", system-ui, sans-serif;
}

.ns-404 {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(32px, env(safe-area-inset-top, 0px)) 24px max(40px, env(safe-area-inset-bottom, 0px));
}

.ns-404__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 420px;
  width: 100%;
}

.ns-404__face {
  display: block;
  width: clamp(72px, 9vw, 112px);
  height: auto;
  margin: 0 0 8px;
  user-select: none;
  -webkit-user-drag: none;
}

.ns-404__code {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 12vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.ns-404__title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.ns-404__text {
  margin: 4px 0 12px;
  max-width: 28ch;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.ns-404__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ns-404__home:hover {
  background: #f3f5fb;
  transform: translateY(-1px);
}

.ns-404__home:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .ns-404__text {
    font-size: 15px;
  }
}
