/* Home, direction A: the hero "reel" of in-game shots (the trailer's place until there is one), and the closing
   download band. The modes posters are in posters.css, the world gallery in home-parts.css. */
.hero-a { position: relative; min-height: min(calc(100svh - 100px), 980px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.reel, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel { z-index: -2; background: var(--surface); }
.reel img { opacity: 0; animation: reel 28s infinite; }
.reel img:first-child { opacity: 1; animation: drift 28s ease-in-out infinite alternate; } /* (always under the others) */
.reel img:nth-child(2) { animation-delay: 7s; }
.reel img:nth-child(3) { animation-delay: 14s; }
.reel img:nth-child(4) { animation-delay: 21s; }
@keyframes reel { 0% { opacity: 0; transform: scale(1.08); } 4%, 25% { opacity: 1; } 30%, 100% { opacity: 0; transform: scale(1); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-a::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 14, 20, 0.85) 0%, rgba(11, 14, 20, 0.35) 50%, transparent 75%),
    linear-gradient(180deg, rgba(11, 14, 20, 0.35) 0%, transparent 25%, transparent 60%, rgba(11, 14, 20, 0.7) 100%);
}
.hero-a-text { padding-block: 96px calc(64px + var(--b) * 3); max-width: 980px; margin-left: max(var(--gutter), (100% - 1240px) / 2); padding-right: 16px; }
.hero-a-text > p { font-size: 1.25rem; max-width: 44ch; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero-a h1 { font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: 0.98; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.hero-a h1 em { font-style: normal; color: var(--accent); display: block; }
.platforms { margin-top: 22px; font: 600 0.85rem/1.4 "Chakra Petch", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* The reel's scrubber: which place is on screen, with a bar that fills while it shows */
.scrub { position: absolute; right: max(var(--gutter), (100% - 1240px) / 2); bottom: calc(36px + var(--b) * 3); display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.scrub li { width: 132px; font: 600 0.78rem/1.3 "Chakra Petch", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232, 236, 243, 0.55); }
.scrub li::before { content: ""; display: block; height: 3px; margin-bottom: 8px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / 0 100% no-repeat, rgba(232, 236, 243, 0.25); animation: fill 28s linear infinite both; }
.scrub li { animation: lit 28s linear infinite both; }
.scrub li:nth-child(2), .scrub li:nth-child(2)::before { animation-delay: 7s; }
.scrub li:nth-child(3), .scrub li:nth-child(3)::before { animation-delay: 14s; }
.scrub li:nth-child(4), .scrub li:nth-child(4)::before { animation-delay: 21s; }
@keyframes fill { 0% { background-size: 0 100%, auto; } 25% { background-size: 100% 100%, auto; } 25.01%, 100% { background-size: 0 100%, auto; } }
@keyframes lit { 0%, 25% { color: var(--text); } 25.01%, 100% { color: rgba(232, 236, 243, 0.55); } }
.footage { display: block; margin-top: 6px; font: 400 0.82rem/1.4 "Nunito", sans-serif; letter-spacing: 0; text-transform: none; color: var(--muted); }
@media (max-width: 1000px) { .scrub { display: none; } }

/* The closing download band, stepped at the top like the hero's bottom */
.band { position: relative; isolation: isolate; text-align: center; padding-block: clamp(100px, 14vw, 200px); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 14, 20, 0.55), rgba(11, 14, 20, 0.85)); }
.band .actions { justify-content: center; }
.band p { margin-inline: auto; }
.band h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); }

/* Phones: the picture sits behind all of the text, so it is dimmed evenly */
@media (max-width: 700px) {
  .hero-a::after { background: linear-gradient(180deg, rgba(11, 14, 20, 0.45), rgba(11, 14, 20, 0.88)); }
}
