:root {
  color-scheme: dark;
  --ink: #f7f4ee;
  --muted: #aaa69e;
  --bg: #11110f;
  --panel: #1c1c19;
  --orange: #e85d2a;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow-x: hidden;
}

.topbar {
  min-height: 64px;
  padding: 12px clamp(18px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #31312d;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 11px;
}

.mark { width: 5px; height: 27px; background: var(--orange); display: block; }
nav { display: flex; align-items: center; gap: 10px; }

button, .download {
  border: 1px solid #454540;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  padding: 10px 13px;
  text-decoration: none;
  cursor: pointer;
}

.download { background: var(--orange); border-color: var(--orange); color: white; font-weight: 700; }
button:hover, .download:hover { filter: brightness(1.12); }

main {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(46px, 1fr) minmax(280px, 1280px) minmax(46px, 1fr);
  align-items: center;
  gap: clamp(6px, 1.5vw, 24px);
  padding: clamp(14px, 3vw, 36px) 10px 12px;
}

.stage { margin: 0; width: 100%; position: relative; }
.stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: white;
  display: block;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .42);
}

figcaption {
  position: absolute;
  right: 12px;
  bottom: -28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.arrow {
  justify-self: center;
  width: 42px;
  height: 58px;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 26px;
}

.progress { height: 3px; margin-top: 20px; background: #2e2e2a; }
.progress span { display: block; height: 100%; width: 10%; background: var(--orange); transition: width .25s ease; }
.hint { margin: 12px 0 15px; text-align: center; color: var(--muted); font-size: 12px; }

dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  border: 1px solid #484842;
  background: var(--panel);
  color: var(--ink);
  padding: 42px;
}

dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); }
dialog h1 { margin: 6px 0 26px; font-size: 34px; }
dialog .eyebrow { margin: 0; color: var(--orange); font-size: 12px; font-weight: 700; text-transform: uppercase; }
dialog li { margin: 0 0 13px; }
dialog a { color: var(--ink); }
dialog p { color: var(--muted); line-height: 1.5; }
.close { position: absolute; right: 15px; top: 12px; border: 0; font-size: 24px; }

@media (max-width: 720px) {
  .topbar { align-items: flex-start; }
  nav { flex-direction: column-reverse; align-items: flex-end; }
  nav button, .download { font-size: 11px; padding: 8px; }
  main { grid-template-columns: 36px minmax(240px, 1fr) 36px; padding-inline: 0; }
  .arrow { width: 34px; }
  .hint { display: none; }
  dialog { padding: 30px 24px; }
}

@media (display-mode: fullscreen) {
  .topbar, .hint { display: none; }
  main { min-height: calc(100vh - 3px); padding: 0; grid-template-columns: 48px minmax(280px, 1fr) 48px; }
  .stage img { max-height: 100vh; }
}
