/* Otto website pitch: project-specific layout and interactive image slots. */

@font-face {
  font-family: "Poynter OS Display";
  src: url("../assets/fonts/poynter/PoynterOSDisp-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poynter OS Display";
  src: url("../assets/fonts/poynter/PoynterOSDisp-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poynter OS Display";
  src: url("../assets/fonts/poynter/PoynterOSDisp-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poynter OS Display";
  src: url("../assets/fonts/poynter/PoynterOSDisp-SemiboldItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poynter OS Display";
  src: url("../assets/fonts/poynter/PoynterOSDisp-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poynter OS Display";
  src: url("../assets/fonts/poynter/PoynterOSDisp-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

body.otto-pitch {
  --font-client-display: "Nimbus Sans Round", "Alte Haas Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-client-body: "Neue Haas Unica", "Helvetica Neue", Arial, sans-serif;
  --font-client-mono: "Apercu Mono", "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* The studio wordmark keeps the established Nimmersatt typography. */
.otto-pitch .hero__title {
  font-family: var(--font-display);
  font-weight: 400;
}

.otto-pitch .nav__name {
  font-family: "Apercu Mono", "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.otto-pitch h2,
.otto-pitch h3,
.otto-pitch .otto-cubebox__label strong {
  font-family: "Poynter OS Display", Georgia, serif !important;
}

.otto-pitch .otto-website-slots .nextstep {
  min-height: clamp(150px, 18vw, 230px);
  justify-content: space-between;
}

.otto-pitch .otto-website-slots .nextstep h3 {
  margin-top: auto;
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
}

.otto-pitch .otto-website-stack {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.otto-pitch #next-steps .nextstep:nth-child(3) h3 {
  max-width: none;
  white-space: nowrap;
}

.otto-pitch .otto-main-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.otto-pitch .otto-main-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 480ms var(--ease-out-expo), filter 300ms var(--ease-spring);
  will-change: transform;
}

.otto-pitch .otto-main-media video:hover,
.otto-pitch .otto-main-media video:focus-visible {
  filter: contrast(1.04);
  outline: none;
  transform: scale(1.015);
}

.otto-pitch .otto-direction-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px dotted var(--client-line);
  background: var(--client-line);
}

.otto-pitch .otto-direction-head .concept__brief {
  order: initial;
  min-width: 0;
}

.otto-pitch .otto-cubebox {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
  background: var(--client-line);
  perspective: 900px;
}

.otto-pitch .otto-cubebox :is(img, video),
.otto-pitch .otto-cubebox__label {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

.otto-pitch .otto-cubebox :is(img, video) {
  display: block;
  object-fit: cover;
  cursor: zoom-in;
  transform: scale(1.001) rotateX(0) rotateY(0);
  transition: transform 480ms var(--ease-out-expo), filter 300ms var(--ease-spring);
  will-change: transform;
}

.otto-pitch .otto-cubebox :is(img, video):nth-child(1) {
  transform-origin: 100% 100%;
}

.otto-pitch .otto-cubebox :is(img, video):nth-child(2) {
  transform-origin: 0 100%;
}

.otto-pitch .otto-cubebox :is(img, video):nth-child(4) {
  transform-origin: 0 0;
}

.otto-pitch .otto-cubebox :is(img, video):nth-child(1):hover,
.otto-pitch .otto-cubebox :is(img, video):nth-child(1):focus-visible {
  transform: scale(1.08) rotateX(5deg) rotateY(-5deg);
}

.otto-pitch .otto-cubebox :is(img, video):nth-child(2):hover,
.otto-pitch .otto-cubebox :is(img, video):nth-child(2):focus-visible {
  transform: scale(1.08) rotateX(5deg) rotateY(5deg);
}

.otto-pitch .otto-cubebox :is(img, video):nth-child(4):hover,
.otto-pitch .otto-cubebox :is(img, video):nth-child(4):focus-visible {
  transform: scale(1.08) rotateX(-5deg) rotateY(5deg);
}

.otto-pitch .otto-cubebox :is(img, video):hover,
.otto-pitch .otto-cubebox :is(img, video):focus-visible {
  z-index: 2;
  filter: contrast(1.06) saturate(1.04);
  outline: none;
}

.otto-pitch .otto-cubebox__label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.85rem, 2vw, 1.4rem);
}

.otto-pitch .otto-cubebox__label span {
  font-family: var(--font-client-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.otto-pitch .otto-cubebox__label strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-client-display);
  font-size: clamp(1.2rem, 3vw, 2.6rem);
  line-height: 0.92;
}

.otto-pitch .projectperson {
  color: var(--fg);
}

.otto-pitch .projectteam__title {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
}

.otto-pitch #exchange .projectteam {
  grid-template-columns: 1fr;
}

.otto-pitch #exchange .projectteam__crew {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (min-width: 720px) {
  .otto-pitch .partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Each direction reads as five full-width editorial rows rather than a
   compressed horizontal strip. */
.otto-pitch .conceptbody {
  grid-template-columns: 1fr !important;
}

/* Main film copy runs as five horizontal editorial rows. */
.otto-pitch .otto-main-film .conceptbody {
  grid-template-columns: 1fr !important;
}

@media (min-width: 980px) {
  .otto-pitch .otto-main-film .conceptblock {
    display: grid;
    grid-template-columns: minmax(150px, 0.32fr) repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: 0.85rem;
  }

  .otto-pitch .otto-main-film .conceptblock__tag {
    grid-column: 1;
  }

  .otto-pitch .otto-main-film .conceptblock:nth-child(1) p,
  .otto-pitch .otto-main-film .conceptblock:nth-child(3) p {
    grid-column: 2 / -1;
  }
}

@media (min-width: 920px) {
  .otto-pitch .clientlist {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: transparent;
  }

  .otto-pitch .clientlist li {
    min-height: clamp(120px, 11vw, 160px);
    padding: clamp(2rem, 4vw, 3.5rem) var(--client-row-pad);
  }
}

.otto-pitch .otto-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 6vw, 5rem);
  background: rgba(240, 236, 230, 0.32);
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
  backdrop-filter: blur(16px) saturate(1.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity 340ms var(--ease-out-expo);
}

.otto-pitch .otto-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.otto-pitch .otto-lightbox__image,
.otto-pitch .otto-lightbox__video {
  width: auto;
  height: auto;
  max-width: min(82vw, 1180px);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 40px 90px rgba(5, 5, 5, 0.34);
  transform: scale(0.92);
  transition: transform 420ms var(--ease-out-expo);
}

.otto-pitch .otto-lightbox.is-open .otto-lightbox__image,
.otto-pitch .otto-lightbox.is-open .otto-lightbox__video {
  transform: scale(1);
}

.otto-pitch .otto-lightbox__close {
  position: fixed;
  top: clamp(1rem, 2.5vw, 1.6rem);
  right: clamp(1rem, 2.5vw, 1.6rem);
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(5, 5, 5, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: var(--fg);
  font-family: var(--font-client-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 760px) {
  body.otto-pitch {
    --client-crown-mobile-height: 4.45rem;
    --client-crown-mobile-offset: max(0.35rem, env(safe-area-inset-bottom));
    --client-crown-mobile-space: calc(
      var(--client-crown-mobile-height) + var(--client-crown-mobile-offset) + 0.5rem
    );
  }

  .otto-pitch .client-crown {
    left: max(0.45rem, env(safe-area-inset-left));
    right: max(0.45rem, env(safe-area-inset-right));
  }

  .otto-pitch .client-crown__meta {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.25fr) minmax(0, 0.42fr);
    gap: 0.35rem;
    padding: 0.34rem 0.6rem 0.24rem;
    font-size: 0.6rem;
  }

  .otto-pitch .client-crown__brackets {
    height: 1rem;
    font-size: 0.68rem;
  }

  .otto-pitch .client-crown__brackets span {
    padding-inline: 0.6rem;
  }

  .otto-pitch .client-crown__bar {
    min-height: 2.05rem;
    padding: 0.25rem 0.6rem;
  }

  .otto-pitch .client-crown__brand {
    font-size: 0.72rem;
  }

  .otto-pitch .otto-direction-head {
    grid-template-columns: 1fr;
  }

  .otto-pitch .otto-direction-head .concept__brief {
    min-height: 0;
    padding: 1.15rem;
  }

  .otto-pitch .otto-cubebox {
    width: 100%;
  }

  .otto-pitch .otto-main-media {
    width: 100%;
  }

  .otto-pitch .casefeature__label,
  .otto-pitch .conceptblock__tag {
    font-size: 0.66rem;
  }

  .otto-pitch .concept__title {
    font-size: clamp(1.35rem, 6.5vw, 1.65rem);
  }

  .otto-pitch .concept__style {
    font-size: 0.66rem;
    line-height: 1.5;
  }

  .otto-pitch .concept__premise {
    line-height: 1.55;
  }

  .otto-pitch .conceptblock {
    gap: 0.5rem;
    padding: 1rem 1.1rem;
  }

  .otto-pitch .conceptblock p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .otto-pitch .otto-website-slots .nextstep {
    min-height: 126px;
  }

  .otto-pitch .nextsteps__grid {
    margin-top: 1.5rem;
  }

  .otto-pitch #next-steps .nextstep {
    min-height: 180px;
  }

  .otto-pitch .nextstep p {
    line-height: 1.52;
  }

  .otto-pitch #look .proof__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

  .otto-pitch #look .stat {
    align-content: space-between;
    min-height: 112px;
  }

  .otto-pitch #look .stat__num {
    font-size: 1.8rem;
  }

  .otto-pitch #exchange .projectteam__crew {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .otto-pitch #exchange .projectperson {
    min-height: 88px;
    padding: 0.95rem;
  }

  .otto-pitch .clientlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .otto-pitch .clientlist li {
    min-height: 74px;
  }

  .otto-pitch .clientlist li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .otto-pitch .otto-lightbox {
    padding: 1rem;
  }

  .otto-pitch .otto-lightbox__image,
  .otto-pitch .otto-lightbox__video {
    max-width: calc(100vw - 2rem);
    max-height: 78vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .otto-pitch .otto-cubebox :is(img, video) {
    transition: none;
  }
}
