* { box-sizing: border-box; }
:root {
  --bg: #18202b;
  --panel: rgba(18, 23, 31, .92);
  --card: #2b333f;
  --line: rgba(255, 255, 255, .10);
  --text: #e8ecf1;
  --dim: #8e99a8;
  --gold: #f5c542;
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.4 "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.stage { padding: 20px; }

/* the hero card: the island on the right, the words on the left */
.hero {
  position: relative; max-width: 1360px; min-height: min(760px, calc(100vh - 40px)); margin: 0 auto; border-radius: 26px; overflow: hidden;
  background:
    linear-gradient(90deg, #18202b 0%, rgba(24, 32, 43, .9) 30%, rgba(24, 32, 43, 0) 58%),
    radial-gradient(ellipse at 70% 55%, rgba(60, 90, 110, .35), transparent 60%),
    url("hero.jpg?v=1792432628") right -30px bottom / auto 100% no-repeat,
    #18202b;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  display: grid; grid-template-rows: auto 1fr; padding: 28px 44px 40px;
}
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 56px; width: auto; filter: invert(.9) drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }  /* the logo is dark: inverted it reads on the dark background */
.links { display: flex; gap: 6px; padding: 6px; background: rgba(18, 23, 31, .6); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(8px); }
.links a { color: var(--text); text-decoration: none; padding: 8px 18px; border-radius: 999px; font-size: 14px; }
.links a:hover { background: var(--card); }

.copy { align-self: center; max-width: 560px; padding: 40px 0; }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .2em; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.05; font-weight: 800; margin: 0 0 22px; text-transform: uppercase; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--gold); }
.copy p { font-size: 19px; line-height: 1.6; color: #c3ccd8; margin: 0 0 30px; max-width: 480px; }
.get { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.button { display: inline-block; background: var(--gold); color: #18202b; font-weight: 700; font-size: 17px; text-decoration: none; padding: 15px 32px; border-radius: 12px; box-shadow: 0 8px 24px rgba(245, 197, 66, .25); }
.button:hover { filter: brightness(1.1); }
.version { color: var(--dim); font-size: 13px; line-height: 1.5; }
.dev { margin-top: 26px; color: var(--dim); font-size: 13px; }

.trailer-thumb { position: absolute; right: 44px; bottom: 40px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--text); }
.trailer-thumb .label { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; margin-bottom: 10px; }
.trailer-thumb .frame { position: relative; display: block; width: 260px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.trailer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #18202b; display: grid; place-items: center; transition: transform .2s; }
.trailer-thumb:hover .play { transform: scale(1.12); }
.play svg { width: 22px; height: 22px; fill: currentColor; }

/* the trailer dialog */
.modal { position: fixed; inset: 0; z-index: 10; background: rgba(8, 11, 15, .8); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.dialog { position: relative; width: min(1000px, 100%); }
.close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.close:hover { color: var(--gold); }

main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.story { max-width: 760px; margin: 48px auto 0; }
.story p { color: #b7c0cc; font-size: 19px; line-height: 1.65; margin: 0 0 22px; }
h2 { font-size: 18px; font-weight: 600; text-align: center; margin: 56px 0 16px; color: var(--dim); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.card { width: 290px; }
.card .player { aspect-ratio: 9 / 16; }
figcaption { display: flex; flex-direction: column; padding: 10px 4px 2px; }
figcaption b { font-weight: 600; }
figcaption span { color: var(--dim); font-size: 13px; }

/* the video controller */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.player video { width: 100%; height: 100%; display: block; object-fit: cover; }
.player .big {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .18); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: opacity .2s, transform .2s;
}
.player .big:hover { transform: scale(1.08); }
.player.playing .big { opacity: 0; pointer-events: none; }
.bar {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  opacity: 0; transition: opacity .2s;
}
.player:hover .bar, .player.paused-mid .bar, .player:focus-within .bar { opacity: 1; }
.bar button { background: none; border: 0; color: var(--text); cursor: pointer; padding: 2px; display: grid; place-items: center; }
.bar button:hover { color: var(--gold); }
.track { flex: 1; height: 6px; background: var(--card); border-radius: 3px; cursor: pointer; position: relative; }
.track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); border-radius: 3px; }
.time { font-size: 12px; color: var(--dim); min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
svg { width: 22px; height: 22px; fill: currentColor; }
.big svg { width: 28px; height: 28px; }

footer { text-align: center; padding: 48px 16px 56px; }
footer a { color: var(--gold); text-decoration: none; border: 1px solid var(--line); background: var(--panel); padding: 10px 18px; border-radius: 10px; }
footer a:hover { border-color: var(--gold); }
footer p { color: var(--dim); font-size: 13px; margin: 18px 0 0; }

@media (max-width: 800px) {
  .stage { padding: 10px; }
  .hero { padding: 20px; background-position: 70% 90%; background-size: auto 70%; min-height: 0;
    background-image: linear-gradient(180deg, #18202b 0%, rgba(24, 32, 43, .9) 45%, rgba(24, 32, 43, .1) 100%), url("hero.jpg?v=1792432628"); }
  .links a:not(:last-child) { display: none; }
  .copy { padding: 24px 0 280px; }
  .trailer-thumb { right: 20px; bottom: 20px; }
  .trailer-thumb .frame { width: 180px; }
}
