: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: 420px;
}

* { box-sizing: border-box; }

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

html {
  background: var(--neuro-surface);
}

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

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

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

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

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

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

body,
.app,
.app.is-locale-minion {
  background: var(--neuro-surface);
  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);
  grid-template-rows: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: none;
  height: 100svh;
  max-height: 100svh;
  padding: 24px;
  overflow: clip;
  border-radius: 0;
  background: var(--neuro-surface);
}

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

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

.v2-pixel-transition {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  width: 100vw;
  height: 100dvh;
  image-rendering: pixelated;
  pointer-events: none;
}

html.is-pixel-preload::before {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: var(--v2-pixel-color, #007cff);
  content: "";
  pointer-events: none;
}

.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: 24px;
  white-space: pre-line;
}

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

.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-stack {
  position: relative;
  display: block;
  width: 120px;
  height: 160px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

.v2-profile-card {
  position: absolute;
  inset: 0;
  display: block;
  width: 120px;
  height: 160px;
  overflow: hidden;
  border-radius: var(--neuro-radius);
  transform-origin: center;
  transition:
    transform 360ms cubic-bezier(.22, 1, .36, 1),
    opacity 220ms ease;
  will-change: transform;
}

.v2-profile-card[data-deck-position="0"] {
  z-index: 3;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.v2-profile-card[data-deck-position="1"] {
  z-index: 2;
  transform: translate3d(-7px, -4px, 0) rotate(-4.4deg) scale(.96);
}

.v2-profile-card[data-deck-position="2"] {
  z-index: 1;
  transform: translate3d(7px, -4px, 0) rotate(4.4deg) scale(.96);
}

.v2-profile-card[data-deck-position="0"].is-dealing {
  transform: translate3d(22px, -10px, 0) rotate(7deg) scale(.95);
}

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

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

@media (hover: hover) and (pointer: fine) {
  .v2-profile-stack:hover .v2-profile-card[data-deck-position="0"] .v2-profile-card-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-panel,
.v2-mobile-contact-links { display: none; }

.v2-mobile-language-link {
  color: rgba(0, 0, 0, .6);
  font: 400 16px/normal var(--neuro-font);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 11.5%;
  text-underline-position: from-font;
}

.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;
}

.v2-language-link.is-contact-language {
  align-self: stretch;
  margin-top: 0;
  color: rgba(0, 0, 0, .6);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 11.5%;
  text-underline-position: from-font;
}

.timeline-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.timeline-column::before {
  position: absolute;
  z-index: 7;
  top: 0;
  right: 0;
  left: 0;
  height: 32px;
  content: "";
  opacity: 0;
  background: linear-gradient(180deg, #f3f3f3 0%, rgba(243, 243, 243, 0) 100%);
  pointer-events: none;
  transition: opacity 160ms ease;
}

.timeline-column.has-top-scroll-mask::before {
  opacity: 1;
}

.timeline-frame {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  transform: translateY(0);
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.timeline-column.is-at-end .timeline-frame {
  transform: translateY(-144px);
}

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

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

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

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

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

.v2-featured-grid {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, auto));
  gap: 24px;
  width: 100%;
  padding: 24px;
  border-radius: var(--neuro-panel-radius);
  background: #fff;
}

.v2-featured-case {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  width: 100%;
  height: auto;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border-radius: var(--neuro-radius);
  background: var(--neuro-surface);
  aspect-ratio: auto;
  color: #000;
  transform: none;
  transition: transform 180ms cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 1080px) {
  .v2-featured-case {
    aspect-ratio: 463 / 306;
  }

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

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

  .v2-featured-case:nth-child(3) {
    align-self: stretch;
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
    aspect-ratio: auto;
  }
}

.v2-featured-media {
  position: absolute;
  inset: 12px;
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--neuro-surface);
}

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

.v2-featured-media img { object-fit: cover; }

.v2-featured-content {
  position: absolute;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 12px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 16px;
  background: #fff;
}

.v2-featured-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 0 auto;
  width: 100%;
  padding-right: 55px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.v2-featured-title {
  font: 400 16px/normal var(--neuro-font);
}

.v2-featured-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-right: 55px;
  flex-wrap: wrap;
}

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

.v2-featured-tag.is-primary {
  background: #007cff;
  color: #fff;
}

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

.v2-featured-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  border-radius: 1000px;
  background: #007cff;
  color: #fff;
  pointer-events: none;
}

.v2-featured-arrow > span {
  font: 400 24px/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); }

.v2-overview-list {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 24px;
  border-radius: var(--neuro-panel-radius);
  background: #fff;
}

.v2-character-playground {
  position: relative;
  flex: 0 0 120px;
  width: 100%;
  height: 120px;
  padding: 24px;
  overflow: hidden;
  border-radius: var(--neuro-panel-radius);
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0);
  transition:
    transform 420ms cubic-bezier(.22, 1, .36, 1),
    opacity 220ms ease,
    visibility 0s linear 220ms;
  will-change: transform, opacity;
}

.timeline-column.is-at-end .v2-character-playground {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-144px);
  transition-delay: 0s, 80ms, 0s;
}

.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-overview-link {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding: 12px;
  border-radius: var(--neuro-radius);
  background: linear-gradient(90deg, #f3f3f3 0%, rgba(243, 243, 243, 0) 100%);
  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: 16px;
  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-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:hover .v2-overview-arrow-icon,
  .v2-overview-link:focus-within .v2-overview-arrow-icon {
    transform: rotate(-45deg);
  }
}

[data-v2-cursor] { cursor: pointer !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-minion-theme {
  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; }
}

@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;
    gap: 24px;
    padding: 12px;
    border-radius: 0;
  }

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

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

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

  .timeline-column {
    gap: 24px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .timeline-frame {
    flex-basis: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border-radius: var(--neuro-panel-radius);
    transform: none !important;
  }

  .timeline-column::before,
  .timeline-frame::after {
    display: none;
  }

  .timeline {
    gap: 24px;
    height: auto;
    padding: 0;
    overflow: visible;
    border-radius: 0;
  }

  .v2-featured-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .v2-featured-case {
    height: auto;
    min-height: 0;
    padding: 12px;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 463 / 306;
  }

  .v2-featured-case:nth-child(3) {
    aspect-ratio: 463 / 636;
  }

  .v2-featured-arrow {
    height: 43px;
  }

  .v2-featured-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }

  .v2-featured-content {
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border-radius: inherit;
    background: transparent;
  }

  .v2-featured-copy,
  .v2-featured-tags {
    display: none;
  }

  .v2-overview-arrow {
    display: none;
  }

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

  .v2-mobile-contact-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding: 24px;
    border-radius: var(--neuro-panel-radius);
    background: #fff;
  }

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

  .cursor-companion { 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, .4);
}

.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-panels { display: contents; }

.v2-case-modal-summary { display: none; }

.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;
}

@media (min-width: 1080px) {
  .v2-case-modal-overlay {
    --v2-modal-edge-inline: clamp(24px, 5.555vw, 80px);
    padding: 40px var(--v2-modal-edge-inline);
  }

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

  .v2-case-modal-panels {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: 24px;
    width: auto;
    max-width: 1224px;
    height: 100%;
    min-width: 0;
  }

  .v2-case-modal-summary {
    display: flex;
    align-self: start;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    max-height: 100%;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: transparent;
    color: #000;
    font-family: var(--neuro-font);
    scrollbar-width: none;
  }

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

  .v2-case-modal-summary-card {
    flex: 0 0 auto;
    width: 100%;
    padding: 24px;
    overflow: hidden;
    border-radius: 36px;
    background: #fff;
  }

  .v2-case-modal-summary-card[hidden] { display: none; }

  .v2-case-modal-summary-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    overflow-wrap: anywhere;
  }

  .v2-case-modal-summary-header p { margin: 0; }

  .v2-case-modal-summary-case-title {
    font: 400 24px/normal var(--neuro-font);
  }

  .v2-case-modal-summary-case-description {
    font: 400 16px/normal var(--neuro-font);
  }

  .v2-case-modal-summary-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .v2-case-modal-summary-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    overflow-wrap: anywhere;
  }

  .v2-case-modal-summary-field p {
    margin: 0;
    font: 400 16px/normal var(--neuro-font);
  }

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

  .v2-case-modal-stack {
    flex: 0 1 auto;
    width: 100%;
    max-width: 900px;
  }

  .v2-case-modal-panels .v2-case-modal { width: 100%; }

  .v2-case-modal-overlay.is-minion-theme .v2-case-modal-summary .v2-tag.is-primary {
    background: #ffdd2d;
    color: #000;
  }
}

.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;
  color: rgba(0, 0, 0, .6);
}

.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;
  display: grid;
  top: 0;
  left: calc(100% + 10px);
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

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

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

.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-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.v2-case-modal-block h3 {
  color: #000;
  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: rgba(0, 0, 0, .6);
  font-style: italic;
}

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

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

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

.v2-tag.is-primary,
.v2-featured-tag.is-primary,
.v2-featured-arrow,
.v2-overview-arrow,
.cursor-companion,
.v2-case-modal-next,
.v2-modal-gallery-arrow {
  border-radius: 1000px;
  box-shadow: none;
}

.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-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: none;
}

@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;
    z-index: 2;
  }

}

/* Modal case layout — Figma node 3:5029 */
.v2-case-modal-overlay {
  padding: 24px 12px;
}

.v2-case-modal-layout {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  height: calc(100dvh - 48px);
}

.v2-case-modal-content-frame {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

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

.v2-case-modal-panels {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.v2-case-modal-summary {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: none;
  max-height: none;
  overflow: visible;
  background: transparent;
  color: #000;
  font-family: var(--neuro-font);
}

.v2-case-modal-summary-card {
  width: 100%;
  padding: 24px;
  overflow: hidden;
  border-radius: 36px;
  background: #fff;
}

.v2-case-modal-summary-card[hidden] { display: none; }

.v2-case-modal-summary-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  overflow-wrap: anywhere;
}

.v2-case-modal-summary-header p,
.v2-case-modal-summary-field p { margin: 0; }

.v2-case-modal-summary-case-title {
  color: #000;
  font: 400 24px/normal var(--neuro-font);
}

.v2-case-modal-summary-case-description {
  color: rgba(0, 0, 0, .6);
  font: 400 16px/normal var(--neuro-font);
  opacity: 1;
  white-space: pre-wrap;
}

.v2-case-modal-summary-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.v2-case-modal-summary-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  overflow-wrap: anywhere;
}

.v2-case-modal-summary-heading {
  color: #000;
  font: 400 16px/normal var(--neuro-font);
  opacity: 1;
}

.v2-case-modal-summary-copy {
  display: block;
  overflow: visible;
  color: rgba(0, 0, 0, .6);
  font: 400 16px/normal var(--neuro-font);
  opacity: 1;
  -webkit-line-clamp: unset;
}

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

.v2-case-modal-stack {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  transform: none;
}

.v2-case-modal {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 36px;
}

.v2-case-modal-scroll {
  height: auto;
  padding: 24px;
  overflow: visible;
}

.v2-case-modal-mask { display: none; }

.v2-case-modal-overlay.is-at-end .v2-case-modal-stack,
.v2-case-modal-overlay.is-at-end .v2-case-modal-content-frame {
  transform: none;
}

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

@media (max-width: 1079px) {
  .v2-case-modal-overlay.has-modal-bottom-mask .v2-case-modal-content-frame {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 32px), transparent 100%);
  }

  .v2-case-modal-overlay.has-modal-top-mask .v2-case-modal-content-frame {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 100%);
  }

  .v2-case-modal-overlay.has-modal-top-mask.has-modal-bottom-mask .v2-case-modal-content-frame {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  }

  .v2-case-modal-summary-card.is-header,
  .v2-case-modal-summary-header,
  .v2-case-modal-summary-case-title,
  .v2-case-modal-summary-case-description,
  .v2-case-modal-summary,
  .v2-case-modal-summary-card.is-navigation,
  .v2-case-modal-summary-card.is-navigation .v2-case-modal-summary-content {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .v2-case-modal-summary-case-title,
  .v2-case-modal-summary-case-description {
    text-overflow: clip;
    white-space: pre-wrap;
  }

  .v2-case-modal-summary-copy {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    -webkit-line-clamp: unset;
  }
}

@media (min-width: 1080px) {
  .v2-case-modal-overlay {
    --v2-modal-edge-inline: clamp(24px, 5.555vw, 80px);
    padding: 40px var(--v2-modal-edge-inline);
  }

  .v2-case-modal-layout {
    position: static;
    width: min(1258px, calc(100vw - 2 * var(--v2-modal-edge-inline)));
    height: calc(100dvh - 80px);
  }

  .v2-case-modal-content-frame {
    gap: 12px;
    width: min(1212px, calc(100% - 46px));
    max-width: 1212px;
    overflow: visible;
    transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
  }

  .v2-case-modal-summary-card.is-header {
    flex: 0 0 auto;
  }

  .v2-case-modal-summary-case-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-case-modal-panels {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: 300px minmax(0, 900px);
    gap: 12px;
    height: auto;
    min-height: 0;
  }

  .v2-case-modal-summary {
    align-self: start;
    gap: 12px;
    width: 300px;
    max-width: 300px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    scrollbar-width: none;
  }

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

  .v2-case-modal-summary-card.is-navigation {
    display: flex;
    flex: 0 1 auto;
    min-height: 0;
  }

  .v2-case-modal-summary-card.is-navigation .v2-case-modal-summary-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .v2-case-modal-summary-card.is-navigation .v2-case-modal-summary-content::-webkit-scrollbar {
    display: none;
  }

  .v2-case-modal-summary-card.is-tags {
    flex: 0 0 auto;
  }

  .v2-case-modal-stack {
    width: 100%;
    max-width: 900px;
    height: 100%;
    gap: 12px;
  }

  .v2-case-modal {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
  }

  .v2-case-modal-scroll {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .v2-case-modal-mask { display: block; }

  .v2-case-modal-close {
    position: static;
    flex: 0 0 36px;
    border-radius: 0;
    background: transparent;
  }

  .v2-case-modal-overlay.is-at-end .v2-case-modal-stack { transform: none; }

  .v2-case-modal-overlay.is-at-end .v2-case-modal-content-frame {
    transform: translateY(-65px);
  }
}

/* Modal surface — Figma node 15:5654 */
.v2-case-modal-surface {
  display: contents;
}

.v2-case-modal-surface-scroll {
  display: contents;
}

@media (max-width: 1079px) {
  .v2-case-modal-content-frame {
    gap: 12px;
    overflow: visible;
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .v2-case-modal-surface {
    box-sizing: border-box;
    position: relative;
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 36px;
    background: #f3f3f3;
  }

  .v2-case-modal-surface-scroll {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .v2-case-modal-surface::before,
  .v2-case-modal-surface::after {
    position: absolute;
    z-index: 10;
    right: 0;
    left: 0;
    height: 32px;
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
  }

  .v2-case-modal-surface::before {
    top: 0;
    background: linear-gradient(to bottom, #f3f3f3 0%, rgba(243, 243, 243, 0) 100%);
  }

  .v2-case-modal-surface::after {
    bottom: 0;
    background: linear-gradient(to top, #f3f3f3 0%, rgba(243, 243, 243, 0) 100%);
  }

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

  .v2-case-modal-summary-card,
  .v2-case-modal {
    border-radius: 24px;
  }

  .v2-case-modal-next {
    width: 100%;
  }

  .v2-case-modal-overlay.is-at-end .v2-case-modal-content-frame {
    transform: translateY(-65px);
  }

  @media (prefers-reduced-motion: reduce) {
    .v2-case-modal-content-frame { transition: none; }
  }

}

@media (min-width: 1080px) {
  .v2-case-modal-layout {
    width: min(1270px, 100%);
  }

  .v2-case-modal-content-frame {
    box-sizing: border-box;
    width: min(1224px, calc(100% - 46px));
    max-width: 1224px;
    padding: 0;
    border-radius: 36px;
    background: transparent;
  }

  .v2-case-modal-surface {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 24px;
    border-radius: 36px;
    background: #f3f3f3;
  }

  .v2-case-modal-panels {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .v2-case-modal-summary-card,
  .v2-case-modal {
    border-radius: 24px;
  }

  .v2-case-modal-summary-card.is-navigation {
    flex: 1 1 auto;
  }

  .v2-case-modal-next {
    width: 100%;
  }
}
