body.tipo-sp-active > .case-view { display: none !important; }

.tsp-page {
  --tsp-gap: clamp(10px, 1.25vw, 20px);
  --tsp-section: var(--tp-section);
}

.tsp-section { margin-top: var(--tsp-section); }
.tsp-pair, .tsp-trio, .tsp-stack { display: grid; gap: var(--tsp-gap); min-width: 0; }
.tsp-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.tsp-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tsp-stack { align-content: start; }
.tsp-page .tp-copy { grid-column: auto; max-width: 58ch; padding: 0; }
.tsp-page .tp-copy p + p { margin-top: 1em; }

.tsp-media {
  margin: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #151517;
}

.tsp-page .tsp-media img, .tsp-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.tsp-hero { aspect-ratio: 16 / 9; }
.tsp-wide { aspect-ratio: 16 / 9; }
.tsp-landscape { aspect-ratio: 16 / 9; }
.tsp-portrait, .tsp-reference { aspect-ratio: .89; }
.tsp-reel { aspect-ratio: 9 / 16; }
.tsp-page .tsp-wide img, .tsp-page .tsp-intro img { object-fit: cover; }
.tsp-reference { background: #fff; }
.tsp-concept { align-items: end; }
.tsp-eye { margin: clamp(24px, 3vw, 44px) 0 0; text-align: right; }
.tsp-eye .tp-eye {
  margin: 10px 0 0 auto;
  font-size: clamp(22px, 2.7vw, 40px);
  line-height: 1.25;
  text-wrap: balance;
}
.tsp-motion-copy { margin-top: .5rem; }
.tsp-page .tsp-mosaic:last-child .tsp-media { background: #fff; }

@media (max-width: 700px) {
  .tsp-intro, .tsp-concept, .tsp-mosaic { grid-template-columns: minmax(0, 1fr); }
  .tsp-portrait { aspect-ratio: 16 / 9; }
  .tsp-eye { padding-bottom: 16px; }
}

@media (max-width: 440px) {
  .tsp-trio { grid-template-columns: minmax(0, 1fr); }
  .tsp-trio .tsp-reel { max-width: 320px; width: 100%; justify-self: center; }
}

.tsp-system { aspect-ratio: 1280 / 524; background: #000; }
.tsp-photo-portrait, .tsp-poster-frame { aspect-ratio: .89; }
.tsp-page .tsp-photo-portrait img, .tsp-poster-frame video { object-fit: cover; }
.tsp-page .tsp-intro img { object-fit: contain; }

.tsp-opening {
  display: grid;
  gap: var(--tsp-gap);
}
.tsp-opening-photo {
  min-width: 0;
  margin: 0;
}
.tsp-page .tsp-opening-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.tsp-opening-close {
  align-items: end;
}
.tsp-process .tsp-stack {
  gap: calc(var(--tsp-gap) * 1.5);
}
.tsp-process .tsp-system {
  aspect-ratio: 1280 / 524;
}
@media (max-width: 700px) {
  .tsp-opening-close, .tsp-process {
    grid-template-columns: minmax(0, 1fr);
  }
  .tsp-process {
    row-gap: calc(var(--tsp-gap) * 3);
  }
}




.tsp-opening-close {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.tsp-opening-bridge {
  aspect-ratio: 8 / 9;
  overflow: hidden;
}

.tsp-page .tsp-opening-bridge img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 700px) {
  .tsp-opening-close {
    grid-template-columns: minmax(0, 1fr);
  }
}

.tsp-development .tsp-poster-frame {
  aspect-ratio: 16 / 9;
}


.tsp-page .tsp-research-frame img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.tsp-opening-close .kk-eye {
  justify-self: end;
  padding: 0;
}

.tsp-page .kk-eye .tp-eye {
  font-family: var(--font-display);
  max-width: 22ch;
  margin-inline-start: auto;
  text-wrap: balance;
}

@media (max-width: 700px) {
  .tsp-research-pair {
    grid-template-columns: minmax(0, 1fr);
  }

}

.tsp-page .tsp-opening-intro {
  align-items: start;
}

@media (min-width: 701px) {
  .tsp-page .tsp-opening-intro {
    column-gap: var(--tsp-gap);
  }
}

.tsp-page .tp-copy h2 {
  text-wrap: balance;
}

.tsp-page .tsp-development .tsp-wide {
  aspect-ratio: 16 / 9;
}

.tsp-page .tsp-research-frame:last-child img {
  object-fit: cover;
}


.tsp-page .tsp-applications img {
  object-fit: cover;
}

.tsp-page .tsp-opening-close > .kk-eye {
  display: grid;
  align-self: end;
  justify-items: end;
  gap: .5rem;
  margin: 0;
  padding: 0;
}

.tsp-page .tsp-opening-close .kk-eye .tp-quote-mark,
.tsp-page .tsp-opening-close .kk-eye .tp-eye {
  margin: 0;
}

@media (max-width: 700px) {
  .tsp-page .tsp-opening-close > .kk-eye {
    margin-top: .5rem;
  }
}

.tsp-site-preview {
  display: grid;
  place-items: center;
  gap: var(--tsp-gap);
  text-align: center;
}

.tsp-site-preview iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 58vw, 720px);
  border: 0;
}

@media (min-width: 701px) {
  .tsp-development .tp-copy { grid-area: 1 / 1; }
  .tsp-development .tsp-poster-frame {
    grid-area: 1 / 2;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 0;
  }

  .tsp-development .tsp-poster-frame::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 9;
  }
}

.tsp-development .tsp-poster-frame video {
  transform: scale(1.2);
}

.works-grid > a[href="#project/tipo-sp"] {
  background: linear-gradient(180deg, #0004, #0000 35%, #000c),
    url("tipo-sp/abertura.webp") center / cover no-repeat;
  background-clip: padding-box;
}

@media (prefers-reduced-motion: no-preference) {
  .works-grid > a[href="#project/tipo-sp"] {
    background-image: linear-gradient(180deg, #0004, #0000 35%, #000c),
      url("tipo-sp/capa.gif");
  }
}
