/* Arknights: Endfield prelander B. Charter from endfield.gryphline.com: #191919 black, white, signal yellow #fffa00, wide bold caps. */
:root {
  --ink: #191919;
  --yellow: #fffa00;
  --white: #fff;
  --grey: #b3b3b3;
  --line: rgba(255, 255, 255, .16);
  --cut: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  min-height: 100svh; display: flex; flex-direction: column;
  background: var(--ink); color: var(--white);
  font-family: "Outfit", system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.bg__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(25,25,25,.92) 0%, rgba(25,25,25,.6) 50%, rgba(25,25,25,.4) 100%),
    linear-gradient(0deg, rgba(25,25,25,.95) 0%, rgba(25,25,25,0) 40%);
}
.bg__slash { position: absolute; top: 0; bottom: 0; left: 40%; width: 3px; background: var(--yellow); transform: skewX(-14deg); opacity: .8; display: none; }

/* ---------- Header ---------- */
.top { display: flex; justify-content: space-between; align-items: center; padding: max(14px, env(safe-area-inset-top)) 20px 0; }
.top__logo { width: 120px; height: auto; filter: drop-shadow(0 2px 12px rgba(0,0,0,.7)); }
.top__sys { font: 500 11px "JetBrains Mono", monospace; letter-spacing: .14em; color: var(--white); border: 1px solid var(--line); padding: 5px 10px; background: rgba(25,25,25,.6); }
.top__sys i { font-style: normal; color: var(--yellow); animation: blink 1s steps(1) infinite; }
@media (max-width: 480px) { .top__sys { display: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Layout ---------- */
.wrap { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 14px 20px 24px; }

/* ---------- Copy ---------- */
.copy { order: 1; }
.photo { order: 2; }
.copy { display: flex; flex-direction: column; align-items: flex-start; }
.kicker { display: flex; align-items: center; gap: 10px; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .14em; opacity: 0; animation: rise .6s .2s ease-out forwards; }
.kicker b { background: var(--yellow); color: var(--ink); padding: 3px 9px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

.title { margin: 12px 0 14px; font-family: "Syncopate", sans-serif; font-weight: 700; text-transform: uppercase; line-height: 1.02; }
.title span { display: block; font-size: clamp(30px, 10vw, 74px); opacity: 0; animation: rise .7s ease-out forwards; }
.title span:nth-child(1) { animation-delay: .3s; }
.title span:nth-child(2) { animation-delay: .45s; margin-left: .4em; }
.title span:nth-child(3) { animation-delay: .6s; margin-left: .8em; }
.title .y { color: var(--yellow); }
.lead { max-width: 30em; font-size: clamp(16px, 4.3vw, 20px); line-height: 1.45; color: #dcdcdc; opacity: 0; animation: rise .6s .7s ease-out forwards; }

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 540px; min-height: 74px; padding: 0 22px;
  background: var(--yellow); color: var(--ink); text-decoration: none;
  font-family: "Syncopate", sans-serif; font-weight: 700; font-size: clamp(14px, 4.2vw, 21px); letter-spacing: .02em;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  opacity: 0; animation: rise .6s .9s ease-out forwards, pulse 1.6s 1.7s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent; transition: background .2s;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(0,0,0,.06) 14px 28px); animation: stripes 1s linear infinite; }
.cta__shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 26%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent); transform: skewX(-20deg); animation: shine 2.4s 1.9s ease-in-out infinite; }
.cta svg { flex: none; }
.cta__label { white-space: nowrap; }
.cta__arrow { animation: nudge 1s ease-in-out infinite; }
.cta:hover, .cta:focus-visible { background: #fff; outline: none; }
.cta:active { transform: scale(.97); }

.stats { list-style: none; display: flex; gap: 10px; margin-top: 18px; width: 100%; max-width: 540px; opacity: 0; animation: rise .6s 1.05s ease-out forwards; }
.stats li { flex: 1; padding: 6px 10px; border-left: 3px solid var(--yellow); font: 500 11px "JetBrains Mono", monospace; letter-spacing: .06em; color: var(--grey); text-transform: uppercase; }
.stats b { display: block; font: 700 18px "Syncopate", sans-serif; color: var(--white); letter-spacing: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,250,0,0)); } 50% { transform: scale(1.04); filter: drop-shadow(0 0 22px rgba(255,250,0,.7)); } }
@keyframes shine { 0% { left: -40%; } 60%, 100% { left: 130%; } }
@keyframes stripes { to { background-position: 39.6px 0; } }
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ---------- Tilted photo card, one at a time ---------- */
.photo { position: relative; width: min(100%, 420px); aspect-ratio: 4 / 3.2; margin: 0 auto; opacity: 0; animation: rise .8s .15s ease-out forwards; }
.photo__back { position: absolute; inset: 4% 6%; border: 2px solid rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.photo__back--1 { transform: rotate(-6deg) translate(-4%, -2%); border-color: var(--yellow); }
.photo__back--2 { transform: rotate(5deg) translate(4%, 2%); }
.photo__stage { position: absolute; inset: 5% 8%; }
.pc {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  border: 7px solid #fff; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.6);
  opacity: 0; transform: rotate(9deg) scale(.82); pointer-events: none;
}
.pc.on { animation: pop .7s cubic-bezier(.2, 1.3, .4, 1) forwards; }
.pc.out { animation: away .45s ease-in forwards; }
@keyframes pop { from { opacity: 0; transform: rotate(10deg) scale(.8) translateY(30px); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
@keyframes away { from { opacity: 1; transform: rotate(-3deg) scale(1); } to { opacity: 0; transform: rotate(-10deg) scale(.9) translateX(-40px); } }
.photo__count { position: absolute; left: 4%; bottom: -4px; font: 500 12px "JetBrains Mono", monospace; letter-spacing: .12em; color: var(--ink); background: var(--yellow); padding: 3px 10px; }

/* ---------- Ticker + footer ---------- */
.ticker { display: block; cursor: pointer; text-decoration: none; overflow: hidden; white-space: nowrap; background: var(--yellow); color: var(--ink); font: 700 12px "Syncopate", sans-serif; letter-spacing: .12em; padding: 8px 0; }
.ticker div { display: inline-flex; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.foot { padding: 10px 20px max(14px, env(safe-area-inset-bottom)); background: var(--ink); color: #777; font-size: 12px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .top { padding: 28px 5vw 0; }
  .top__logo { width: 160px; }
  .bg__slash { display: block; }
  .wrap { flex-direction: row; align-items: center; gap: 5vw; padding: 10px 6vw 24px; }
  .photo, .copy { flex: 1; }
  .photo { max-width: 600px; }
  .title span { font-size: clamp(40px, 4.6vw, 84px); }
  .lead { font-size: 21px; }
  .cta { min-height: 90px; font-size: clamp(18px, 1.6vw, 24px); --cut: 22px; }
  .stats b { font-size: 22px; }
  .foot { padding-left: 6vw; }
}
@media (min-width: 900px) and (max-height: 800px) {
  .title { margin: 8px 0 10px; }
  .title span { font-size: clamp(34px, 4vw, 62px); }
  .cta { min-height: 78px; margin-top: 16px; }
  .stats { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .kicker, .title span, .lead, .cta, .stats, .photo { opacity: 1; }
}
