:root {
  --ink: #090c13;
  --ink-soft: #101622;
  --line: rgba(235, 244, 255, 0.16);
  --paper: #f3f6f7;
  --muted: #a8b3bd;
  --gold: #ffd34f;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  display: flex;
  width: min(calc(100% - 48px), var(--max-width));
  align-items: center;
  justify-content: center;
  padding: 21px 0;
  transform: translateX(-50%);
}
.site-nav { display: flex; align-items: center; gap: 25px; font-size: 13px; font-weight: 600; }
.site-nav a, .footer-links a { text-decoration: none; }
.site-nav a:hover, .footer-links a:hover { color: var(--gold); }

.hero {
  position: relative;
  display: flex;
  min-height: 820px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 148px 24px 100px;
  isolation: isolate;
}
.hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 220px;
  background: linear-gradient(transparent, var(--ink));
  content: "";
}
.hero-picture { position: absolute; z-index: -3; inset: 0; }
.hero-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 15, 0.1) 10%, rgba(6, 10, 18, 0.22) 43%, rgba(6, 9, 15, 0.84) 100%); }
.hero-content { width: min(100%, 700px); text-align: center; }
.hero-logo { display: block; width: min(100%, 360px); margin: 0 auto 10px; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.42)); }
.hero-kicker { margin: 0 0 28px; color: #edf3f4; font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.03em; }
.hero-description { max-width: 460px; margin: -12px auto 28px; color: #d5e0e4; font-size: 15px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #191506; }
.button-primary:hover { background: #ffe68f; }
.button-ghost { border-color: rgba(243, 246, 247, 0.6); background: rgba(6, 10, 16, 0.28); color: var(--paper); }
.button-ghost:hover { border-color: var(--paper); background: rgba(6, 10, 16, 0.58); }
.play-icon { font-size: 10px; }

.section { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }
.trailer { padding: 68px 0 92px; }
.trailer h2, .gallery h2 { margin: 0 0 26px; color: var(--paper); font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; letter-spacing: -0.035em; text-align: center; }
.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(235, 244, 255, 0.18);
  background: #05070a;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.gallery { width: min(calc(100% - 24px), 1500px); padding: 0 0 104px; }
.gallery-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 28px max(2px, calc((100% - min(30vw, 460px)) / 2)) 34px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-card {
  display: block;
  flex: 0 0 min(30vw, 460px);
  overflow: hidden;
  border: 1px solid rgba(235, 244, 255, 0.15);
  background: var(--ink-soft);
  opacity: 0.58;
  scroll-snap-align: center;
  transform: scale(0.8);
  transform-origin: center center;
  transition: border-color 220ms ease, opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-card.is-active { opacity: 1; transform: scale(1.12); }
.gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-card:hover, .gallery-card:focus-visible { border-color: var(--gold); }
.gallery-card:not(.is-active):hover, .gallery-card:not(.is-active):focus-visible { opacity: 0.82; transform: scale(0.86); }
.gallery-rail:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

.download-section {
  display: flex;
  justify-content: center;
  padding: 0 0 88px;
}
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.site-footer {
  display: flex;
  width: min(calc(100% - 48px), var(--max-width));
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0 auto;
  padding: 27px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-links { display: flex; justify-content: center; gap: 20px; }

@media (max-width: 780px) {
  .site-header { width: calc(100% - 32px); padding: 15px 0; }
  .site-nav { gap: 13px; font-size: 12px; }
  .hero { min-height: 720px; padding: 130px 20px 85px; }
  .hero-art { object-position: 58% center; }
  .hero-logo { width: min(100%, 290px); }
  .hero-kicker { font-size: 14px; }
  .section, .site-footer { width: calc(100% - 40px); }
  .trailer { padding: 54px 0 70px; }
  .gallery { padding-bottom: 78px; }
  .gallery { width: calc(100% - 40px); }
  .gallery-rail { gap: 10px; padding: 20px max(0px, calc((100% - 82vw) / 2)) 26px; }
  .gallery-card { flex-basis: 82vw; }
  .download-section { padding-bottom: 58px; }
  .site-footer { display: block; padding: 24px 0 30px; }
  .footer-links { justify-content: flex-start; margin-top: 18px; }
}

@media (max-width: 440px) {
  .site-nav a:first-child { display: none; }
  .hero { min-height: 680px; }
  .hero-art { object-position: 62% center; }
  .hero-logo { width: 250px; }
  .hero-actions .button { width: 100%; }
  .gallery-card { flex-basis: 86vw; }
  .footer-links { flex-wrap: wrap; gap: 10px 18px; }
}
