/* Story descriptions, complete film library and owner-facing watermark studies. */
[hidden] {
  display: none !important;
}

.library-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  margin-block: 28px;
}

.library-tools .filters {
  margin: 0;
}

.view-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 4px;
  gap: 4px;
}

.view-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 42px;
  padding: 10px 15px;
  font-size: 12px;
}

.view-switch button[aria-pressed=true] {
  background: var(--ink);
  color: var(--bg);
}

.project .collection-name {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
  margin: 0 0 9px;
  color: var(--muted);
}

.project h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.project .card-description {
  font-size: 13px;
  line-height: 1.6;
  max-width: 340px;
  min-height: 43px;
}

.noir .project h3 {
  font-size: 25px;
}

.project-versions {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 4px;
  font-size: 12px;
}

.library[data-view=films] .project-versions {
  display: none;
}

.project-versions summary {
  color: var(--muted);
  cursor: pointer;
  padding-block: 12px;
  min-height: 44px;
}

.project-versions summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-versions ul {
  list-style: none;
  padding: 0;
  margin: 2px 0;
}

.project-versions button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
  width: 100%;
  padding: 10px 0;
}

.project-versions button:hover,
.text-action:hover {
  color: var(--accent);
}

.choice-content {
  display: block;
}

.choice-title {
  display: block;
  font-size: 15px;
}

.choice-description {
  display: block;
  max-width: 350px;
  margin: 6px 0 0 30px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.comparison-preview {
  width: 100%;
  max-width: 410px;
  justify-self: center;
}

.comparison-preview .hook-art:after {
  content: none;
}

.noir .hero-caption {
  top: 22px;
  bottom: auto;
  align-items: start;
}

.comparison-caption {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.comparison-caption h3 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.035em;
  margin: 12px 0;
}

.comparison-caption p {
  font-size: 13px;
  margin: 0;
}

.hooks .case-principle {
  color: var(--ink);
  font-size: 13px;
}

.case-principle .dot {
  margin-right: 9px;
}

.hooks .case-footnote {
  font-size: 11px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 45px;
}

.concept-film,
.watermark-sample {
  display: block;
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--panel);
}

.concept-film {
  aspect-ratio: 4 / 5;
  margin-bottom: 23px;
}

.concept-film img {
  object-position: 50% 50%;
  transition: transform .5s;
}

.concept-film:hover img {
  transform: scale(1.025);
}

.concept-number {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 12px;
  padding: 6px 10px;
  background: #080808d9;
}

.concept-film .play-round,
.watermark-sample .play-round {
  position: absolute;
  bottom: 18px;
  right: 18px;
}

.concept-card > .tiny {
  font-size: 10px;
  color: var(--muted);
}

.concept-card h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.15;
  margin: 13px 0 15px;
  max-width: 300px;
}

.concept-card > p:not(.tiny) {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 350px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 44px;
  background: none;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  padding: 12px 0;
}

.service {
  display: block;
}

.service dt {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.service-number {
  display: inline-block;
  width: 35px;
  flex-shrink: 0;
}

.service dd {
  margin: 15px 0 0 50px;
}

#film-dialog {
  width: min(1180px, 94vw);
  overflow: hidden;
}

.player-body {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  height: min(740px, calc(92dvh - 85px));
}

.video-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 12px;
}

.video-stage video {
  display: block;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.player-info {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px;
}

.player-info > p {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
}

.player-info > .tiny {
  color: var(--accent);
  font-size: 10px;
  margin-bottom: 12px;
}

#film-variant-title {
  margin: 0 0 15px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.04em;
}

.player-info label {
  display: block;
  margin-block: 24px;
}

.film-story {
  margin: 0;
}

.film-story > div {
  padding-block: 17px;
  border-top: 1px solid var(--line);
}

.film-story dt {
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 8px;
}

.film-story dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.player-info .film-relationship {
  border-left: 2px solid var(--accent);
  padding-left: 13px;
  margin-top: 15px;
  font-size: 12px;
}

.player-info .film-client-use,
.player-info .player-credit {
  font-size: 10px;
  margin-block: 18px 10px;
}

.review-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 38px;
  border-block: 1px solid var(--line);
  margin-top: 48px;
}

.review-callout h2 {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin: 12px 0;
}

.review-callout p {
  font-size: 14px;
  color: var(--muted);
  max-width: 650px;
  margin: 0;
}

.review-callout .button {
  flex-shrink: 0;
}

.watermark-page {
  padding-block: 55px 80px;
}

.watermark-page h1 {
  font-size: clamp(50px, 6.5vw, 94px);
  line-height: .99;
  letter-spacing: -.055em;
  margin: 30px 0;
}

.watermark-page .intro {
  font-size: 15px;
  color: var(--muted);
  max-width: 660px;
  line-height: 1.8;
}

.watermark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-block: 45px;
}

.watermark-sample {
  aspect-ratio: 9 / 16;
  margin-bottom: 23px;
}

.watermark-card h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.04em;
  margin: 12px 0;
}

.watermark-card > p:not(.tiny),
.watermark-explanation {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.watermark-explanation {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  max-width: 800px;
  margin-bottom: 30px;
}

@media (max-width: 1000px) {
  .library-tools {
    gap: 18px;
  }

  .player-body {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .concept-grid {
    gap: 18px;
  }

  .concept-card h3 {
    font-size: 23px;
  }

  .review-callout {
    align-items: start;
    flex-direction: column;
    gap: 25px;
  }
}

@media (max-width: 700px) {
  .library-tools {
    display: block;
  }

  .library-tools .filters {
    margin-bottom: 18px;
  }

  .view-switch button {
    min-height: 44px;
    font-size: 11px;
  }

  .project .collection-name {
    font-size: 9px;
    letter-spacing: .035em;
    line-height: 1.5;
  }

  .project h3,
  .frame .project h3 {
    font-size: 16px;
    line-height: 1.25;
  }

  .noir .project h3 {
    font-size: 20px;
  }

  .project .card-description {
    font-size: 11px;
    min-height: 0;
  }

  .project-versions summary,
  .project-versions button {
    font-size: 10px;
    line-height: 1.5;
  }

  .choice-title {
    font-size: 14px;
  }

  .choice-description {
    font-size: 11px;
  }

  .comparison-preview {
    max-width: 100%;
  }

  .comparison-caption h3 {
    font-size: 23px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
  }

  .concept-film {
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
  }

  .concept-card h3 {
    font-size: 28px;
    max-width: 320px;
  }

  .concept-card > p:not(.tiny) {
    font-size: 13px;
  }

  .player-body {
    display: block;
    overflow-y: auto;
    height: calc(92dvh - 78px);
    overscroll-behavior: contain;
  }

  .video-stage {
    height: 56dvh;
    min-height: 210px;
    padding: 8px;
  }

  .player-info {
    padding: 22px;
    overflow: visible;
  }

  .player-info > p {
    display: block;
  }

  .player-info .metadata {
    display: block;
  }

  .watermark-page {
    padding-top: 30px;
  }

  .watermark-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .watermark-sample {
    aspect-ratio: 9 / 14;
  }

  .watermark-sample img {
    object-fit: contain;
  }

  .review-callout .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .nav {
    gap: 12px;
  }

  .brand {
    font-size: 13px;
  }

  .brand span:last-child {
    max-width: 94px;
  }

  .nav-links {
    gap: 12px;
    font-size: 10px;
  }

  .nav-contact {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept-film img {
    transition: none;
  }
}
