.venture-card--vision {
  --grade-shadow: #071126;
  --grade-wash: rgba(65, 105, 190, 0.18);
  --grade-accent: rgba(255, 112, 67, 0.2);
}
.venture-card--will {
  --grade-shadow: #061b14;
  --grade-wash: rgba(18, 91, 67, 0.18);
  --grade-accent: rgba(215, 255, 79, 0.14);
}
.venture-card--tesha {
  --grade-shadow: #140b02;
  --grade-wash: rgba(117, 62, 13, 0.16);
  --grade-accent: rgba(247, 189, 59, 0.16);
}
.venture-card--math {
  --grade-shadow: #03191f;
  --grade-wash: rgba(13, 101, 111, 0.18);
  --grade-accent: rgba(103, 223, 207, 0.16);
}
.venture-media > img:first-child {
  filter: saturate(0.94) contrast(1.12) brightness(0.91) !important;
}
.venture-card--vision .venture-media > img:first-child {
  filter: saturate(0.88) contrast(1.15) brightness(0.93) !important;
}
.venture-card--will .venture-media > img:first-child {
  filter: saturate(0.92) contrast(1.1) brightness(0.94) !important;
}
.venture-card--tesha .venture-media > img:first-child {
  filter: saturate(0.92) contrast(1.14) brightness(0.76) !important;
}
.venture-card--math .venture-media > img:first-child {
  filter: saturate(0.86) contrast(1.16) brightness(0.88) !important;
}
.venture-media::after {
  background:
    radial-gradient(circle at 82% 12%, var(--grade-accent), transparent 38%),
    linear-gradient(150deg, var(--grade-wash), transparent 52%),
    linear-gradient(180deg, transparent 52%, var(--grade-shadow));
  mix-blend-mode: soft-light;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--venture-accent) 52%, transparent),
    inset 0 -82px 94px -76px rgba(0, 0, 0, 0.74);
}
.venture-media .cover-detail {
  filter: saturate(0.9) contrast(1.13) brightness(0.98) !important;
}
.wcardx {
  --work-grade: rgba(28, 24, 18, 0.14);
}
.wcardx:nth-child(1) {
  --work-grade: rgba(50, 77, 150, 0.14);
}
.wcardx:nth-child(2) {
  --work-grade: rgba(8, 80, 70, 0.14);
}
.wcardx:nth-child(3) {
  --work-grade: rgba(36, 112, 91, 0.13);
}
.wcardx:nth-child(4) {
  --work-grade: rgba(180, 65, 16, 0.15);
}
.wstage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(145deg, var(--work-grade), transparent 52%),
    linear-gradient(180deg, transparent 62%, rgba(15, 12, 8, 0.18));
  mix-blend-mode: soft-light;
}
.wstage .work-evidence {
  filter: saturate(0.91) contrast(1.1) brightness(0.96) !important;
}
.wstage .cover-detail {
  filter: saturate(0.92) contrast(1.12) brightness(0.98) !important;
}
@media (prefers-reduced-motion: no-preference) {
  .venture-card:hover .venture-media > img:first-child,
  .wcardx:hover .work-evidence {
    filter: saturate(1.02) contrast(1.13) brightness(0.98) !important;
  }
}

img[data-lqip] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

:root {
  --portfolio-screen-radius: clamp(6px, 0.6vw, 10px);
  --portfolio-media-radius: clamp(12px, 1.4vw, 18px);
  --portfolio-media-detail-radius: clamp(4px, 0.45vw, 7px);
  --portfolio-media-card-radius: clamp(20px, 2vw, 28px);
  --portfolio-artwork-radius: 4px;
  --portfolio-device-radius: clamp(30px, calc(2.5vw + 6px), 42px);
}
html .view .sc-native img,
html :is(.mp-image-scroll, .wx8-dialog) > img,
html .view.ts-case .ts-explorer-frame {
  border-radius: var(--portfolio-screen-radius) !important;
}
html .view.ts-case .ts-explorer-frame {
  --portfolio-media-radius: var(--portfolio-screen-radius);
}
html .view.hh-case img:not(.hh-hero-media img, .hh-process-grid img),
html .view.math-case :is(.mp-product, .mp-atmosphere) :is(img, video),
html .view[data-view='about'] .ap-photo,
html .view.ts-case .ts-clothing-hero img,
html .view.hh-case .hh-family-card {
  border-radius: var(--portfolio-media-radius) !important;
}
html .view .art-stage,
html .view.ts-case :is(.ts-artwork-open, .ts-joining-art, .ts-collection-overview) img,
html .view.ts-case .ts-artwork-dialog img {
  border-radius: var(--portfolio-artwork-radius) !important;
}
html .view.hh-case .hh-phone-stencil {
  --portfolio-device-inset: 9px;
  border-radius: var(--portfolio-device-radius);
}
html .view.hh-case .hh-editorial-phone .hh-phone-stencil {
  --portfolio-device-inset: 7px;
}
html .view.hh-case .hh-phone-stencil video {
  border-radius: calc(var(--portfolio-device-radius) - var(--portfolio-device-inset)) !important;
}
html .view.math-case .portfolio-media-inset {
  width: 100%;
}
html .view.math-case .mp-light-section .mp-motion .portfolio-media-inset {
  box-sizing: border-box;
  padding: clamp(10px, 2vw, 24px);
  background: var(--paper);
}
html .view.math-case .mp-light-section .portfolio-media-frame video {
  padding: 0;
}
html .view .art-stage:focus-within {
  outline: 2px solid var(--portfolio-ink);
  outline-offset: 5px;
}
html[data-layout='container'] .view :is(.wstage.evidence, .venture-media) {
  border-radius: var(--portfolio-media-card-radius) !important;
  overflow: hidden;
}
html[data-layout='container']
  .view
  :is(
    .hh-site-frame,
    .hh-recording,
    .hh-editorial-video:not(.hh-editorial-phone),
    .vqc-stage,
    .wx-product-film,
    .wx-handover-film,
    .ts-browser,
    .ts-source-surface,
    .portfolio-media-frame
  ) {
  border-radius: var(--portfolio-media-radius) !important;
  overflow: hidden;
}

html #work :is(.work-evidence, .cover-detail),
html #work .venture-media > img:first-child,
html .view .wx-film-stage {
  border-radius: var(--portfolio-media-detail-radius) !important;
}

@media (max-width: 430px) {
  html[data-layout='container'] .view.wx-case .wx-product-film {
    border-radius: 0 !important;
  }
}
