/*
 * Documentary production page
 *
 * A restrained editorial page inspired by the supplied film reference while
 * retaining Norren's typography, navigation and footer system.
 */

.documentary-production-page {
  --documentary-black: #141719;
  --documentary-rule: rgba(15, 34, 51, 0.22);
  --documentary-hero-height: clamp(520px, 48.12vw, 840px);
  color: var(--norren-ink);
  background: #fff;
}

.documentary-production-page main {
  overflow: clip;
  background: #fff;
}

.documentary-production-page .service-nav-popover__list a[aria-current="page"] {
  background: rgba(221, 232, 235, 0.68);
}

.documentary-production-shell {
  width: calc(100% - (var(--editorial-gutter) * 2));
  max-width: none;
  margin-inline: auto;
}

/* The extra section height gives the image a short, quiet pinned moment. */
.documentary-production-hero {
  position: relative;
  height: calc(var(--documentary-hero-height) + clamp(72px, 7vw, 112px));
  background: #fff;
}

.documentary-production-hero__pin {
  position: sticky;
  top: 0;
  height: var(--documentary-hero-height);
  overflow: hidden;
  background: #fff;
}

.documentary-production-hero__poster,
.documentary-production-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: scale(1.003);
}

.documentary-production-hero__poster {
  object-fit: cover;
  object-position: center;
  transition: opacity 480ms ease;
}

.documentary-production-hero__poster,
.documentary-production-hero__video {
  -webkit-mask: url("./asset/documentary/norren-word-mask.svg") center / contain no-repeat;
  mask: url("./asset/documentary/norren-word-mask.svg") center / contain no-repeat;
  mask-mode: alpha;
}

.documentary-production-hero__video {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 480ms ease;
}

.documentary-production-hero__pin.is-video-ready .documentary-production-hero__poster {
  opacity: 0;
}

.documentary-production-hero__pin.is-video-ready .documentary-production-hero__video {
  opacity: 1;
}

.documentary-production-hero__meta {
  position: absolute;
  z-index: 2;
  right: var(--editorial-gutter);
  bottom: clamp(22px, 2.7vw, 46px);
  left: var(--editorial-gutter);
  color: var(--documentary-black);
}

.documentary-production-hero__meta h1 {
  max-width: min(1280px, 88vw);
  font-size: clamp(1.2rem, 2.1vw, 2.35rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.documentary-production-details {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(36px, 5vw, 72px);
  background: #fff;
}

.documentary-production-row {
  position: relative;
  display: grid;
  padding: clamp(32px, 3.4vw, 54px) 0 clamp(112px, 12vw, 196px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 1.7vw, 32px);
}

.documentary-production-row::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--documentary-rule);
  content: "";
  transform-origin: left;
}

.documentary-production-row--process {
  padding-bottom: clamp(84px, 9vw, 140px);
}

.documentary-production-row--process::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--documentary-rule);
  content: "";
}

.documentary-production-row__heading p {
  margin-bottom: clamp(44px, 6.5vw, 102px);
  color: rgba(15, 34, 51, 0.52);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.documentary-production-row__heading h3 {
  max-width: 560px;
  color: var(--documentary-black);
  font-size: clamp(1.85rem, 2.7vw, 3.15rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.documentary-production-row__heading .documentary-production-row__headline--long {
  max-width: 680px;
  font-size: clamp(1.55rem, 2.25vw, 2.55rem);
  line-height: 1.55;
}

.documentary-production-row__body {
  align-self: end;
  color: rgba(15, 34, 51, 0.72);
  font-size: clamp(0.87rem, 1vw, 0.98rem);
  line-height: 2;
}

.documentary-production-row__lead {
  margin-bottom: 30px;
  color: var(--norren-ink);
  font-size: clamp(1.03rem, 1.4vw, 1.28rem);
  font-weight: 500;
  line-height: 1.9;
}

.documentary-production-uses {
  display: grid;
  margin-top: clamp(40px, 5vw, 70px);
  border-top: 1px solid var(--documentary-rule);
  border-bottom: 1px solid var(--documentary-rule);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.documentary-production-uses li {
  padding: 15px 8px;
  color: var(--norren-ink);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
}

.documentary-production-uses li + li {
  border-left: 1px solid var(--documentary-rule);
}

.documentary-production-process {
  border-top: 1px solid var(--documentary-rule);
}

.documentary-production-process li {
  display: grid;
  padding: clamp(20px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--documentary-rule);
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
}

.documentary-production-process > li > span {
  padding-top: 4px;
  color: var(--norren-cedar-dark);
  font-family: var(--font-serif-jp);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
}

.documentary-production-process h4 {
  margin: 0 0 7px;
  color: var(--documentary-black);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
}

.documentary-production-process p {
  color: rgba(15, 34, 51, 0.66);
  font-size: 0.82rem;
  line-height: 1.85;
}

.documentary-production-contact {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(42px, 5vw, 70px);
  padding: 18px 24px;
  color: #fff;
  background: var(--documentary-black);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 700;
  line-height: 1.5;
  transition:
    color 240ms ease,
    background-color 240ms ease;
}

.documentary-production-contact > span:last-child {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  transition: transform 280ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .documentary-production-contact:hover {
    color: var(--norren-cedar-ink);
    background: var(--norren-cedar);
  }

  .documentary-production-contact:hover > span:last-child {
    transform: rotate(45deg);
  }
}

/* The shared observer supplies is-visible; this page gives it a slower reveal. */
html.reveal-ready .documentary-production-page .documentary-production-details .reveal {
  opacity: 0;
  transform: translateY(64px);
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out);
}

html.reveal-ready .documentary-production-page .documentary-production-details .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.reveal-ready .documentary-production-page .documentary-production-row::before {
  transform: scaleX(0);
  transition: transform 1100ms var(--ease-out) 140ms;
}

html.reveal-ready .documentary-production-page .documentary-production-row.is-visible::before {
  transform: scaleX(1);
}

@media (max-width: 900px) {
  .documentary-production-page {
    --documentary-hero-height: clamp(360px, 66vw, 520px);
  }

  .documentary-production-hero {
    height: var(--documentary-hero-height);
  }

  .documentary-production-hero__pin {
    position: relative;
  }

  .documentary-production-hero__poster,
  .documentary-production-hero__video {
    bottom: auto;
    height: calc(100% - 88px);
  }

  .documentary-production-hero__meta h1 {
    max-width: min(720px, 86vw);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
  }

  .documentary-production-row {
    padding: 30px 0 108px;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .documentary-production-row--process {
    padding-bottom: 86px;
  }

  .documentary-production-row__heading p {
    margin-bottom: 42px;
  }

  .documentary-production-row__heading h3 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }
}

@media (max-width: 620px) {
  .documentary-production-page {
    --documentary-hero-height: 460px;
  }

  .documentary-production-hero__poster,
  .documentary-production-hero__video {
    top: 64px;
    bottom: auto;
    height: 240px;
  }

  .documentary-production-hero__meta {
    bottom: 26px;
  }

  .documentary-production-hero__meta h1 {
    max-width: none;
    font-size: clamp(0.98rem, 4.4vw, 1.15rem);
    line-height: 1.6;
  }

  .documentary-production-uses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .documentary-production-uses li:nth-child(3) {
    border-left: 0;
  }

  .documentary-production-uses li:nth-child(n + 3) {
    border-top: 1px solid var(--documentary-rule);
  }

  .documentary-production-process li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .documentary-production-contact {
    min-height: 70px;
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .documentary-production-hero__pin {
    position: relative;
  }

  .documentary-production-hero {
    height: var(--documentary-hero-height);
  }

  html.reveal-ready .documentary-production-page .documentary-production-details .reveal,
  html.reveal-ready .documentary-production-page .documentary-production-row::before {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .documentary-production-hero__poster,
  .documentary-production-hero__video {
    transition: none;
  }
}

@media (forced-colors: active) {
  .documentary-production-page .service-nav-popover__list a[aria-current="page"],
  .documentary-production-contact {
    border: 1px solid CanvasText;
  }

  .documentary-production-row::before,
  .documentary-production-row--process::after,
  .documentary-production-process,
  .documentary-production-process li,
  .documentary-production-uses,
  .documentary-production-uses li {
    border-color: CanvasText;
  }
}
