/* Video case gallery and detail, based on the generated editorial design. */
.studio-shell .video-case-index,
.studio-shell .video-case-detail {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 0 36px;
}
.video-case-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.5;
}
.video-case-index-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.video-case-index h1,
.video-case-detail h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
}
.video-case-index-heading p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.video-case-text-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.video-case-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.video-case-collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px 20px;
}
.video-case-card {
  min-width: 0;
}
.video-case-cover {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111713;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.video-case-cover img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  transition: opacity 0.2s;
}
.video-case-cover:hover img {
  opacity: 0.9;
}
.video-case-cover-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-left: 3px;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  background: #15231bb0;
  color: #fff;
  font-size: 15px;
}
.video-case-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #0b120ed9;
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.video-case-card-copy {
  padding: 12px 0 0;
}
.video-case-card-copy h2 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.video-case-card-copy h2 a {
  color: inherit;
  text-decoration: none;
}
.video-case-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.video-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.video-case-tags span {
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  padding: 3px 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.video-case-process {
  list-style: none;
  counter-reset: video-case-step;
  margin: 0;
  padding: 0;
}
.video-case-process li {
  counter-increment: video-case-step;
  position: relative;
  padding: 0 0 25px 34px;
  font-size: 12px;
}
.video-case-process li:before {
  content: counter(video-case-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, var(--paper));
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  z-index: 1;
}
.video-case-process li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 10.5px;
  top: 25px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}
.video-case-process strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
}
.video-case-process p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin: 5px 0 0;
}
.video-case-process li:last-child {
  padding-bottom: 0;
}
.video-case-detail .workflow-case-back {
  margin: 0 0 16px;
  font-size: 12px;
}
.video-case-detail .workflow-case-back a {
  text-decoration: none;
  color: var(--muted);
}
.video-case-title {
  display: block;
  position: static;
  padding: 0;
  margin: 0 0 24px;
  border: 0;
  background: transparent;
}
.video-case-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  gap: 0;
}
.video-case-meta span {
  padding-inline-end: 12px;
  margin-inline-end: 12px;
  border-inline-end: 1px solid var(--line);
  line-height: 1.2;
}
.video-case-meta span:last-child {
  padding: 0;
  margin: 0;
  border: 0;
}
.video-case-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 26px;
  align-items: start;
}
.video-case-screen-column {
  min-width: 0;
}
.video-case-detail .workflow-case-video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  max-height: 520px;
  min-height: 0;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #101512;
}
.video-case-project-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.video-case-project-panel > .button {
  width: 100%;
  min-height: 36px;
  border-radius: 6px;
  white-space: normal;
  text-align: center;
}
.video-case-project-panel h2 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  margin: 24px 0 17px;
}
.video-case-project-facts {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.video-case-project-facts h2 {
  margin: 0 0 13px;
}
.video-case-project-facts dl {
  margin: 0;
  display: grid;
  gap: 11px;
  font-size: 11px;
  line-height: 1.6;
}
.video-case-project-facts dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}
.video-case-project-facts dt {
  color: var(--muted);
}
.video-case-project-facts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.video-case-about {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
  font-size: 11px;
  line-height: 1.8;
}
.video-case-about summary {
  cursor: pointer;
  color: var(--muted);
}
.video-case-about p {
  margin: 10px 0 0;
  color: var(--muted);
}
.video-case-storyboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 22px 0 12px;
}
.video-case-storyboard-heading h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0;
}
.video-case-storyboard-heading span {
  font-size: 11px;
  color: var(--muted);
}
.video-case-detail .workflow-case-shots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.video-case-detail .workflow-case-shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.video-case-detail .workflow-case-shots figcaption {
  padding: 9px 0 0;
  font-size: 11px;
  line-height: 1.6;
}
.video-case-detail .workflow-case-shots strong {
  font-weight: 600;
  font-size: 12px;
}
.video-case-detail .workflow-case-shots p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.video-case-brief {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.video-case-brief > summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
}
.video-case-brief > div {
  padding: 2px 16px 16px;
}
.video-case-brief label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.video-case-brief textarea {
  width: 100%;
  min-height: 88px;
  font-size: 12px;
  line-height: 1.8;
  margin: 8px 0;
  border-radius: 6px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
.video-case-brief p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 4px 0;
}
:root[data-skin="deep-green"] .video-case-text-link {
  color: #bdd5c5;
}
:root[data-skin="deep-green"] .video-case-project-panel > .primary {
  background: #b5d9bf;
  border-color: #b5d9bf;
  color: #14291d;
}
:root[data-skin="deep-green"] .video-case-process li:before {
  background: #2e4437;
  color: #c4dfcd;
}
@media (min-width: 2100px) {
  .studio-shell .video-case-index,
  .studio-shell .video-case-detail {
    padding-top: 24px;
  }
  .video-case-detail .workflow-case-video {
    max-height: 540px;
  }
}
@media (max-width: 1100px) {
  .video-case-detail-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
  .video-case-project-panel {
    padding: 16px;
  }
  .video-case-storyboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 850px) {
  .video-case-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .video-case-project-panel {
    margin-top: 0;
  }
  .video-case-project-panel .video-case-process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .video-case-project-panel .video-case-process li {
    padding-bottom: 0;
  }
  .video-case-project-panel .video-case-process li:after {
    display: none;
  }
  .video-case-project-facts dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .video-case-project-facts dl > div {
    display: block;
  }
  .video-case-project-facts dd {
    text-align: left;
    margin-top: 4px;
  }
  .video-case-collection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .studio-shell .video-case-index,
  .studio-shell .video-case-detail {
    padding-top: 8px;
    padding-bottom: 20px;
  }
  .video-case-index h1,
  .video-case-detail h1 {
    font-size: 22px;
  }
  .video-case-index-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  .video-case-index-heading p:last-child {
    font-size: 12px;
  }
  .video-case-collection {
    grid-template-columns: 1fr;
  }
  .video-case-card-copy h2 {
    font-size: 16px;
  }
  .video-case-card-bottom {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .video-case-cover-play {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
  .video-case-title {
    margin-bottom: 18px;
  }
  .video-case-detail .workflow-case-video {
    border-radius: 6px;
  }
  .video-case-detail .workflow-case-shots {
    gap: 7px;
  }
  .video-case-detail .workflow-case-shots img {
    aspect-ratio: 1;
    object-fit: contain;
  }
  .video-case-detail .workflow-case-shots strong {
    font-size: 11px;
  }
  .video-case-storyboard-heading {
    margin-top: 18px;
  }
  .video-case-project-panel .video-case-process {
    display: block;
  }
  .video-case-project-panel .video-case-process li {
    padding-bottom: 20px;
  }
  .video-case-project-panel .video-case-process li:last-child {
    padding-bottom: 0;
  }
  .video-case-project-panel .video-case-process li:after {
    display: block;
  }
  .video-case-project-facts dl {
    gap: 10px;
  }
  .video-case-project-facts dl > div {
    font-size: 10px;
  }
  .video-case-about {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-case-cover img {
    transition: none;
  }
}

/* Gallery columns depend on available space, never on the number of cases. */
.studio-shell .video-case-index {
  max-width: 1920px;
}
.video-case-index-heading {
  margin-bottom: 22px;
}
.video-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.video-gallery-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.video-gallery-filters button,
.video-gallery-empty button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 7px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.video-gallery-filters button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.video-gallery-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--muted);
}
.video-gallery-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  padding: 0;
}
.video-gallery-search input:focus {
  outline: none;
}
.video-gallery-search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.video-gallery-count {
  margin: 14px 0;
  color: var(--muted);
  font-size: 11px;
}
.video-gallery-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.video-case-card-copy h2 {
  overflow-wrap: anywhere;
}
.video-gallery-empty {
  padding: 64px 16px;
  text-align: center;
  color: var(--muted);
}
.video-gallery-empty h2 {
  font-size: 16px;
  color: var(--ink);
}
.video-gallery-empty p {
  font-size: 13px;
}
.video-case-index [hidden] {
  display: none !important;
}
@media (max-width: 560px) {
  .video-gallery-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .video-gallery-search {
    width: auto;
  }
}
.video-case-card {
  display: flex;
  flex-direction: column;
}
.video-case-card .video-case-cover {
  flex-shrink: 0;
}
.video-case-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.video-case-card-copy h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.video-case-card-bottom {
  margin-top: auto;
}
@media (prefers-reduced-motion: reduce) {
  .video-case-cover img {
    transition: none;
  }
}

.video-case-detail .video-case-single-source {
  grid-template-columns: minmax(0, 380px);
}
.video-case-detail .video-case-single-source img {
  aspect-ratio: auto;
  object-fit: contain;
}
