/* Bright cartoon sky-blue hero extending behind the floating pill navigation. */
.opening-reel {
  margin-top: calc(-1 * var(--mast-height));
  background: var(--sky-mid);
}
.hero { position: relative; }
.opening-reel .hero {
  isolation: isolate;
  color: var(--white);
  overflow: clip;
  padding-top: var(--mast-height);
  background-color: var(--sky);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(50% 60% at 76% 42%, rgb(255 255 255 / 22%), transparent 68%),
    linear-gradient(165deg, #52b8ff 0%, #3399ff 52%, #2484f2 100%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%;
}
.hero .hero-layout {
  position: relative;
  z-index: 1;
  width: min(var(--wrap, 1120px), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  min-height: clamp(470px, 37vw, 640px);
  padding: clamp(34px, 3.6vw, 62px) 0 clamp(74px, 6vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(35px, 4.5vw, 88px);
}

.hero .skin-print { position: relative; width: 100%; min-width: 0; isolation: isolate; }
.skin-print::before {
  content: ""; position: absolute; z-index: -1; inset: 4px 3px -4px 1px;
  background: var(--sunny);
  border: var(--border-cartoon);
  border-radius: 24px;
  box-shadow: 0 6px 0 var(--ink);
  transform: translate(9px, 6px) rotate(2.2deg);
  transition: transform .6s var(--ease);
}
.hero .hero-copy {
  align-self: center;
  padding: 0;
  min-width: 0;
}
.hero .hero-copy h1 {
  margin: 0 0 clamp(16px, 1.6vw, 24px);
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(3.35rem, 5.8vw, 5.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  -webkit-text-stroke: .03em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
}
.hero .hero-copy h1 em {
  display: block;
  color: var(--sunny);
  -webkit-text-stroke: .03em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--ink);
  font: inherit;
  font-style: normal;
  letter-spacing: inherit;
}
.hero .hero-intro {
  max-width: 43ch;
  color: #f4faff;
  font-size: clamp(1.02rem, 1.18vw, 1.2rem);
  font-weight: 700;
  line-height: 1.56;
  text-shadow: 0 1px 0 rgb(22 34 56 / 22%);
}
.hero .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 2.4vw, 38px);
}
.hero .hero-actions .button { margin: 0; padding: 12px 26px; }

.hero .showcase {
  --stage-rail: 58px;
  min-height: 0;
  min-width: 0;
  align-self: center;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  padding-bottom: var(--stage-rail);
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 7px 0 var(--ink), 0 24px 44px -24px rgb(22 34 56 / 45%);
}
.hero .showcase::before { content: ""; display: block; aspect-ratio: 16 / 9; }
.hero .showcase .stage-caption {
  inset: auto 0 0; min-height: var(--stage-rail); padding: 7px 14px;
  border-top: 2.5px solid var(--ink); background: var(--white);
  display: flex; gap: 7px; align-items: center; justify-content: space-between;
}
.hero .showcase .caption-label { min-width: 0; }
.hero .showcase .caption-label small { display: block; color: var(--sky-deep); font: 850 .64rem/1.05 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.hero .showcase .caption-label b { display: block; margin-top: 2px; color: var(--ink); font: 850 clamp(.84rem, 1.1vw, 1.02rem)/1.12 var(--body); }
.hero .showcase .stage-controls {
  display: flex; gap: 0; align-items: center; flex: none;
  padding: 2px 4px; border-radius: 999px;
  background: var(--sky-soft); border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
}
.hero .showcase .stage-controls button {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--ink);
}
.hero .showcase #slide-number { color: var(--ink); font-weight: 850; padding-inline: 4px; }
.hero .showcase #slide-number i { color: var(--ink-soft); }
.hero .showcase .stage-controls button:focus-visible { outline-offset: -2px; }
.hero .rotation-clock { inset: auto 14px 0; height: 3px; background: rgb(22 34 56 / 12%); }
.hero .rotation-clock span { background: var(--sky); }
.hero .showcase .setting-frame::after { top: auto; right: 12px; bottom: 11px; }
.hero .showcase .setting-frame::after, .hero .showcase .actor button::after {
  padding: 5px 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  font: 850 .77rem/1.2 var(--body);
}
@media (hover: hover) {
  .hero .skin-print:hover::before { transform: translate(13px, 9px) rotate(3.4deg); }
  .hero .showcase .stage-controls button:hover { background: var(--sunny); color: var(--ink); }
}
.hero .showcase .stage-controls button:active { background: var(--sky); color: var(--white); }

@media (min-width: 761px) and (max-width: 1020px) {
  .hero .hero-layout { gap: 27px; min-height: 445px; }
  .hero .hero-copy h1 { font-size: clamp(2.7rem, 5.8vw, 3.6rem); }
  .hero .hero-actions .button { padding-inline: 18px; }
}
@media (max-width: 760px) {
  .hero .hero-layout {
    width: min(590px, calc(100% - 2 * var(--gutter)));
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 42px);
    min-height: 0;
    padding-block: clamp(22px, 4.5vw, 36px) clamp(55px, 9vw, 86px);
  }
  .hero .hero-copy h1 { font-size: clamp(2.95rem, 10.6vw, 4.55rem); margin-bottom: 13px; }
  .hero .hero-intro { max-width: 42ch; }
  .hero .hero-actions { margin-top: 20px; }
  .hero .hero-actions .button { min-height: 46px; padding: 10px 20px; }
  .hero .showcase { width: 100%; min-height: 0; height: auto; }
}
@media (max-width: 410px) {
  .hero .hero-actions { gap: 8px; }
  .hero .hero-actions .button { padding-inline: 15px; font-size: .92rem; }
  .hero .showcase .stage-caption { padding-inline: 9px; }
  .hero .showcase .stage-controls button { width: 27px; height: 28px; }
}
