/* Scena Studio — home: one layout per screen size, the others hidden */
.hv { display: none; }
.hb-sep { display: flow-root; }
@media (min-width: 1024px) { .hv-d { display: block; } }
@media (min-width: 600px) and (max-width: 1023.98px) { .hv-t { display: block; } }
@media (max-width: 599.98px) { .hv-m { display: block; } }

/* Light the reel from behind and keep its frame separate from the footage. */
.hv .page > header > div:has([data-block="heromedia"]) {
  background-image:
    radial-gradient(ellipse 74% 58% at 55% 68%, rgba(53, 81, 120, 0.27), transparent 76%),
    radial-gradient(ellipse 50% 42% at 17% 4%, rgba(216, 65, 28, 0.20), transparent 78%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px !important;
}

.creator-reel {
  margin: 0;
  scroll-margin-top: 80px;
}

.creator-reel video {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: #0f1116;
  box-shadow: 0 18px 52px -16px rgba(0, 0, 0, 0.82),
    0 30px 86px -38px rgba(94, 133, 186, 0.48);
}

.creator-reel figcaption {
  display: grid;
  gap: 12px;
  margin-top: 15px;
  color: #c5c5cb;
  font-size: 13px;
  line-height: 1.5;
}

.creator-reel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.creator-reel-heading strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.creator-reel-heading a {
  color: #ffc2ad;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.creator-reel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.creator-reel-chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.creator-reel-chapters a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(20, 24, 33, 0.8);
  color: #eeedf1;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.creator-reel-chapters time {
  flex: none;
  color: #ffc2ad;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
}

.creator-reel-chapters a:hover,
.creator-reel-chapters a[aria-current="true"] {
  border-color: rgba(255, 154, 113, 0.65);
  background: #30231f;
  color: #fff;
}

.creator-reel :is(video, a):focus-visible {
  outline: 2px solid #ff865f;
  outline-offset: 3px;
}

@media (max-width: 599.98px) {
  .creator-reel-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-reel-chapters a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Match the comparison and app screenshot frames without filtering their media. */
.hv :is([data-block="compare"] figure, figure[data-block="featmedia"]) {
  border-radius: 12px !important;
  box-shadow: 0 2px 6px rgba(15, 19, 28, 0.06), 0 20px 44px -20px rgba(15, 19, 28, 0.24);
}

.hv :is([data-block="compare"] figure, figure[data-block="featmedia"]) > div:first-child {
  background: linear-gradient(110deg, #262d39, #131821 66%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.hv figure[data-block="featmedia"] > a {
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 65%) !important;
}

.hv .cmp-handle > span {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88), 0 5px 20px rgba(10, 12, 18, 0.46) !important;
}

.hv .gframe { border-radius: 10px !important; }

.hv .gframe > span:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.18), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hv .gframe:focus-visible,
.hv figure[data-block="featmedia"] > a:focus-visible {
  outline: 2px solid #ff865f;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hv figure[data-block="featmedia"] {
      animation: screenshot-reveal linear both;
      animation-timeline: view();
      animation-range: entry 4% entry 72%;
    }

    @keyframes screenshot-reveal {
      from { opacity: 0.76; translate: 0 10px; }
      to { opacity: 1; translate: 0 0; }
    }
  }

  @media (hover: hover) and (pointer: fine) {
    .creator-reel video { transition: border-color 240ms ease; }
    .creator-reel video:hover { border-color: rgba(255, 154, 113, 0.8); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv .gframe > span:first-child img { animation: none !important; }

  .hv .gframe-beat-b { opacity: 0; }

  .hv .gframe:hover > span:first-child > :is(img, video) { transform: none !important; }
}
