/* Media pass: the established shell, palette, typography and section order remain intact. */
.hero-film-stage {
  position: relative;
  aspect-ratio: 2/1;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.film-poster,
.film-poster img,
.hero-film {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-film {
  opacity: 0;
  transform: translateY(calc(var(--source-y, 0px) * 0.3));
  transition: opacity 0.3s ease;
}
.hero-film.is-playing {
  opacity: 1;
}
.film-depth-caption {
  position: absolute;
  inset: 10px 20px auto;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transform: translateY(calc(var(--fan-y, 0px) * 0.3));
  pointer-events: none;
  opacity: 0.7;
}
.film-play {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acid);
  color: var(--bg);
  z-index: 4;
  white-space: nowrap;
}
.media-machine.film-running .film-play {
  display: none;
}
.media-machine:not(.film-running) .machine-top .motion-toggle {
  visibility: hidden;
}
.media-machine .machine-bottom .loop-progress i {
  animation: none;
  transform-origin: left;
  transform: scaleX(var(--film-progress, 0));
}
.media-machine .machine-bottom {
  letter-spacing: 0;
  min-height: 48px;
}
.has-media {
  background: #10120e;
  color: var(--paper);
}
.scene-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 45%;
  z-index: -2;
}
.master-art.has-media {
  isolation: isolate;
}
.master-art.has-media .scene-media {
  z-index: -2;
}
.has-media:after,
.media-verdict:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0008, transparent 35%, #0002 52%, #000e);
  transform: none;
  width: auto;
  height: auto;
  pointer-events: none;
}
.master-art.has-media .master-title {
  font-size: clamp(28px, 3vw, 46px);
  margin-top: auto;
  margin-bottom: 15px;
}
.master-art.has-media .master-caption {
  display: none;
}
.master-art.has-media .wave {
  height: 16px;
  opacity: 0.7;
}
.clip-art.has-media strong {
  font-size: clamp(22px, 17cqw, 42px);
  margin-top: auto;
  margin-bottom: 12px;
  max-width: 100%;
  text-shadow: 0 2px 14px #0008;
  line-height: 0.95;
}
.clip-art.has-media .clip-top {
  color: var(--paper);
}
.clip-art.has-media .clip-bottom {
  color: #d7ddc5;
  font-size: 9px;
}
.source-film,
.clip-preview-video {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.source-film.is-playing,
.clip-preview-video.is-playing {
  opacity: 1;
  z-index: -1;
}
.has-media:has(video.is-playing):after {
  z-index: 0;
}
.has-media:has(video.is-playing) > :not(.scene-media) {
  z-index: 1;
}
.workflow-section .extract-cuts {
  perspective: 1000px;
  gap: 6px;
  top: 132px;
}
.extraction[data-stage="1"] .extract-cuts .clip-art:nth-child(1) {
  transform: translate(-6px, 12px) rotate(-7deg);
}
.extraction[data-stage="1"] .extract-cuts .clip-art:nth-child(3) {
  transform: translate(6px, 12px) rotate(7deg);
}
.extraction[data-stage="2"] .extract-cuts .clip-art:first-child {
  transform: translateY(-12px) translateZ(40px);
}
.extract-draft {
  z-index: 3;
  background: #11190f;
}
.extract-draft > img {
  width: 36px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--acid);
}
.extract-draft > .icon {
  display: none;
}
.media-verdict {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--paper);
}
.media-verdict > .icon {
  color: var(--acid);
  position: relative;
  z-index: 1;
}
.media-verdict strong {
  font-size: clamp(27px, 3vw, 49px);
  position: relative;
  margin-top: auto;
}
.media-verdict > span {
  position: relative;
  color: var(--paper);
  margin-top: 16px;
}
.journey-panel .has-media strong {
  font-size: clamp(24px, 17cqw, 42px);
}
.moment-number {
  width: 38px;
  height: 57px;
  position: relative;
  overflow: hidden;
  align-self: center;
  flex: 0 0 38px;
  border: 1px solid #535b43;
}
.moment-number > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.moment-number > span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0b0c0acc;
  color: var(--paper);
  font: 600 10px var(--font-body);
  text-align: center;
  padding: 1px;
}
.review-preview {
  isolation: isolate;
  max-width: 225px;
  margin-block: 12px 0;
}
.review-art {
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.review-neighbour {
  position: absolute;
  width: 85%;
  height: 91%;
  object-fit: cover;
  top: 4%;
  z-index: -1;
  filter: brightness(0.55);
  border: 1px solid #66704e;
  transition:
    transform 0.6s var(--ease),
    filter 0.6s var(--ease);
}
.neighbour-left {
  left: -15px;
  transform: rotate(-7deg);
}
.neighbour-right {
  right: -15px;
  transform: rotate(7deg);
}
.demo-approved .review-art {
  outline: 2px solid var(--acid);
  transform: translateY(-5px);
  box-shadow: 0 14px 35px #0008;
}
.demo-approved .neighbour-left {
  transform: translate(-4px, 8px) rotate(-10deg) scale(0.94);
  filter: brightness(0.3);
}
.demo-approved .neighbour-right {
  transform: translate(4px, 8px) rotate(10deg) scale(0.94);
  filter: brightness(0.3);
}
.review-preview:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #caff3230, transparent);
  height: 25%;
  pointer-events: none;
  opacity: 0;
}
.motion-enabled .demo-approved .review-preview:after {
  animation: approvalSweep 0.7s ease-out both;
}
@keyframes approvalSweep {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateY(300%);
    opacity: 0;
  }
}
.preview-toggle {
  display: flex;
  margin: 8px auto 0;
  background: none;
  border: 0;
  font-size: 13px;
  cursor: pointer;
  color: var(--paper);
}
.review-art.has-media strong {
  margin-bottom: 54px;
}
.review-state {
  z-index: 2;
  bottom: 35px;
}
.draft-mini .clip-art video,
.flying-clip video {
  display: none;
}
.draft-mini .clip-art {
  background: var(--bg);
}
.draft-mini .clip-art strong {
  font-size: 15px;
  margin-bottom: 4px;
}
.draft-mini .clip-top,
.draft-mini .clip-bottom {
  display: none;
}
.delivery-rail {
  height: 200px;
  margin-left: 55px;
}
.delivery-clip {
  width: 72px;
  height: 128px;
  left: -36px;
  overflow: hidden;
}
.delivery-clip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.delivery-clip span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--acid);
  color: var(--bg);
  font: 600 8px var(--font-body);
  padding: 3px;
  text-align: center;
}
.delivery-label {
  position: absolute;
  top: 65px;
  left: 58px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.inbox-preview {
  width: 90px;
  height: 160px;
  background: var(--bg);
  border: 1px solid var(--acid);
}
.inbox-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.handoff-motion .inbox-content {
  min-height: 192px;
}
.handoff-motion .inbox-content > .sample-label {
  align-self: flex-start;
}
@media (max-width: 900px) {
  .review-preview {
    max-width: 210px;
  }
  .hero-film-stage {
    transform: none;
  }
  .film-depth-caption {
    display: none;
  }
}
@media (max-width: 600px) {
  .hero-film-stage {
    aspect-ratio: 750/880;
  }
  .film-play {
    bottom: 14px;
    font-size: 12px;
    min-height: 44px;
    padding: 10px 14px;
  }
  .film-poster img {
    object-fit: contain;
  }
  .media-machine .machine-top {
    padding: 14px 16px;
    gap: 10px;
  }
  .media-machine .machine-top > span:first-child {
    font-size: 9px;
  }
  .media-machine .machine-bottom {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .media-machine .machine-bottom > .mono {
    display: none;
  }
  .media-machine .loop-progress {
    max-width: 70px;
  }
  .clip-art.has-media strong {
    font-size: clamp(21px, 17cqw, 36px);
  }
  .extract-cuts .clip-art.has-media {
    padding: 10px 7px;
  }
  .extract-cuts .clip-art .clip-top {
    font-size: 7px;
  }
  .extract-cuts .clip-art .clip-bottom {
    font-size: 7px;
  }
  .extract-cuts .clip-art strong {
    font-size: 18cqw;
  }
  .review-preview {
    max-width: 200px;
  }
  .moment-number {
    width: 33px;
    flex-basis: 33px;
    height: 48px;
  }
  .moment-button {
    gap: 10px;
  }
  .moment-button b {
    font-size: 14px;
  }
  .delivery-rail {
    height: 170px;
    margin-left: 40px;
  }
  .delivery-clip {
    width: 58px;
    height: 103px;
    left: -29px;
  }
  .delivery-label {
    left: 48px;
  }
  .inbox-preview {
    width: 68px;
    height: 121px;
  }
  .handoff-motion .inbox-content {
    min-height: 155px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .inbox-content > .sample-label {
    display: none;
  }
  .hero-film {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .film-depth-caption {
    transform: none;
  }
  .hero-film,
  .source-film,
  .clip-preview-video {
    display: none !important;
  }
  .film-play,
  .preview-toggle,
  .media-machine .motion-toggle {
    display: none !important;
  }
  .extraction .extract-cuts {
    transition: none;
  }
  .demo-approved .review-art,
  .demo-approved .review-neighbour {
    transform: none;
  }
  .review-preview:after {
    display: none;
  }
  .delivery-clip {
    transform: translateY(35px);
  }
}
/* Playback belongs in the existing control rail, outside the poster artwork. */
.media-machine .film-play {
  position: static;
  transform: none;
  inset: auto;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  font-size: 12px;
  gap: 7px;
  white-space: normal;
}
.media-machine .film-play .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.media-machine:not(.film-running) .machine-top .motion-toggle {
  display: none;
}
.media-machine.film-running .machine-top .motion-toggle {
  visibility: visible;
}
.media-machine .machine-top .film-play,
.media-machine .machine-top .motion-toggle {
  width: 156px;
  flex: 0 0 156px;
  min-height: 32px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .media-machine .machine-top .film-play,
  .media-machine .machine-top .motion-toggle {
    width: 122px;
    max-width: 122px;
    flex-basis: 122px;
  }
  .media-machine .film-play {
    max-width: 142px;
    font-size: 11px;
    text-align: right;
    line-height: 1.3;
  }
}
.motion-enabled .extract-timeline .wave {
  transform: translateX(calc(var(--story-progress, 0) * -18px));
  transition: transform 0.1s linear;
}
.source-film.is-playing + .source-image {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .extract-timeline .wave {
    transform: none;
    transition: none;
  }
}

/* Content variety refinement: scoped to the homepage and the existing section order. */
.home .section-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--acid);
  margin: 0 0 24px;
  line-height: 1.5;
}
.hero-source-range {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: 24px;
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
}
.hero-range-thumbs { display: flex; gap: 4px; }
.hero-range-thumbs img { width: 36px; height: 44px; object-fit: cover; }
.hero-source-range small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.hero-source-range .range-arrow { color: var(--acid); margin-left: 12px; }
.hero-source-range:hover .range-arrow { transform: translateX(4px); }
.home .workflow-section { border-top: 1px solid var(--line); margin-top: 24px; }
.home .workflow-sticky { padding-block: clamp(76px, 8vw, 128px); }
.home .workflow-steps small { max-width: 36ch; }
.home .demo-section { padding-block: clamp(84px, 9vw, 144px); }
.home .handoff-section { padding-block: clamp(80px, 8vw, 128px); }
.home .demo-section .section-heading { margin-bottom: 56px; }
.home .preview-toggle[hidden], .home video[hidden] { display: none; }
.home .creator-styles { max-width: 1560px; padding-block: clamp(88px, 9vw, 144px); gap: 64px; }
.creator-editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(64px, 8vw, 140px); align-items: center; }
.creator-style-copy > p:not(.section-kicker) { max-width: 36ch; margin-top: 25px; }
.creator-style-links { margin-top: 36px; border-top: 1px solid var(--line); }
.creator-style-links > a { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.style-index { font: 600 12px var(--font-body); color: var(--muted); }
.creator-style-links b { font-size: 18px; font-weight: 600; }
.creator-style-links small { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.style-link-label { margin-left: auto; font-size: 11px; color: var(--acid); white-space: nowrap; }
.creator-style-links > a:hover b { color: var(--acid); }





.home .creator-styles .control-columns { margin-top: 0; gap: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.home .creator-styles .control-columns p { font-size: 15px; max-width: 50ch; }
@media (min-width:1000px) and (min-height:740px) and (prefers-reduced-motion:no-preference) {
  .motion-enabled .home .workflow-section { height: 190vh; }
  .motion-enabled .home .workflow-sticky { padding-block: 32px; }
  .motion-enabled .home .army-section { height: 215vh; }
}
@media (max-width:1000px) {
  .creator-editorial { gap: 48px; }
  .creator-style-links b { font-size: 16px; }
  .style-link-label { display: none; }

}
@media (max-width:700px) {
  .home .workflow-sticky { gap: 48px; padding-block: 76px 60px; }
  .home .workflow-copy > .section-kicker { margin-top: 0; margin-bottom: 20px; font-size: 10px; }
  .home .workflow-steps small { max-width: none; }
  .home .demo-section .section-heading { margin-bottom: 36px; }
  .home .army-sticky { padding-top: 64px; padding-bottom: 32px; }
  .home .creator-styles { gap: 48px; }
  .creator-editorial { display: flex; flex-direction: column; align-items: stretch; gap: 44px; }




  .creator-style-links > a { padding-block: 18px; }
  .creator-style-links b { font-size: 18px; }
  .home .creator-styles .control-columns { grid-template-columns: 1fr; gap: 22px; }
  .home .section-kicker { font-size: 10px; margin-bottom: 22px; }
  .hero-source-range { margin-top: 20px; gap: 12px; font-size: 13px; }
  .hero-source-range small { font-size: 10px; }
  .hero-source-range .range-arrow { margin-left: 0; }
  .hero-range-thumbs img { width: 28px; height: 38px; }
}
@media (prefers-reduced-motion:reduce) {
  .hero-source-range:hover .range-arrow { transform: none; }
}
@media (min-width:1000px) and (min-height:740px) and (prefers-reduced-motion:no-preference) {
  .home .workflow-copy > p:not(.section-kicker) { margin-top: 20px; }
  .home .workflow-steps { margin-top: 24px; }
  .home .workflow-steps button { padding-block: 15px; }
}
@media (max-width:700px) {
  .home .workflow-steps button[aria-pressed="false"] small { display: none; }
}
