:root {
  --neuro-blue: #007cff;
  --neuro-surface: #f3f3f3;
  --neuro-text: #000;
  --neuro-muted: rgba(0, 0, 0, .6);
  --neuro-radius: 24px;
  --neuro-panel-radius: 36px;
  --neuro-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --neuro-info-width: clamp(310px, 25vw, 650px);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: #fff;
}

body {
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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

:where(a, button, [role="button"]):not(.is-disabled):not(:disabled) {
  transition-property: scale;
  transition-duration: 120ms;
  transition-timing-function: ease;
}

:where(a, button, [role="button"]):not(.is-disabled):not(:disabled):active {
  scale: .95;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app {
  width: 100%;
  height: 100%;
}

body,
.app,
.app.is-locale-minion {
  background: #fff;
  color: var(--neuro-text);
  font-family: var(--neuro-font);
}

.portfolio-shell,
.portfolio-shell.is-locale-minion {
  display: grid;
  grid-template-columns: var(--neuro-info-width) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  height: 100svh;
  max-height: 100svh;
  padding: 0;
  overflow: clip;
  border-radius: var(--neuro-radius) 0 0 var(--neuro-radius);
  background: #fff;
}

.portfolio-shell.is-home { overflow: clip; }

.info-panel {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100svh;
  padding: 24px;
  overflow: hidden;
  background: #fff;
  color: #000;
  font-family: var(--neuro-font);
}

.portfolio-shell.is-locale-minion .info-panel {
  background: #fff;
}

.v2-info-top {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.v2-identity,
.v2-about,
.v2-contact-links,
.v2-mobile-contact-links {
  margin: 0;
  font-family: var(--neuro-font);
  font-weight: 400;
  font-style: normal;
  line-height: normal;
  letter-spacing: 0;
}

.v2-identity {
  margin-bottom: 16px;
  font-size: 36px;
  white-space: pre-line;
}

.v2-about {
  margin-bottom: 24px;
  font-size: 16px;
}

.v2-fade-up {
  animation: v2-fade-up 900ms cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(80ms + var(--reveal-index, 0) * 90ms);
  will-change: transform, opacity;
}

@keyframes v2-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.v2-contact-links,
.v2-mobile-contact-links { font-size: 16px; }

.v2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.v2-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--neuro-surface);
  color: #000;
  font: 400 16px/normal var(--neuro-font);
  white-space: nowrap;
}

.v2-tag.is-primary {
  background: var(--neuro-blue);
  color: #fff;
}

.portfolio-shell.is-locale-minion .v2-tag.is-primary {
  background: #ffdd2d;
  color: #000;
}

.v2-banana-spawn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.v2-minion-banana-link {
  display: block;
  width: min(180px, 75%);
  line-height: 0;
}

.v2-minion-banana {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  transition: transform 120ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.v2-contact-block {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  height: 160px;
}

.v2-profile-photo {
  position: relative;
  display: block;
  width: 120px;
  height: 160px;
  overflow: hidden;
  border-radius: var(--neuro-radius);
}

.v2-profile-photo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-profile-photo-image.is-color {
  opacity: 0;
  transition: opacity 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .v2-profile-photo:hover .v2-profile-photo-image.is-color {
    opacity: 1;
  }
}

.v2-contact-links,
.v2-mobile-contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  color: #000;
  overflow-wrap: anywhere;
}

.v2-contact-links a,
.v2-mobile-contact-links a {
  color: inherit;
  text-decoration: none;
}

.v2-mobile-contact-links { display: none; }

.v2-language-link {
  display: block;
  align-self: flex-start;
  flex: 0 0 auto;
  margin-top: 16px;
  color: rgba(0, 0, 0, .6);
  font-family: var(--neuro-font);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 11.5%;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.timeline-frame {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100svh;
  min-width: 0;
  overflow: visible;
  background: var(--neuro-surface);
  border-radius: var(--neuro-panel-radius) 0 0 var(--neuro-panel-radius);
}

.timeline-frame::before,
.timeline-frame::after {
  position: absolute;
  z-index: 6;
  right: 0;
  left: 0;
  height: 72px;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.timeline-frame::before {
  top: 0;
  border-radius: var(--neuro-panel-radius) 0 0 0;
  background: linear-gradient(180deg, #f3f3f3 0%, rgba(243, 243, 243, 0) 100%);
}

.timeline-frame::after {
  bottom: 0;
  border-radius: 0 0 0 var(--neuro-panel-radius);
  background: linear-gradient(180deg, rgba(243, 243, 243, 0) 0%, #f3f3f3 100%);
}

.timeline-frame.has-top-scroll-mask::before,
.timeline-frame.has-bottom-scroll-mask::after {
  opacity: 1;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 36px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--neuro-surface);
  color: #000;
  border-radius: inherit;
  scrollbar-width: none;
  scroll-behavior: auto;
  overscroll-behavior: contain;
}

.timeline::-webkit-scrollbar { display: none; }

.v2-hero-media,
.v2-case-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--neuro-radius);
  background: #fff;
}

.v2-case-image {
  transform: none;
  transform-origin: center;
  transition: transform 180ms cubic-bezier(.22, .61, .36, 1);
}

.v2-hero-media {
  flex: 0 0 auto;
}

.v2-hero-media video,
.v2-case-image img,
.v2-case-image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-shell.is-home .v2-case-image:hover,
.portfolio-shell.is-home .v2-case-image:hover img,
.portfolio-shell.is-home .v2-case-image:hover video,
.portfolio-shell.is-home .media-frame:hover img {
  transform: none !important;
}

.v2-case-image img,
.v2-case-image video {
  transition: none !important;
}

.v2-featured-grid {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  width: 100%;
}

.v2-featured-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 36px;
}

.v2-featured-case {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: visible;
  border-radius: var(--neuro-radius);
  background: #fff;
  transform: none;
  transition: transform 180ms cubic-bezier(.22, .61, .36, 1);
  container-type: inline-size;
}

.v2-featured-case.is-tall {
  height: 100%;
  aspect-ratio: auto;
}

.v2-featured-case img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.v2-featured-case picture {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.v2-featured-arrow {
  position: absolute;
  z-index: 2;
  right: 2.4024cqi;
  bottom: 2.4024cqi;
  display: grid;
  width: 8.6086cqi;
  min-width: 28px;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1000px;
  background: #007cff;
  color: #fff;
  container-type: inline-size;
  pointer-events: none;
}

.v2-featured-arrow > span {
  display: block;
  font: 400 55.814cqi/1 var(--neuro-font);
  transform: rotate(0deg);
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.portfolio-shell.is-locale-minion .v2-featured-arrow {
  background: #ffdd2d;
  color: #000;
}

@media (hover: hover) and (pointer: fine) {
  .v2-featured-case:hover .v2-featured-arrow > span,
  .v2-featured-case:focus-visible .v2-featured-arrow > span {
    transform: rotate(-45deg);
  }
}

.v2-featured-case:active { transform: scale(.98); }

@media (min-width: 1080px) {
  .v2-featured-stack {
    display: contents;
  }

  .v2-featured-stack .v2-featured-case:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .v2-featured-stack .v2-featured-case:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .v2-featured-case.is-tall {
    align-self: stretch;
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
    min-height: 0;
    contain: size;
  }
}

.v2-overview-list {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.v2-section {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.v2-hero-media + .v2-section,
.v2-section + .v2-section { margin-top: 0; }

.v2-section-title {
  margin: 0;
  color: #000;
  font: 400 24px/normal var(--neuro-font);
  letter-spacing: 0;
}

.v2-case-grid,
.v2-case-grid.is-single-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.v2-case-grid.is-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.v2-playground-section .v2-case-grid { gap: 36px; }

.v2-character-playground {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 10 / 1;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
}

.is-locale-minion .v2-character-playground {
  display: none;
}

.v2-arena-walker {
  position: absolute;
  z-index: 2;
  bottom: -6px;
  left: 0;
  display: block;
  width: clamp(56px, 7vw, 84px);
  height: auto;
  transform: translate3d(var(--arena-minion-x, 12px), 0, 0) scaleX(var(--arena-facing, 1));
  transform-origin: bottom center;
  cursor: pointer;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.v2-arena-walker.is-jumping {
  animation: v2-arena-jump 620ms cubic-bezier(.34, 1.2, .64, 1) both;
}

@keyframes v2-arena-jump {
  0%, 100% { translate: 0 0; scale: 1.1; }
  48% { translate: 0 -28px; scale: 1.1; }
}

.v2-arena-banana {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: block;
  width: clamp(40px, 5vw, 60px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transform: translate3d(var(--arena-banana-x, 12px), var(--arena-banana-y, 12px), 0);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.v2-arena-banana.is-dragging { cursor: grabbing; }

.v2-case {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  color: #000;
  font-family: var(--neuro-font);
}

.v2-case.is-text-only {
  gap: 0;
}

.v2-overview-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  color: #000;
  font: 400 16px/normal var(--neuro-font);
}

.v2-overview-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}

.v2-overview-arrow {
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 100px;
  background: #007cff;
  color: #fff;
  font-size: 24px;
}

.v2-overview-period { color: var(--neuro-muted); }

.v2-overview-link.is-disabled .v2-overview-arrow { opacity: .4; }

.v2-overview-arrow-icon {
  display: block;
  transform: rotate(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.22, .61, .36, 1);
}

.portfolio-shell.is-locale-minion .v2-overview-arrow {
  background: #ffdd2d;
  color: #000;
}

@media (hover: hover) and (pointer: fine) {
  .v2-overview-link:not(.is-disabled):hover .v2-overview-arrow-icon,
  .v2-overview-link:not(.is-disabled):focus-within .v2-overview-arrow-icon {
    transform: rotate(-45deg);
  }
}

.v2-case-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.v2-case-meta,
.v2-case-name {
  margin: 0;
  width: 100%;
  font-family: var(--neuro-font);
  font-weight: 400;
  line-height: normal;
  overflow-wrap: break-word;
}

.v2-case-meta {
  margin-bottom: -4px;
  color: var(--neuro-muted);
  font-size: 16px;
}

.v2-case-name {
  color: #000;
  font-size: 16px;
}

.v2-case-image:not([data-v2-cursor="soon"]):not([data-v2-cursor="nda"]):active,
.v2-case-image.is-pressed { transform: none !important; }

.v2-case-image[data-v2-cursor="soon"]:active,
.v2-case-image[data-v2-cursor="soon"].is-pressed,
.v2-case-image[data-v2-cursor="nda"]:active,
.v2-case-image[data-v2-cursor="nda"].is-pressed { transform: none !important; }

.v2-footer { display: none; }

[data-v2-cursor] { cursor: pointer !important; }

[data-v2-cursor="soon"],
[data-v2-cursor="nda"] { cursor: default !important; }

.cursor-companion {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: block;
  padding: 6px 12px;
  border-radius: 100px;
  background: #007cff;
  color: #fff;
  font: 400 16px/normal var(--neuro-font);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}

.cursor-companion.is-visible {
  opacity: 1;
  visibility: visible;
}

html.has-case-modal .cursor-companion {
  opacity: 0 !important;
  visibility: hidden !important;
}

.cursor-companion.is-on-black {
  background: #007cff;
  color: #fff;
}

.cursor-companion.is-minion-theme,
.cursor-companion.is-minion-theme.is-on-black {
  background: #ffdd2d;
  color: #000;
}

.banana-rain {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.banana-rain-item {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--banana-rain-size, 48px);
  height: auto;
  transform: translate3d(var(--banana-rain-x, 0), -140%, 0) rotate(var(--banana-rain-start-rotation, 0deg));
  animation: v2-banana-rain-fall var(--banana-rain-duration, 6s) linear forwards;
  will-change: transform;
}

@keyframes v2-banana-rain-fall {
  50% {
    transform: translate3d(
      calc(var(--banana-rain-x, 0) + var(--banana-rain-drift-mid, 0px)),
      50vh,
      0
    ) rotate(var(--banana-rain-mid-rotation, 360deg));
  }

  100% {
    transform: translate3d(
      calc(var(--banana-rain-x, 0) + var(--banana-rain-drift-end, 0px)),
      calc(100vh + 160px),
      0
    ) rotate(var(--banana-rain-end-rotation, 720deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .banana-rain { display: none; }
}

.viewport-walker {
  position: fixed;
  z-index: 9;
  bottom: 0;
  left: 0;
  width: clamp(72px, 7vw, 112px);
  max-width: none;
  height: auto;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.viewport-banana {
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  width: clamp(64px, 6vw, 96px);
  max-width: none;
  height: auto;
  transform: translate3d(var(--banana-x, 0), var(--banana-y, 0), 0);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.viewport-banana.is-dragging { cursor: grabbing; }

.minion-locale-return {
  position: fixed;
  z-index: 9;
  right: 0;
  bottom: 0;
  display: block;
  width: clamp(112px, 10vw, 168px);
  line-height: 0;
  cursor: pointer;
  transform-origin: bottom right;
  transition: transform 160ms ease;
}

.minion-locale-return img {
  display: block;
  width: 100%;
  height: auto;
}

.viewport-walker,
.viewport-banana,
.minion-locale-return {
  display: none !important;
  z-index: 9;
}

.viewport-walker.is-v2-stationary {
  top: auto;
  right: auto;
  bottom: 184px;
  left: 0;
  width: 72px;
  transform: translate3d(var(--stationary-x, 0), 0, 0) !important;
  will-change: auto;
}

.viewport-walker.is-v2-stationary.is-jumping {
  width: clamp(90px, 8.75vw, 140px) !important;
  transform: translate3d(var(--stationary-jump-x, var(--stationary-x, 0)), 0, 0) !important;
  animation: v2-stationary-jump 620ms cubic-bezier(.34, 1.2, .64, 1) both;
}

.minion-locale-return.is-v2-in-spawn-area {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  transform: translate3d(var(--minion-locale-x, 0), var(--minion-locale-y, 0), 0);
  transform-origin: center;
}

.minion-locale-return.is-v2-in-spawn-area:active {
  transform: translate3d(var(--minion-locale-x, 0), var(--minion-locale-y, 0), 0) scale(.95);
}

@keyframes v2-stationary-jump {
  0%, 100% { translate: 0 0; scale: 1; }
  48% { translate: 0 -32px; scale: 1.08; }
}

@media (max-width: 1079px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app,
  .app.is-locale-minion {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .portfolio-shell,
  .portfolio-shell.is-locale-minion {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 100svh;
    overflow: visible;
    border-radius: var(--neuro-radius);
  }

  .portfolio-shell.is-home { overflow: visible; }

  .info-panel {
    position: relative;
    top: auto;
    flex: 0 0 100svh;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    padding: 24px;
  }

  .v2-contact-block { gap: 16px; }

  .timeline-frame {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    border-radius: var(--neuro-panel-radius);
  }

  .timeline-frame::before,
  .timeline-frame::after {
    position: fixed;
    height: 64px;
    border-radius: 0;
  }

  .timeline-frame::before {
    top: 0;
  }

  .timeline-frame::after {
    top: auto;
    bottom: 0;
    border-radius: 0 0 var(--neuro-panel-radius) var(--neuro-panel-radius);
  }

  .timeline {
    gap: 36px;
    height: auto;
    padding: 36px;
    overflow: visible;
    border-radius: var(--neuro-panel-radius);
  }

  .v2-featured-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .v2-featured-case.is-tall {
    height: auto;
    aspect-ratio: 133.5 / 186.1875;
  }

  .v2-overview-arrow {
    align-self: center;
    width: 56px;
    height: 56px;
    aspect-ratio: auto;
  }

  .v2-case-grid,
  .v2-case-grid.is-single-column {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .v2-playground-section .v2-case-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .v2-character-playground {
    display: none;
  }

  .v2-mobile-contact-links {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    width: 100%;
    padding: 24px;
    background: #fff;
  }

  .cursor-companion { display: none !important; }

  .viewport-walker,
  .viewport-banana,
  .minion-locale-return { display: none !important; }
}

html.has-case-modal {
  overflow: hidden;
}

html.has-case-modal body {
  height: 100%;
  overflow: hidden !important;
}

.v2-case-modal-overlay {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 40px 10px;
  border: 0;
  overflow: hidden;
  background: transparent;
}

.v2-case-modal-overlay::backdrop {
  background: rgba(0, 0, 0, .2);
}

.v2-case-modal-overlay[open] {
  display: grid;
  place-items: start center;
}

.v2-case-modal-layout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(686px, 100%);
  height: calc(100dvh - 80px);
  min-height: 0;
}

.v2-case-modal-overlay[open] .v2-case-modal-layout {
  animation: v2-case-modal-enter 400ms ease-in both;
  transform-origin: center;
}

@keyframes v2-case-modal-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.v2-case-modal-overlay.is-closing .v2-case-modal-layout {
  animation: v2-case-modal-exit 200ms ease-out both;
}

@keyframes v2-case-modal-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(20px) scale(.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .v2-case-modal-overlay[open] .v2-case-modal-layout {
    animation: none;
  }
}

.v2-case-modal-stack {
  display: flex;
  flex: 0 0 min(640px, calc(100vw - 66px));
  flex-direction: column;
  gap: 10px;
  width: min(640px, calc(100vw - 66px));
  height: 100%;
  min-height: 0;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.v2-case-modal-overlay.is-at-end .v2-case-modal-stack {
  transform: translateY(-63px);
}

.v2-case-modal {
  position: relative;
  width: min(640px, calc(100vw - 66px));
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 36px;
  background: #fff;
  color: #000;
  font-family: var(--neuro-font);
  flex: 0 0 100%;
}

.v2-case-modal-next {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 53px;
  padding: 12px 16px;
  border: 0;
  border-radius: 100px;
  background: #007cff;
  color: #fff;
  font: 400 24px/normal var(--neuro-font);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms, scale 120ms ease;
  cursor: pointer;
}

.v2-case-modal-next:active {
  scale: .95;
}

.v2-case-modal-overlay.is-at-end .v2-case-modal-next {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 80ms, 0s, 0s;
}

.v2-case-modal-scroll {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
  height: 100%;
  padding: 36px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.v2-case-modal-scroll::-webkit-scrollbar { display: none; }

.v2-case-modal-mask {
  position: absolute;
  z-index: 5;
  left: 0;
  width: 100%;
  height: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, scale 120ms ease;
}

.v2-case-modal-mask.is-top {
  top: 0;
  background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.v2-case-modal-mask.is-bottom {
  bottom: 0;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.v2-case-modal-overlay.has-modal-top-mask .v2-case-modal-mask.is-top,
.v2-case-modal-overlay.has-modal-bottom-mask .v2-case-modal-mask.is-bottom {
  opacity: 1;
}

.v2-case-modal-close {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.v2-case-modal-close img {
  display: block;
  width: 36px;
  height: 36px;
}

.v2-cv-modal-overlay {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}

.v2-cv-modal-overlay::backdrop { background: rgba(0, 0, 0, .2); }

.v2-cv-modal-overlay[open] {
  display: grid;
  place-items: center;
}

.v2-cv-modal-shell {
  position: relative;
  width: min(560px, calc(100vw - 96px));
}

.v2-cv-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
  padding: 36px;
  overflow: hidden;
  border-radius: 36px;
  background: #fff;
  color: #000;
  font: 400 24px/normal var(--neuro-font);
  white-space: nowrap;
}

.v2-cv-modal a { color: inherit; }

.v2-cv-modal-close {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
}

.v2-cv-modal-overlay[open] .v2-cv-modal-shell {
  animation: v2-case-modal-enter 400ms ease-in both;
}

.v2-case-modal-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.v2-case-modal-header h2,
.v2-case-modal-header p,
.v2-case-modal-block h3,
.v2-modal-copy p,
.v2-modal-metrics,
.v2-modal-metrics dt,
.v2-modal-metrics dd {
  margin: 0;
  font: inherit;
}

.v2-case-modal-header h2 {
  font-size: 24px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.v2-case-modal-header p {
  font-size: 16px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.v2-case-modal-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.v2-case-modal-block h3 {
  color: rgba(0, 0, 0, .6);
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.v2-modal-copy {
  width: 100%;
  font-size: 16px;
  line-height: normal;
  overflow-wrap: anywhere;
}

.v2-modal-copy p + p { margin-top: 12px; }
.v2-modal-copy .v2-modal-empty-line { min-height: 16px; }
.v2-modal-underline { text-decoration: underline; }
.v2-modal-strike { text-decoration: line-through; }
.v2-modal-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: .12em;
}

.v2-modal-image {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #f3f3f3;
}

.v2-modal-gallery {
  position: relative;
  width: 100%;
  min-height: 1px;
  overflow: hidden;
  border-radius: 24px;
  background: #f3f3f3;
  transition: height 360ms cubic-bezier(.22, 1, .36, 1);
  touch-action: pan-y;
}

.v2-modal-image img {
  display: block;
  width: 100%;
  height: auto;
}

.v2-modal-image picture { display: block; }

.v2-image-comparison {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #f3f3f3;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}

.v2-image-comparison-after {
  display: block;
  width: 100%;
  height: auto;
}

.v2-image-comparison-before {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}

.v2-image-comparison-before img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-image-comparison-divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}

.v2-image-comparison-handle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: var(--comparison-position);
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font: 400 16px/1 var(--neuro-font);
  letter-spacing: -.15em;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.v2-image-comparison-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

@media (hover: hover) and (pointer: fine) {
  .v2-image-comparison-range { pointer-events: none; }
}

@media (max-width: 1079px) {
  .v2-image-comparison-handle { display: grid; }
}

.v2-modal-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.v2-modal-gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  border-radius: 0;
}

.v2-modal-gallery-slide img {
  height: 100%;
  object-fit: contain;
}

.v2-modal-gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: #007cff;
  color: #fff;
  font: 400 24px/1 var(--neuro-font);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 160ms ease;
  cursor: pointer;
}

.v2-modal-gallery-arrow.is-previous { left: 12px; }
.v2-modal-gallery-arrow.is-next { right: 12px; }
.v2-modal-gallery-arrow[hidden] { display: none !important; }

@media (hover: hover) and (pointer: fine) {
  .v2-modal-gallery:hover .v2-modal-gallery-arrow { opacity: 1; }
}

.v2-modal-gallery-pagination {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.v2-modal-gallery-pagination span {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  overflow: hidden;
  border-radius: 1000px;
  background: rgba(118, 118, 118, .6);
  transition: width 240ms cubic-bezier(.22, 1, .36, 1);
}

.v2-modal-gallery-pagination span.is-active {
  width: 36px;
}

.v2-modal-gallery-pagination span.is-active::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #767676;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  animation: v2-gallery-pagination-progress var(--v2-gallery-autoplay-duration, 4000ms) linear forwards;
}

.v2-modal-gallery.is-autoplay-paused .v2-modal-gallery-pagination span.is-active::after {
  animation-play-state: paused;
}

@keyframes v2-gallery-pagination-progress {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .v2-modal-gallery-pagination span.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
}

.v2-modal-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
}

.v2-modal-metrics.is-two-by-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v2-modal-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border-radius: 24px;
  background: #f3f3f3;
  color: #000;
  font-style: italic;
}

.v2-modal-metrics dd,
.v2-modal-metrics dt {
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.v2-modal-metrics dd {
  font-size: 24px;
  font-weight: 700;
}

.v2-modal-metrics dt {
  font-size: 16px;
  font-weight: 400;
}

.v2-tag.is-primary,
.v2-featured-arrow,
.v2-overview-arrow,
.cursor-companion,
.v2-case-modal-next,
.v2-modal-gallery-arrow {
  border-radius: 1000px;
  box-shadow:
    0 48px 48px -12px rgba(0, 124, 255, .25),
    0 12px 18px -5px rgba(0, 124, 255, .32);
}

.v2-tag.is-primary,
.v2-overview-arrow,
.v2-case-modal-next {
  position: relative;
  z-index: 2;
}

.v2-case-modal-overlay.is-minion-theme .v2-case-modal-next,
.v2-case-modal-overlay.is-minion-theme .v2-modal-gallery-arrow {
  background: #ffdd2d;
  color: #000;
}

.portfolio-shell.is-locale-minion .v2-tag.is-primary,
.portfolio-shell.is-locale-minion .v2-featured-arrow,
.portfolio-shell.is-locale-minion .v2-overview-arrow,
.cursor-companion.is-minion-theme,
.v2-case-modal-overlay.is-minion-theme .v2-case-modal-next,
.v2-case-modal-overlay.is-minion-theme .v2-modal-gallery-arrow {
  box-shadow:
    0 48px 48px -12px rgba(255, 221, 45, .25),
    0 12px 18px -5px rgba(255, 221, 45, .32);
}

@media (max-width: 640px) {
  .v2-case-modal-overlay { padding: 40px 12px; }

  .v2-case-modal-layout {
    position: relative;
    width: 100%;
    height: calc(100dvh - 80px);
  }

  .v2-case-modal-stack {
    flex-basis: 100%;
    width: 100%;
  }

  .v2-case-modal {
    width: 100%;
    height: 100%;
    border-radius: 24px;
  }

  .v2-case-modal-scroll { padding: 24px; }

  .v2-case-modal-close {
    position: absolute;
    z-index: 8;
    top: 12px;
    right: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
  }

  .v2-modal-gallery-arrow { opacity: 1; }

  .v2-cv-modal-shell { width: calc(100vw - 24px); }

  .v2-cv-modal {
    gap: 24px;
    padding: 36px 24px;
    border-radius: 36px;
  }

  .v2-cv-modal-close {
    top: 12px;
    right: 12px;
    left: auto;
  }

}
