html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
#work,
#contact {
  scroll-margin-top: clamp(104px, 12vw, 144px);
}
a,
button,
[role='button'],
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(20, 17, 12, 0.12);
}
img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
}
figure,
.shot,
.mini-shot,
.mp-product,
.wx-real-reel,
.ts-browser,
.vqc-stage {
  min-width: 0;
}
.worksec > .workgrid + .label .tx {
  font-size: var(--type-subsection-title);
}
.workgrid .wcardx:nth-child(n) h3 {
  font-size: var(--type-project-title);
  line-height: 1.4;
  max-width: 22ch;
  letter-spacing: -0.02em;
}
.case-editorial .cs-headgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 32px 48px;
  align-items: start;
  margin-top: 18px;
}
.case-editorial .case-project-details {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 6px 22px;
  border-radius: 24px;
  background: var(--portfolio-surface);
  border: 1px solid var(--hair);
}
.case-reading-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding-top: var(--case-row-space, 36px);
}
.case-reading-row > *,
.case-media-pair > *,
.case-comparison > * {
  min-width: 0;
}
.case-reading-body {
  max-width: 54ch;
}
.case-media-pair,
.case-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.case-comparison {
  gap: 16px;
}
.case-editorial .case-chapter-marker {
  padding-top: clamp(48px, 6vw, 64px);
}
@media (max-width: 900px) {
  .case-reading-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: clamp(28px, 5vw, var(--case-row-space, 36px));
  }
  .case-reading-body {
    max-width: none;
  }
}
@media (max-width: 860px) {
  .case-editorial .cs-headgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .case-editorial .case-project-details {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    padding: 6px 20px;
  }
}
@media (max-width: 720px) {
  .case-media-pair,
  .case-comparison {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .case-editorial .case-hiring-summary {
    gap: 20px !important;
  }
  .case-editorial .fig-plate {
    padding: 20px 16px !important;
  }
  .case-editorial .case-chapter-marker {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .case-editorial .case-chapter-marker > span {
    margin-left: 0 !important;
  }
}
@media (min-width: 901px) {
  .worksec > .label:first-child,
  .worksec > .workgrid + .label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 34ch);
    gap: clamp(32px, 5vw, 72px);
    align-items: end;
  }
  .worksec > .label:first-child .tx,
  .worksec > .workgrid + .label .tx {
    display: block;
    max-width: 16ch;
    white-space: normal;
  }
  .worksec > .label:first-child .ct,
  .worksec > .workgrid + .label .ct {
    max-width: 34ch;
    margin-left: 0;
    white-space: normal;
    text-align: right;
  }
}
@media (max-width: 720px) {
  :root {
    --mobile-edge: max(20px, env(safe-area-inset-left));
    --mobile-edge-r: max(20px, env(safe-area-inset-right));
  }
  .skip {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
  .mcm-cap a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  header.site .nav-in {
    min-height: 68px;
    padding-block: 10px;
  }
  .brand {
    min-height: 48px;
    min-width: 48px;
  }
  nav.links {
    gap: 8px;
  }
  nav.links a {
    min-width: 64px;
    min-height: 48px;
    justify-content: center;
    padding: 10px 14px;
  }
  .back,
  .cs-backbar [data-go],
  button,
  .btn,
  .mailto,
  .clink,
  .casein,
  .ts-demo-next,
  .ts-loop-toggle {
    min-height: 48px;
  }
  .back,
  .cs-backbar [data-go] {
    display: inline-flex;
    align-items: center;
    padding-block: 10px;
  }
  .cs-navcell {
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .wcardx,
  .venture-card {
    -webkit-tap-highlight-color: transparent;
  }
  .wcta,
  .venture-open {
    min-height: 48px;
    padding-block: 7px;
  }
  .wcta i,
  .venture-open i {
    width: 34px;
    height: 34px;
  }
  .wcardx:active,
  .venture-card:active {
    transform: scale(0.992) !important;
  }
  .wcardx .wcta i {
    background: var(--c);
    color: var(--accent-ink, #fff);
  }
  .venture-card .venture-open i {
    background: var(--venture-accent);
    color: #11140f;
  }
  [data-view] h1,
  [data-view] h2,
  [data-view] h3 {
    overflow-wrap: anywhere;
  }
  [data-view] table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  [data-view] pre {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mini-browser iframe,
  .mini-browser.live iframe {
    height: min(70svh, 620px);
  }
  .vqc-stage.live iframe {
    height: min(72svh, 660px);
  }

  .ts-browser iframe {
    height: min(74svh, 660px) !important;
  }
  .wx-real-frame {
    max-height: 72svh;
  }
  .np-embed {
    height: 152px;
  }
  footer {
    padding-bottom: max(44px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 900px) {
  .worksec > .label:first-child,
  .worksec > .workgrid + .label {
    display: block;
    align-items: start;
  }
  .worksec > .label:first-child .tx,
  .worksec > .workgrid + .label .tx {
    display: block;
    max-width: 16ch;
    white-space: normal;
    font-size: var(--type-section-title);
  }
  .worksec > .workgrid + .label .tx {
    font-size: var(--type-subsection-title);
  }
  .worksec > .label:first-child .ct,
  .worksec > .workgrid + .label .ct {
    display: block;
    max-width: 38ch;
    margin: 14px 0 0;
    text-align: left;
    white-space: normal;
  }
}
@media (max-width: 420px) {
  .work-badges,
  .venture-badges {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .work-badge,
  .venture-badge {
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vqc-hero h1 {
    font-size: clamp(3.5rem, 20vw, 5.75rem);
  }
}
@media (hover: none) {
  .wcardx:hover,
  .venture-card:hover,
  .shot.screen:hover img,
  .hh-step:hover {
    transform: none !important;
  }
}
@media (forced-colors: active) {
  .wcardx,
  .venture-card,
  .wbody,
  .venture-copy,
  .btn,
  .wcta,
  .venture-open,
  .work-badge,
  .venture-badge,
  .cs-navcell {
    border: 1px solid CanvasText;
    box-shadow: none !important;
  }
  .wcta i,
  .venture-open i {
    forced-color-adjust: auto;
  }
  img {
    forced-color-adjust: none;
  }
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
