/* Load last. Editorial sections only; the approved hero and its controller stay untouched. */
body.editorial-refined {
  --editorial-gutter: var(--gutter, 24px);
  --editorial-space: clamp(64px, 6vw, 88px);
  --editorial-line: #ddd5c329;
}

body.editorial-refined .header > .brand,
body.editorial-refined .site-footer > .brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body.editorial-refined .film-feature,
body.editorial-refined .collection-section,
body.editorial-refined .film-archive {
  padding: var(--editorial-space) var(--editorial-gutter);
}

body.editorial-refined :is(.film-feature, .collection-section, .film-archive) > .section-intro {
  gap: 24px;
  padding-bottom: 30px;
}

body.editorial-refined :is(.film-feature, .collection-section, .film-archive) .section-intro h2 {
  margin: 0;
  font-size: clamp(38px, 3.6vw, 58px);
  line-height: 1.06;
}

body.editorial-refined :is(.film-feature, .collection-section, .film-archive) .section-intro .eyebrow {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .1em;
}

/* The title belongs above the frame; the lower rail carries one clear action. */
body.editorial-refined .film-poster {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--editorial-line);
}

body.editorial-refined .film-poster > img,
body.editorial-refined .film-poster .banner-loop {
  object-fit: cover;
  object-position: center;
}

body.editorial-refined .film-poster .poster-shade {
  background: linear-gradient(180deg, #02050566, transparent 24%, transparent 48%, #020505b8 100%);
}

body.editorial-refined .film-poster .banner-top {
  inset: 24px 28px auto;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .1em;
}

body.editorial-refined .film-poster .banner-copy {
  inset: auto 28px 24px;
  gap: 8px;
  align-items: flex-start;
}

body.editorial-refined .film-poster .banner-copy .eyebrow {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .1em;
}

body.editorial-refined .film-poster .banner-action {
  gap: 14px;
  min-height: 44px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .1em;
}

body.editorial-refined .film-poster .play-circle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

body.editorial-refined .film-poster .hover-play { display: none; }

body.editorial-refined .film-note {
  max-width: 66ch;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
}

/* Existing D1/P1/T1 artwork stays in its selected framing. */
body.editorial-refined .collection-lead {
  max-width: 54ch;
  margin: -12px 0 30px;
  color: var(--muted, #aaa7a0);
  font-size: 14px;
  line-height: 1.8;
}

body.editorial-refined .tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.55vw, 24px);
}

body.editorial-refined .feature-tile {
  color: var(--paper, #ebe7df);
  text-decoration: none;
}

body.editorial-refined .feature-tile img.tile-photo {
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

body.editorial-refined .selected-portrait img.tile-photo { object-position: center top; }
body.editorial-refined .selected-front img.tile-photo,
body.editorial-refined .selected-tag img.tile-photo { object-position: center; }

body.editorial-refined .tile-copy {
  left: 24px;
  right: 38px;
  gap: 10px;
}

body.editorial-refined .tile-status,
body.editorial-refined .tile-note {
  font-size: 12px;
  line-height: 1.65;
}

body.editorial-refined .tile-status { letter-spacing: .1em; }
body.editorial-refined .tile-note {
  max-width: 28ch;
  color: var(--muted, #aaa7a0);
  letter-spacing: 0;
}

body.editorial-refined article.digital-tile { cursor: default; }
body.editorial-refined article.digital-tile:hover .tile-photo { transform: none; }

/* Keep the tactile detail viewer, with readable supporting labels. */
body.editorial-refined .uniform-details {
  padding: var(--editorial-space) var(--editorial-gutter);
  gap: clamp(40px, 6vw, 88px);
}

body.editorial-refined .uniform-details .uniform-details__eyebrow {
  margin-bottom: 24px;
  font-size: 12px;
  letter-spacing: .1em;
}

body.editorial-refined .uniform-details__note {
  max-width: 28ch;
  margin-top: 16px;
  color: var(--muted, #aaa7a0);
  font-size: 13px;
  line-height: 1.75;
}

body.editorial-refined .uniform-details .uniform-details__tab,
body.editorial-refined .uniform-details .uniform-details__number,
body.editorial-refined .uniform-details .uniform-details__caption-index {
  font-size: 12px;
}

body.editorial-refined .uniform-details .uniform-details__caption {
  min-height: 0;
  padding-top: 24px;
}

body.editorial-refined .uniform-details .uniform-details__caption p {
  font-size: 14px;
  line-height: 1.75;
}

/* One existing study is represented as a compact index, without a repeated poster. */
body.editorial-refined .archive-index { width: 100%; }

body.editorial-refined .archive-entry {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(11rem, .65fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 116px;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--editorial-line);
  border-bottom: 1px solid var(--editorial-line);
  border-radius: 0;
  background: transparent;
  color: var(--paper, #ebe7df);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease;
}

body.editorial-refined .archive-entry__number,
body.editorial-refined .archive-entry__meta {
  color: var(--muted, #aaa7a0);
  font: 400 12px/1.7 var(--font-ui, Manrope, sans-serif);
  font-variant-numeric: tabular-nums;
}

body.editorial-refined .archive-entry__title {
  font: var(--display-weight, 600) clamp(30px, 3vw, 44px)/1.08 var(--font-display, "Barlow Condensed", sans-serif);
  letter-spacing: -.025em;
}

body.editorial-refined .archive-entry__action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 44px;
  font: 600 12px/1.5 var(--font-ui, Manrope, sans-serif);
  letter-spacing: .1em;
  white-space: nowrap;
}

body.editorial-refined .archive-entry:hover { background: #ffffff04; }
body.editorial-refined .archive-entry:focus-visible {
  outline: 2px solid #fff8e3;
  outline-offset: 5px;
}

body.editorial-refined .site-footer {
  padding: 32px var(--editorial-gutter);
  border-top: 1px solid var(--editorial-line);
}

body.editorial-refined .site-footer p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
}

body.editorial-refined :is(.film-dialog, .info-dialog) .dialog-caption {
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 1000px) and (min-width: 701px) {
  body.editorial-refined .archive-entry {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 12px 20px;
  }
  body.editorial-refined .archive-entry__meta { grid-column: 2; }
  body.editorial-refined .archive-entry__action { grid-column: 3; grid-row: 1 / span 2; }
  body.editorial-refined .tile-copy { left: 18px; right: 30px; }
}

@media (max-width: 800px) {
  body.editorial-refined .uniform-details { gap: 32px; }
}

@media (max-width: 900px) and (min-width: 701px) {
  body.editorial-refined .feature-tile .tile-title { font-size: 24px; }
  body.editorial-refined article.digital-tile .tile-copy { right: 18px; }
}

@media (max-width: 700px) {
  body.editorial-refined { --editorial-space: 56px; }

  body.editorial-refined :is(.film-feature, .collection-section, .film-archive) > .section-intro {
    display: block;
    padding-bottom: 24px;
  }
  body.editorial-refined :is(.film-feature, .collection-section, .film-archive) .section-intro h2 {
    margin-top: 16px;
    font-size: 38px;
    line-height: 1.08;
  }

  body.editorial-refined .film-poster { aspect-ratio: 16 / 10; }
  body.editorial-refined .film-poster .banner-top { inset: 16px 16px auto; }
  body.editorial-refined .film-poster .banner-top > span:first-child { display: none; }
  body.editorial-refined .film-poster .banner-top > span + span {
    margin-top: 0;
    color: var(--paper, #ebe7df);
  }
  body.editorial-refined .film-poster .banner-copy { inset: auto 16px 14px; }
  body.editorial-refined .film-poster .banner-copy .eyebrow { display: none; }
  body.editorial-refined .film-poster .banner-action { gap: 10px; letter-spacing: .06em; }
  body.editorial-refined .film-note { margin-top: 16px; }

  body.editorial-refined .collection-lead { margin: -8px 0 26px; }
  body.editorial-refined .tiles { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.editorial-refined .tile-copy { left: 24px; right: 38px; }

  body.editorial-refined .uniform-details .uniform-details__eyebrow { margin-bottom: 20px; }
  body.editorial-refined .uniform-details .uniform-details__tabs { gap: 12px; }
  body.editorial-refined .uniform-details .uniform-details__tab { line-height: 1.5; }
  body.editorial-refined .uniform-details .uniform-details__caption { padding-top: 20px; }

  body.editorial-refined .archive-entry {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 8px 16px;
    align-items: baseline;
    min-height: 0;
    padding: 24px 0 18px;
  }
  body.editorial-refined .archive-entry__number { grid-column: 1; grid-row: 1; }
  body.editorial-refined .archive-entry__title { grid-column: 2; grid-row: 1; font-size: 34px; }
  body.editorial-refined .archive-entry__meta { grid-column: 2; }
  body.editorial-refined .archive-entry__action { grid-column: 2; justify-content: flex-start; margin-top: 4px; }

  body.editorial-refined .site-footer { gap: 16px 20px; padding-block: 24px; }
  body.editorial-refined .site-footer nav { gap: 20px; }
}

@media (max-width: 360px) {
  body.editorial-refined .tile-copy { left: 20px; right: 32px; }
  body.editorial-refined .uniform-details .uniform-details__tabs { gap: 8px; }
  body.editorial-refined .archive-entry { grid-template-columns: 1.5rem minmax(0, 1fr); gap: 8px 12px; }
  body.editorial-refined .archive-entry__action { letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial-refined .archive-entry { transition: none; }
}
body.editorial-refined.no-motion .archive-entry,
body.editorial-refined[data-site-motion="off"] .archive-entry { transition: none; }

/* The noscript fallback supplies its own compressed art; omit empty deferred placeholders. */
body.editorial-refined.no-js .character-motion > svg.panda,
body.editorial-refined.no-js .hero-scene > .backdrop > img[data-fallback-src] { display: none; }
