/* Composición de la portada sobre el fondo común del sitio. */
.hero {
  --hero-sun: #fff078;
  --hero-cyan: #79f3f4;
  --hero-pink: #ed8eea;
  --hero-width: min(94%, 100rem);
  --hero-space: clamp(2.6rem, min(5.4vw, 8svh), 6rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(58rem, calc(100svh - var(--actual-header-height, var(--header-height))));
  padding-block: var(--hero-space) calc(var(--hero-space) + 1.3rem);
}

.hero-nameplate::before, .hero-scene { pointer-events: none; }

.hero-layout {
  position: relative;
  width: var(--hero-width);
  grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
  gap: clamp(.5rem, 1.2vw, 1.4rem);
}

.hero-copy { min-width: 0; padding-inline-start: clamp(.9rem, 2vw, 2.4rem); }
.hero-nameplate { position: relative; container-type: inline-size; }
.hero-nameplate::before {
  position: absolute;
  top: -1.35rem;
  left: calc(-4% - .2rem);
  width: 27%;
  aspect-ratio: 1.12;
  background: var(--hero-pink);
  clip-path: polygon(0 24%, 26% 0, 100% 0, 100% 2%, 27% 2%, 2% 25%, 2% 100%, 0 100%);
  content: "";
}

.hero-title {
  width: 100%;
  padding: 0;
  font-size: clamp(2.25rem, 9.6vw, 10rem);
  font-size: clamp(2.25rem, 24cqi, 10rem);
  font-style: normal;
  letter-spacing: -.033em;
  line-height: .81;
  -webkit-text-stroke: 0;
  text-shadow: clamp(1px, .022em, 3px) clamp(2px, .03em, 4px) 0 var(--hero-cyan);
}

.hero-title span {
  display: block;
  width: max-content;
  transform: skewX(-18deg) scaleX(1.32);
  transform-origin: left bottom;
}

.hero-title span + span { margin-inline-start: .14em; }
.hero-title::before {
  position: absolute;
  top: 58%;
  left: -.36em;
  width: .15em;
  height: .56em;
  background: repeating-linear-gradient(0deg, #b674e17a 0 2px, #9d57cf26 2px 4px, transparent 4px 6px);
  content: "";
}
.hero-title::after {
  left: 94%;
  top: 17%;
  bottom: auto;
  width: 7%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 0;
  background: var(--hero-sun);
  clip-path: polygon(57% 0, 60% 40%, 100% 48%, 61% 56%, 42% 100%, 42% 60%, 0 52%, 41% 43%);
  transform: none;
}

.hero .specialty {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .55em;
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(.65rem, 1.2vw, 1.2rem);
  padding: 0 .65em .5em 0;
  font-size: clamp(1rem, 1.65vw, 1.6rem);
  font-style: italic;
  font-weight: 650;
  line-height: 1.25;
}

.hero .specialty::before, .hero-scene::before {
  flex: none;
  width: 2.2em;
  height: .58em;
  transform: skewX(-37deg);
  background: repeating-linear-gradient(90deg, currentColor 0 21%, transparent 21% 35%);
  color: var(--hero-cyan);
  content: "";
}

.hero .specialty::after {
  position: absolute;
  inset: 50% 0 0 6%;
  border-right: 1px solid #c2a8ec;
  border-bottom: 1px solid #c2a8ec;
  transform: skewX(-34deg);
  content: "";
}

.hero-notes { margin-top: clamp(1.1rem, 2vw, 2.05rem); }
.hero .intro {
  max-width: 44ch;
  margin: 0;
  border-inline-start: 3px solid var(--hero-sun);
  padding-inline-start: clamp(.8rem, 1.5vw, 1.45rem);
  color: #e5e1f1;
  font-size: clamp(.95rem, 1.18vw, 1.12rem);
  line-height: 1.5;
}

/* Los tres marcos recortan un único panorama. Su inclinación no deforma las obras. */
.hero-scene { position: relative; min-width: 0; }
.hero-panels { position: relative; width: 100%; aspect-ratio: 1.55; }
.hero-film {
  --side: 31.7%;
  --middle: 33.8%;
  --left-top: 6%;
  --left-end: 91%;
  --right-top: 7%;
  --right-end: 95%;
  position: absolute;
  inset: 0 10.5%;
  transform: skewX(-21deg);
  filter: drop-shadow(0 0 .55rem #ba7dff48);
}

.hero-exposure {
  --windows:
    linear-gradient(transparent var(--left-top), black var(--left-top) var(--left-end), transparent var(--left-end)) left / var(--side) 100% no-repeat,
    linear-gradient(black, black) center / var(--middle) 100% no-repeat,
    linear-gradient(transparent var(--right-top), black var(--right-top) var(--right-end), transparent var(--right-end)) right / var(--side) 100% no-repeat;
  position: absolute;
  inset: 0;
  -webkit-mask: var(--windows);
  mask: var(--windows);
}

.hero-panorama {
  position: absolute;
  inset: 0 -14%;
  isolation: isolate;
  overflow: hidden;
  transform: skewX(21deg);
  background: #8668a4;
}

.hero-panorama > img {
  position: absolute;
  bottom: -3%;
  left: 12%;
  width: 76%;
  height: auto;
  mask-image: linear-gradient(90deg, transparent, black 7% 93%, transparent);
}

.hero-panorama::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 17%, #ffb2ff69, transparent 41%),
    linear-gradient(154deg, transparent 33%, #e0bdff27 35%, transparent 42% 70%, #ffcaff3b 71%, transparent 78%);
  content: "";
}
.panel-star {
  position: absolute;
  z-index: 2;
  width: 5%;
  aspect-ratio: 1;
  color: #fff1a5;
  filter: drop-shadow(0 0 4px #f4bcff);
}
.panel-star::before {
  display: block; height: 100%; background: currentColor; content: "";
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 60%, 50% 100%, 39% 62%, 0 50%, 39% 39%);
}
.star-left { left: 17%; top: 46%; }
.star-center { left: 55%; top: 11%; width: 3.4%; color: #fae7ff; }
.star-right { right: 13%; top: 53%; width: 4.4%; color: #adffff; }
@media (prefers-reduced-motion: no-preference) {
  .panel-star { animation: panel-glint 2.4s ease-in-out 2; }
  .star-center { animation-delay: .4s; }
  .star-right { animation-delay: .8s; }
  @keyframes panel-glint { 50% { opacity: .68; transform: scale(.8) rotate(8deg); } }
}
.hero-panel-orbit {
  position: absolute;
  z-index: 1;
  inset: 24% 6% auto 7%;
  height: 25%;
  border: clamp(2px, .33vw, 6px) solid #e9adff;
  border-top-color: #c8a2ff85;
  border-right: clamp(6px, 1.05vw, 16px) solid #ffd0fc;
  border-bottom-width: 2px;
  border-left-color: #a774ede0;
  border-radius: 50%;
  transform: rotate(-21deg);
  filter: drop-shadow(0 0 .3rem #ef8fff);
}

.hero-panel { position: absolute; border: 1px solid #e6b8ff; box-shadow: inset 0 0 .3rem #ca95f855; }
.hero-panel-left { inset: var(--left-top) auto calc(100% - var(--left-end)) 0; width: var(--side); }
.hero-panel-center { inset: 0; width: var(--middle); margin-inline: auto; }
.hero-panel-right { inset: var(--right-top) 0 calc(100% - var(--right-end)) auto; width: var(--side); }
@media (any-hover: hover) {
  .hero-panels { pointer-events: auto; }
  .hero-panel:hover {
    border-color: #bfffff;
    background: radial-gradient(ellipse at center, #bbefff2b, #ddc5ff14 70%);
    box-shadow: inset 0 0 1.2rem #8af3ff59, 0 0 .65rem #a2ecff85;
  }
}
@media (any-hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-film {
    translate: var(--panel-x, 0px) var(--panel-y, 0px);
    transition: translate 160ms ease-out;
  }
  .hero-panorama > img {
    translate: calc(0px - var(--panel-x, 0px)) calc(0px - var(--panel-y, 0px));
    transition: translate 210ms ease-out;
  }
}
.hero-panels::before, .hero-panels::after {
  position: absolute;
  width: clamp(.45rem, 1vw, .95rem);
  aspect-ratio: 1;
  background: linear-gradient(#cc9aed, #cc9aed) center / 1px 100% no-repeat,
    linear-gradient(#cc9aed, #cc9aed) center / 100% 1px no-repeat;
  opacity: .75;
  content: "";
}
.hero-panels::before { top: -3%; left: 8%; }
.hero-panels::after { right: 0; bottom: 31%; }
.hero-scene::before { position: absolute; top: -5.5%; right: 4%; width: 13%; height: 2.1%; background-size: 49% 100%; }
.hero-scene::after {
  position: absolute; right: 1%; top: 4%;
  width: .7rem; height: .55rem;
  border-top: 1px solid #d6b2f2; border-right: 1px solid #d6b2f2;
  content: "";
}
.hero-scene .hero-console { z-index: 1; left: 0; bottom: 0; width: clamp(3.1rem, 7vw, 6.6rem); }

@media (max-width: 47.5rem) {
  .hero { --hero-width: min(88%, 34rem); min-height: auto; padding-block: 2.2rem 3.2rem; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "panels" "notes";
    gap: clamp(1.35rem, 5.8vw, 2.1rem);
  }
  .hero-copy { display: contents; }
  .hero-nameplate { grid-area: name; }
  .hero-title { font-size: clamp(2.25rem, 21vw, 8.2rem); font-size: clamp(2.25rem, 24cqi, 8.2rem); }
  .hero-title::before { display: none; }
  .hero .specialty { font-size: clamp(1rem, 3.6vw, 1.32rem); }
  .hero-scene { grid-area: panels; }
  .hero-scene .hero-console { width: 13%; }
  .hero-notes { grid-area: notes; margin: 0; }
  .hero .action { min-width: min(72%, 16rem); }
}

@media (forced-colors: active) {
  .hero .specialty::before, .hero-title::after { display: none; }
}
